@uipath/maestro-tool 1.202.0 → 1.202.1-preview.149

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 (60) hide show
  1. package/dist/THIRD-PARTY-NOTICES.md +6 -6
  2. package/dist/{binding-service-9cpz0tqq.js → binding-service-90gq63fk.js} +11 -9
  3. package/dist/{bpmn-branch-t8b8rfmt.js → bpmn-branch-seq3g38m.js} +9 -9
  4. package/dist/{case-debug-studio-web-service-k3hb3zzf.js → case-debug-studio-web-service-3s2gm4ph.js} +1 -1
  5. package/dist/{case-validate-service-tc5fkzzn.js → case-validate-service-dd8y0wxr.js} +1 -1
  6. package/dist/{connector-enrichment-service-eqmw407z.js → connector-enrichment-service-skhjpb93.js} +5 -5
  7. package/dist/{connector-lookup-service-r4wtr37y.js → connector-lookup-service-pm027ejr.js} +2 -2
  8. package/dist/{connector-service-v4yh0eyv.js → connector-service-zb8yry2q.js} +10 -8
  9. package/dist/{connector-task-spec-719etyhq.js → connector-task-spec-6r4bpqrc.js} +5 -5
  10. package/dist/{debug-conversation-trigger-cayhnvaq.js → debug-conversation-trigger-frz0nxfw.js} +6 -4
  11. package/dist/{edge-service-a1ebhenc.js → edge-service-smjr0x4a.js} +6 -4
  12. package/dist/{flow-debug-service-5jadwsy2.js → flow-debug-service-94rny2qh.js} +30 -20
  13. package/dist/{flow-eval-node-target-0pb6zbcd.js → flow-eval-node-target-mjz3y4n3.js} +6 -4
  14. package/dist/{flow-eval-run-service-tta4zrh6.js → flow-eval-run-service-0x0ve92h.js} +21 -13
  15. package/dist/{flow-eval-service-w4md0ckf.js → flow-eval-service-0qvmghme.js} +7 -5
  16. package/dist/{flow-init-service-w2p3bwen.js → flow-init-service-z910d1jn.js} +15 -7
  17. package/dist/{flow-io-9btcd4zv.js → flow-io-2dgsa930.js} +6 -4
  18. package/dist/{flow-migrate-service-81x84kjq.js → flow-migrate-service-2mmfe0jt.js} +6 -4
  19. package/dist/{flow-pack-service-med0b4fd.js → flow-pack-service-hed1mss2.js} +20 -12
  20. package/dist/{flow-validate-service-5npqgneg.js → flow-validate-service-1rndg0qe.js} +19 -17
  21. package/dist/{governance-fetcher-hx85sbpf.js → governance-fetcher-213amv00.js} +2 -2
  22. package/dist/{hitl-service-809d7e9f.js → hitl-service-2favbm26.js} +6 -4
  23. package/dist/{index-4x4kd9c1.js → index-6h21bxp4.js} +3 -3
  24. package/dist/{index-4g3wd82s.js → index-s912m0tn.js} +1 -1
  25. package/dist/index.js +2 -2
  26. package/dist/maestro-automate-entry-gwntzkvj.js +22 -0
  27. package/dist/{maestro-debug-service-5pjy4kp0.js → maestro-debug-service-x2tc3xtp.js} +1 -1
  28. package/dist/{node-service-57wz87mt.js → node-service-7chfwk2z.js} +11 -9
  29. package/dist/{node-sync-service-yfws8zyx.js → node-sync-service-cn2mftd1.js} +2 -2
  30. package/dist/{node-39h6t9g1.js → node-zkst3949.js} +6 -4
  31. package/dist/packager-tool-2513jrxr.js +898 -0
  32. package/dist/{packager-tool-tcz1gmag.js → packager-tool-326mph6b.js} +1 -1
  33. package/dist/{packager-tool-jd6h2c82.js → packager-tool-6htepy1z.js} +1 -1
  34. package/dist/{packager-tool-hre2xt0n.js → packager-tool-79nwbsyv.js} +1 -1
  35. package/dist/packager-tool-7rz102fw.js +53 -0
  36. package/dist/{packager-tool-5wpa21t9.js → packager-tool-8kzq7vv6.js} +1 -1
  37. package/dist/{packager-tool-syzagd6j.js → packager-tool-8z2cdqfy.js} +3 -3
  38. package/dist/packager-tool-9cq9atem.js +2 -0
  39. package/dist/{packager-tool-sfk34qja.js → packager-tool-c5sf5kf5.js} +5 -5
  40. package/dist/{packager-tool-q38dn0kk.js → packager-tool-jmrb6hwa.js} +2 -2
  41. package/dist/{packager-tool-e01rnrh2.js → packager-tool-jxx91b4f.js} +35 -9
  42. package/dist/{packager-tool-965eyt0n.js → packager-tool-k4x5yn3p.js} +2 -897
  43. package/dist/{packager-tool-xbg254pp.js → packager-tool-krqh8e9r.js} +6 -3
  44. package/dist/{packager-tool-01nr6e51.js → packager-tool-m9mwg39m.js} +2 -2
  45. package/dist/{packager-tool-nxegf0n0.js → packager-tool-nknc3eea.js} +4 -4
  46. package/dist/{packager-tool-knzxevgr.js → packager-tool-w2ta2pjy.js} +1 -1
  47. package/dist/{packager-tool-z37jh0t0.js → packager-tool-w6pnwhzr.js} +1 -1
  48. package/dist/{packager-tool-t46k3943.js → packager-tool-wzbd60e7.js} +2 -2
  49. package/dist/{packager-tool-2gg5em7a.js → packager-tool-x9k0wrqe.js} +3 -3
  50. package/dist/{packager-tool-yaxmsr2h.js → packager-tool-ypsmysxh.js} +2 -2
  51. package/dist/packager-tool.js +5 -3
  52. package/dist/{resourcesSyncService-6x7zvt1e.js → resourcesSyncService-dprsf7rb.js} +3 -3
  53. package/dist/{tidy-service-trwrg13b.js → tidy-service-t7k9n3rv.js} +7 -5
  54. package/dist/{tool-gxc0e75g.js → tool-bgw4tqxx.js} +18 -18
  55. package/dist/{tool-g4bdpah8.js → tool-zhyvzfp3.js} +64 -51
  56. package/dist/tool.js +2 -2
  57. package/dist/{trigger-enrichment-service-9ekw9bph.js → trigger-enrichment-service-1brggpht.js} +5 -5
  58. package/dist/{variable-service-13g804gy.js → variable-service-pyg2g339.js} +6 -4
  59. package/package.json +2 -2
  60. /package/dist/{localization-v39c1e4y.js → localization-bbsjxbj4.js} +0 -0
