@uipath/maestro-tool 1.202.0 → 1.202.1

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.
Files changed (42) hide show
  1. package/dist/THIRD-PARTY-NOTICES.md +6 -6
  2. package/dist/{binding-service-9cpz0tqq.js → binding-service-mys9xgtq.js} +8 -6
  3. package/dist/{bpmn-branch-t8b8rfmt.js → bpmn-branch-2ebce3qk.js} +1 -1
  4. package/dist/{connector-service-v4yh0eyv.js → connector-service-3bgm62za.js} +7 -5
  5. package/dist/{debug-conversation-trigger-cayhnvaq.js → debug-conversation-trigger-4wwf0q8y.js} +6 -4
  6. package/dist/{edge-service-a1ebhenc.js → edge-service-xn2a6p72.js} +6 -4
  7. package/dist/{flow-debug-service-5jadwsy2.js → flow-debug-service-yk2d27p1.js} +26 -16
  8. package/dist/{flow-eval-node-target-0pb6zbcd.js → flow-eval-node-target-13ek4f1p.js} +6 -4
  9. package/dist/{flow-eval-run-service-tta4zrh6.js → flow-eval-run-service-86tpst0m.js} +17 -9
  10. package/dist/{flow-eval-service-w4md0ckf.js → flow-eval-service-y6ex6rke.js} +6 -4
  11. package/dist/{flow-init-service-w2p3bwen.js → flow-init-service-mpf8h2rc.js} +14 -6
  12. package/dist/{flow-io-9btcd4zv.js → flow-io-hgw3em5c.js} +6 -4
  13. package/dist/{flow-migrate-service-81x84kjq.js → flow-migrate-service-6j2rpfzt.js} +6 -4
  14. package/dist/{flow-pack-service-med0b4fd.js → flow-pack-service-1gnvp34k.js} +17 -9
  15. package/dist/{flow-validate-service-5npqgneg.js → flow-validate-service-9wjnacww.js} +15 -13
  16. package/dist/{hitl-service-809d7e9f.js → hitl-service-f3zvaq6r.js} +6 -4
  17. package/dist/index.js +2 -2
  18. package/dist/maestro-automate-entry-gwntzkvj.js +22 -0
  19. package/dist/{node-39h6t9g1.js → node-jkh8qtrz.js} +5 -3
  20. package/dist/{node-service-57wz87mt.js → node-service-z7akfnxt.js} +8 -6
  21. package/dist/packager-tool-2513jrxr.js +898 -0
  22. package/dist/{packager-tool-5wpa21t9.js → packager-tool-35rk0942.js} +1 -1
  23. package/dist/{packager-tool-syzagd6j.js → packager-tool-7p56pr16.js} +2 -2
  24. package/dist/packager-tool-7rz102fw.js +53 -0
  25. package/dist/packager-tool-9cq9atem.js +2 -0
  26. package/dist/{packager-tool-jd6h2c82.js → packager-tool-a25ctv7h.js} +1 -1
  27. package/dist/{packager-tool-e01rnrh2.js → packager-tool-ahj646v3.js} +35 -9
  28. package/dist/{packager-tool-t46k3943.js → packager-tool-fs8d9nzm.js} +2 -2
  29. package/dist/{packager-tool-965eyt0n.js → packager-tool-k4x5yn3p.js} +2 -897
  30. package/dist/{packager-tool-01nr6e51.js → packager-tool-m4gbq68e.js} +2 -2
  31. package/dist/{packager-tool-xbg254pp.js → packager-tool-q1227jxk.js} +6 -3
  32. package/dist/{packager-tool-hre2xt0n.js → packager-tool-spgs86me.js} +1 -1
  33. package/dist/{packager-tool-z37jh0t0.js → packager-tool-tb9ea902.js} +1 -1
  34. package/dist/{packager-tool-nxegf0n0.js → packager-tool-wp25zdm0.js} +4 -4
  35. package/dist/packager-tool.js +5 -3
  36. package/dist/{tidy-service-trwrg13b.js → tidy-service-rm7y4dn2.js} +7 -5
  37. package/dist/{tool-g4bdpah8.js → tool-hm0yzjxd.js} +59 -46
  38. package/dist/tool.js +2 -2
  39. package/dist/{variable-service-13g804gy.js → variable-service-25vdpt12.js} +6 -4
  40. package/package.json +2 -2
  41. /package/dist/{localization-v39c1e4y.js → localization-bbsjxbj4.js} +0 -0
  42. /package/dist/{tool-gxc0e75g.js → tool-xpmr8bsy.js} +0 -0
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  readFlowWorkflow,
7
7
  writeFlowWorkflow
