@uipath/packager-tool-workflowcompiler-browser 1.201.0-preview.132 → 1.202.0-preview.134

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/dist/index.js CHANGED
@@ -1123,6 +1123,13 @@ class ProjectBundleExecutor {
1123
1123
  executorInfo.Author = pkg.author ?? "";
1124
1124
  executorInfo.Description = pkg.description ?? "";
1125
1125
  executorInfo.ReleaseNotes = pkg.releaseNotes ?? "";
1126
+ if (context.localSourcePath) {
1127
+ if (onLocalRobot && context.jobTarget?.machineSessionIds?.length) {
1128
+ executorInfo.LocalSourcePath = context.localSourcePath;
1129
+ } else {
1130
+ context.logger?.warn("[BundleExecutor] Dropping localSourcePath: the pack job is not pinned to a local robot machine session.");
1131
+ }
1132
+ }
1126
1133
  }
1127
1134
  if (firstEntry.operation === "Cleanup" /* Cleanup */) {
1128
1135
  executorInfo.DryRun = firstEntry.options.dryRun;
@@ -1290,4 +1297,4 @@ export {
1290
1297
  WorkflowCompilerToolFactory
1291
1298
  };
1292
1299
 
1293
- //# debugId=CCFBB308D750D06C64756E2164756E21
1300
+ //# debugId=C63E75B51006273264756E2164756E21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/packager-tool-workflowcompiler-browser",
3
- "version": "1.201.0-preview.132",
3
+ "version": "1.202.0-preview.134",
4
4
  "description": "UiPath Workflow Compiler tool - browser implementation",
5
5
  "type": "module",
6
6
  "exports": {
@@ -25,8 +25,8 @@
25
25
  "author": "",
26
26
  "license": "ISC",
27
27
  "peerDependencies": {
28
- "@uipath/solutionpackager-tool-core": "1.201.0",
28
+ "@uipath/solutionpackager-tool-core": "1.202.0",
29
29
  "@microsoft/signalr": ">=7 <11"
30
30
  },
31
- "gitHead": "37388a48f899d8f3e7d590f050c5f00485594638"
31
+ "gitHead": "a335728adbdb02f28308e4f55d8936d0b150444b"
32
32
  }
@@ -581,6 +581,24 @@ export class ProjectBundleExecutor implements IProjectBundleExecutor {
581
581
  executorInfo.Author = pkg.author ?? "";
582
582
  executorInfo.Description = pkg.description ?? "";
583
583
  executorInfo.ReleaseNotes = pkg.releaseNotes ?? "";
584
+
585
+ // Lets the agent pack the sources already on its disk instead of
586
+ // downloading the snapshot. Only sent when the job is pinned to
587
+ // specific machine sessions of a local robot: on any other machine
588
+ // the path does not exist and the agent fails setup rather than
589
+ // falling back to the download, so an unpinned job must not carry it.
590
+ if (context.localSourcePath) {
591
+ if (
592
+ onLocalRobot &&
593
+ context.jobTarget?.machineSessionIds?.length
594
+ ) {
595
+ executorInfo.LocalSourcePath = context.localSourcePath;
596
+ } else {
597
+ context.logger?.warn(
598
+ "[BundleExecutor] Dropping localSourcePath: the pack job is not pinned to a local robot machine session.",
599
+ );
600
+ }
601
+ }
584
602
  }
585
603
 
586
604
  if (firstEntry.operation === BundleOperation.Cleanup) {