@uipath/skills 1.207.0-preview.2303 → 1.207.0-preview.2320
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/skills",
|
|
3
|
-
"version": "1.207.0-preview.
|
|
3
|
+
"version": "1.207.0-preview.2320",
|
|
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"
|
|
@@ -29,6 +29,7 @@ For the app's **JS/TS function backend** — authoring the `defineFunction` endp
|
|
|
29
29
|
|------|-------------|----------------|
|
|
30
30
|
| **Coded Web App** | React/Vue/other frontend hosted on UiPath CDN | User-facing app accessed via a URL |
|
|
31
31
|
| **Coded Action App** | React form wired to UiPath Action Center | Rendered inside human task reviews in Maestro/Agent workflows |
|
|
32
|
+
| **Public Coded Web App** (preview) | Coded Web App that anyone with the link uses **without signing in** | In-solution only; runs as a confidential external app — see [public-coded-app.md](references/public-coded-app.md) |
|
|
32
33
|
|
|
33
34
|
> **Two lifecycles, two scaffolding entry points.**
|
|
34
35
|
>
|
|
@@ -61,11 +62,12 @@ For the app's **JS/TS function backend** — authoring the `defineFunction` endp
|
|
|
61
62
|
20. **A scaffold is not React until `src/main.tsx` exists — assert it before installing anything.** Scaffold both app types by copying the single `create-vite` command from [create-web-app.md](references/create-web-app.md) Step 3.2 or [create-action-app.md](references/create-action-app.md): it passes `--no-interactive` — without which `create-vite` stops on a linter prompt, and exits `0` having created nothing when no one can answer it — and ends in a `node` check that prints `SCAFFOLD_OK`. Never use an `npm create vite` form — `npm create` needs a bare `--` separator to forward flags, and a lost or corrupted separator makes npm swallow `--template` so `create-vite` silently scaffolds its **vanilla TypeScript** template. Never judge a scaffold by its exit code or output: `create-vite` exits `0` on a misparsed template, on a linter prompt it could not show, and on `Operation cancelled` over a non-empty target directory. Nothing in this skill installs `react` explicitly, so a wrong template surfaces minutes later as an unrelated-looking build failure. On failure re-scaffold with `--overwrite`; never convert a vanilla scaffold into a React one by hand.
|
|
62
63
|
21. **Call third-party systems through an Integration Service connector, or build one with `uip is connectors builder`; a direct `fetch` with a key needs a stated reason.** Any key the app holds (source, env var, `uipath.json`) ships in `dist/`. UiPath SDK calls are fine: they use the app's own session.
|
|
63
64
|
22. **Run the action-schema validator after every write or edit of `action-schema.json`.** Run `node <skill-dir>/scripts/validate-action-schema.js <path-to-action-schema.json>` and fix until exit `0` before reporting done — even when told to write the schema directly with no questions. A schema that looks right is not validated. Details: [create-action-app.md](references/create-action-app.md#validate-the-schema-required-before-proposing-it).
|
|
65
|
+
23. **Public (no sign-in) apps follow [public-coded-app.md](references/public-coded-app.md) end to end.** When the user wants an app for people without a UiPath account ("public", "anonymous", "customers/guests", "no login"), first confirm it fits the public limits in that file, then build it as an in-solution coded app with a confidential external app, no sign-in code, only the supported public calls, and every resource listed in a hand-written `bindings_v2.json`.
|
|
64
66
|
|
|
65
67
|
## Disambiguation — Apps vs Dashboards
|
|
66
68
|
|
|
67
69
|
**Route directly to Apps workflow** (sections below) when you see:
|
|
68
|
-
`web app`, `action app`, `codedapp`, `app.config.json`, `action-schema.json`,
|
|
70
|
+
`web app`, `action app`, `public app`, `no sign-in`, `codedapp`, `app.config.json`, `action-schema.json`,
|
|
69
71
|
`scaffold app`, `deploy app`, `pack`, `publish`, `push`, `pull`, `debug app`
|
|
70
72
|
|
|
71
73
|
**Route directly to [references/dashboards/CAPABILITY.md](references/dashboards/CAPABILITY.md) when you see:**
|
|
@@ -85,6 +87,7 @@ For the app's **JS/TS function backend** — authoring the `defineFunction` endp
|
|
|
85
87
|
|---|---|
|
|
86
88
|
| **Create a new Coded Web App** | [references/create-web-app.md](references/create-web-app.md) |
|
|
87
89
|
| **Create a new Coded Action App** | [references/create-action-app.md](references/create-action-app.md) |
|
|
90
|
+
| **Create a public (no sign-in) coded app** (preview) | [references/public-coded-app.md](references/public-coded-app.md) |
|
|
88
91
|
| **Debug auth or config issues** | [references/debug.md](references/debug.md) |
|
|
89
92
|
| **Push/pull code to Studio Web** | [references/file-sync.md](references/file-sync.md) |
|
|
90
93
|
| **Package and deploy** | [references/pack-publish-deploy.md](references/pack-publish-deploy.md) |
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
# Public Coded Web App (preview)
|
|
2
|
+
|
|
3
|
+
A public coded app is a Coded Web App that **anyone with the link can use without signing in to UiPath** — customers, suppliers, event guests. It calls UiPath as a **confidential external application** of the organization, and only for the resources it declares.
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
> **Preview.** Public coded apps need:
|
|
7
|
+
> - SDK: `@uipath/uipath-typescript` `1.8.5` or later
|
|
8
|
+
> - CLI: `npm install -g @uipath/cli` (`1.206.0` or later)
|
|
9
|
+
> - Local runs: `@uipath/coded-apps-dev` `1.0.0` or later
|
|
10
|
+
>
|
|
11
|
+
> Today you write `bindings_v2.json` by hand. Generating it from the app code is coming soon.
|
|
12
|
+
|
|
13
|
+
## Decide: public or sign-in
|
|
14
|
+
|
|
15
|
+
Build a public app only when the people using it have no UiPath account. Otherwise build a normal sign-in Coded Web App — see [create-web-app.md](create-web-app.md).
|
|
16
|
+
|
|
17
|
+
Before building, confirm with the user that the app fits these limits:
|
|
18
|
+
|
|
19
|
+
- **Anyone with the link can use it.** No sensitive data (Social Security numbers, billing details) in or out.
|
|
20
|
+
- **The app doesn't know who the visitor is.** No per-user features, no calls that need the current user.
|
|
21
|
+
- **Visitors can add, never change.** They can start jobs, add and read records, and upload files. Anything else (send an email, update another system, edit or delete data) goes in a process the app starts.
|
|
22
|
+
- **Solution only.** The app is deployed with a solution. A coded app deployed on its own cannot be public. Coded action apps cannot be public.
|
|
23
|
+
- **Folder-scoped entities only.** Tenant-level Data Fabric entities are not supported.
|
|
24
|
+
- **IP restrictions.** If the organization restricts access by IP address, visitors outside the allowed ranges cannot use the app. The Trusted public apps list does not cover public coded apps yet.
|
|
25
|
+
|
|
26
|
+
## Design
|
|
27
|
+
|
|
28
|
+
### Access modes
|
|
29
|
+
|
|
30
|
+
For each resource the app reads, the developer sets one of two access modes in `uipath.json` `access`:
|
|
31
|
+
|
|
32
|
+
- `session` — a visitor can read only the data they added in their own session. Listing the resource is not allowed.
|
|
33
|
+
- `all` — the data in the declared resource is shared with every visitor. This is the default.
|
|
34
|
+
|
|
35
|
+
A visitor is identified by their browser session. Another browser, a private window, or cleared cookies start a new session, and a new session cannot read what an earlier session added. So show a visitor their results in the same visit (a confirmation screen after submit), not "come back later".
|
|
36
|
+
|
|
37
|
+
List every resource the app reads, and use `session` for anything personal.
|
|
38
|
+
|
|
39
|
+
### Data and security
|
|
40
|
+
|
|
41
|
+
- **Data Fabric Everyone group.** A role assigned to the Everyone group also applies to the app's external application. Ask the user to remove the Everyone group from entities the app must not read, and to use field-level access for fields it must not see.
|
|
42
|
+
- **No secrets in job output.** The visitor's browser receives the output of the jobs it starts. Keep secrets (one-time codes, tokens) inside the process — for example a coded function or an API workflow — and return only what the visitor may see.
|
|
43
|
+
- **No keys in the app.** Everything in the build output is public.
|
|
44
|
+
- **Validate input in the process.** Treat anything a visitor sends as untrusted.
|
|
45
|
+
- **One folder per public app**, so the external application's role covers only that app's resources.
|
|
46
|
+
|
|
47
|
+
## Hard rules
|
|
48
|
+
|
|
49
|
+
1. **Solutions only.** A public app must live in a solution: `uip solution init` → `uip codedapp init` inside it. Never use `uip codedapp publish/deploy` for it.
|
|
50
|
+
2. **No sign-in code.** `const sdk = new UiPath(); await sdk.initialize();` — the app runs without sign-in once it is deployed as public. Never add login buttons, PKCE, or tokens.
|
|
51
|
+
3. **Only these calls work** (anything else throws `ValidationError` before a request is sent):
|
|
52
|
+
|
|
53
|
+
| Service | Call | Visitor gets |
|
|
54
|
+
|---|---|---|
|
|
55
|
+
| `Processes` | `start({ name }, { folderPath, inputArguments })` | starts one job |
|
|
56
|
+
| `Jobs` | `getOutput(jobKey)` | output of jobs they started (any job of the process in `all` mode) |
|
|
57
|
+
| `Entities` | `insertRecord({ name }, data)` | adds a record |
|
|
58
|
+
| `Entities` | `getRecordByName(name, recordId)` | records they added (any record in `all` mode) |
|
|
59
|
+
| `Entities` | `getRecordsByName(name, { pageSize, cursor })` | `all` mode only |
|
|
60
|
+
| `Buckets` | `uploadFile({ name }, fileName, content, { folderPath })` | uploads a file under a new name, so it never overwrites one |
|
|
61
|
+
|
|
62
|
+
Edit, delete, filtering, action apps and tenant-level entities are **not supported**. Put that logic in a process (RPA, coded function, agent, Maestro, API workflow) and `start` it.
|
|
63
|
+
4. **List every resource the app uses in `bindings_v2.json`** at the app project root (see [Declare the resources](#declare-the-resources)). A resource that isn't listed is refused with 403.
|
|
64
|
+
5. **Never handle the client secret in the conversation.** The user puts it in their own shell (`export APP_CLIENT_SECRET=...`) or their own `.env.local`; pass it as `"$APP_CLIENT_SECRET"`. `uip solution deploy config set ... clientSecret` echoes the value — always add `--output-filter Property`.
|
|
65
|
+
|
|
66
|
+
## Prerequisites (admin)
|
|
67
|
+
|
|
68
|
+
- A **confidential** external application with **application** scopes for what the app calls (see [oauth-scopes.md](oauth-scopes.md)). Always include `OR.Execution`. Data Fabric: `DataFabric.Data.Read DataFabric.Data.Write`; jobs: `OR.Jobs`; buckets: `OR.Buckets`.
|
|
69
|
+
```bash
|
|
70
|
+
uip admin external-apps create "<App name>" --app-scope "OR.Execution DataFabric.Data.Read DataFabric.Data.Write" --output json
|
|
71
|
+
```
|
|
72
|
+
The response contains the secret once — tell the user to store it; do not print or save it yourself.
|
|
73
|
+
- After the first deploy, the external application needs a role in the **deployment folder** for the resources it uses. The deployment does not grant it. Ask the user or an admin to assign it: Orchestrator → **Tenant** → **Folders** → the deployment folder → **Assign accounts/group/external app** → the external application → a role such as **Automation User** (for entities: Entity Records **View** and **Create**).
|
|
74
|
+
|
|
75
|
+
## Build
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
uip solution init "Feedback"
|
|
79
|
+
cd Feedback
|
|
80
|
+
uip codedapp init ./feedback-app
|
|
81
|
+
# scaffold the React/Vite sources into feedback-app/source (create-web-app.md, Step 3), build output in source/dist
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### Declare the resources
|
|
85
|
+
|
|
86
|
+
Write `feedback-app/bindings_v2.json` (the project root, next to `source/`), one entry per resource:
|
|
87
|
+
|
|
88
|
+
```json
|
|
89
|
+
{
|
|
90
|
+
"version": "2.0",
|
|
91
|
+
"resources": [
|
|
92
|
+
{
|
|
93
|
+
"resource": "entity",
|
|
94
|
+
"key": "EventFeedback",
|
|
95
|
+
"value": {
|
|
96
|
+
"name": { "defaultValue": "EventFeedback", "isExpression": false, "displayName": "Name" },
|
|
97
|
+
"folderPath": { "defaultValue": ".", "isExpression": false, "displayName": "Folder Path" }
|
|
98
|
+
},
|
|
99
|
+
"metadata": { "BindingsVersion": "2.2" }
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"resource": "process",
|
|
103
|
+
"key": "Summarize.Shared",
|
|
104
|
+
"value": {
|
|
105
|
+
"name": { "defaultValue": "Summarize", "isExpression": false, "displayName": "Name" },
|
|
106
|
+
"folderPath": { "defaultValue": "Shared", "isExpression": false, "displayName": "Folder Path" }
|
|
107
|
+
},
|
|
108
|
+
"metadata": { "BindingsVersion": "2.2" }
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
- `resource` is `process`, `entity` or `bucket`.
|
|
115
|
+
- `key` is `Name.FolderPath` for processes and buckets, and the name alone for entities (folder path `"."`).
|
|
116
|
+
- Then run `uip solution resources refresh` from the solution root to add them to the solution. It reads the file only at the project root.
|
|
117
|
+
|
|
118
|
+
### Call the resources
|
|
119
|
+
|
|
120
|
+
Pass the same name and folder as in `bindings_v2.json`. The SDK sends `Name.FolderPath`, and anything that doesn't match an entry is refused.
|
|
121
|
+
|
|
122
|
+
```ts
|
|
123
|
+
import { UiPath } from '@uipath/uipath-typescript/core';
|
|
124
|
+
import { Entities } from '@uipath/uipath-typescript/entities';
|
|
125
|
+
import { Processes } from '@uipath/uipath-typescript/processes';
|
|
126
|
+
|
|
127
|
+
const sdk = new UiPath();
|
|
128
|
+
await sdk.initialize(); // no sign-in in public mode
|
|
129
|
+
await new Entities(sdk).insertRecord({ name: 'EventFeedback' }, { guestName, comment });
|
|
130
|
+
await new Processes(sdk).start({ name: 'Summarize' }, { folderPath: 'Shared', inputArguments: JSON.stringify({ text }) });
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
`uipath.json` goes into the build output (Vite: `source/public/uipath.json`, so it lands in `source/dist`). It must list the scopes the app needs, and the access mode of each resource it reads:
|
|
134
|
+
|
|
135
|
+
```json
|
|
136
|
+
{
|
|
137
|
+
"scope": "OR.Execution DataFabric.Data.Read DataFabric.Data.Write",
|
|
138
|
+
"access": [{ "resource": "entity", "key": "EventFeedback", "mode": "session" }]
|
|
139
|
+
}
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
`key` is the same key as in `bindings_v2.json`.
|
|
143
|
+
|
|
144
|
+
Then:
|
|
145
|
+
|
|
146
|
+
```bash
|
|
147
|
+
(cd feedback-app/source && npm run build) # checks it compiles; pack also builds it
|
|
148
|
+
uip solution resources refresh
|
|
149
|
+
uip solution pack . ./output --version 1.0.0
|
|
150
|
+
uip solution publish ./output/Feedback_1.0.0.zip
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
Wait for `publish` to finish before deploying or upgrading.
|
|
154
|
+
|
|
155
|
+
## Run locally
|
|
156
|
+
|
|
157
|
+
`@uipath/coded-apps-dev` runs the app as a public app on the developer's machine, with the same access rules as after deploy. It works with the Vite and webpack dev servers.
|
|
158
|
+
|
|
159
|
+
1. Point the plugin at the app's `uipath.json` and add the local-run fields to it (they are not secrets):
|
|
160
|
+
```ts
|
|
161
|
+
// vite.config.ts
|
|
162
|
+
plugins: [react(), uipathCodedApps({ configPath: 'public/uipath.json' })]
|
|
163
|
+
```
|
|
164
|
+
```json
|
|
165
|
+
{ "orgName": "<org>", "tenantName": "<tenant>", "baseUrl": "https://cloud.uipath.com", "scope": "...", "access": [...] }
|
|
166
|
+
```
|
|
167
|
+
2. Ask the user to create `source/.env.local` themselves (never write the secret yourself), and check `.env.local` is gitignored:
|
|
168
|
+
```bash
|
|
169
|
+
UIPATH_PUBLIC_APP=true
|
|
170
|
+
UIPATH_PUBLIC_APP_CLIENT_ID=<external app id>
|
|
171
|
+
UIPATH_PUBLIC_APP_CLIENT_SECRET=<client secret>
|
|
172
|
+
UIPATH_PUBLIC_APP_FOLDER_KEY=<folder key> # optional: the folder for resources declared without a folder
|
|
173
|
+
```
|
|
174
|
+
3. `npm run dev`, then open the app on `localhost`. To act as a second visitor, open it in a private window.
|
|
175
|
+
|
|
176
|
+
Locally, resources use the name and folder in `bindings_v2.json` (solution overrides apply only after deploy), and sessions reset when the dev server restarts. The external application needs a role in the folders that hold the resources. Set `UIPATH_PUBLIC_APP=false` to go back to signing in as the developer.
|
|
177
|
+
|
|
178
|
+
## Deploy — Studio Web (preferred)
|
|
179
|
+
|
|
180
|
+
In Studio Web, open the solution → arrow on **Publish** → **Deploy** → pick version, deployment name, location and solution folder → arrow on **Deploy** → **Customize** → in the coded app's settings set `routingName`, `externalClientId` (the confidential external application), `runtimeAuthMode` = `application`, and `clientSecret` → continue. The app opens at `https://<org>.uipath.host/<routingName>`.
|
|
181
|
+
|
|
182
|
+
## Deploy — CLI
|
|
183
|
+
|
|
184
|
+
```bash
|
|
185
|
+
uip solution deploy config get "Feedback" -d config.json
|
|
186
|
+
uip solution deploy config set config.json feedback-app routingName feedback --output-filter Property
|
|
187
|
+
uip solution deploy config set config.json feedback-app externalClientId "<external app id>" --output-filter Property
|
|
188
|
+
uip solution deploy config set config.json feedback-app runtimeAuthMode application --output-filter Property
|
|
189
|
+
uip solution deploy config set config.json feedback-app clientSecret "$APP_CLIENT_SECRET" --output-filter Property
|
|
190
|
+
uip solution deploy run -n "Feedback" --package-name "Feedback" --package-version 1.0.0 \
|
|
191
|
+
--folder-name "Feedback" --parent-folder-path "Shared" --config-file config.json
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
Keep `config.json` out of source control (it holds the secret). `runtimeAuthMode application` is what makes the app public; the same package deploys as a sign-in app with `user`.
|
|
195
|
+
|
|
196
|
+
## Upgrade and secret rotation
|
|
197
|
+
|
|
198
|
+
```bash
|
|
199
|
+
uip solution pack . ./output --version 1.0.1 && uip solution publish ./output/Feedback_1.0.1.zip
|
|
200
|
+
uip solution deploy upgrade <deployment key> --version 1.0.1 # add --discard-draft if a stale draft blocks it
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
The upgrade keeps the stored secret **and its scope** (a changed `scope` in `uipath.json` does not apply to a running deployment). To rotate the secret: Orchestrator → the deployment folder → **Apps** → ⋮ → **Edit** → client secret. It is checked when you save.
|
|
204
|
+
|
|
205
|
+
## Troubleshooting
|
|
206
|
+
|
|
207
|
+
| Symptom | Cause |
|
|
208
|
+
|---|---|
|
|
209
|
+
| `ValidationError`, no request sent | Call not supported in public mode (rule 3) |
|
|
210
|
+
| 403 on every call | Resource not in `bindings_v2.json`, name or folder in the code doesn't match its entry, or not connected at deploy |
|
|
211
|
+
| 403 `Missing permissions: EntityRecords.Create` | External application has no role in the deployment folder |
|
|
212
|
+
| 403 on a list call | The entity is in `session` mode |
|
|
213
|
+
| 404 reading a record or job output | Another visitor added it, or the visitor is in a new session |
|
|
214
|
+
| `invalid_client` or `invalid_scope` on every call | Wrong secret, a scope missing on the external application, or `uipath.json` missing from `source/dist` |
|
|
215
|
+
| Upgrade 404 | Version not published yet |
|
|
216
|
+
| 401 on every call in one browser only | The browser blocks third-party cookies; allow them for the app, or try another browser |
|
|
217
|
+
| Deploy screen does not list the external application | It is not confidential; or deploy with the CLI |
|
|
218
|
+
| Local run: `answers only to pages served from localhost` | Open the app on `localhost` or `127.0.0.1`, not a network address |
|
package/version-manifest.json
CHANGED