8
- } from "./packager-tool-z37jh0t0.js";
8
+ } from "./packager-tool-tb9ea902.js";
9
9
  import {
10
10
  DEFAULT_LAYOUT_OPTIONS,
11
11
  GRID_SPACING,
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  readFlowWorkflow,
3
3
  writeFlowWorkflow
4
- } from "./packager-tool-z37jh0t0.js";
4
+ } from "./packager-tool-tb9ea902.js";
5
5
  import {
6
6
  regenerateBindingsFile
7
- } from "./packager-tool-xbg254pp.js";
7
+ } from "./packager-tool-q1227jxk.js";
8
8
  import {
9
9
  getConnectorInfo,
10
10
  getNode,
@@ -0,0 +1,53 @@
1
+ import {
2
+ Path
3
+ } from "./packager-tool-k4x5yn3p.js";
4
+
5
+ // ../packager/packager-tool-flow/src/maestro-automate.ts
6
+ var SENTINEL_FILE_NAME = ".maestro_automate";
7
+ var RuntimeProfile;
8
+ ((RuntimeProfile2) => {
9
+ RuntimeProfile2["Lite"] = "Lite";
10
+ RuntimeProfile2["Standard"] = "Standard";
11
+ })(RuntimeProfile ||= {});
12
+ async function applyRuntimeProfile(fs, projectDir, profile) {
13
+ const sentinel = Path.join(projectDir, SENTINEL_FILE_NAME);
14
+ if (profile === "Lite" /* Lite */) {
15
+ await fs.writeFile(sentinel, "");
16
+ return;
17
+ }
18
+ if (await fs.exists(sentinel)) {
19
+ await fs.rm(sentinel);
20
+ }
21
+ }
22
+ async function resolveRuntimeProfile(fs, projectDir) {
23
+ const sentinel = Path.join(projectDir, SENTINEL_FILE_NAME);
24
+ return await fs.exists(sentinel) ? "Lite" /* Lite */ : "Standard" /* Standard */;
25
+ }
26
+ function isMaestroAutomateSentinel(fileName) {
27
+ return fileName === SENTINEL_FILE_NAME;
28
+ }
29
+ var PROJECT_FILE_NAME = "project.uiproj";
30
+ async function resolveRuntimeProfileForFlowFile(fs, flowFilePath) {
31
+ const flowDir = Path.dirname(flowFilePath);
32
+ let dir = flowDir;
33
+ for (;; ) {
34
+ if (await fs.exists(Path.join(dir, PROJECT_FILE_NAME))) {
35
+ return resolveRuntimeProfile(fs, dir);
36
+ }
37
+ const parent = Path.dirname(dir);
38
+ if (parent === dir)
39
+ break;
40
+ dir = parent;
41
+ }
42
+ return resolveRuntimeProfile(fs, flowDir);
43
+ }
44
+ function withRuntimeProfile(operateJson, profile) {
45
+ return {
46
+ ...operateJson,
47
+ runtimeOptions: { ...operateJson.runtimeOptions, profile }
48
+ };
49
+ }
50
+
51
+ export { RuntimeProfile, applyRuntimeProfile, resolveRuntimeProfile, isMaestroAutomateSentinel, resolveRuntimeProfileForFlowFile, withRuntimeProfile };
52
+
53
+ //# debugId=A108D59CC9ACB17B64756E2164756E21
@@ -0,0 +1,2 @@
1
+
2
+ //# debugId=91F71A8798BB11D364756E2164756E21
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  collectAgentInputLeaves,
6
6
  isInlineAgentNodeType
7
- } from "./packager-tool-e01rnrh2.js";
7
+ } from "./packager-tool-ahj646v3.js";
8
8
  import {
9
9
  catchError
10
10
  } from "./packager-tool-r7rp3zz3.js";
