@uipath/packager-remote-agent-browser 1.206.0-preview.303 → 1.207.0-preview.305
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 +4 -4
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -7,25 +7,25 @@ Browser tools use this package; consumers don't call it directly:
|
|
|
7
7
|
| Tool package | Factory | Project types |
|
|
8
8
|
|---|---|---|
|
|
9
9
|
| `@uipath/packager-tool-workflowcompiler-browser` | `WorkflowCompilerToolFactory` | Process, Library, Tests, WebApp |
|
|
10
|
-
| `@uipath/packager-tool-functions-browser` | `RemoteFunctionsToolFactory` | Function |
|
|
10
|
+
| `@uipath/packager-tool-functions-browser` | `RemoteFunctionsToolFactory` | Function (JS/TS; Python packs in the browser) |
|
|
11
11
|
| `@uipath/packager-tool-codedapps-browser` | `RemoteCodedAppsToolFactory` | AppV2 |
|
|
12
12
|
|
|
13
13
|
## How it works
|
|
14
14
|
|
|
15
15
|
1. The solution packager calls `packAsync` on every project at once. Each remote tool hands its project to the **shared** `RemoteAgentBundleExecutor` (`getSharedRemoteAgentBundleExecutor`).
|
|
16
|
-
2. The executor waits until every remote project of the operation context has arrived. `RemoteProjectSelector` picks them from the shared tools-factory registry: a project counts when the factory that won its type is marked `delegatesToRemoteAgent`. This holds for pack, validate and cleanup alike.
|
|
16
|
+
2. The executor waits until every remote project of the operation context has arrived. `RemoteProjectSelector` picks them from the shared tools-factory registry: a project counts when the factory that won its type is marked `delegatesToRemoteAgent`. This holds for pack, validate and cleanup alike. A tool that ends up not needing the agent for a project (validate and cleanup for Functions and coded apps, pack for a Python Functions project) calls `skipAsync`, so the job does not wait for it; when every remote project is skipped, no job starts.
|
|
17
17
|
3. It opens the `robotdebug` SignalR hub, then starts **one** job: serverless `api/serverless/jobs`, or `RobotDebug/BeginSession` for a local robot. The command goes in the job's input arguments.
|
|
18
18
|
4. The agent downloads the snapshot, packs each project into `<DesignId>/`, uploads `rpa-packages.zip` to a temporary bucket, and reports `SetExecutionCompleted { BucketId, ArchiveName }`.
|
|
19
19
|
5. The executor downloads the archive named by `ArchiveName` (`rpa-packages.zip` when an older agent does not send it), copies each project's packages into its output folder, and deletes the bucket.
|
|
20
20
|
|
|
21
21
|
## Job payload
|
|
22
22
|
|
|
23
|
-
The agent routes by payload list, not by project type. The session keeps its remote projects in solution order; Function projects go to `FunctionProjects`, coded app (AppV2) projects to `CodedAppProjects`, and the rest (the RPA types `WorkflowCompilerToolFactory` claims) to `RpaProjects`. Each list comes with the field that pins the packager the agent restores, and a list and its version field are sent only when the list has projects; the agent defaults a missing list to empty:
|
|
23
|
+
The agent routes by payload list, not by project type. The session keeps its remote projects in solution order; Function projects that reach the agent (JS/TS only) go to `FunctionProjects`, coded app (AppV2) projects to `CodedAppProjects`, and the rest (the RPA types `WorkflowCompilerToolFactory` claims) to `RpaProjects`. Each list comes with the field that pins the packager the agent restores, and a list and its version field are sent only when the list has projects; the agent defaults a missing list to empty:
|
|
24
24
|
|
|
25
25
|
| Project types | List | Version field |
|
|
26
26
|
|---|---|---|
|
|
27
27
|
| Process, Library, Tests, WebApp | `RpaProjects` | `WorkflowCompilerVersion` |
|
|
28
|
-
| Function | `FunctionProjects` | `FunctionsPackagerVersion` |
|
|
28
|
+
| Function (JS/TS) | `FunctionProjects` | `FunctionsPackagerVersion` |
|
|
29
29
|
| AppV2 (coded apps) | `CodedAppProjects` | `CodedAppsPackagerVersion` |
|
|
30
30
|
|
|
31
31
|
Every payload asks for protocol `2.0`. A new list does not bump the version: an agent that refuses a version fails before it connects to the hub, so the browser would wait with no signal. An agent that does not know a list ignores it and packs the rest. Each project it skipped then fails when the result arrives, because the zip has no `<DesignId>/` folder for it: "The remote agent returned no package for …".
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/packager-remote-agent-browser",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.207.0-preview.305",
|
|
4
4
|
"description": "UiPath Remote Agent bundling for browser packager tools",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"author": "UiPath",
|
|
22
22
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@uipath/solutionpackager-tool-core": "1.
|
|
24
|
+
"@uipath/solutionpackager-tool-core": "1.207.0",
|
|
25
25
|
"@microsoft/signalr": ">=7 <11"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "1600aa89255c37c1b8bc68d9882c3395c1d5bff4"
|
|
28
28
|
}
|