@@ -4,7 +4,7 @@ import {
4
4
  createApiClient,
5
5
  getConnectorActivityMetadataV4,
6
6
  isV4ActivityConfiguration
7
- } from "./packager-tool-q38dn0kk.js";
7
+ } from "./packager-tool-jmrb6hwa.js";
8
8
  import {
9
9
  listKnownSdkNodes
10
10
  } from "./packager-tool-7exrv6w7.js";
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  collectAgentInputLeaves,
6
6
  isInlineAgentNodeType
7
- } from "./packager-tool-e01rnrh2.js";
7
+ } from "./packager-tool-jxx91b4f.js";
8
8
  import {
9
9
  catchError
10
10
  } from "./packager-tool-r7rp3zz3.js";
@@ -5,7 +5,7 @@ import {
5
5
  registerFlowMigrationsI18n,
6
6
  runtimeMigrations,
7
7
  runtimeVersion
8
- } from "./packager-tool-e01rnrh2.js";
8
+ } from "./packager-tool-jxx91b4f.js";
9
9
  import {
10
10
  instance
11
11
  } from "./packager-tool-m5qfverj.js";
@@ -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
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  readFlowWorkflow,
7
7
  writeFlowWorkflow
8
- } from "./packager-tool-z37jh0t0.js";
8
+ } from "./packager-tool-w6pnwhzr.js";
9
9
  import {
10
10
  DEFAULT_LAYOUT_OPTIONS,
11
11
  GRID_SPACING,
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  readFlowWorkflow,
3
3
  writeFlowWorkflow
4
- } from "./packager-tool-z37jh0t0.js";
4
+ } from "./packager-tool-w6pnwhzr.js";
5
5
  import {
6
6
  regenerateBindingsFile
7
- } from "./packager-tool-xbg254pp.js";
7
+ } from "./packager-tool-krqh8e9r.js";
8
8
  import {
9
9
  getConnectorInfo,
10
10
  getNode,
11
11
  isConnectorNode
12
- } from "./packager-tool-tcz1gmag.js";
12
+ } from "./packager-tool-326mph6b.js";
13
13
  import {
14
14
  isKnownSdkNodeType
15
15
  } from "./packager-tool-7exrv6w7.js";
@@ -0,0 +1,2 @@
1
+
2
+ //# debugId=91F71A8798BB11D364756E2164756E21
@@ -7,7 +7,7 @@ import {
7
7
  fetchRawMetadata,
8
8
  fetchTriggerMetadata,
9
9
  normalizeConnectionStatus
10
- } from "./packager-tool-q38dn0kk.js";
10
+ } from "./packager-tool-jmrb6hwa.js";
11
11
  import {
12
12
  BPMN_SPEC,
13
13
  SUPPORTED_UIPATH_EXTENSION_TAGS
@@ -1415,7 +1415,7 @@ Subcommands:
1415
1415
  }
