@uipath/solution-tool 1.0.2 → 1.1.0

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/README.md CHANGED
@@ -30,3 +30,28 @@ uip solution deploy run --solution-name MySolution
30
30
  uip solution deploy status --solution-name MySolution
31
31
  uip solution project add --name MyProject
32
32
  ```
33
+
34
+ ### Deploying to Personal Workspace
35
+
36
+ `uip solution deploy run` accepts `--personal-workspace` as an alternative to
37
+ `--parent-folder-path` / `--parent-folder-key`. When set, the CLI calls
38
+ Orchestrator's `GetPersonalWorkspace` endpoint once to look up the current
39
+ user's workspace name, then uses that as the deploy target — matching
40
+ StudioWeb's "Publish to Personal Workspace" UX.
41
+
42
+ ```bash
43
+ uip solution deploy run \
44
+ --name my-deployment \
45
+ --package-name my-package \
46
+ --package-version 1.0.0 \
47
+ --folder-name MySolution \
48
+ --personal-workspace
49
+ ```
50
+
51
+ The three target flags (`--parent-folder-path`, `--parent-folder-key`,
52
+ `--personal-workspace`) are mutually exclusive. The lookup uses whichever
53
+ auth context is active — `uip login`, `UIPATH_CLI_ENABLE_ENV_AUTH`, or
54
+ `UIPATH_CLI_ENFORCE_ROBOT_AUTH` — so the same command works in standalone
55
+ terminals, CI pipelines, and Studio Desktop-spawned invocations. Service
56
+ principals or robot accounts without a Personal Workspace produce a clear
57
+ "not configured" error.
@@ -0,0 +1,258 @@
1
+ # UiPath Solution Workspace
2
+
3
+ > **A `.uipx` file in this directory marks a UiPath solution. Drive every solution operation through the `uip` CLI — packing, publishing, deploying, and deployment configuration.** Do not hand-edit `.uipx`; manage projects via `uip solution project ...` so the manifest stays internally consistent.
4
+
5
+ This file is a static snapshot, scaffolded by the `uip` CLI version `{{cli_version}}`. If the CLI version you have access to is different, there may be inconsistencies in the commands or options listed below. When you encounter one, look up the current form with `uip <group> --help` and **edit this file in place** — find and replace the stale command with the working one.
6
+
7
+ ## The `.uipx` Manifest
8
+
9
+ `<solution>.uipx` is a JSON document at the solution root listing every project in the solution. Skeleton:
10
+
11
+ ```json
12
+ {
13
+ "DocVersion": "1.0.0",
14
+ "StudioMinVersion": "2025.10.0",
15
+ "SolutionId": "<uuid>",
16
+ "Projects": [
17
+ {
18
+ "Type": "Process",
19
+ "ProjectRelativePath": "MyProcess/project.json",
20
+ "Id": "<uuid>"
21
+ }
22
+ ]
23
+ }
24
+ ```
25
+
26
+ Typical layout:
27
+
28
+ ```text
29
+ my-solution/
30
+ my-solution.uipx ← solution manifest
31
+ AGENTS.md ← this file (Codex, Cursor, generic agents)
32
+ CLAUDE.md ← identical copy (Claude Code)
33
+ ProjectA/
34
+ project.json
35
+ bindings_v2.json ← per-project resource declarations
36
+ ...
37
+ ProjectB/
38
+ project.uiproj
39
+ ...
40
+ ```
41
+
42
+ You must manage membership via the CLI, never by editing the manifest. All these operations work entirely on local files (`.uipx` plus the solution-builder artefacts on disk) and do not require `uip login` — auth is only needed once you reach `pack` / `publish` / `deploy` / `upload`.
43
+
44
+ | Intent | Command |
45
+ |---|---|
46
+ | Create a solution | `uip solution init <name>` |
47
+ | Register an existing subfolder of the solution dir as a project (no copying — use after scaffolding *inside* the solution dir, e.g. `uip rpa create-project --location <solution-dir>`) | `uip solution project add <project-path> [<solution-file>]` |
48
+ | Add a project from outside the solution — copies the folder at `<path>` into the solution dir and registers it (`<path>` is a local filesystem path) | `uip solution project import --source <path>` |
49
+ | Unregister a project (does not delete the project files on disk) | `uip solution project remove <project-path> [<solution-file>]` |
50
+ | List projects in the solution | `uip solution project list` |
51
+
52
+ ## Project Types
53
+
54
+ A solution can contain multiple projects of different types. The table below lists each project type and the `uip` command that scaffolds a fresh one (or marks the row when no scaffolding command exists).
55
+
56
+ | Type | Description | Scaffold with | Skill |
57
+ |---|---|---|---|
58
+ | `Process` | RPA process — Studio workflow (XAML, Coded C#, or Hybrid) | `uip rpa create-project --name <name>` | `uipath-rpa` |
59
+ | `Library` | Reusable RPA library | `uip rpa create-project --template-id LibraryProcessTemplate --name <name>` | `uipath-rpa` |
60
+ | `Tests` | Test Automation project | `uip rpa create-project --template-id TestAutomationProjectTemplate --name <name>` | `uipath-rpa` |
61
+ | `Flow` | Maestro Flow — long-running orchestrated workflow | `uip maestro flow init <name>` | `uipath-maestro-flow` |
62
+ | `CaseManagement` | Maestro Case — stateful business process (SLA, approvals, HITL) | `uip maestro case init <name>` | `uipath-maestro-case` |
63
+ | `ProcessOrchestration` | Maestro BPMN — long-running orchestrated process | `uip maestro bpmn init <name>` | `uipath-maestro-bpmn` |
64
+ | `Agent` | LLM agent project — **low-code** (configured via `agent.json`; no Python) or **coded** (Python: LangGraph / LlamaIndex / OpenAI Agents). Both subtypes share `ProjectType: "Agent"`; the discriminator is `agent.json#type`. | `uip agent init <path>` (low-code) · `uip codedagent new [name]` (coded — see the `uipath-agents` skill for the full flow) | `uipath-agents` |
65
+ | `AppV2` | Coded App — web application | `uip codedapp init <path>` | `uipath-coded-apps` |
66
+ | `Function` | UiPath Function (JS / TS / Python) | `uip functions new [name]` | none |
67
+ | `Api` | API Workflow project | no CLI scaffolding | none |
68
+ | `Connector` | Integration Service connector | no CLI scaffolding — use `uip is connectors` to list / get / export existing connectors | none |
69
+ | `WebApp` | Legacy low-code UiPath App (the coded variant is `AppV2`) | no CLI scaffolding | none |
70
+
71
+ All skill should be installed by running the command: `uip skills install`. The general-purpose `uipath-platform` skill covers what isn't in a type-specific skill.
72
+
73
+ The type lives in either `project.uiproj` (top-level `ProjectType`) or `project.json` (`designOptions.outputType`, falling back to top-level `ProjectType` when `outputType` is absent — read or write either field). After scaffolding, register the project with the solution: `uip solution project import --source <path>`. If you pass an unknown type to that command, it rejects with the exhaustive accepted list — trust that error over this table.
74
+
75
+ ## End-to-End Lifecycle
76
+
77
+ Run `uip login` first — most steps below need an authenticated session, including `solution pack` in some cases.
78
+
79
+ ```bash
80
+ # 1. Authenticate
81
+ # Interactive (browser OAuth):
82
+ uip login
83
+ # Non-interactive (CI / CD) with client credentials:
84
+ uip login --client-id <ID> --client-secret <SECRET> --tenant <TENANT>
85
+
86
+ # 2. Pack the solution into a .zip. Two positional args:
87
+ # <solutionPath> — solution dir (containing .uipx) or a .uis file
88
+ # <output-path> — directory where the .zip is written
89
+ uip solution pack . ./out
90
+
91
+ # 3. Publish the packed .zip to Orchestrator
92
+ uip solution publish ./out/<package>.zip
93
+
94
+ # 4. Fetch the default deployment configuration for the published package
95
+ uip solution deploy config get <package-name> --destination config.json
96
+
97
+ # 5. (Optional) Customize the config — see "Deployment Configuration" below
98
+
99
+ # 6. Deploy. By default this also activates; pass --skip-activate to defer.
100
+ uip solution deploy run \
101
+ --name <deployment-name> \
102
+ --package-name <package-name> \
103
+ --package-version <version> \
104
+ --folder-name <new-folder> \
105
+ --parent-folder-path Shared \
106
+ --config-file config.json
107
+
108
+ # 7. The deploy returns a pipeline deployment ID — track it:
109
+ uip solution deploy status <pipeline-deployment-id>
110
+
111
+ # 8. List every deployment in the active tenant
112
+ uip solution deploy list
113
+ ```
114
+
115
+ **Activation lifecycle.** `deploy run` activates by default. To split the steps:
116
+
117
+ ```bash
118
+ uip solution deploy run --skip-activate ... # leaves "Inactive (Ready to activate)"
119
+ uip solution deploy activate <deployment-name> # activate later
120
+ uip solution deploy uninstall <deployment-name> # remove the deployment + its resources
121
+ ```
122
+
123
+ `uninstall` and `activate` take the deployment name as a **positional** argument (no `--name` flag). `status` takes the **pipeline deployment ID** (the GUID returned by `deploy run`), also positional.
124
+
125
+ ## Studio Web (Browser Editing)
126
+
127
+ Studio Web is a separate target from the Orchestrator deploy chain — it hosts a browser-based collaborative editor for solutions. The `solution upload` command pushes the local solution there and returns a `DesignerUrl` to open the solution in a browser; this is independent of `pack` / `publish` / `deploy` and does *not* produce a runtime-deployable artifact.
128
+
129
+ ```bash
130
+ uip solution upload . # upload solution dir to Studio Web; returns DesignerUrl
131
+ uip solution download <solution-id> # round-trip a Studio Web solution back to disk
132
+ uip solution delete <solution-id> # remove a solution from Studio Web
133
+ ```
134
+
135
+ `upload` accepts a solution directory, a `.uipx` file, or a `.uis` file. If the solution already exists on Studio Web (matching `SolutionId` in `.uipx`), the upload overwrites; otherwise it imports as new.
136
+
137
+ ## Per-Project Bindings (`bindings_v2.json`)
138
+
139
+ Each project declares the resources it needs (assets, queues, buckets, processes, …) in a `bindings_v2.json` file at the project root. These declarations drive the solution's resource inventory.
140
+
141
+ After editing a project's bindings, or after `solution project import` (which doesn't auto-sync resources), reconcile the solution-level inventory:
142
+
143
+ ```bash
144
+ uip solution resource refresh # re-scan every project, sync new / removed resources
145
+ ```
146
+
147
+ `solution resource refresh` creates new resources for bindings not yet in the solution and imports from Orchestrator when a matching resource already exists.
148
+
149
+ Inspect the current solution inventory:
150
+
151
+ ```bash
152
+ uip solution resource list # everything declared in this solution
153
+ ```
154
+
155
+ ## Deployment Configuration
156
+
157
+ The deploy config is a JSON file fetched from Orchestrator that lists every resource the solution will provision (or reuse) and every property you can override. It is **separate from `bindings_v2.json`** — bindings declare *what a project needs*, the deploy config decides *how that maps to Orchestrator at deploy time*.
158
+
159
+ ```bash
160
+ # Fetch the default config to a file
161
+ uip solution deploy config get <package-name> --destination config.json
162
+
163
+ # Set a property on a single resource
164
+ uip solution deploy config set config.json <resource-name> <property> <value>
165
+ # e.g. set config.json MyQueue maxNumberOfRetries 5
166
+
167
+ # Set a property on every resource (limited; supports e.g. conflictFixingAction)
168
+ uip solution deploy config set config.json --all <property> <value>
169
+
170
+ # Link a resource slot to an existing Orchestrator resource (instead of creating a new one)
171
+ uip solution deploy config link config.json <resource-name> \
172
+ --name <existing-resource-name> \
173
+ --folder-path Shared/Production
174
+
175
+ # Remove a link — the resource will be created at deploy time again
176
+ uip solution deploy config unlink config.json <resource-name>
177
+
178
+ # Apply the customized config:
179
+ uip solution deploy run ... --config-file config.json
180
+ ```
181
+
182
+ If a deploy fails on a configuration issue, the CLI prints the offending resource and an `Instructions` field. Read those before retrying — most failures are an `existing-resource-name` typo, a wrong `--folder-path`, or a property that the resource type does not accept.
183
+
184
+ ## Resource Types in Orchestrator
185
+
186
+ The CLI talks about the same resource types Orchestrator does:
187
+
188
+ - **Assets** — key-value configuration. Asset value types: `Text`, `Bool`, `Integer`, `Credential`, `Secret`.
189
+ - **Queues** & **Queue Items** — work-item queues for distributed transactional processing; queue items are the rows.
190
+ - **Storage Buckets** & **Bucket Files** — file storage for automation data.
191
+ - **Connections** — Integration Service connections to external systems (Salesforce, ServiceNow, …).
192
+ - **Processes / Releases** — published packages bound to a folder.
193
+ - **Triggers** & **Webhooks** — event-, time-, or queue-based job firing; outbound HTTP notifications.
194
+
195
+ Resources outside a solution are managed via the `uip resource` group, which exposes per-type subgroups (`uip resource assets …`, `uip resource queues …`, `uip resource buckets …`, `uip resource bucket-files …`, `uip resource libraries …`, `uip resource queue-items …`, `uip resource triggers …`, `uip resource webhooks …`). Run `uip resource --help` for the live list. Example:
196
+
197
+ ```bash
198
+ uip resource assets list # list assets in the active folder
199
+ uip resource assets create # create an asset (see --help)
200
+ ```
201
+
202
+ ## Output Conventions for Agents
203
+
204
+ Two rules make automation reliable:
205
+
206
+ 1. **Never redirect or drop stderr.** Errors and confirmations go to stderr — `2>/dev/null` will silently hide failures and produce false retries.
207
+ 2. **Use `--output-filter <jmespath>`** to extract specific fields rather than piping JSON through external tools. The expression is applied to the `Data` array — start with `[]`, not with `Data[]`. Example: `uip solution packages list --output-filter "[].name"`.
208
+
209
+ Standard success shape: `{ "Result": "Success", "Code": "<CommandCode>", "Data": ... }`.
210
+ Standard failure shape: `{ "Result": "Failure", "Message": "<short>", "Instructions": "<actionable>" }`.
211
+
212
+ List commands always return `Data: []` on empty results — never a message object — so consumers can rely on a consistent array shape.
213
+
214
+ ## Discovering Commands
215
+
216
+ This file is a starting map, not a reference. The live source of truth is the CLI itself:
217
+
218
+ ```bash
219
+ uip --help # top-level groups
220
+ uip solution --help # every solution verb
221
+ uip solution deploy --help # the deploy subgroup
222
+ uip <command> --help # full options for any command
223
+ ```
224
+
225
+ Adjacent groups commonly used alongside solutions:
226
+
227
+ | Group | Purpose |
228
+ |---|---|
229
+ | `uip login`, `uip login tenant` | Authenticate, switch tenants |
230
+ | `uip or folders` | Manage Orchestrator folders |
231
+ | `uip resource` | Manage Orchestrator resources directly (assets, queues, buckets, …) |
232
+ | `uip rpa` | RPA workflow lifecycle (compile, validate, execute, scaffold) |
233
+ | `uip maestro` | Maestro Flow / Case / BPMN scaffolding |
234
+ | `uip agent`, `uip codedagent` | Coded agent lifecycle |
235
+ | `uip codedapp` | Coded Apps lifecycle |
236
+ | `uip functions` | UiPath Functions |
237
+ | `uip tm` | Test Manager (test projects, sets, executions) |
238
+ | `uip is` | Integration Service (connectors, connections) |
239
+ | `uip tools` | Manage CLI tool extensions |
240
+
241
+ ## Troubleshooting Quick Map
242
+
243
+ | Symptom | First thing to check |
244
+ |---|---|
245
+ | `Not authenticated` / 401 | `uip login`, then re-run |
246
+ | Command targets the wrong tenant | `uip login tenant set <tenant>`; verify with `uip login status` |
247
+ | Pack succeeds but publish 409s | Version conflict — bump the version (`uip solution pack . ./out -v <new-version>`) or delete the colliding version with `uip solution packages delete <package-name> <version>` (only if intentional) |
248
+ | `deploy run` fails on a resource conflict | `uip solution deploy config link config.json <resource> --name <existing> --folder-path <path>` to map to the existing one, or change `conflictFixingAction` via `config set` |
249
+ | `Resource not found` after deploy | `uip solution resource refresh` to re-sync from each project's `bindings_v2.json`; if still missing, the resource was never declared in any project |
250
+ | Output looks empty | You may have redirected stderr — confirmations and errors go there. Re-run without `2>` |
251
+
252
+ ---
253
+
254
+ For deeper detail, consult:
255
+
256
+ - The official Solutions Management guide: <https://docs.uipath.com/solutions-management/automation-cloud/latest>
257
+ - The `uipath-platform` skill — auth, Orchestrator (folders, assets, queues, buckets, robots, packages, processes), solution lifecycle (pack / publish / deploy), Integration Service, and the `uip` CLI.
258
+ - The `uipath-solution-design` skill — turn a Process Design Document (PDD) into an implementation-ready Solution Design Document (SDD) and pick scope (single product vs. multi-project Solution composing RPA / Flow / Case / Agents / Apps / API Workflows).