@uipath/skills 1.207.0-preview.2143 → 1.207.0-preview.2180
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/assets/uip-catalog-snapshot.json +1 -0
- package/package.json +1 -1
- package/skills/uipath-agents/references/lowcode/capabilities/escalation/escalation.md +4 -8
- package/skills/uipath-agents/references/lowcode/capabilities/process/solution-files.md +7 -9
- package/skills/uipath-automationhub/SKILL.md +9 -4
- package/skills/uipath-automationhub/references/api-endpoints.md +9 -4
- package/skills/uipath-automationhub/references/cli-commands.md +1 -1
- package/skills/uipath-automationhub/references/publish-process.md +1 -1
- package/skills/uipath-governance/references/access-policy/access-policy-commands.md +3 -10
- package/skills/uipath-governance/references/access-policy/access-policy-overview-guide.md +6 -6
- package/skills/uipath-governance/references/access-policy/planning-arch.md +6 -6
- package/skills/uipath-governance/references/access-policy/planning-impl.md +1 -1
- package/skills/uipath-governance/references/access-policy/plugins/tags/planning.md +1 -1
- package/skills/uipath-governance/references/access-policy/policy-manage-guide.md +7 -11
- package/skills/uipath-governance/references/access-policy/resource-lookup-guide.md +3 -7
- package/skills/uipath-governance/references/access-policy/sample-policy-guide.md +2 -2
- package/skills/uipath-governance/references/auth-context.md +17 -31
- package/skills/uipath-governance/references/cli-cheatsheet.md +3 -3
- package/skills/uipath-governance/references/compliance-pack/catalog/impl.md +1 -1
- package/skills/uipath-governance/references/compliance-pack/coverage/impl.md +2 -2
- package/skills/uipath-governance/references/compliance-pack/disable/impl.md +1 -1
- package/skills/uipath-governance/references/compliance-pack/full-apply/impl.md +4 -4
- package/skills/uipath-governance/references/compliance-pack/partial-apply/impl.md +1 -1
- package/skills/uipath-governance/references/compliance-pack/restore/impl.md +1 -1
- package/skills/uipath-human-in-the-loop/references/hitl-node-apptask.md +21 -19
- package/skills/uipath-platform/SKILL.md +43 -18
- package/skills/uipath-platform/references/licensing/licensing.md +1 -1
- package/skills/uipath-platform/references/orchestrator/orchestrator.md +7 -1
- package/skills/uipath-platform/references/uip-commands.md +4 -4
- package/skills/uipath-test/SKILL.md +10 -9
- package/skills/uipath-test/references/publish-and-link-guide.md +5 -3
- 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.2180",
|
|
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"
|
|
@@ -103,18 +103,14 @@ From the parsed `ActionSchema` (Step 3), construct the channel fields:
|
|
|
103
103
|
]
|
|
104
104
|
```
|
|
105
105
|
|
|
106
|
-
Ask the user who should receive the task. If they say "me" or don't specify, fall back to the current user's email
|
|
106
|
+
Ask the user who should receive the task. If they say "me" or don't specify, fall back to the current user's email, `Data.UserEmail` from:
|
|
107
107
|
|
|
108
108
|
```bash
|
|
109
|
-
|
|
110
|
-
import sys, base64, json
|
|
111
|
-
tok = sys.stdin.read().strip()
|
|
112
|
-
payload = tok.split(\".\")[1]
|
|
113
|
-
payload += \"=\" * (-len(payload) % 4)
|
|
114
|
-
print(json.loads(base64.urlsafe_b64decode(payload)).get(\"email\"))
|
|
115
|
-
"'
|
|
109
|
+
uip login status --output json
|
|
116
110
|
```
|
|
117
111
|
|
|
112
|
+
Never decode the access token or read the CLI's credentials file for it.
|
|
113
|
+
|
|
118
114
|
Use other `type` values (1=UserId, 2=GroupId, 4=AssetUserEmail, 5=StaticGroupName, 6=AssetGroupName) only when the user explicitly asks for a GUID-based recipient or an asset-backed one — they require additional inputs (user/group GUID from the Identity API, or an asset name).
|
|
119
115
|
|
|
120
116
|
> **Do not set `displayName` for `type: 3`.** The reference solution omits it; leaving it out results in cleaner rendering in Studio Web.
|
|
@@ -437,7 +437,7 @@ Maps `solution_folder` to the actual Orchestrator folder so Studio Web can resol
|
|
|
437
437
|
"docVersion": "1.0.0",
|
|
438
438
|
"tenants": [
|
|
439
439
|
{
|
|
440
|
-
"tenantKey": "<
|
|
440
|
+
"tenantKey": "<TENANT_ID>", // Data.TenantId from `uip login status --output json`
|
|
441
441
|
"resources": [
|
|
442
442
|
{
|
|
443
443
|
"solutionResourceKey": "<release-key-guid>", // Same as referenceKey in agent resource
|
|
@@ -466,7 +466,7 @@ For the generic debug_overwrites shape (capability-agnostic), see [../../solutio
|
|
|
466
466
|
|
|
467
467
|
> **Fallback path.** When `uip solution resources get` is available, use it instead — see [process.md § Discovery](process.md#discovery). The steps below are for older `uip` builds, RCS-unreachable environments, or custom deployments where the CLI cannot supply the full configuration.
|
|
468
468
|
|
|
469
|
-
> **SECURITY: Never read
|
|
469
|
+
> **SECURITY: Never read the CLI's credentials file or extract the access token** — it must not appear in Claude's context. Make the Orchestrator calls below with `uip api`, which adds base URL, organization, tenant and token itself and returns only the response (`Data.Body`). If `uip api` is an unknown command, run `uip update`, then retry.
|
|
470
470
|
|
|
471
471
|
### Step 1: Discover the process and its folder
|
|
472
472
|
|
|
@@ -486,12 +486,11 @@ Returns, for each match:
|
|
|
486
486
|
|
|
487
487
|
### Step 2: Query `/odata/Releases` for ProcessKey, ProcessVersion, FeedId, and raw .NET schemas (RPA)
|
|
488
488
|
|
|
489
|
-
|
|
489
|
+
Query the Releases API with `uip api`. Filter by `ProcessKey` (string, exact match):
|
|
490
490
|
|
|
491
491
|
```bash
|
|
492
|
-
|
|
493
|
-
-
|
|
494
|
-
-H "X-UIPATH-FolderKey: <FOLDER_KEY_GUID>"'
|
|
492
|
+
uip api "orchestrator_/odata/Releases?\$filter=ProcessKey%20eq%20'<PROCESS_KEY>'&\$top=1&\$select=Key,Name,ProcessKey,ProcessVersion,ProcessType,FeedId,TargetRuntime,Description,Arguments,Id" \
|
|
493
|
+
--folder-key "<FOLDER_KEY_GUID>" --output json
|
|
495
494
|
```
|
|
496
495
|
|
|
497
496
|
Orchestrator's OData rejects `Key eq <guid>` (Edm.Guid mismatch); filter by `ProcessKey` (string) or `Name` instead. The `Key` GUID from Step 1 is used as `referenceKey` and process-declaration `key`, never as a filter value.
|
|
@@ -507,9 +506,8 @@ Returns:
|
|
|
507
506
|
This API returns JSON Schema format input/output arguments and entry point metadata. It works for **all 4 process types**.
|
|
508
507
|
|
|
509
508
|
```bash
|
|
510
|
-
|
|
511
|
-
-
|
|
512
|
-
-H "X-UIPATH-FolderKey: <FOLDER_KEY_GUID>"'
|
|
509
|
+
uip api "orchestrator_/odata/Processes/UiPath.Server.Configuration.OData.GetPackageEntryPointsV2(key='<PROCESS_KEY>:<VERSION>')?feedId=<FEED_ID>" \
|
|
510
|
+
--folder-key "<FOLDER_KEY_GUID>" --output json
|
|
513
511
|
```
|
|
514
512
|
|
|
515
513
|
- `<PROCESS_KEY>:<VERSION>` — e.g., `TestRPA.process.TestRPA:1.0.0` (from Step 2: `ProcessKey` + `ProcessVersion`)
|
|
@@ -25,10 +25,15 @@ Never mix the two transports in one run. The domain contract — required fields
|
|
|
25
25
|
Resolve the cloud token + base URL + org + tenant in this **priority order**:
|
|
26
26
|
|
|
27
27
|
1. **Runtime env-auth (preferred — how UiPath Delegate provides it).** If `UIPATH_CLI_AUTH_TOKEN` is set (with `UIPATH_CLI_ENABLE_ENV_AUTH=true`), use it as the bearer and take org/tenant from `UIPATH_CLI_ORGANIZATION_NAME` / `UIPATH_CLI_TENANT_NAME` (and the `..._ID` variants). Base URL defaults to `https://cloud.uipath.com`. *(If a parent `uip` process instead exported `UIPATH_ACCESS_TOKEN` + `UIPATH_URL` — the `{base}/{org}/{tenant}` shape — use those.)*
|
|
28
|
-
2. **Logged-in `uip` session.** Otherwise
|
|
29
|
-
3. **User-provided (last resort).** Ask the user to paste a cloud bearer token plus their **org** and **tenant** slugs (the two path segments after the host in their AH URL).
|
|
28
|
+
2. **Logged-in `uip` session.** Otherwise take `$BASE_URL`, `$ORG`, `$TENANT` from `uip login status --output json` (`Data.BaseUrl`, `Data.Organization`, `Data.Tenant`; `Data.Status` must be `Logged in`) and the token from `uip login refresh --output json` (`Data.AccessToken`). Never read the CLI's credentials file.
|
|
30
29
|
|
|
31
|
-
|
|
30
|
+
Set `$ACCESS_TOKEN` in the **same shell invocation** as each request, and never print it:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
ACCESS_TOKEN=${UIPATH_CLI_AUTH_TOKEN:-$(uip login refresh --output json | sed -n 's/.*"AccessToken": *"\([^"]*\)".*/\1/p')}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Never run `uip login refresh --output json` on its own: its output includes the token. If neither source yields a token, stop and ask the user to run `uip login`. Never ask the user to paste a token.
|
|
32
37
|
|
|
33
38
|
**Gateway URL** (every request):
|
|
34
39
|
|
|
@@ -43,7 +48,7 @@ The platform injects tenant-routing headers from the `{org}/{tenant}` segments
|
|
|
43
48
|
- Send `Authorization: Bearer <cloud access token>` on every request (and `Content-Type: application/json` on POSTs).
|
|
44
49
|
- **NEVER** send `x-ah-openapi-auth` or `x-ah-openapi-app-key`. Those route to the admin-token path and reject a cloud token with **401** — never add them to "fix" a 401.
|
|
45
50
|
- Never fall back to an admin OpenAPI token. If no token resolves, stop and explain the skill needs the user's cloud session (`uip login`) or a host-provided token.
|
|
46
|
-
- Cloud tokens are short-lived. On a **401
|
|
51
|
+
- Cloud tokens are short-lived. On a **401** with a `uip login` session, re-run the request (its `uip login refresh` renews the token); if it still fails, tell the user to run `uip login` again.
|
|
47
52
|
|
|
48
53
|
## Routing — pick the flow by intent
|
|
49
54
|
|
|
@@ -9,10 +9,15 @@ This is the shared auth + endpoint catalog for both flows — [`publish-process.
|
|
|
9
9
|
### Getting the cloud token + org/tenant (in priority order)
|
|
10
10
|
|
|
11
11
|
1. **Runtime env-auth (preferred — this is how UiPath Delegate provides it).** The runtime runs `uip` in a virtual shell with `UIPATH_CLI_ENABLE_ENV_AUTH=true` and sets `UIPATH_CLI_AUTH_TOKEN` (the user's cloud bearer token) plus `UIPATH_CLI_ORGANIZATION_NAME` / `UIPATH_CLI_TENANT_NAME` (and `..._ID` variants). If `UIPATH_CLI_AUTH_TOKEN` is set, use it as the bearer and take org/tenant from those vars. Base URL defaults to `https://cloud.uipath.com` unless the environment specifies another. *(If a parent `uip` process instead exported `UIPATH_ACCESS_TOKEN` + `UIPATH_URL` — the `{base}/{org}/{tenant}` shape — use those.)*
|
|
12
|
-
2. **Logged-in `uip` session.** Otherwise
|
|
13
|
-
3. **User-provided (last resort).** Ask the user to paste a cloud bearer token plus their **org** and **tenant** slugs (the two path segments after the host in their AH URL).
|
|
12
|
+
2. **Logged-in `uip` session.** Otherwise run `uip login status --output json` and use `Data.BaseUrl`, `Data.Organization`, `Data.Tenant`. When `Data.Status` is not `Logged in`, tell the user to run `uip login` (and `uip login tenant set <name>` to pick the tenant). Take the token from `uip login refresh --output json` (`Data.AccessToken`). Never read the CLI's credentials file.
|
|
14
13
|
|
|
15
|
-
|
|
14
|
+
Set `$ACCESS_TOKEN` in the same shell invocation as each request, and never print it:
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
ACCESS_TOKEN=${UIPATH_CLI_AUTH_TOKEN:-$(uip login refresh --output json | sed -n 's/.*"AccessToken": *"\([^"]*\)".*/\1/p')}
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Never run `uip login refresh --output json` on its own: its output includes the token. Never ask the user to paste a token, and never fall back to an admin OpenAPI token. If neither source yields a token, stop and explain that the skill needs the user's cloud session (`uip login`) or a host-provided token.
|
|
16
21
|
|
|
17
22
|
### Base URL
|
|
18
23
|
|
|
@@ -33,7 +38,7 @@ e.g. `https://cloud.uipath.com/acme/prod/automationhub_/api/v1/openapi`. Always
|
|
|
33
38
|
|
|
34
39
|
### Token expiry
|
|
35
40
|
|
|
36
|
-
Cloud access tokens are short-lived. If any call returns **401**
|
|
41
|
+
Cloud access tokens are short-lived. If any call returns **401** with a `uip login` session, re-run it (its `uip login refresh` renews the token); if it still fails, tell the user to run `uip login` again and retry.
|
|
37
42
|
|
|
38
43
|
## Endpoints used by this skill
|
|
39
44
|
|
|
@@ -8,7 +8,7 @@ The CLI wraps the same Open API endpoints as [`api-endpoints.md`](api-endpoints.
|
|
|
8
8
|
|
|
9
9
|
`uip` resolves credentials itself, in this order:
|
|
10
10
|
1. **Delegate runtime env-auth**: the Delegate injects `UIPATH_CLI_AUTH_TOKEN` + org/tenant vars; `uip` consumes them natively. No setup.
|
|
11
|
-
2. **`uip login` session** (
|
|
11
|
+
2. **`uip login` session** (check it with `uip login status --output json`).
|
|
12
12
|
|
|
13
13
|
If a command fails with an authentication error, tell the user to run `uip login` — never ask for or handle a raw token yourself.
|
|
14
14
|
|
|
@@ -17,7 +17,7 @@ curl -s -w "\n%{http_code} %{redirect_url}" \
|
|
|
17
17
|
The last line is `<status> <redirect target>` — the target is empty unless the response was a 3xx. Read both: a 3xx alone is ambiguous, a 3xx **to `portal_/unregistered`** is the tenant-not-enabled signal below. Never add `-L`.
|
|
18
18
|
|
|
19
19
|
- **200** → save the `data` array (reused in Step 2) and tell the user "Connected to Automation Hub."
|
|
20
|
-
- **401** → token missing/expired: if it
|
|
20
|
+
- **401** → token missing/expired: with a `uip login` session, re-run the request (its `uip login refresh` renews the token); if it still fails, ask the user to run `uip login` again. **Never** add `x-ah-openapi-auth` to "fix" a 401 — that routes to the admin-token path and guarantees failure.
|
|
21
21
|
- **403** → the user is authenticated but lacks AH access on this tenant.
|
|
22
22
|
- **404 / 3xx to `portal_/unregistered` / 422 tenant lookup** → AH is not available on this tenant. Confirm the org/tenant first; if they're right, report the message for the matching case, verbatim, from [`api-endpoints.md`](api-endpoints.md) → **Automation Hub not available on this tenant** — then **stop**.
|
|
23
23
|
|
|
@@ -43,20 +43,13 @@ For `evaluate`, login must target a specific tenant (not just an organization).
|
|
|
43
43
|
|
|
44
44
|
### Reading `organizationId` and `tenantId`
|
|
45
45
|
|
|
46
|
-
The org and tenant UUIDs required in every `PolicyDefinition`
|
|
46
|
+
The org and tenant UUIDs required in every `PolicyDefinition` come from the login session:
|
|
47
47
|
|
|
48
48
|
```bash
|
|
49
|
-
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
Expected output:
|
|
53
|
-
|
|
54
|
-
```
|
|
55
|
-
UIPATH_ORGANIZATION_ID=<ORG_UUID>
|
|
56
|
-
UIPATH_TENANT_ID=<TENANT_UUID>
|
|
49
|
+
uip login status --output json
|
|
57
50
|
```
|
|
58
51
|
|
|
59
|
-
Copy these into `organizationId` and `tenantId` when composing a policy (see [planning-impl.md — Step 1](./planning-impl.md#step-1--gather-identity)). Never hardcode.
|
|
52
|
+
Read `Data.OrganizationId` (`<ORG_UUID>`) and `Data.TenantId` (`<TENANT_UUID>`). Never read the CLI's credentials file. Copy these into `organizationId` and `tenantId` when composing a policy (see [planning-impl.md — Step 1](./planning-impl.md#step-1--gather-identity)). Never hardcode.
|
|
60
53
|
|
|
61
54
|
---
|
|
62
55
|
|
|
@@ -62,13 +62,13 @@ Map intent phrases to the three policy blocks. These priors feed directly into P
|
|
|
62
62
|
2. **`policyType` is always `"ToolUsePolicy"`; `enforcement` is always `"Allow"`. Never emit `"Deny"`.**
|
|
63
63
|
- **Why:** the API rejects `enforcement: "Deny"`; Deny is the runtime default when no Allow policy matches, so blocking is expressed as the complement of an Allow set.
|
|
64
64
|
- **Applies to:** every create / update payload. When the user expresses Deny intent, silently translate to an Allow shape and never surface the mechanic (no "Deny→Allow flip" jargon, no `(flipped)` badge, no "enforcement: Deny is not authorable" caveat). See [plugins/tags/planning.md — Deny-to-Allow flip](./plugins/tags/planning.md#deny-to-allow-flip) for the decision logic.
|
|
65
|
-
3. Read `organizationId` and `tenantId` from
|
|
65
|
+
3. Read `organizationId` and `tenantId` from `uip login status --output json` (`Data.OrganizationId`, `Data.TenantId`) (see [planning-impl.md — Step 1](./planning-impl.md#step-1--gather-identity)). Never hardcode tenant or organization UUIDs.
|
|
66
66
|
4. **Three rule blocks; `actorRule` is optional.** A `ToolUsePolicy` access policy is composed of **Selection Rule** (`selectors[]`), **Actor Process Rule** (`executableRule`), and **Actor Identity Rule** (`actorRule`). The first two are mandatory; `actorRule` is emitted only when the user expressed actor-shaped intent — its absence means "any identity passes".
|
|
67
67
|
5. **`values` is required on every entry; `tags` only on `selectors[]` / `executableRule`.**
|
|
68
68
|
- **Why:** missing `values` returns `400 Bad Request`; `actorRule` does not accept a `tags` block today (the API rejects `actorRule.tags`).
|
|
69
69
|
- **Applies to:** every entry under `selectors[]`, `executableRule.values[]`, and `actorRule.values[]` — use `["*"]` for "all of this type" even when `tags` narrow the scope. Never emit `actorRule.tags`.
|
|
70
70
|
6. **Two-phase authoring is mandatory.** Never construct policy JSON from scratch. Author and approve a **Policy Spec** (natural-language narrative + Spec Components Table) via [planning-arch.md](./planning-arch.md) (Phase 1), then compose the concrete JSON via [planning-impl.md](./planning-impl.md) (Phase 2), which walks the approved Spec and delegates to each plugin's `impl.md` for block-level JSON.
|
|
71
|
-
7. **Single confirmation gate per mutation.** Exactly one `yes / no` review precedes each `create`, `update`, or `delete` call. The gate must show: (a) the **Scope** — the organization name / tenant name plus their UUIDs, read from
|
|
71
|
+
7. **Single confirmation gate per mutation.** Exactly one `yes / no` review precedes each `create`, `update`, or `delete` call. The gate must show: (a) the **Scope** — the organization name / tenant name plus their UUIDs, read from `uip login status --output json` — so the user sees which environment is about to be mutated; (b) the complete policy JSON in chat; (c) clickable markdown links to **both** the Spec file (`/tmp/access-policy-<slug>.spec.md`, written by Phase 1) and the JSON working file (`/tmp/access-policy-<slug>.json`, written by Phase 2) using their **resolved absolute paths** (run `realpath` — never a relative path, a `<WORKING_FILE>` placeholder, or a `~/` path). For update flows the Spec file does not exist (Critical Rule #8) — show the Scope, the diff, and the JSON working file only. See [Confirmation-gate wording](#confirmation-gate-wording).
|
|
72
72
|
8. **For `update`: always `get` first and start from `Data` verbatim. Update is a full replacement.**
|
|
73
73
|
- **Why:** any field you omit from the file is cleared on the server (including the whole `actorRule` block); a fresh Phase 1 Spec would silently wipe fields the user did not re-specify.
|
|
74
74
|
- **Applies to:** every update flow. Use the returned `Data` object verbatim as the starting state, then strip audit fields (`isBuiltIn`, `isTemplate`, `createdBy`, `createdOn`, `modifiedBy`, `modifiedOn`, `deletedBy`, `deletedOn`).
|
|
@@ -123,7 +123,7 @@ The user reviews the pre-filled Spec and changes any row they want; the agent re
|
|
|
123
123
|
|
|
124
124
|
### Step 3 — Phase 2: compose the JSON via plugins
|
|
125
125
|
|
|
126
|
-
Hand off to [planning-impl.md](./planning-impl.md). It reads `organizationId` and `tenantId` from
|
|
126
|
+
Hand off to [planning-impl.md](./planning-impl.md). It reads `organizationId` and `tenantId` from `uip login status --output json`, then walks each row of the approved **Spec Components Table** and reads the matching plugin's `impl.md`:
|
|
127
127
|
|
|
128
128
|
- Each Resource entry (Spec rows 5–7 — type, scope, optional tag filter) → one `selectors[]` entry via [plugins/selector/impl.md](./plugins/selector/impl.md)
|
|
129
129
|
- Each Actor Process entry (Spec rows 8–10 — type, scope, optional tag filter) → one `executableRule.values[]` entry via [plugins/executable/impl.md](./plugins/executable/impl.md)
|
|
@@ -135,14 +135,14 @@ Phase 2 reuses the slug Phase 1 used for the Spec file and writes the assembled
|
|
|
135
135
|
### Step 4 — Single review gate
|
|
136
136
|
|
|
137
137
|
Show a **short human-readable summary** that includes:
|
|
138
|
-
- A **Scope** line on top — `Organization "<NAME>" / Tenant "<NAME>"` plus the matching `organizationId` / `tenantId` UUIDs read from
|
|
138
|
+
- A **Scope** line on top — `Organization "<NAME>" / Tenant "<NAME>"` plus the matching `organizationId` / `tenantId` UUIDs read from `uip login status --output json` — so the user always sees which environment they are about to mutate before approving.
|
|
139
139
|
- One plain-English line per block — `Resources`, `Actor Process`, `Actor Identity` — with the per-entry technical breakdown tucked inside a collapsible `<details>` section.
|
|
140
140
|
|
|
141
141
|
Then output the complete JSON as a ```json code block in the chat (do not rely on the file links alone — the user may not be able to open them), plus clickable markdown links to **both** files using their **resolved absolute paths** (Critical Rule #7):
|
|
142
142
|
- `/tmp/access-policy-<slug>.spec.md` — the human-readable Policy Spec from Phase 1
|
|
143
143
|
- `/tmp/access-policy-<slug>.json` — the JSON payload Phase 2 will submit
|
|
144
144
|
|
|
145
|
-
See [policy-manage-guide.md — Create Step 4](./policy-manage-guide.md#step-4--single-review-gate) for the exact layout, the
|
|
145
|
+
See [policy-manage-guide.md — Create Step 4](./policy-manage-guide.md#step-4--single-review-gate) for the exact layout, the `uip login status` source-mapping for the Scope line, and the phrasing rules. Use the canonical wording from [Confirmation-gate wording](#confirmation-gate-wording) below. This is the only confirmation gate in the create flow.
|
|
146
146
|
|
|
147
147
|
### Step 5 — Create
|
|
148
148
|
|
|
@@ -336,7 +336,7 @@ Do not run any of these actions automatically. Wait for the user's selection.
|
|
|
336
336
|
- **[resource-lookup-guide.md](./resource-lookup-guide.md)** — `uip or processes list` / `uip or folders list` for resource lookups; `uip admin users list --search` / `uip admin groups list` / `uip admin robot-accounts list --search` for identity lookups. Use these to resolve human-readable names to the UUIDs required by `selectors[].values`, `executableRule.values[].values`, and `actorRule.values[].values`. Route here whenever the user names a process, folder, user, group, or robot without supplying a UUID.
|
|
337
337
|
- **[planning-arch.md](./planning-arch.md)** — Phase 1: author a **Policy Spec** (narrative paragraph + Spec Components Table covering name, description, status, enforcement, resource selection, actor process, actor identity, tags, operators). The agent pre-fills every row; the user reviews and edits before approving, and approval is required before any JSON is composed.
|
|
338
338
|
- **[sample-policy-guide.md](./sample-policy-guide.md)** — canonical Spec narrative + JSON (Production Agent + one Maestro + one User, Allow, Simulated). Phase 1 routes here when the user has no concrete intent or has gaps; surfaces a 3-option picker so the user can adopt, adapt, or replace the sample.
|
|
339
|
-
- **[planning-impl.md](./planning-impl.md)** — Phase 2: walk the approved Spec Components Table and assemble the concrete `PolicyDefinition` JSON by reading
|
|
339
|
+
- **[planning-impl.md](./planning-impl.md)** — Phase 2: walk the approved Spec Components Table and assemble the concrete `PolicyDefinition` JSON by reading `uip login status --output json` for identity and each plugin's `impl.md` for block-level JSON.
|
|
340
340
|
- **[policy-manage-guide.md](./policy-manage-guide.md)** — Full CRUD lifecycle (list / get / create / update / delete). Owns the single final-review gate before every mutation.
|
|
341
341
|
- **[plugins/selector/](./plugins/selector/)** — `selectors[]` (Selection Rule): resource/tool types (`Agent`, `AgenticProcess`, `RPAWorkflow`, `APIWorkflow`, `CaseManagement`, `Flow`), targeting modes, tag filters.
|
|
342
342
|
- **[plugins/executable/](./plugins/executable/)** — `executableRule` (Actor Process Rule): executable types (`Agent`, `AgenticProcess`, `CaseManagement`, `Flow`), targeting modes, shared tag filter.
|
|
@@ -24,7 +24,7 @@ Both parts are kept in sync: every change to the table updates the narrative, an
|
|
|
24
24
|
1. **Read the user's request.** Extract resource phrases, actor process phrases, tag phrases, and actor-identity phrases (user, robot user, or group — Critical Rule #16). Use the [Intent analysis](#intent-analysis) heuristics below.
|
|
25
25
|
2. **If the user has no concrete intent or named ≤ 1 of the four phrase categories** (Resource / Actor Process / Actor Identity / Tag), route through [Sample-policy starter (when intent is missing or sparse)](#sample-policy-starter-when-intent-is-missing-or-sparse) BEFORE generating the Spec — show the canonical sample, let the user pick a path, and seed the Spec from the user's choice.
|
|
26
26
|
3. **Generate the initial Spec — fully pre-filled.** Build the narrative paragraph and Spec Components Table with **a concrete value in every row** (don't leave rows empty for the user to fill in). For values the user explicitly supplied, use those. For values they didn't, apply sensible defaults (Critical Rule #11 — don't ask, just do):
|
|
27
|
-
- **Scope rows (Org / Tenant — read-only):** capture both rows from the active auth context BEFORE generating the rest of the Spec. Read
|
|
27
|
+
- **Scope rows (Org / Tenant — read-only):** capture both rows from the active auth context BEFORE generating the rest of the Spec. Read names and UUIDs via `uip login status --output json` (`Data.Organization`, `Data.Tenant`, `Data.OrganizationId`, `Data.TenantId`). Render each row as `<NAME> (UUID <UUID>)`. Mark these rows as read-only — the user changes them by re-running `uip login` (Critical Rule #1), not by editing the Spec. They appear above the numbered rows so the user always sees which environment the policy will be authored against.
|
|
28
28
|
- **Row 1 (Name):** ALWAYS suggest a name derived from intent — never `(missing)`. Pattern: `"Allow <ResourceSummary> in <ActorProcessSummary>"` (e.g. `"Allow Production Agents in Maestro"`). Use user-facing names (`Maestro` for `AgenticProcess` — Critical Rule #14).
|
|
29
29
|
- **Row 2 (Description):** auto-derive from the narrative paragraph.
|
|
30
30
|
- **Row 3 (Status):** `Simulated` (Critical Rule #13).
|
|
@@ -157,8 +157,8 @@ Present the Spec as **structured narrative + Spec Components Table** every time.
|
|
|
157
157
|
|
|
158
158
|
| # | Component | Allowed values | Current value | Required? |
|
|
159
159
|
|---|-----------|---------------|--------------|-----------|
|
|
160
|
-
| — | Organization (read-only) | sourced from `uip login status`
|
|
161
|
-
| — | Tenant (read-only) | sourced from `uip login status`
|
|
160
|
+
| — | Organization (read-only) | sourced from `uip login status` — change via `uip login` | <ORG_NAME> (UUID `<ORG_ID>`) | Scope (read-only) |
|
|
161
|
+
| — | Tenant (read-only) | sourced from `uip login status` — change via `uip login` | <TENANT_NAME> (UUID `<TENANT_ID>`) | Scope (read-only) |
|
|
162
162
|
| 1 | Policy name | string — always pre-filled | <suggested name> | Required |
|
|
163
163
|
| 2 | Description | one sentence — auto-derived from the narrative above | <description> | Required |
|
|
164
164
|
| 3 | Status | `Simulated` (default) / `Active` | `Simulated` | Required |
|
|
@@ -187,8 +187,8 @@ Every row gets a concrete value in the initial Spec (Critical Rule #11 — don't
|
|
|
187
187
|
|
|
188
188
|
| Row | Required? | Default when not specified |
|
|
189
189
|
|---|---|---|
|
|
190
|
-
| — Organization (read-only) | Scope | Name from `uip login status` (`Data.Organization`); UUID from
|
|
191
|
-
| — Tenant (read-only) | Scope | Name from `uip login status` (`Data.Tenant`); UUID from
|
|
190
|
+
| — Organization (read-only) | Scope | Name from `uip login status` (`Data.Organization`); UUID from `Data.OrganizationId`. Not user-editable in the Spec. |
|
|
191
|
+
| — Tenant (read-only) | Scope | Name from `uip login status` (`Data.Tenant`); UUID from `Data.TenantId`. Not user-editable in the Spec. |
|
|
192
192
|
| 1 — Policy name | Required | Suggested from intent: `"Allow <ResourceSummary> in <ActorProcessSummary>"` |
|
|
193
193
|
| 2 — Description | Required | Auto-derived from the narrative |
|
|
194
194
|
| 3 — Status | Required | `Simulated` (Critical Rule #13) |
|
|
@@ -224,7 +224,7 @@ Spec row 2 (`Description`) is the **one-sentence summary** that the policy carri
|
|
|
224
224
|
|
|
225
225
|
### Spec rules
|
|
226
226
|
|
|
227
|
-
- **Org / Tenant rows are read-only scope.** The two un-numbered rows at the top of the table show the active auth context — `<NAME> (UUID <UUID>)` for both Organization and Tenant. They are sourced from `uip login status --output json` (names
|
|
227
|
+
- **Org / Tenant rows are read-only scope.** The two un-numbered rows at the top of the table show the active auth context — `<NAME> (UUID <UUID>)` for both Organization and Tenant. They are sourced from `uip login status --output json` (names and UUIDs) and are NOT user-editable in the Spec; if the user wants to author against a different org or tenant, route them to re-run `uip login` (Critical Rule #1) and regenerate the Spec. The same Scope is shown again at the Phase 2 review gate (Critical Rule #7).
|
|
228
228
|
- **Narrative and table are kept in sync.** When the user changes a row, re-derive the narrative; when the user changes the narrative ("make it match this description"), re-derive the table by re-running [Intent analysis](#intent-analysis) on the new narrative. Both must reflect the same policy.
|
|
229
229
|
- **Terminology (user-facing — Critical Rule #14):** say "Resource", "Actor Process", "Actor Identity", "tag filter", "Allow", "Simulated / Active" in the Spec. Never use the JSON field names (`selectors`, `executableRule`, `actorRule`, `operator: Or/And/None`) in the Spec. JSON terms appear only in Phase 2.
|
|
230
230
|
- **Multi-type rows.** If the user names two resource types ("Agents and Flows"), each type gets its own row group — duplicate rows 5/6/7 once per type and label them `5a / 6a / 7a` for the first type, `5b / 6b / 7b` for the second, etc. Do the same for Actor Process rows (8/9/10) when multiple Actor Process types are named. The Spec table grows row-wise; it never collapses two types into one row.
|
|
@@ -8,7 +8,7 @@ Compose the concrete `PolicyDefinition` JSON from an **approved Phase 1 Spec** (
|
|
|
8
8
|
|
|
9
9
|
## Step 1 — Gather identity
|
|
10
10
|
|
|
11
|
-
Every `PolicyDefinition` requires `organizationId` and `tenantId` at the top level. Read them from
|
|
11
|
+
Every `PolicyDefinition` requires `organizationId` and `tenantId` at the top level. Read them from `uip login status --output json` — see [access-policy-commands.md — Reading `organizationId` and `tenantId`](./access-policy-commands.md#reading-organizationid-and-tenantid) for the exact command. Use the two UUIDs verbatim in the assembled JSON; never hardcode (Critical Rule #3).
|
|
12
12
|
|
|
13
13
|
If the file is missing or the IDs are not present, the user is not logged in — stop and route them to [access-policy-commands.md — Authentication](./access-policy-commands.md#authentication).
|
|
14
14
|
|
|
@@ -42,7 +42,7 @@ The Resource Catalog tag set is tenant-specific, but these names recur across Ui
|
|
|
42
42
|
- **Team / org:** `Finance`, `Marketing`, `HR`, `Platform`
|
|
43
43
|
- **Product / domain:** user-specific product names
|
|
44
44
|
|
|
45
|
-
> Tags the user mentions must actually exist in the Resource Catalog of the **policy's own tenant** (
|
|
45
|
+
> Tags the user mentions must actually exist in the Resource Catalog of the **policy's own tenant** (`Data.TenantId` in `uip login status --output json`). A policy that references `DoesNotExist` silently matches nothing. **Confirm tag names during Phase 1** before approving the Spec by running `uip admin rcs tag list --output json` (no `--tenant` — the default targets the policy's tenant; see [resource-lookup-guide.md § 4](../../resource-lookup-guide.md#4-resource-catalog-tags)). If the tag is missing, surface it as an Open question and ask the user to either pick a returned tag or add the missing one to the Resource Catalog before the JSON is composed.
|
|
46
46
|
|
|
47
47
|
## Deny-to-Allow flip
|
|
48
48
|
|
|
@@ -125,18 +125,14 @@ Review the access policy to be created:
|
|
|
125
125
|
</details>
|
|
126
126
|
```
|
|
127
127
|
|
|
128
|
-
**Scope line — what to fill in.** The Scope line tells the user which organization + tenant the policy will be created in. Read all four values from
|
|
128
|
+
**Scope line — what to fill in.** The Scope line tells the user which organization + tenant the policy will be created in. Read all four values from `uip login status --output json`:
|
|
129
129
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
- `UIPATH_ORGANIZATION_NAME` → `<ORG_NAME>`
|
|
135
|
-
- `UIPATH_TENANT_NAME` → `<TENANT_NAME>`
|
|
136
|
-
- `UIPATH_ORGANIZATION_ID` → `<ORG_UUID>` (matches `organizationId` in the JSON payload)
|
|
137
|
-
- `UIPATH_TENANT_ID` → `<TENANT_UUID>` (matches `tenantId` in the JSON payload)
|
|
130
|
+
- `Data.Organization` → `<ORG_NAME>`
|
|
131
|
+
- `Data.Tenant` → `<TENANT_NAME>`
|
|
132
|
+
- `Data.OrganizationId` → `<ORG_UUID>` (matches `organizationId` in the JSON payload)
|
|
133
|
+
- `Data.TenantId` → `<TENANT_UUID>` (matches `tenantId` in the JSON payload)
|
|
138
134
|
|
|
139
|
-
If the org / tenant names are missing
|
|
135
|
+
If the org / tenant names are missing (the field repeats the UUID or reads `N/A`), show only the UUIDs on the second line and note "(name unavailable)". Do **not** skip the Scope line — the user must always see which environment is about to be mutated. If the user expected a different org / tenant, they should `cancel` and re-login (`uip login --authority …` or `uip login --tenant …`).
|
|
140
136
|
|
|
141
137
|
Then output the full JSON as a ```json code block in the chat (do NOT rely on the file link alone — the user may not be able to open it).
|
|
142
138
|
|
|
@@ -265,7 +261,7 @@ Review access-policy update:
|
|
|
265
261
|
Working file: [access-policy-<id>-working.json](/tmp/access-policy-<id>-working.json)
|
|
266
262
|
```
|
|
267
263
|
|
|
268
|
-
The Scope line uses the same source as the create gate — read from
|
|
264
|
+
The Scope line uses the same source as the create gate — read from `uip login status --output json` (see [Step 4 — Single review gate](#step-4--single-review-gate) above for the full source-mapping). For an update, the values come from the policy's stored `organizationId` / `tenantId` (which must match the logged-in tenant — if they do not, the update will fail at the API).
|
|
269
265
|
|
|
270
266
|
For each row, show `(unchanged)` if the field was not modified. Output the full updated JSON as a ```json code block in the chat as well.
|
|
271
267
|
|
|
@@ -220,7 +220,7 @@ Resource Catalog tags are tenant-scoped labels that feed `selectors[].tags.value
|
|
|
220
220
|
uip admin rcs tag list --output json
|
|
221
221
|
```
|
|
222
222
|
|
|
223
|
-
With no `--tenant`, the command targets the tenant in the current `uip login` context — and that is **also** the tenant the access policy will be authored in (the policy's `tenantId` is read from
|
|
223
|
+
With no `--tenant`, the command targets the tenant in the current `uip login` context — and that is **also** the tenant the access policy will be authored in (the policy's `tenantId` is read from `uip login status --output json`). This default is the only mode that proves a tag will resolve at evaluation time. Run it before approving any Spec or update that introduces a tag the user named; if the tag is missing from `Data.value[].displayName`, prompt the user to pick a returned tag, or to add the missing one to the Resource Catalog of the policy's tenant before retrying. Never invent a tag, and never silently substitute a near-match.
|
|
224
224
|
|
|
225
225
|
| Flag | Required? | Purpose |
|
|
226
226
|
|------|-----------|---------|
|
|
@@ -250,16 +250,12 @@ With no `--tenant`, the command targets the tenant in the current `uip login` co
|
|
|
250
250
|
|
|
251
251
|
### Tenant alignment
|
|
252
252
|
|
|
253
|
-
The access-policy `tenantId` is read from
|
|
253
|
+
The access-policy `tenantId` is read from `uip login status --output json` (`Data.TenantId`) and pinned at `create` time — the policy can only ever resolve tags from **that** tenant at evaluation.
|
|
254
254
|
|
|
255
255
|
- **Default (no `--tenant`)** — verify tags for the in-flight policy. Use this for every Phase 1 / Phase 2 confirmation prompt.
|
|
256
256
|
- **`--tenant <OTHER_NAME>`** — comparison only (e.g. "do these tag names also exist in our staging tenant?"). Never use a result from another tenant as evidence that a tag will work in the policy's tenant. If the user explicitly asks to check a different tenant, run the call but surface a one-line warning: `Tags from <OTHER_NAME> do not affect a policy authored in <POLICY_TENANT>; copy the tag in the Resource Catalog of <POLICY_TENANT> if it is missing there.`
|
|
257
257
|
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
```bash
|
|
261
|
-
grep "^UIPATH_TENANT_NAME=" ~/.uipath/.auth | cut -d= -f2
|
|
262
|
-
```
|
|
258
|
+
The policy's tenant name (for the warning above) is `Data.Tenant` in `uip login status --output json`.
|
|
263
259
|
|
|
264
260
|
---
|
|
265
261
|
|
|
@@ -64,7 +64,7 @@ Use this canonical sample when the user has **no concrete intent** ("I want to c
|
|
|
64
64
|
}
|
|
65
65
|
```
|
|
66
66
|
|
|
67
|
-
> Replace `<ORG_UUID>` and `<TENANT_UUID>` from
|
|
67
|
+
> Replace `<ORG_UUID>` and `<TENANT_UUID>` from `uip login status --output json` (`Data.OrganizationId`, `Data.TenantId`; Critical Rule #3). Replace `<AGENTIC_PROCESS_UUID>` and `<USER_UUID>` via [resource-lookup-guide.md](./resource-lookup-guide.md) once the user names a real process and user (Critical Rule #15). Resolve every `<…_UUID>` during Phase 1 — before the Spec is approved and Phase 2 composes the JSON. Never let a placeholder flow into the working file.
|
|
68
68
|
|
|
69
69
|
---
|
|
70
70
|
|
|
@@ -104,7 +104,7 @@ Pick one to continue:
|
|
|
104
104
|
|
|
105
105
|
Map the user's reply:
|
|
106
106
|
|
|
107
|
-
- **Option 1** → seed the Spec Components Table from the [mapping table above](#how-the-sample-seeds-the-spec-components-table) — every row pre-filled. Run [resource-lookup-guide.md](./resource-lookup-guide.md) to resolve the Maestro and User UUIDs (do NOT keep `<…_UUID>` placeholders). Read
|
|
107
|
+
- **Option 1** → seed the Spec Components Table from the [mapping table above](#how-the-sample-seeds-the-spec-components-table) — every row pre-filled. Run [resource-lookup-guide.md](./resource-lookup-guide.md) to resolve the Maestro and User UUIDs (do NOT keep `<…_UUID>` placeholders). Read `organizationId` / `tenantId` from `uip login status --output json` (Critical Rule #3). Continue to the [planning-arch.md](./planning-arch.md) Review gate — explicit `yes` is still required.
|
|
108
108
|
- **Option 2** → seed the Spec Components Table from the sample for rows the user did NOT change; mark the rows they want to change as `(missing)` and re-enter the [planning-arch.md](./planning-arch.md) iteration loop on those rows only.
|
|
109
109
|
- **Option 3** → drop the sample, return to [planning-arch.md](./planning-arch.md) intent analysis with the user's full description and build the Spec from scratch.
|
|
110
110
|
|
|
@@ -1,52 +1,38 @@
|
|
|
1
|
-
# Auth Context —
|
|
1
|
+
# Auth Context — `uip login status`
|
|
2
2
|
|
|
3
|
-
Every capability in this skill reads tenant
|
|
4
|
-
|
|
5
|
-
## File location
|
|
6
|
-
|
|
7
|
-
- Linux / macOS: `~/.uipath/.auth`
|
|
8
|
-
- Windows: `C:\Users\<user>\.uipath\.auth`
|
|
9
|
-
|
|
10
|
-
## Format
|
|
11
|
-
|
|
12
|
-
`KEY=VALUE` per line (env-style, **NOT** JSON). Written by `uip login`, kept current by the CLI.
|
|
3
|
+
Every capability in this skill reads tenant and organization identifiers from `uip login status --output json`. This is the canonical source — never decode JWTs, never read the CLI's credentials file (it holds the access and refresh tokens), and never ask the user for values the command returns.
|
|
13
4
|
|
|
14
5
|
## Read recipe
|
|
15
6
|
|
|
16
7
|
```bash
|
|
17
|
-
|
|
18
|
-
UIPATH_URL=$(grep '^UIPATH_URL=' "$AUTH_FILE" | cut -d'=' -f2-)
|
|
19
|
-
UIPATH_ORGANIZATION_NAME=$(grep '^UIPATH_ORGANIZATION_NAME=' "$AUTH_FILE" | cut -d'=' -f2-)
|
|
20
|
-
UIPATH_ORGANIZATION_ID=$(grep '^UIPATH_ORGANIZATION_ID=' "$AUTH_FILE" | cut -d'=' -f2-)
|
|
21
|
-
UIPATH_TENANT_NAME=$(grep '^UIPATH_TENANT_NAME=' "$AUTH_FILE" | cut -d'=' -f2-)
|
|
22
|
-
UIPATH_TENANT_ID=$(grep '^UIPATH_TENANT_ID=' "$AUTH_FILE" | cut -d'=' -f2-)
|
|
23
|
-
UIPATH_ACCESS_TOKEN=$(grep '^UIPATH_ACCESS_TOKEN=' "$AUTH_FILE" | cut -d'=' -f2-)
|
|
8
|
+
uip login status --output json
|
|
24
9
|
```
|
|
25
10
|
|
|
11
|
+
Read the values from the JSON output; none of them is a secret.
|
|
12
|
+
|
|
26
13
|
## Available fields
|
|
27
14
|
|
|
28
|
-
|
|
|
15
|
+
| Field | Example | Used by |
|
|
29
16
|
|---|---|---|
|
|
30
|
-
| `
|
|
31
|
-
| `
|
|
32
|
-
| `
|
|
33
|
-
| `
|
|
34
|
-
| `
|
|
35
|
-
| `
|
|
36
|
-
| `
|
|
17
|
+
| `Data.Status` | `Logged in` | Preflight check |
|
|
18
|
+
| `Data.BaseUrl` | `https://cloud.uipath.com` | Tenant-intent validation, display |
|
|
19
|
+
| `Data.Organization` | `procodeapps` | Organization name — display, confirmation gates |
|
|
20
|
+
| `Data.OrganizationId` | `3aa10965-a82d-4d9e-8366-0eff8e87bf7a` | `organizationId` in a `PolicyDefinition` |
|
|
21
|
+
| `Data.Tenant` | `DefaultTenant` | Tenant name — display, audit records |
|
|
22
|
+
| `Data.TenantId` | `edb2c1a2-246e-4cd3-a5f1-08aea1cbecec` | `tenantId` in a `PolicyDefinition`, `deployment tenant configure/get` target, diagnosis tenant fetch |
|
|
23
|
+
| `Data.Identity` | `admin@example.com` | "Applied by" line in audit records |
|
|
37
24
|
|
|
38
|
-
|
|
25
|
+
When a profile is active (`--profile <name>`), pass the same flag to `uip login status` so the values match the login the other commands use.
|
|
39
26
|
|
|
40
|
-
|
|
27
|
+
## Preflight check
|
|
41
28
|
|
|
42
|
-
|
|
43
|
-
2. `~/.uipath/.auth` exists and `UIPATH_TENANT_ID` is non-empty.
|
|
29
|
+
Before any capability runs, verify that `uip login status --output json` returns `Data.Status == "Logged in"` and a non-empty `Data.TenantId`.
|
|
44
30
|
|
|
45
31
|
If either fails, halt and ask the user to run `uip login` (or `uip login --authority "<AUTHORITY_URL>"` for a non-default host).
|
|
46
32
|
|
|
47
33
|
## Tenant-intent validation (Apply / Advise / Diagnose)
|
|
48
34
|
|
|
49
|
-
When the user's prompt names a specific tenant (e.g., *"on staging tenant"*, *"in production"*, *"apply to the prod tenant"*), compare their named tenant against `
|
|
35
|
+
When the user's prompt names a specific tenant (e.g., *"on staging tenant"*, *"in production"*, *"apply to the prod tenant"*), compare their named tenant against `Data.Tenant` and `Data.BaseUrl` **before** taking any mutation action.
|
|
50
36
|
|
|
51
37
|
Detection: match the named tenant against these substrings — `staging`, `prod`, `production`, `alpha`, `dev`, `development`, `sandbox`, `qa`, `test`, or any explicit tenant display name the user gives (e.g., *"MedCore-Prod"*).
|
|
52
38
|
|
|
@@ -18,7 +18,7 @@ uip login # interactive OAuth
|
|
|
18
18
|
uip login --authority "<AUTHORITY_URL>" # non-default host
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
See [auth-context.md](auth-context.md) for reading
|
|
21
|
+
See [auth-context.md](auth-context.md) for reading tenant and organization names and IDs from `uip login status --output json` (`Data.Tenant`, `Data.TenantId`, `Data.Organization`, `Data.OrganizationId`).
|
|
22
22
|
|
|
23
23
|
## Products
|
|
24
24
|
|
|
@@ -187,8 +187,8 @@ uip gov compliance-packs catalog list --output json
|
|
|
187
187
|
uip gov compliance-packs catalog get <packId> --output json
|
|
188
188
|
|
|
189
189
|
# State (tenant-scoped; Policy:Read for coverage/get/list; Policy:Write for enable/disable/restore)
|
|
190
|
-
TENANT_ID=$(
|
|
191
|
-
ORG_ID=$(
|
|
190
|
+
TENANT_ID=$(uip login status --output json | sed -n 's/.*"TenantId": *"\([^"]*\)".*/\1/p')
|
|
191
|
+
ORG_ID=$(uip login status --output json | sed -n 's/.*"OrganizationId": *"\([^"]*\)".*/\1/p')
|
|
192
192
|
|
|
193
193
|
# Tenant scope
|
|
194
194
|
uip gov compliance-packs state coverage tenant $TENANT_ID <packId> --output json
|
|
@@ -66,7 +66,7 @@ CLI output is **PascalCase**. Field names below are exactly as returned by `cata
|
|
|
66
66
|
## List currently configured standards
|
|
67
67
|
|
|
68
68
|
```bash
|
|
69
|
-
TENANT_ID=$(
|
|
69
|
+
TENANT_ID=$(uip login status --output json | sed -n 's/.*"TenantId": *"\([^"]*\)".*/\1/p')
|
|
70
70
|
uip gov compliance-packs state list tenant $TENANT_ID --output json
|
|
71
71
|
```
|
|
72
72
|
|
|
@@ -13,7 +13,7 @@ Compares the compliance standard's recommended settings against what is currentl
|
|
|
13
13
|
```bash
|
|
14
14
|
# Read the session dir written by catalog get — never create a new one here.
|
|
15
15
|
SESSION_TEMP=$(cat "$HOME/.uipath-compliance-current-session")
|
|
16
|
-
TENANT_ID=$(
|
|
16
|
+
TENANT_ID=$(uip login status --output json | sed -n 's/.*"TenantId": *"\([^"]*\)".*/\1/p')
|
|
17
17
|
uip gov compliance-packs state coverage tenant $TENANT_ID <packId> --output json \
|
|
18
18
|
> "$SESSION_TEMP/coverage.json"
|
|
19
19
|
|
|
@@ -29,7 +29,7 @@ uip gov compliance-packs state get tenant $TENANT_ID <packId> --output json \
|
|
|
29
29
|
```powershell
|
|
30
30
|
# Windows PowerShell
|
|
31
31
|
$tmpDir = (Get-Content "$env:TEMP\uipath-compliance-current-session.txt" -Raw).Trim()
|
|
32
|
-
$tenantId = (
|
|
32
|
+
$tenantId = (uip login status --output json | ConvertFrom-Json).Data.TenantId
|
|
33
33
|
uip gov compliance-packs state coverage tenant $tenantId <packId> --output json |
|
|
34
34
|
Set-Content "$tmpDir\coverage.json"
|
|
35
35
|
|
|
@@ -9,7 +9,7 @@ Removes all policy deployments configured by the compliance standard.
|
|
|
9
9
|
## Check current state first
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
TENANT_ID=$(
|
|
12
|
+
TENANT_ID=$(uip login status --output json | sed -n 's/.*"TenantId": *"\([^"]*\)".*/\1/p')
|
|
13
13
|
uip gov compliance-packs state get tenant $TENANT_ID <packId> --output json
|
|
14
14
|
```
|
|
15
15
|
|
|
@@ -44,7 +44,7 @@ Require `y`. Halt on anything else.
|
|
|
44
44
|
## Apply
|
|
45
45
|
|
|
46
46
|
```bash
|
|
47
|
-
TENANT_ID=$(
|
|
47
|
+
TENANT_ID=$(uip login status --output json | sed -n 's/.*"TenantId": *"\([^"]*\)".*/\1/p')
|
|
48
48
|
uip gov compliance-packs state enable tenant $TENANT_ID <packId> --output json
|
|
49
49
|
```
|
|
50
50
|
|
|
@@ -78,7 +78,7 @@ SUMMARY
|
|
|
78
78
|
└──────────────────────┴──────────────────────────────────────────────┘
|
|
79
79
|
(omit the ⚠ table if no SKIPped controls)
|
|
80
80
|
|
|
81
|
-
Applied by: <
|
|
81
|
+
Applied by: <Data.Identity from uip login status> · <tenantName> · <date>
|
|
82
82
|
Note: compliance status is determined by your auditor, not this tool.
|
|
83
83
|
```
|
|
84
84
|
|
|
@@ -109,7 +109,7 @@ Aggregate results: note how many tenants have gaps vs are already fully Applied.
|
|
|
109
109
|
### Step 3 — Confirmation
|
|
110
110
|
|
|
111
111
|
```
|
|
112
|
-
Configure <packName> settings across all tenants in <
|
|
112
|
+
Configure <packName> settings across all tenants in <ORGANIZATION_NAME>?
|
|
113
113
|
|
|
114
114
|
Tenants to configure:
|
|
115
115
|
<tenantName1> — <N> settings Not Applied
|
|
@@ -141,7 +141,7 @@ for each configured tenant:
|
|
|
141
141
|
### Report
|
|
142
142
|
|
|
143
143
|
```
|
|
144
|
-
<packName> settings configured across <N> tenants in <
|
|
144
|
+
<packName> settings configured across <N> tenants in <ORGANIZATION_NAME> ✓
|
|
145
145
|
|
|
146
146
|
┌──────────────────┬──────────────────┐
|
|
147
147
|
│ Tenant │ Status │
|
|
@@ -268,7 +268,7 @@ uip gov aops-policy deployment tenant configure $TENANT_ID \
|
|
|
268
268
|
└──────────────────────┴──────────────────────────────────────────────┘
|
|
269
269
|
(omit ⚠ table if no SKIPped settings)
|
|
270
270
|
|
|
271
|
-
Applied by: <
|
|
271
|
+
Applied by: <Data.Identity from uip login status> · <tenantName> · <date>
|
|
272
272
|
|
|
273
273
|
To configure all <packName> settings: 'Apply the full <packName> standard'
|
|
274
274
|
```
|
|
@@ -11,7 +11,7 @@ Use this when the user wants to undo changes made to a configured standard, or a
|
|
|
11
11
|
## Check current state first
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
TENANT_ID=$(
|
|
14
|
+
TENANT_ID=$(uip login status --output json | sed -n 's/.*"TenantId": *"\([^"]*\)".*/\1/p')
|
|
15
15
|
uip gov compliance-packs state get tenant $TENANT_ID <packId> --output json
|
|
16
16
|
```
|
|
17
17
|
|
|
@@ -12,30 +12,32 @@ Before writing the node JSON, resolve the app and register it with the solution.
|
|
|
12
12
|
|
|
13
13
|
### Step 1 — Resolve solution context and credentials
|
|
14
14
|
|
|
15
|
-
**Read
|
|
15
|
+
**Read session details from the active `uip` session** — never read, `cat`, or `source` the CLI's credentials file:
|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
|
-
|
|
19
|
-
# Variables now available:
|
|
20
|
-
# UIPATH_ACCESS_TOKEN — bearer token
|
|
21
|
-
# UIPATH_URL — e.g. https://cloud.uipath.com
|
|
22
|
-
# UIPATH_ORGANIZATION_NAME — org name (slug)
|
|
23
|
-
# UIPATH_ORGANIZATION_ID — org UUID
|
|
24
|
-
# UIPATH_TENANT_NAME
|
|
25
|
-
# UIPATH_TENANT_ID
|
|
26
|
-
# UIPATH_PROJECT_ID
|
|
18
|
+
uip login status --output json
|
|
27
19
|
```
|
|
28
20
|
|
|
29
|
-
Map to working variables:
|
|
21
|
+
Map to working variables (`Data.Status` must be `Logged in`; otherwise ask the user to run `uip login`):
|
|
30
22
|
|
|
31
23
|
| Variable | Source |
|
|
32
24
|
|---|---|
|
|
33
|
-
| `BASE_URL` |
|
|
34
|
-
| `ORG_NAME` |
|
|
35
|
-
| `ORG_ID` |
|
|
36
|
-
| `TENANT_ID` |
|
|
37
|
-
| `
|
|
38
|
-
|
|
25
|
+
| `BASE_URL` | `Data.BaseUrl` |
|
|
26
|
+
| `ORG_NAME` | `Data.Organization` |
|
|
27
|
+
| `ORG_ID` | `Data.OrganizationId` |
|
|
28
|
+
| `TENANT_ID` | `Data.TenantId` |
|
|
29
|
+
| `USER_ID` | `Data.UserId` |
|
|
30
|
+
|
|
31
|
+
**Sending the requests below** — use `uip api`, which adds `{BASE_URL}`, `{ORG_NAME}` and the token itself (never extract the token). All three are organization-level `studio_` calls: pass the path after `{ORG_NAME}/`, `--level organization`, and the tenant header. For a POST, write the JSON body to a file first:
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
uip api "studio_/backend/api/resourcebuilder/solutions/<SOLUTION_ID>/resources/search?kind=app&..." \
|
|
35
|
+
--level organization --header "x-uipath-tenantid: <TENANT_ID>" --output json
|
|
36
|
+
uip api "studio_/backend/api/resourcebuilder/solutions/<SOLUTION_ID>/resources/retrieve-configuration" \
|
|
37
|
+
--level organization --method POST --input "<BODY_FILE>" --header "x-uipath-tenantid: <TENANT_ID>" --output json
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
The response is in `Data.Body`. If `uip api` is an unknown command, run `uip update`, then retry.
|
|
39
41
|
|
|
40
42
|
**Resolve solution context:**
|
|
41
43
|
|
|
@@ -71,7 +73,7 @@ GET {BASE_URL}/{ORG_NAME}/studio_/backend/api/resourcebuilder/solutions/{SOLUTIO
|
|
|
71
73
|
&searchTerm={APP_NAME}
|
|
72
74
|
```
|
|
73
75
|
|
|
74
|
-
Headers: `
|
|
76
|
+
Headers: `x-uipath-tenantid: {TENANT_ID}` (`uip api` adds authorization and `Accept: application/json`)
|
|
75
77
|
|
|
76
78
|
Response:
|
|
77
79
|
|
|
@@ -122,7 +124,7 @@ Content-Type: application/json
|
|
|
122
124
|
}
|
|
123
125
|
```
|
|
124
126
|
|
|
125
|
-
Headers: `
|
|
127
|
+
Headers: `x-uipath-tenantid: {TENANT_ID}` (`uip api` adds authorization; `--input` sets `Content-Type: application/json`)
|
|
126
128
|
|
|
127
129
|
The response is a resource object. Key extractions from `spec`:
|
|
128
130
|
|
|
@@ -22,7 +22,7 @@ Classify the requested **outcome** before running any command:
|
|
|
22
22
|
|
|
23
23
|
**Always reach for `uip` CLI commands first.** The CLI covers auth, Orchestrator (folders, processes, jobs, machines, users, roles, sessions, calendars, settings, audit logs, credential stores, feeds, attachments), resources (assets, queues, queue items, storage buckets, bucket files, libraries, webhooks, triggers), Integration Service (connectors, connections, activities, IS triggers), traces, and licensing end-to-end.
|
|
24
24
|
|
|
25
|
-
Hand-rolling HTTP calls —
|
|
25
|
+
Hand-rolling HTTP calls — fetching a token and POSTing to `/odata/...` or `/orchestrator_/...` — almost always misses something the CLI gets right: the `X-UIPATH-OrganizationUnitId` folder header, OData filter shape (`Key eq '...'` with escaped single quotes), pagination envelope, retry semantics, validation error shape, or `Result/Code/Data` output contract. **Reach for raw REST only after you've searched [`references/uip-commands.md`](references/uip-commands.md) for your task and confirmed no `uip` command covers it.** The CLI is the source of truth.
|
|
26
26
|
|
|
27
27
|
If you find yourself about to `curl` `https://cloud.uipath.com/...` — stop. Search the command index first. Examples of what people often miss:
|
|
28
28
|
|
|
@@ -73,7 +73,7 @@ Useful flags: `--skip-node`, `--skip-skills`, `--skip-dotnet`, `--skip-python`,
|
|
|
73
73
|
Load this skill BEFORE writing any code that talks to UiPath. Specific triggers:
|
|
74
74
|
|
|
75
75
|
- **CLI bootstrap / workstation setup**: fresh machine, `uip` missing, Node/npm missing, Python or .NET SDK missing, or an LLM coding agent needs UiPath skills installed
|
|
76
|
-
- **Auth & tenant**: login, logout, switch tenant, named login profiles via `--profile <name>`,
|
|
76
|
+
- **Auth & tenant**: login, logout, switch tenant, named login profiles via `--profile <name>`, session details (`uip login status`), REST calls the CLI does not cover (`uip api`), organization
|
|
77
77
|
- **Orchestrator core**: folders (`list/get/create/edit/move/delete/runtimes`), processes/releases, jobs (`start/stop/logs/traces/healing-data`), packages (`upload/download/versions`), machines, users / roles / sessions (incl. DirectoryUser/DirectoryGroup/DirectoryRobot/DirectoryExternalApplication), licenses, calendars, settings, audit logs, credential stores, feeds, attachments
|
|
78
78
|
- **Resources (Orchestrator-scoped)**: assets (text/integer/bool/credential), queues + queue items, storage buckets + bucket files (`upload/download/get-download-url/get-upload-url`), libraries (`.nupkg`), webhooks (HMAC signing), triggers (time/queue/api)
|
|
79
79
|
- **Integration Service**: connectors, connections (OAuth flow), activities, IS triggers, agent-workflow reference resolution
|
|
@@ -100,20 +100,45 @@ Load this skill BEFORE writing any code that talks to UiPath. Specific triggers:
|
|
|
100
100
|
|
|
101
101
|
For `uip solution` lifecycle (init / pack / publish / deploy / activate / upload) and CI/CD pipelines that build and deploy UiPath solutions, load [`uipath-solution`](/uipath:uipath-solution).
|
|
102
102
|
|
|
103
|
-
##
|
|
103
|
+
## Session Details and REST Authentication
|
|
104
104
|
|
|
105
|
-
The
|
|
105
|
+
The CLI owns its credentials file. Never read, `cat`, `grep`, or `source` it: it holds the access token and the refresh token, and anything read lands in the conversation.
|
|
106
106
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
107
|
+
**Organization, tenant, base URL, expiry** — read them from `uip login status --output json`:
|
|
108
|
+
|
|
109
|
+
| Field | Value |
|
|
110
|
+
|---|---|
|
|
111
|
+
| `Data.Status` | Session state, e.g. `Logged in` |
|
|
112
|
+
| `Data.BaseUrl` | Cloud base URL, e.g. `https://cloud.uipath.com` |
|
|
113
|
+
| `Data.Organization` / `Data.OrganizationId` | Organization name / UUID |
|
|
114
|
+
| `Data.Tenant` / `Data.TenantId` | Tenant name / UUID |
|
|
115
|
+
| `Data.Identity` | Logged-in user or application |
|
|
116
|
+
| `Data.ExpirationDate` | Access-token expiry |
|
|
117
|
+
|
|
118
|
+
A status other than `Logged in` does not end the task: still run the requested command, then report its result. If it fails with an authentication error, tell the user to run `uip login`.
|
|
119
|
+
|
|
120
|
+
**REST call the CLI does not cover** — use `uip api`. The CLI adds base URL, organization, tenant and a fresh access token, and prints only the response; the token never reaches the shell or the conversation:
|
|
121
|
+
|
|
122
|
+
```bash
|
|
123
|
+
uip api "orchestrator_/odata/Folders?\$top=1" --output json
|
|
124
|
+
uip api "<SERVICE_PATH>" --method POST --input "<BODY_FILE>" --output json
|
|
125
|
+
uip api "<SERVICE_PATH>" --level organization --header "x-uipath-tenantid: <TENANT_ID>" --output json
|
|
114
126
|
```
|
|
115
127
|
|
|
116
|
-
|
|
128
|
+
| Option | Use |
|
|
129
|
+
|---|---|
|
|
130
|
+
| `<SERVICE_PATH>` | Path under `<BASE_URL>/<ORG>/<TENANT>` (or `<BASE_URL>/<ORG>` with `--level organization`), e.g. `orchestrator_/odata/Releases?...`. Omit the leading `/` (Git Bash on Windows rewrites it). Never a full URL |
|
|
131
|
+
| `--method <METHOD>` | `GET` (default), `POST`, `PUT`, `PATCH`, `DELETE` |
|
|
132
|
+
| `--input <FILE>` | Request body; `Content-Type` defaults to `application/json` |
|
|
133
|
+
| `--folder-key <FOLDER_KEY>` | Sends `X-UIPATH-FolderKey` |
|
|
134
|
+
| `--header "<NAME>: <VALUE>"` | Extra headers (variadic). `Authorization` cannot be set |
|
|
135
|
+
| `--output-file <FILE>` | Save body to a file (binary downloads) |
|
|
136
|
+
|
|
137
|
+
Response: `Data.StatusCode`, `Data.Body` (parsed JSON or text). Non-2xx fails with `Context.HttpStatus` and the service's error in `Data.Body`; `401` exits `2` → ask the user to run `uip login`. If `uip api` is an unknown command, run `uip update`, then retry.
|
|
138
|
+
|
|
139
|
+
Never extract the access token: no `uip login refresh --output json` for REST, no `curl` with a bearer header, never ask the user to paste a token.
|
|
140
|
+
|
|
141
|
+
Named profiles keep several UiPath logins on one machine:
|
|
117
142
|
|
|
118
143
|
```bash
|
|
119
144
|
uip login --profile dev --output json
|
|
@@ -121,15 +146,15 @@ uip login status --profile dev --output json
|
|
|
121
146
|
uip login which --profile dev --output json
|
|
122
147
|
```
|
|
123
148
|
|
|
149
|
+
`uip login which` returns the path of the credentials file behind a login, never its contents. Use it to locate a profile's file; never open the file it names.
|
|
150
|
+
|
|
124
151
|
Rules:
|
|
125
152
|
|
|
126
|
-
- `--profile <name>` is a global option. Pass it on every `uip` command that should use that login, for example `uip --profile dev or folders list --output json`.
|
|
127
|
-
- `default` means the built-in unprofiled login
|
|
153
|
+
- `--profile <name>` is a global option. Pass it on every `uip` command that should use that login, for example `uip --profile dev or folders list --output json` and `uip --profile dev api "orchestrator_/odata/Folders" --output json`.
|
|
154
|
+
- `default` means the built-in unprofiled login.
|
|
128
155
|
- Profile names may contain only letters, numbers, `.`, `_`, and `-`. Never use paths like `../prod`.
|
|
129
156
|
- `--profile` and auth-command `--file <folder>` are mutually exclusive. Use one or the other.
|
|
130
|
-
- A missing named profile does not fall back to
|
|
131
|
-
|
|
132
|
-
These tokens can be reused for direct Orchestrator REST API calls when CLI commands don't cover a use case. If a named profile is active, read the path from `uip login which --profile <name> --output json` rather than assuming `~/.uipath/.auth`.
|
|
157
|
+
- A missing named profile does not fall back to the default login or Robot credentials. Tell the user to run `uip login --profile <name>`.
|
|
133
158
|
|
|
134
159
|
## Quick Start
|
|
135
160
|
|
|
@@ -372,7 +397,7 @@ Every `uip` command accepts:
|
|
|
372
397
|
|
|
373
398
|
- **Starting jobs requires runtimes — check before you offer.** Before proposing to publish, schedule or run anything, check the target folder's runtimes and tell the user which stages can and cannot complete ([end-to-end-readiness-guide.md](references/orchestrator/end-to-end-readiness-guide.md)). Error 2818 "no runtimes configured" means the folder needs machine templates with Unattended/Development runtimes assigned.
|
|
374
399
|
- **For `uip solution` pack / publish / deploy / activate flows, load [`uipath-solution`](/uipath:uipath-solution).** This skill owns the auth and Orchestrator surface those flows depend on; the solution skill owns the lifecycle commands.
|
|
375
|
-
- **Fallback: direct REST API.** When CLI tools don't support an operation, use the Orchestrator REST API
|
|
400
|
+
- **Fallback: direct REST API.** When CLI tools don't support an operation, use the Orchestrator REST API through `uip api` ([Session Details and REST Authentication](#session-details-and-rest-authentication)). See [references/orchestrator/orchestrator.md - REST API](references/orchestrator/orchestrator.md).
|
|
376
401
|
- **Orchestrator rate-limits some endpoints per tenant.** Filtered `jobs list` / `queue-items list` calls are budgeted per minute, and `--export` on `jobs logs` / `audit-logs list` has a quota of 100 per day. The CLI does not retry a 429 (`ErrorCode: rate_limited`). Read [references/orchestrator/api-limits.md](references/orchestrator/api-limits.md) before writing any poller, loop or script over these commands.
|
|
377
402
|
|
|
378
403
|
## References
|
|
@@ -95,7 +95,7 @@ Each concept is covered authoritatively in the linked workflow guide:
|
|
|
95
95
|
|
|
96
96
|
## REST API Fallback
|
|
97
97
|
|
|
98
|
-
When the CLI does not cover an operation,
|
|
98
|
+
When the CLI does not cover an operation, call the License Resource Manager / License Accountant APIs through `uip api` (for example `uip api "<SERVICE_PATH>" --output json`). Never extract the access token.
|
|
99
99
|
|
|
100
100
|
---
|
|
101
101
|
|
|
@@ -96,7 +96,13 @@ The CLI uses GUID keys for all entity references. Numeric IDs are never exposed
|
|
|
96
96
|
|
|
97
97
|
## REST API Fallback
|
|
98
98
|
|
|
99
|
-
When the CLI does not cover an operation,
|
|
99
|
+
When the CLI does not cover an operation, fall back to the Orchestrator REST API through `uip api`, which adds base URL, organization, tenant and token itself:
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
uip api "orchestrator_/odata/<ENTITY>?\$top=10" --folder-key "<FOLDER_KEY>" --output json
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
Read the result from `Data.Body`. Never extract the access token for `curl`, and never ask the user to paste one. Always check `uip or --help` first — most operations are covered by the CLI, and a command is safer and more consistent than hand-rolled REST. Only reach for REST when there is genuinely no command for what you need (and consider reporting the gap so the CLI can cover it).
|
|
100
106
|
|
|
101
107
|
REST callers are subject to the same per-tenant rate limits and export quotas as the CLI. Honor `Retry-After` on a 429. See [api-limits.md](api-limits.md).
|
|
102
108
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
**Global flags:**
|
|
6
6
|
- `--output json` — always use when calling programmatically
|
|
7
7
|
- `--output-filter <expr>` — JMESPath filter for JSON output
|
|
8
|
-
- `--profile <name>` — use a named
|
|
8
|
+
- `--profile <name>` — use a named login profile; `default` keeps the built-in unprofiled login
|
|
9
9
|
- `--tenant <name>` — tenant override (defaults to authenticated tenant)
|
|
10
10
|
- `--verbose` — enable debug logging
|
|
11
11
|
|
|
@@ -50,15 +50,15 @@ iwr https://download.uipath.com/uipath-cli/install.ps1 -OutFile install.ps1
|
|
|
50
50
|
| Command | Description |
|
|
51
51
|
|---|---|
|
|
52
52
|
| `uip login` | Authenticate with UiPath Cloud |
|
|
53
|
-
| `uip login status` | Show
|
|
54
|
-
| `uip login
|
|
53
|
+
| `uip login status` | Show login status, base URL, organization and tenant names and IDs, expiry |
|
|
54
|
+
| `uip login refresh` | Refresh the session proactively. Not for REST calls: its JSON output includes the access token |
|
|
55
|
+
| `uip api <SERVICE_PATH>` | Call a REST endpoint the CLI does not cover with the session (token never shown). See SKILL.md § Session Details and REST Authentication |
|
|
55
56
|
| `uip login tenant list` | List available tenants |
|
|
56
57
|
| `uip login tenant set <name>` | Set active tenant |
|
|
57
58
|
| `uip logout` | End session and clear tokens |
|
|
58
59
|
|
|
59
60
|
Named profiles:
|
|
60
61
|
- Use `uip login --profile dev`, then pass `--profile dev` on each command that should use that login.
|
|
61
|
-
- Profile credentials live at `~/.uipath/profiles/dev/.auth`; the built-in default stays at `~/.uipath/.auth`.
|
|
62
62
|
- Missing profiles do not fall back to the default login or Robot credentials.
|
|
63
63
|
- Valid profile names use letters, numbers, `.`, `_`, and `-`; `default` is reserved for the built-in login.
|
|
64
64
|
- Do not combine `--profile <name>` with auth-command `--file <folder>`.
|
|
@@ -20,14 +20,15 @@ When the request asks to operate Test Manager through its Integration Service co
|
|
|
20
20
|
1. Before any Test Manager operation run `uip login status --output json`; if unauthenticated run `uip login`.
|
|
21
21
|
2. Pass `--output json` to every `uip` command.
|
|
22
22
|
3. Retry a failing `uip` command at most 3 times; after three failures stop and report the error. Never use REST.
|
|
23
|
-
4. An empty list stops and informs the user rather than proceeding with a null key. Exception: empty `tm testcases list --filter` may be a prefix miss; apply Rule 8 and stop only if that also finds nothing. Empty filtered project/customfield lookups are real empty results and stop normally.
|
|
23
|
+
4. An empty list stops and informs the user rather than proceeding with a null key. Exception: empty `tm testcases list --filter` or `tm testsets list --filter` may be a prefix miss; apply Rule 8 and stop only if that also finds nothing. Empty filtered project/customfield lookups are real empty results and stop normally.
|
|
24
24
|
5. Confirm a target key before deletion unless the user authorized that exact delete. Every delete requires `--yes` or `-y`; omission exits without deleting.
|
|
25
25
|
6. For a required named folder run `uip or folders list -n <folder-name> --all --output json`; when choosing a folder omit `--all` to list only member folders. Run `/uipath-platform` for folder details.
|
|
26
26
|
7. Discover before assuming: never guess automation names, folder keys, project IDs, or testcase keys; list first, e.g. `uip tm testcases list-automations` or `uip or folders list -n <folder-name> --all`.
|
|
27
|
-
8. Narrow named entities server-side. Inspect `uip tm <resource> list --help` or `uip or <resource> list --help` and use the narrowing flag; never list all and filter client-side. This applies to every `uip tm`/`uip or` entity and result filter: failed-run logs use `executions testcaselogs list --only-failed`; case failures use `testcases list-result-history --only-failed`. `tm testcases list --filter`
|
|
27
|
+
8. Narrow named entities server-side. Inspect `uip tm <resource> list --help` or `uip or <resource> list --help` and use the narrowing flag; never list all and filter client-side. This applies to every `uip tm`/`uip or` entity and result filter: failed-run logs use `executions testcaselogs list --only-failed`; case failures use `testcases list-result-history --only-failed`. `tm testcases list --filter` and `tm testsets list --filter` are case-insensitive prefix matching: `--filter Regression` misses `Active Regression Suite`. If a mid-name term returns zero, retry with a broader contextual prefix; relist without `--filter` only when no workable prefix exists, walking every page under Rule 11 before concluding absence.
|
|
28
28
|
9. `uip tm testcases run` and `uip tm testsets run` require a project default folder. Attempt the run first. Only when failure text exactly includes `"Message": "HTTP 400: Please assign folder to project level before executing testcases."` and `errorCode: itemNotFound`, run `uip tm project set-default-folder --project-key <PROJECT_KEY> --folder-key <FOLDER_KEY> --output json`, then retry once. Obtain keys with `uip or folders list -n <folder-name> --all --output json`. Never overwrite a working default. Do not interpret other errors as missing folders: an unusable default gives opaque `HTTP 5xx`; a nonexistent folder gives `"HTTP 400: Internal Server Error."` with `errorCode: unknown`; both stop under Rule 10. This is the only named run exception; all other run failures stop.
|
|
29
|
-
10. Any `uip` failure or ambiguity stops and asks the user: command errors, malformed output, unclear flags/values, multiple matches, missing identifiers, or unexpected schemas. Never use REST. Exceptions: (a) Rule 9 missing-folder error; (b) `uip tm wait` exit code 2 with `Timed out after <N>s waiting for execution '<EXECUTION_ID>'. Last status: <status>.`, which means bounded timeout worked—report non-finish and continue remaining steps; `Polling failed/interrupted/aborted ...` or exit code 1 is a real failure; (c) requirement AI exit 2 with `ErrorCode: timeout`: the job is still running, so resume it with the `--activity-id … --wait` command its `Instructions` name, never a new start; (d) `uip tm run --type package` exit 1 with `"Code": "RunPackageTestsFailed"` or `"RunPackageCancelled"` and `"ErrorCode": "execution_failed"`, which means the run finished with failed or no tests, or was cancelled: report `Data` (counts, `OutputPath`, `ExecutionUrl`) and do not retry; (e) `ValidationError`
|
|
29
|
+
10. Any `uip` failure or ambiguity stops and asks the user: command errors, malformed output, unclear flags/values, multiple matches, missing identifiers, or unexpected schemas. Never use REST. Exceptions: (a) Rule 9 missing-folder error; (b) `uip tm wait` exit code 2 with `Timed out after <N>s waiting for execution '<EXECUTION_ID>'. Last status: <status>.`, which means bounded timeout worked—report non-finish and continue remaining steps; `Polling failed/interrupted/aborted ...` or exit code 1 is a real failure; (c) requirement AI exit 2 with `ErrorCode: timeout`: the job is still running, so resume it with the `--activity-id … --wait` command its `Instructions` name, never a new start; (d) `uip tm run --type package` exit 1 with `"Code": "RunPackageTestsFailed"` or `"RunPackageCancelled"` and `"ErrorCode": "execution_failed"`, which means the run finished with failed or no tests, or was cancelled: report `Data` (counts, `OutputPath`, `ExecutionUrl`) and do not retry; (e) usage error — `ValidationError` (`unknown command`, `unknown option`, `missing required option`), including from a `--help` probe, or `No project was given.`: read the parent group's `--help` (for `unknown command`) or `<command> --help`, fix the command or flags, and run it again once (counts toward Rule 3); a second usage error on the same command stops; (f) `report export --format junit` failing `'JUnit export' feature is not enabled`: run the `uip tm result download` command its `Instructions` give, once, without asking; (g) `perf-scenario list-dry-run-reports` failing `no test case carries an automationId`: read the history without `--scenario-id` (Performance scenarios); (h) `executions set-reporting-date` 404 because the run `is still open`: close it as Executions says, then retry once. Every other failure stops.
|
|
30
30
|
11. Walk pages before concluding absence. Responses contain only `Data`, with no total/cursor/has-more. If absent and the page has exactly `--limit` rows (default 50), increase `--offset` by the page size until a short page; maximum page size is 100. `--limit` above 100 fails with `HTTP 400 … Page size cannot be greater than 100.` Lists without `--limit`/`--offset`, such as `tm testcases list`, must use filter flags (Rule 8).
|
|
31
|
+
12. Run Test Manager mutations as shell commands whose results you read, never from a script you write (a `.py`/`.sh` file, or `python3 -c` with `subprocess`): Rules 3, 4, 5 and 10 must judge each result, and a script keeps going, deletes included, after a step fails. Repeats of one command may share a shell call when the first failure stops the rest (`&&`, or a loop with `|| break`).
|
|
31
32
|
|
|
32
33
|
## Quick Start
|
|
33
34
|
|
|
@@ -67,7 +68,7 @@ Migration: `uip tm project export` → `uip tm project import` moves or backs up
|
|
|
67
68
|
|
|
68
69
|
### Test cases
|
|
69
70
|
|
|
70
|
-
CRUD: `uip tm testcases create --project-key <PROJECT_KEY> --name <TEST_CASE_NAME>`; `list --project-key <PROJECT_KEY>` optionally `--filter <text>` (name/key PREFIX); `update --project-key <PROJECT_KEY> --test-case-key <TEST_CASE_KEY> --name <TEST_CASE_NAME>` (name, description, precondition, or postcondition; one required); `delete --project-key <PROJECT_KEY> --test-case-key <TEST_CASE_KEY>`; `get --test-case-key
|
|
71
|
+
CRUD: `uip tm testcases create --project-key <PROJECT_KEY> --name <TEST_CASE_NAME>`; `list --project-key <PROJECT_KEY>` optionally `--filter <text>` (name/key PREFIX); `update --project-key <PROJECT_KEY> --test-case-key <TEST_CASE_KEY> --name <TEST_CASE_NAME>` (name, description, precondition, or postcondition; one required); `delete --project-key <PROJECT_KEY> --test-case-key <TEST_CASE_KEY>`; `get --project-key <PROJECT_KEY> --test-case-key <TEST_CASE_KEY>` adds pre/postcondition, `Created`, and `PackageEntryPointId`; `get --automation-id <PACKAGE_ENTRY_POINT_ID>` returns one case though several may share it, so list and match `PackageEntryPointId` for all; `list-requirements --project-key <PROJECT_KEY> --test-case-key <TEST_CASE_KEY>` lists the requirements covering a case (run it to answer which requirements cover a test case). A test case key does not carry its project: always pass `--project-key` with it (only `--test-set-key`/`--scenario-key` commands infer the project); `list-packages`/`list-studio-projects` list distinct names with prefix `--filter`. “Which sets include cases labelled X” is one `list-testsets --labels X`, never a per-case loop; it shows explicit assignments only, not dynamic-label inclusion—say so.
|
|
71
72
|
|
|
72
73
|
Automation: `link-automation --project-key <PROJECT_KEY> --test-case-key <TEST_CASE_KEY> --folder-key <FOLDER_KEY> --package-name <PACKAGE_NAME> --test-name <TEST_NAME>`; optional `--entry-point-id <PACKAGE_ENTRY_POINT_ID>` from `list-automations`, overriding `--test-name`; `unlink-automation --project-key <PROJECT_KEY> --test-case-key <TEST_CASE_KEY>`; `list-automations --project-key <PROJECT_KEY> --folder-key <FOLDER_KEY>` optionally `--package-name <PACKAGE_NAME>` (rows carry `PackageEntryPointId`); `list-testsets --project-key <PROJECT_KEY> --test-case-key <TEST_CASE_KEY>`.
|
|
73
74
|
|
|
@@ -81,7 +82,7 @@ History/run: `list-result-history --project-key <PROJECT_KEY> --test-case-id <TE
|
|
|
81
82
|
|
|
82
83
|
Membership: `uip tm testcases add --test-set-key <TEST_SET_KEY> (--test-case-keys <KEY1> <KEY2> … | --labels <Label1> <Label2> …)` (mutually exclusive/variadic); keys also accept comma form (`DEMO:1,DEMO:2`), labels do not (`--labels A,B` is one label). Labels match OR, exact, case-insensitive; quote spaces. Without `--dynamic`, current matches copy once; testcases labeled later are not added. `uip tm testcases remove --test-set-key <TEST_SET_KEY> --test-case-keys <KEY1,KEY2,...>` removes static links; it succeeds but does nothing for a testcase included only by a dynamic label — change its labels or the set's dynamic labels instead. `uip tm testcases add --test-set-key <TEST_SET_KEY> --labels <Label1> <Label2> … --dynamic` stores labels on the set and includes every current and future case carrying any matching label; it merges labels (max 30), keeps static links, and returns `DynamicLabels` and `MatchedTestCases`; `--limit` and `--test-case-keys` are rejected. `uip tm testcases remove --test-set-key <TEST_SET_KEY> --dynamic [--labels <Label1> …] --yes` removes the named labels, or all of them when `--labels` is omitted, returning `Result` `Removed`, `Cleared`, or `NotSet`; disallowed for externally sourced sets. Use dynamic for tracking suites and omission for snapshots. If `uip tm testcases add --help` lacks `--dynamic`, use labels without it and rerun when labels change.
|
|
83
84
|
|
|
84
|
-
Parameters (`uip tm testcases parameters`, test cases only): use `--default-value`, not `--value`. Names are exact, case-insensitive, unique per case, never fuzzy (`User name` ≠ `Username`). Check `list --search` and exact `Name`; empty or `get --parameter-name <NAME>` `not_found` means absent, not Rule 4/10 stop. Near miss: ask the user to confirm the closest. **An existing parameter is never changed by an "add" request**, even when the request gives a different value: never run `update` for it. Single add: say it exists and ask for another name. Adding to several test cases: skip it, leave its value, and list it as skipped. Adding to many test cases: `list` each, `add` only missing names, then summarise added vs skipped per test case. Changing a missing name requires confirmation before creation. A rename onto a name in use is refused
|
|
85
|
+
Parameters (`uip tm testcases parameters`, test cases only): use `--default-value`, not `--value`. Names are exact, case-insensitive, unique per case, never fuzzy (`User name` ≠ `Username`). Check `list --search` and exact `Name`; empty or `get --parameter-name <NAME>` `not_found` means absent, not Rule 4/10 stop. Near miss: when the request says to use the closest match, use it and name it in the reply; otherwise ask the user to confirm the closest. **An existing parameter is never changed by an "add" request**, even when the request gives a different value: never run `update` for it. Single add: say it exists and ask for another name. Adding to several test cases: skip it, leave its value, and list it as skipped. Adding to many test cases: `list` each, `add` only missing names, then summarise added vs skipped per test case. Changing a missing name requires confirmation before creation. A rename onto a name in use (case-insensitive) is refused: skip it, still apply the request's other changes, and report the skipped rename; never delete or rename another parameter to make room. `delete` may return `Success` with no change; report `Data.Passed`/`Data.Failed`. Confirm deletes under Rule 5.
|
|
85
86
|
|
|
86
87
|
IDs: use `--test-case-id <UUID>` with `run`, `steps list`, `steps add`, `list-result-history`, and `testcaselog start`/`finish`; obtain from `testcases list` (`Id`) or newly opened run logs (see Execution lifecycle). Use singular `--test-case-key <PROJECT_KEY:NUMBER>` with `update`, `delete`, `link-automation`, `unlink-automation`, `list-testsets`; plural `--test-case-keys <KEY1,KEY2,...>` for bulk membership. Use `--step-id <UUID>` with every `steps` command except `list` and `add`, from `steps list` (`Id`).
|
|
87
88
|
|
|
@@ -99,7 +100,7 @@ Executions: `uip tm executions list --project-key <PROJECT_KEY>` optionally `--t
|
|
|
99
100
|
|
|
100
101
|
### Execution lifecycle
|
|
101
102
|
|
|
102
|
-
There is no `executions create`. Open a manual run with `uip tm testsets run --test-set-key <KEY> --execution-type manual` or `uip tm testcases run --test-case-id <TCID> --execution-type manual` for specific cases. `finish` requires **all three of `--result`, `--has-error`, and `--executed-by`**; omission yields `ValidationError`/exit 3 with an **empty message** (the biggest cause of an unrecorded run). `--executed-by` is stored as the authenticated caller regardless of value, so pass the login email. The run self-closes only when its last log finishes. Report totals with `uip tm executions get-stats`, never a hand tally. Full open/record/finish, force-close, and `set-reporting-date` rules: [references/executions-guide.md](references/executions-guide.md).
|
|
103
|
+
There is no `executions create`. Open a manual run with `uip tm testsets run --test-set-key <KEY> --execution-type manual` or `uip tm testcases run --test-case-id <TCID> --execution-type manual` for specific cases. `finish` requires **all three of `--result`, `--has-error`, and `--executed-by`**; omission yields `ValidationError`/exit 3 with an **empty message** (the biggest cause of an unrecorded run). `--executed-by` is stored as the authenticated caller regardless of value, so pass the login email. The run self-closes only when its last log finishes. Report totals with `uip tm executions get-stats`, never a hand tally. `set-reporting-date` needs a closed run (`ExecutionFinished` set). A request to book an open run is the request to close it: `uip tm testcaselog start` one of its logs, then `uip tm executions finish --execution-id <EXECUTION_ID> --project-key <PROJECT_KEY>`. Un-run cases stay `None`, so closing records no result: never finish a log as `Passed`/`Failed` that nobody ran, and name the cases left `None`. Full open/record/finish, force-close, and `set-reporting-date` rules: [references/executions-guide.md](references/executions-guide.md).
|
|
103
104
|
|
|
104
105
|
### Test set schedules
|
|
105
106
|
|
|
@@ -123,7 +124,7 @@ Read logs with `testcaselog list` (filters `--results`/`--statuses`/`--labels`/`
|
|
|
123
124
|
|
|
124
125
|
Attachments/results: `uip tm attachment download --execution-id <EXECUTION_ID>` downloads testcase attachments; `attachment upload --object-id <UUID> --object-type <type> --file <path>` uploads to an object such as `--object-type testCaseLog`; `uip tm result download --execution-id <EXECUTION_ID>` downloads JUnit XML, optionally `--project-key`, `--test-set-key`, `--result-path <DIR>`. For one file, use `uip tm attachment` (`upload` returns `AttachmentId`): find the object first with `list --test-case-keys` / `--requirement-keys`, select by `FileName`, then use `AttachmentId`; no match or a duplicate name: ask the user. Existing id: `get --attachment-id <ID> --object-type <TYPE>` reads metadata. `list` shows only `userBased` unless `--source` is passed (`orchestrator`, `studio`, `taskCapture`); unresolved keys appear under `Unresolved` and must be named; unknown `--object-ids` yields `AttachmentCount: 0`. `--object-type` is parent type, not file type; wrong type may still succeed. `download --attachment-id` writes to current folder under server name unless `--result-path`/`--output-file`, and never replaces a file: on `already exists`, stop and ask the user; pass `--overwrite` only when the user asked. `update` only renames with `--file-name`. `--all` is one page per call; follow `Pagination`. `delete --attachment-id <ID> --object-type <TYPE> --yes` requires Rule 5 confirmation.
|
|
125
126
|
|
|
126
|
-
Exports: `uip tm testcases export` writes `.xlsx` (`--test-case-ids`, otherwise whole project); `uip tm report export` writes reports with `--execution-id --format excel|pdf|junit`, or selected result PDFs with `--test-case-log-ids` (two or more become one `.zip`). When the user wants a file, pass `--wait --output-file <path>`. Without `--wait`, poll `uip tm export-jobs get --job-id` while `Initiated`/`InProgress`, stop on `Failed`/`Cancelled`, then run `attachment download --attachment-id <AttachmentId>` as `Instructions` says. Never start the same export twice. Existing `--output-file` is refused before start; ask and use `--overwrite` only when told. `export-jobs get` requires starting project (others 404). JUnit
|
|
127
|
+
Exports: `uip tm testcases export` writes `.xlsx` (`--test-case-ids`, otherwise whole project); `uip tm report export` writes reports with `--execution-id --format excel|pdf|junit`, or selected result PDFs with `--test-case-log-ids` (two or more become one `.zip`). When the user wants a file, pass `--wait --output-file <path>`. Without `--wait`, poll `uip tm export-jobs get --job-id` while `Initiated`/`InProgress`, stop on `Failed`/`Cancelled`, then run `attachment download --attachment-id <AttachmentId>` as `Instructions` says. Never start the same export twice. Existing `--output-file` is refused before start; ask and use `--overwrite` only when told. `export-jobs get` requires starting project (others 404). For JUnit XML prefer `uip tm result download`, which builds the XML on the CLI; `report export --format junit` needs a tenant feature (disabled: Rule 10 (f)). 403 result PDFs (licence): report it, don't retry.
|
|
127
128
|
|
|
128
129
|
### Playwright pack
|
|
129
130
|
|
|
@@ -135,7 +136,7 @@ Exports: `uip tm testcases export` writes `.xlsx` (`--test-case-ids`, otherwise
|
|
|
135
136
|
|
|
136
137
|
### Wait, user, custom fields, and labels
|
|
137
138
|
|
|
138
|
-
`uip tm wait --execution-id <EXECUTION_ID>` waits for terminal state; optionally `--project-key`, `--test-set-key`, `--timeout <SECONDS>`. `uip tm user get` gets the authenticated profile.
|
|
139
|
+
`uip tm wait --execution-id <EXECUTION_ID>` waits for terminal state; optionally `--project-key`, `--test-set-key`, `--timeout <SECONDS>`. Wait only when the run's result was asked for (a triggered run is reported by its `ExecutionId`), with `--timeout <SECONDS>` below your shell's command time limit so the call returns. `uip tm user get` gets the authenticated profile.
|
|
139
140
|
|
|
140
141
|
Project-scoped custom-field definitions attach to Requirement/TestCase/TestSet, with per-object label/value rows, via `uip tm customfield …`. For full surface, scopes, case-sensitive `--object-type`/`--data-type` enums (`Requirement|TestCase|TestSet`, `Text|Label`), `--values` JSON semantics, and every label/value verb, read [references/custom-fields-guide.md](references/custom-fields-guide.md).
|
|
141
142
|
|
|
@@ -154,7 +155,7 @@ Perf-service reads reject `--project-key` (`unknown option`): `results get`, `ht
|
|
|
154
155
|
|
|
155
156
|
There are two load-group ids: the scenario's load-group ids from `get`/`load-groups add` are for `load-groups update`/`remove`; execution ids from `load-groups list --execution-id <EXECUTION_ID>` are for `load-groups get`, `jobs list`, `robot-logs list`, `http-errors`, `automation-errors`, and `transaction-metrics`; the wrong one returns 404 `not_found`.
|
|
156
157
|
|
|
157
|
-
Find scenarios with `perf-scenario list --project-key <PROJECT_KEY> --search <NAME>` (`Data.Scenarios`). Past runs: `perf-scenario executions list --project-key <PROJECT_KEY> --scenario-id <SCENARIO_ID>`, optionally `--execution-type dryRun|performanceTesting` (`Data.Data`; response `ExecutionType` capitalized). Scenario UUID is absent from `list`/`get`. `list-dry-run-reports --scenario-key <SCENARIO_KEY>` returns `ScenarioId` only when a group's case has `AutomationId` (Studio-linked; `link-automation` sets none); otherwise list without `--scenario-id` and match rows whose `Name` starts with the scenario name. `report compare --scenario-id <SCENARIO_ID> --execution-ids <ID...> --report-file <HTML_FILE>` publishes an HTML comparison you write from each run's `results get` (oldest to newest, one scenario) and returns `ViewUrl`; add `--project-key` for an in-app link.
|
|
158
|
+
Find scenarios with `perf-scenario list --project-key <PROJECT_KEY> --search <NAME>` (`Data.Scenarios`). Past runs: `perf-scenario executions list --project-key <PROJECT_KEY> --scenario-id <SCENARIO_ID>`, optionally `--execution-type dryRun|performanceTesting` (`Data.Data`; response `ExecutionType` capitalized). Empty `Data.Data` with `Paging.Total: 0` from a query scoped as above means zero runs of that type: answer `0`, do not search further. Scenario UUID is absent from `list`/`get`. `list-dry-run-reports --scenario-key <SCENARIO_KEY>` returns `ScenarioId` only when a group's case has `AutomationId` (Studio-linked; `link-automation` sets none); otherwise it fails `no test case carries an automationId` (Rule 10 (g)): run `perf-scenario executions list --project-key <PROJECT_KEY> --execution-type dryRun` without `--scenario-id` and match rows whose `Name` starts with the scenario name. `report compare --scenario-id <SCENARIO_ID> --execution-ids <ID...> --report-file <HTML_FILE>` publishes an HTML comparison you write from each run's `results get` (oldest to newest, one scenario) and returns `ViewUrl`; add `--project-key` for an in-app link.
|
|
158
159
|
|
|
159
160
|
`licenses get` returns tenant-wide `RemainingVirtualUserUnits` and can lag up to 4 hours. A full run consumes virtual users × 1 (API), 10 (Chrome/Edge), or 100 (other targets); dry runs consume none. If units are short, stop and tell the user. Triage a failed group with `robot-logs list --load-group-id <ID> --level Error` and `jobs list --load-group-id <ID>`; A 403 means the tenant's performance testing feature or the user's permission is off: stop under Rule 10. `delete --scenario-key <SCENARIO_KEY> --yes` permanently removes scenario/groups (confirm first, Rule 5) but keeps past executions unlinked; it does not stop a running execution, so run `stop` first.
|
|
160
161
|
|
|
@@ -103,13 +103,15 @@ uip tm testsets run --test-set-key <TEST_SET_KEY> --execution-type automated --o
|
|
|
103
103
|
|
|
104
104
|
Capture the returned `ExecutionId`.
|
|
105
105
|
|
|
106
|
-
## Step 7 — Wait for terminal status
|
|
106
|
+
## Step 7 — Wait for terminal status (only when asked)
|
|
107
|
+
|
|
108
|
+
A request to trigger or start a run is done once `ExecutionId` is returned: report it and stop. Wait only when the user asked for the run's result, and keep `--timeout <SECONDS>` below your shell's command time limit so the call returns:
|
|
107
109
|
|
|
108
110
|
```bash
|
|
109
|
-
uip tm wait --execution-id <EXECUTION_ID> --project-key <PROJECT_KEY> --timeout
|
|
111
|
+
uip tm wait --execution-id <EXECUTION_ID> --project-key <PROJECT_KEY> --timeout <SECONDS> --output json
|
|
110
112
|
```
|
|
111
113
|
|
|
112
|
-
`--timeout 0` means no timeout. The output `Status` is `Passed` / `Failed` / `Cancelled` when the call returns.
|
|
114
|
+
An automated run stays `Pending` until a robot serving the folder picks it up, so `wait` can use its whole `--timeout`. Exit 2 (`Timed out after <N>s`) means report the run as not finished (SKILL.md Rule 10 (b)). `--timeout 0` means no timeout; never pass it from an agent shell. The output `Status` is `Passed` / `Failed` / `Cancelled` when the call returns.
|
|
113
115
|
|
|
114
116
|
For result download, attachment download, and report generation: see [/uipath:uipath-test SKILL.md § Result, Attachment, Report Commands](../SKILL.md).
|
|
115
117
|
|
package/version-manifest.json
CHANGED