@@ -2,6 +2,14 @@ import {
2
2
  addBinding,
3
3
  createBinding
4
4
  } from "./packager-tool-tn5e7wnb.js";
5
+ import {
6
+ getFileSystem
7
+ } from "./packager-tool-2513jrxr.js";
8
+ import {
9
+ isMaestroAutomateSentinel,
10
+ resolveRuntimeProfile,
11
+ withRuntimeProfile
12
+ } from "./packager-tool-7rz102fw.js";
5
13
  import {
6
14
  NugetConstants,
7
15
  NugetPackager,
@@ -12,10 +20,9 @@ import {
12
20
  ToolErrorCodes,
13
21
  ToolResult,
14
22
  ensureProjectId,
15
- getFileSystem,
16
23
  toolsFactoryRepository,
17
24
  writeContentOperateFile
18
- } from "./packager-tool-965eyt0n.js";
25
+ } from "./packager-tool-k4x5yn3p.js";
19
26
  import {
20
27
  en_default
21
28
  } from "./packager-tool-rs6jm14d.js";
@@ -5598,11 +5605,12 @@ function assertVoiceAgentDefinitionsEmbedded(bpmn, nodes) {
5598
5605
  // ../packager/packager-tool-flow/package.json
5599
5606
  var package_default = {
5600
5607
  name: "@uipath/packager-tool-flow",
5601
- version: "1.202.0",
5608
+ version: "1.202.1",
5602
5609
  description: "UiPath Flow tool implementation",
5603
5610
  type: "module",
5604
5611
  exports: {
5605
- ".": "./dist/index.js"
5612
+ ".": "./dist/index.js",
5613
+ "./maestro-automate": "./dist/maestro-automate-entry.js"
5606
5614
  },
5607
5615
  repository: {
5608
5616
  type: "git",
@@ -5614,7 +5622,7 @@ var package_default = {
5614
5622
  },
5615
5623
  types: "./dist/index.d.ts",
5616
5624
  scripts: {
5617
- build: "bun build ./src/index.ts --outdir dist --format esm --target browser --external @uipath/filesystem --external @uipath/solutionpackager-tool-core --external @uipath/tool-agent --external @uipath/flow-core --external @uipath/flow-converter --external @uipath/flow-migrations --external @uipath/flow-schema --sourcemap=linked && tsc --emitDeclarationOnly --outDir dist",
5625
+ build: "bun build ./src/index.ts --outdir dist --format esm --target browser --external @uipath/filesystem --external @uipath/solutionpackager-tool-core --external @uipath/tool-agent --external @uipath/flow-core --external @uipath/flow-converter --external @uipath/flow-migrations --external @uipath/flow-schema --sourcemap=linked && bun build ./src/maestro-automate-entry.ts --outdir dist --format esm --target browser --external @uipath/filesystem --external @uipath/solutionpackager-tool-core --sourcemap=linked && tsc --emitDeclarationOnly --outDir dist",
5618
5626
  dev: "bun build ./src/index.ts --outdir dist --format esm --target browser --external @uipath/filesystem --external @uipath/solutionpackager-tool-core --external @uipath/tool-agent --external @uipath/flow-core --external @uipath/flow-converter --external @uipath/flow-migrations --external @uipath/flow-schema --watch",
5619
5627
  test: "vitest run",
5620
5628
  "test:browser": "vitest run --config=vitest.browser.config.ts",
@@ -17701,10 +17709,11 @@ class FlowTool extends ProjectTool {
17701
17709
  this.logger.progress("Resolving process bindings...");
17702
17710
  await this.resolveProcessBindings(contentFolder);
17703
17711
  const projectId = options.projectStorageId ?? await ensureProjectId(options.projectPath, this.fileSystem);
17712
+ const profile = await resolveRuntimeProfile(this.fileSystem, options.projectPath);
17704
17713
  this.logger.progress("Generating packaging artifacts from .flow...");
17705
17714
  await this.generateFlowPackagingArtifacts(contentFolder, projectId, builtAgents);
17706
17715
  this.logger.progress("Creating operate.json file...");
17707
- await this.createOperateFile(contentFolder, projectId);
17716
+ await this.createOperateFile(contentFolder, projectId, profile);
17708
17717
  this.logger.progress("Creating package-descriptor.json file...");
17709
17718
  await this.createPackageDescriptor(localBuildFolder, contentFolder);
17710
17719
  return new ToolResult(ToolErrorCodes.Success, "done", [
@@ -17911,7 +17920,7 @@ class FlowTool extends ProjectTool {
17911
17920
  await this.copyDirectoryContents(sourceEntry, contentFolder);
17912
17921
  }
17913
17922
  } else if (stat?.isFile()) {
17914
- if (entry === "project.uiproj") {
17923
+ if (entry === "project.uiproj" || isMaestroAutomateSentinel(entry)) {
17915
17924
  continue;
17916
17925
  }
17917
17926
  const content = await this.fileSystem.readFile(sourceEntry);
@@ -17938,12 +17947,29 @@ class FlowTool extends ProjectTool {
17938
17947
  }
17939
17948
  }
17940
17949
  }
17941
- async createOperateFile(contentFolder, projectId) {
17950
+ async createOperateFile(contentFolder, projectId, profile) {
17942
17951
  await writeContentOperateFile(this.fileSystem, {
17943
17952
  contentFolder,
17944
17953
  projectId,
17945
17954
  contentType: ProjectTypes.Flow
17946
17955
  });
17956
+ const operatePath = Path.join(contentFolder, NugetConstants.OperateFileName);
17957
+ const raw = await this.fileSystem.readFile(operatePath);
17958
+ if (!raw)
17959
+ return;
17960
+ const text = typeof raw === "string" ? raw : new TextDecoder().decode(raw);
17961
+ let operateJson;
17962
+ try {
17963
+ const parsed = JSON.parse(text);
17964
+ if (parsed === null || typeof parsed !== "object" || Array.isArray(parsed)) {
17965
+ throw new Error("not a JSON object");
17966
+ }
17967
+ operateJson = parsed;
17968
+ } catch (error40) {
17969
+ throw new Error(`Cannot set runtimeOptions.profile: ${NugetConstants.OperateFileName} is ` + `${error40 instanceof Error ? error40.message : String(error40)}. ` + "Fix or delete it and pack again; packaging regenerates a missing one.");
17970
+ }
17971
+ await this.fileSystem.writeFile(operatePath, `${JSON.stringify(withRuntimeProfile(operateJson, profile), null, 2)}
17972
+ `);
17947
17973
  }
17948
17974
  async createPackageDescriptor(localBuildFolder, contentFolder) {
17949
17975
  const descriptorFiles = {};
@@ -17979,4 +18005,4 @@ toolsFactoryRepository.registerProjectToolFactory(new FlowToolFactory);
17979
18005
 
17980
18006
  export { convertFlowToBpmn, buildInlineAgentContract, replaceExporterVersion, registerFlowMigrationsI18n, getMigrationChain, migrateWorkflowToFloor, minimumSupportedVersion, runtimeVersion, runtimeMigrations, checkNodeMigrations, applyNodeMigrations, createFlowRefResolver, resolveWorkflowRefs, resolveAndMigrateWorkflow, canonicalAgentInputPath, collectAgentInputLeaves, readInlineAgentSource, isInlineAgentNodeType, hydrateInlineAgentInputVariables, setPublishIntentOnInlineAgents, operateRuntimeOptions, voiceConvertOptions, assertVoiceAgentDefinitionsEmbedded, FlowToolFactory };
17981
18007
 
17982
- //# debugId=B95A6F833AE5D7D764756E2164756E21
18008
+ //# debugId=EA2D5EA377C8E81864756E2164756E21
@@ -2,7 +2,7 @@
2
2
  var package_default = {
3
3
  name: "@uipath/flow-tool",
4
4
  license: "SEE LICENSE IN LICENSE.txt",
5
- version: "1.202.0",
5
+ version: "1.202.1",
6
6
  description: "Create, debug, and run UiPath Flow projects and jobs.",
7
7
  private: false,
8
8
  repository: {
@@ -74,4 +74,4 @@ var package_default = {
74
74
 
75
75
  export { package_default };
76
76
 
77
- //# debugId=7C653DC3C3BAFD7064756E2164756E21
77
+ //# debugId=4B75EB135AD9F8AE64756E2164756E21