1416
1416
  ];
1417
1417
  registry.command("pull").description(`Pull and sync node data from ${commandPrefix} registry (login first for full registry)`).option("-f, --force", "Force refresh, ignore cache").examples(pullExamples).trackedAction(processContext, async (options) => {
1418
- const { pullNodes } = await import("./node-sync-service-yfws8zyx.js");
1418
+ const { pullNodes } = await import("./node-sync-service-cn2mftd1.js");
1419
1419
  const [error, result] = await catchError(pullNodes({
1420
1420
  force: options.force
1421
1421
  }));
@@ -1461,7 +1461,7 @@ In-solution (--local):
1461
1461
  processContext.exit(1);
1462
1462
  return;
1463
1463
  }
1464
- const { listNodes } = await import("./node-sync-service-yfws8zyx.js");
1464
+ const { listNodes } = await import("./node-sync-service-cn2mftd1.js");
1465
1465
  const [error, tenantNodes] = await catchError(listNodes({ local: options.local }));
1466
1466
  if (error) {
1467
1467
  OutputFormatter.error({
@@ -1569,7 +1569,7 @@ In-solution (--local):
1569
1569
  searchNodeSummariesWithAvailability,
1570
1570
  searchNodes,
1571
1571
  searchNodesWithFilters
1572
- } = await import("./node-sync-service-yfws8zyx.js");
1572
+ } = await import("./node-sync-service-cn2mftd1.js");
1573
1573
  if (options.local) {
1574
1574
  const [searchError2, results2] = await catchError(parsedFilters ? searchNodesWithFilters(keyword, parsedFilters, {
1575
1575
  local: true
@@ -1629,7 +1629,7 @@ Examples:
1629
1629
 
1630
1630
  In-solution (--local):
1631
1631
  cd MySolution/MyFlow && ${cmd} get <node-type> --local`).argument("<node-type>", `Node type identifier — get it from '${cmd} search'`).option("--connection-id <id>", "Connection ID for Integration Service connector node enrichment. Required for connector trigger nodes; optional for connector activity nodes.").option("--local", "Get node from in-solution projects only (requires .uipx in CWD, parent, or grandparent)").examples(getExamples).trackedAction(processContext, async (nodeType, options) => {
1632
- const { getNodeEnriched } = await import("./node-sync-service-yfws8zyx.js");
1632
+ const { getNodeEnriched } = await import("./node-sync-service-cn2mftd1.js");
1633
1633
  const [error, result] = await catchError(getNodeEnriched(nodeType, options.connectionId, {
1634
1634
  local: options.local
1635
1635
  }));
@@ -6240,7 +6240,7 @@ class SessionsApi extends BaseAPI {
6240
6240
  var package_default = {
6241
6241
  name: "@uipath/integrationservice-sdk",
6242
6242
  license: "SEE LICENSE IN LICENSE.txt",
6243
- version: "1.202.0",
6243
+ version: "1.202.0-preview.149",
6244
6244
  repository: {
6245
6245
  type: "git",
6246
6246
  url: "https://github.com/UiPath/cli.git",
@@ -7214,4 +7214,4 @@ function buildTriggerCompactSummary(metadata, operationName) {
7214
7214
  }
7215
7215
  export { ConnectionOperationsApi, ConnectionsApi, ConnectorsApi, ElementsApi, createApiClient, ACTIVITY_VERSION_V4, SUPPORTED_ACTIVITY_VERSIONS, isV4ActivityConfiguration, getConnectorActivityMetadataV4, getEventOperationObjects, normalizeConnectionStatus, FilterNotSupportedError, substituteFilterVariables, MANAGED_HTTP_CONNECTOR_KEY, buildActivityEssentialConfiguration, createConfiguredActivityClient, applySavedFilterTree, assertActivityMetadataResolved, buildManagedHttpEssentialConfiguration, extractMultipartParameters, inlineMultipartFileValues, isListOperation, buildInputMetadata, normalizeHttpMethod, validateIntSvcNode, fetchRawMetadata, buildResourceCompactSummary, fetchTriggerMetadata, buildTriggerCompactSummary };
7216
7216
 
7217
- //# debugId=E275A5FCDEC640FF64756E2164756E21
7217
+ //# debugId=630A583904BBD33664756E2164756E21
@@ -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-preview.149",
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=84EC77B0A7FD53AE64756E2164756E21