@uipath/flow-tool 1.204.0-preview.249 → 1.204.0-preview.254

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 (49) hide show
  1. package/dist/THIRD-PARTY-NOTICES.md +32 -1
  2. package/dist/{binding-service-e98bkrht.js → binding-service-9t9gqe9c.js} +7 -7
  3. package/dist/{connector-service-rgb2wjw7.js → connector-service-xm05bmhz.js} +7 -7
  4. package/dist/{debug-conversation-trigger-m7s97epd.js → debug-conversation-trigger-mqzrtt1v.js} +2 -2
  5. package/dist/{debug-service-ses9wgn1.js → debug-service-893erynq.js} +4 -2
  6. package/dist/{edge-service-ekfnqych.js → edge-service-rms6p69f.js} +2 -2
  7. package/dist/{flow-api-1hhpnxj1.js → flow-api-kjvpsxhw.js} +2 -2
  8. package/dist/{flow-debug-service-sc52phvv.js → flow-debug-service-3wtns3k7.js} +71 -13
  9. package/dist/{flow-eval-node-target-c10s7zmz.js → flow-eval-node-target-ee6vbq8a.js} +2 -2
  10. package/dist/{flow-eval-run-service-kgjb9bhd.js → flow-eval-run-service-0ne6bjff.js} +10 -10
  11. package/dist/{flow-eval-service-pnnv4qpr.js → flow-eval-service-kbbq3wwq.js} +3 -3
  12. package/dist/{flow-init-service-ahgmc776.js → flow-init-service-cefvmek0.js} +4 -4
  13. package/dist/{flow-io-945g2vmj.js → flow-io-ykx6eb1v.js} +2 -2
  14. package/dist/{flow-migrate-service-vkvgjg72.js → flow-migrate-service-c4hcjfc8.js} +2 -2
  15. package/dist/{flow-pack-service-tqwgmdeg.js → flow-pack-service-6wqe1mj3.js} +11 -11
  16. package/dist/{flow-validate-service-56rr6jce.js → flow-validate-service-5pbh3s4p.js} +11 -11
  17. package/dist/{governance-fetcher-z33h2cws.js → governance-fetcher-fgwewrfq.js} +2 -2
  18. package/dist/{hitl-service-gk605m2e.js → hitl-service-0tct4x3e.js} +2 -2
  19. package/dist/{index-q469t7fj.js → index-tzky1ynd.js} +4 -2
  20. package/dist/index.js +4 -4
  21. package/dist/init.js +4 -4
  22. package/dist/{node-hdb4h7j7.js → node-ey7dteda.js} +2 -2
  23. package/dist/{node-service-vbp7nmym.js → node-service-z8s4nm09.js} +7 -7
  24. package/dist/{node-sync-service-rys57040.js → node-sync-service-ak1wgysc.js} +1 -1
  25. package/dist/{packager-tool-a4tajq66.js → packager-tool-0d375dbz.js} +2 -2
  26. package/dist/{packager-tool-8ja5e9bj.js → packager-tool-2m06764j.js} +4 -4
  27. package/dist/{packager-tool-c3a16tvp.js → packager-tool-2xycknte.js} +1 -1
  28. package/dist/{packager-tool-t7pstjwn.js → packager-tool-4fhedj18.js} +334 -54
  29. package/dist/{packager-tool-y2dxdwcw.js → packager-tool-6c3szt0w.js} +1 -1
  30. package/dist/{packager-tool-8fewc17a.js → packager-tool-8ak76pc3.js} +1 -1
  31. package/dist/{packager-tool-w59vpzfh.js → packager-tool-arbswyqr.js} +1 -1
  32. package/dist/{packager-tool-bev70eyj.js → packager-tool-c4909mw9.js} +22 -11
  33. package/dist/{packager-tool-ebakgxbh.js → packager-tool-c7nmvv5g.js} +2 -2
  34. package/dist/{packager-tool-9g0p6s7h.js → packager-tool-fjcbc1bb.js} +16 -10
  35. package/dist/{packager-tool-a0eqe41x.js → packager-tool-m6abv2vy.js} +1 -1
  36. package/dist/{packager-tool-c7tz09q3.js → packager-tool-n4m8yrm2.js} +23 -18
  37. package/dist/{packager-tool-a99yrh6n.js → packager-tool-peawy22c.js} +17 -3
  38. package/dist/{packager-tool-6wtb3x7j.js → packager-tool-qsa2nf80.js} +74 -58
  39. package/dist/{packager-tool-rv6kdg2x.js → packager-tool-vnwq9t1v.js} +1 -1
  40. package/dist/{packager-tool-hsbn8yr1.js → packager-tool-wq9k7pq8.js} +1 -1
  41. package/dist/{packager-tool-579hedjh.js → packager-tool-zxp4hya4.js} +1 -1
  42. package/dist/packager-tool.js +2 -2
  43. package/dist/services/flow-debug-service.d.ts +30 -0
  44. package/dist/{tidy-service-q8858xdv.js → tidy-service-chs0s9pw.js} +2 -2
  45. package/dist/tool.js +4 -4
  46. package/dist/validation.js +11 -11
  47. package/dist/{variable-service-djjj5ryt.js → variable-service-6ky17hts.js} +2 -2
  48. package/dist/{wait-for-flow-job-jg3a4zvd.js → wait-for-flow-job-d8m6mqb4.js} +2 -2
  49. package/package.json +2 -2
@@ -3,7 +3,7 @@ var package_default = {
3
3
  name: "@uipath/flow-tool",
4
4
  author: "UiPath",
5
5
  license: "SEE LICENSE IN LICENSE.txt",
6
- version: "1.204.0-preview.249",
6
+ version: "1.204.0-preview.254",
7
7
  description: "Create, debug, and run UiPath Flow projects and jobs.",
8
8
  private: false,
9
9
  repository: {
@@ -75,4 +75,4 @@ var package_default = {
75
75
 
76
76
  export { package_default };
77
77
 
78
- //# debugId=39E8FD83E13DD44B64756E2164756E21
78
+ //# debugId=6D69AEEBE0B44D2764756E2164756E21
@@ -672,7 +672,7 @@ var package_default = {
672
672
  name: "@uipath/integrationservice-sdk",
673
673
  author: "UiPath",
674
674
  license: "SEE LICENSE IN LICENSE.txt",
675
- version: "1.204.0-preview.249",
675
+ version: "1.204.0-preview.254",
676
676
  repository: {
677
677
  type: "git",
678
678
  url: "https://github.com/UiPath/cli.git",
@@ -7670,10 +7670,19 @@ async function findSolutionFromCwd() {
7670
7670
  }
7671
7671
  async function readProjectEntryPointIO(projectDir) {
7672
7672
  const fs = getFileSystem();
7673
- const candidates = [
7674
- fs.path.join(projectDir, "entry-points.json"),
7675
- fs.path.join(projectDir, "content", "entry-points.json")
7676
- ];
7673
+ const fromSource = await readEntryPointsFile(fs.path.join(projectDir, "entry-points.json"), fs.path.join(projectDir, "content", "entry-points.json"));
7674
+ if (fromSource)
7675
+ return fromSource;
7676
+ const fromFlow = await readProjectIOFromFlowVariables(projectDir);
7677
+ if (fromFlow)
7678
+ return fromFlow;
7679
+ const fromBuild = await readEntryPointsFile(fs.path.join(projectDir, ".local", "content", "entry-points.json"));
7680
+ if (fromBuild)
7681
+ return fromBuild;
7682
+ return EMPTY_IO;
7683
+ }
7684
+ async function readEntryPointsFile(...candidates) {
7685
+ const fs = getFileSystem();
7677
7686
  for (const filePath of candidates) {
7678
7687
  const [err, content] = await catchError(fs.readFile(filePath, "utf-8"));
7679
7688
  if (err || !content)
@@ -7683,10 +7692,7 @@ async function readProjectEntryPointIO(projectDir) {
7683
7692
  continue;
7684
7693
  return extractIOFromEntryPoints(parsed);
7685
7694
  }
7686
- const fromFlow = await readProjectIOFromFlowVariables(projectDir);
7687
- if (fromFlow)
7688
- return fromFlow;
7689
- return EMPTY_IO;
7695
+ return;
7690
7696
  }
7691
7697
  async function readProjectIOFromFlowVariables(projectDir) {
7692
7698
  const fs = getFileSystem();
@@ -8178,4 +8184,4 @@ async function searchNodesWithFilters(keyword, filters, options) {
8178
8184
 
8179
8185
  export { ACTIVITY_VERSION_V4, isV4ActivityConfiguration, FilterNotSupportedError, substituteFilterVariables, MANAGED_HTTP_CONNECTOR_KEY, buildActivityEssentialConfiguration, createConfiguredActivityClient, applySavedFilterTree, assertActivityMetadataResolved, buildManagedHttpEssentialConfiguration, extractMultipartParameters, inlineMultipartFileValues, isListOperation, buildInputMetadata, normalizeHttpMethod, validateIntSvcNode, isConnectorNode, getConnectorInfo, fetchConnectionInfo, fetchConnectorMetadata, fetchConnectorActivityMetadataV4, pullNodes, pullRemoteNodes, listNodes, searchNodeSummariesWithAvailability, searchNodes, getNode, getNodeEnriched, searchNodesWithFilters };
8180
8186
 
8181
- //# debugId=88EED8DA135F79FC64756E2164756E21
8187
+ //# debugId=EB973E50DAA1B0BD64756E2164756E21
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  collectAgentInputLeaves,
6
6
  isInlineAgentNodeType
7
- } from "./packager-tool-a4tajq66.js";
7
+ } from "./packager-tool-0d375dbz.js";
8
8
  import {
9
9
  isStartEventNode
10
10
  } from "./packager-tool-bhqx9kez.js";
@@ -5,10 +5,10 @@ import {
5
5
  isConnectorWaitForEventType,
6
6
  isEventDrivenConnectorType,
7
7
  readEssentialConfiguration
8
- } from "./packager-tool-hsbn8yr1.js";
8
+ } from "./packager-tool-wq9k7pq8.js";
9
9
  import {
10
10
  checkForwardMigration
11
- } from "./packager-tool-w59vpzfh.js";
11
+ } from "./packager-tool-arbswyqr.js";
12
12
  import {
13
13
  ERROR_SOURCE_PORT,
14
14
  deriveHandleCustomizationSourceOverride,
@@ -29,7 +29,7 @@ import {
29
29
  collectNodeBindingResourceKeys,
30
30
  isProcessNode,
31
31
  resolveProcessTarget
32
- } from "./packager-tool-8ja5e9bj.js";
32
+ } from "./packager-tool-2m06764j.js";
33
33
  import {
34
34
  INLINE_ACTIVITY_SOURCE,
35
35
  INLINE_ACTIVITY_TYPE_PREFIX,
@@ -57,7 +57,7 @@ import {
57
57
  } from "./packager-tool-5nqhxb9e.js";
58
58
  import {
59
59
  resolveProjectFlowFile
60
- } from "./packager-tool-rv6kdg2x.js";
60
+ } from "./packager-tool-vnwq9t1v.js";
61
61
  import {
62
62
  canonicalAgentInputPath,
63
63
  collectAgentInputLeaves,
@@ -67,7 +67,7 @@ import {
67
67
  parseFlowSource,
68
68
  resolveWorkflowRefs,
69
69
  runDesignerRules
70
- } from "./packager-tool-a4tajq66.js";
70
+ } from "./packager-tool-0d375dbz.js";
71
71
  import {
72
72
  AGENT_NODE_TYPES,
73
73
  DECISION_NODE_TYPE,
@@ -234,23 +234,28 @@ function readNodeLabel(node) {
234
234
  return;
235
235
  }
236
236
  function hasConnectorBinding(node) {
237
- const detail = node.inputs?.detail;
238
- if (!detail || typeof detail !== "object" || Array.isArray(detail)) {
237
+ const detail = asRecord(node.inputs?.detail);
238
+ if (!detail)
239
239
  return false;
240
- }
241
- const d = detail;
242
- const authentication = d.authentication;
240
+ const body = asRecord(detail.bodyParameters) ?? {};
241
+ const field = (name) => body[name] ?? detail[name];
242
+ const authentication = field("authentication");
243
243
  if (authentication === "connector") {
244
- const connectionId = d.connectionId;
245
- const targetConnector = d.targetConnector;
246
- return typeof connectionId === "string" && connectionId.length > 0 && connectionId !== "ImplicitConnection" && typeof targetConnector === "string" && targetConnector.length > 0;
244
+ const connectionId = detail.connectionId ?? body.connection;
245
+ const targetConnector = field("targetConnector");
246
+ return isNonEmptyString(connectionId) && connectionId !== "ImplicitConnection" && isNonEmptyString(targetConnector);
247
247
  }
248
248
  if (authentication === "manual") {
249
- const url = d.url;
250
- return typeof url === "string" && url.length > 0;
249
+ return isNonEmptyString(field("url"));
251
250
  }
252
251
  return false;
253
252
  }
253
+ function asRecord(value) {
254
+ return value && typeof value === "object" && !Array.isArray(value) ? value : undefined;
255
+ }
256
+ function isNonEmptyString(value) {
257
+ return typeof value === "string" && value.length > 0;
258
+ }
254
259
  function classifyLabel(label, catalog) {
255
260
  const tokens = tokenize(label);
256
261
  if (tokens.size === 0)
@@ -907,8 +912,8 @@ var ixpNodeValidator = {
907
912
  const outputs = node.outputs ?? {};
908
913
  const base = `nodes[${node.id}]`;
909
914
  const model = inputs.model;
910
- const isNonEmptyString = (v) => typeof v === "string" && v.length > 0;
911
- if (typeof model !== "object" || model === null || Array.isArray(model) || !isNonEmptyString(model.modelName) || !isNonEmptyString(model.folderKey)) {
915
+ const isNonEmptyString2 = (v) => typeof v === "string" && v.length > 0;
916
+ if (typeof model !== "object" || model === null || Array.isArray(model) || !isNonEmptyString2(model.modelName) || !isNonEmptyString2(model.folderKey)) {
912
917
  issues.push({
913
918
  path: `${base}.inputs.model`,
914
919
  severity: "error",
@@ -3501,4 +3506,4 @@ function describeUnsatisfiableJoin(node, finding, graph) {
3501
3506
 
3502
3507
  export { FlowValidateService };
3503
3508
 
3504
- //# debugId=A2D8B7CDA2B08E8464756E2164756E21
3509
+ //# debugId=109FFC78163852D164756E2164756E21
@@ -123,6 +123,20 @@ var TERMINAL_PROJECT_DEBUG_STATUSES = new Set([
123
123
  "creationfailed",
124
124
  "validationfailed"
125
125
  ]);
126
+
127
+ class DebugProvisioningFailedError extends Error {
128
+ status;
129
+ errors;
130
+ constructor(status, errors) {
131
+ super(`Studio Web resource provisioning failed with status ${status}` + (errors.length ? ` (${JSON.stringify(errors)})` : "."));
132
+ this.name = "DebugProvisioningFailedError";
133
+ this.status = status;
134
+ this.errors = errors;
135
+ }
136
+ get isValidationFailure() {
137
+ return this.status.toLowerCase() === "validationfailed";
138
+ }
139
+ }
126
140
  var delay = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
127
141
  async function waitForProjectProvisioning(config, solutionId, sessionId, timeoutMs, pollIntervalMs) {
128
142
  const deadline = Date.now() + timeoutMs;
@@ -141,7 +155,7 @@ async function waitForProjectProvisioning(config, solutionId, sessionId, timeout
141
155
  logger.debug(`Project debug provisioning status: ${info.status ?? "unknown"}`);
142
156
  if (status && TERMINAL_PROJECT_DEBUG_STATUSES.has(status)) {
143
157
  if (status !== "creationsucceeded") {
144
- throw new Error(`Studio Web resource provisioning failed with status ${info.status ?? "unknown"}` + (info.errors?.length ? ` (${JSON.stringify(info.errors)})` : "."));
158
+ throw new DebugProvisioningFailedError(info.status ?? "unknown", info.errors ?? []);
145
159
  }
146
160
  logger.info(`Studio Web resources provisioned${info.folderFullyQualifiedName ? ` in ${info.folderFullyQualifiedName}` : ""}`);
147
161
  return;
@@ -607,6 +621,6 @@ async function patchConnectionOverwrites(config, organizationName, solutionId, s
607
621
  return successCount;
608
622
  }
609
623
 
610
- export { FpsPropertiesInjectionError, injectInlineAgentProcessEntries, injectSolutionProjectProcessEntries, extractStartEventId, getPersonalFolderKey, getPersonalFolderInfo, prepareForCustomDebug, getFolderInfoById, beginDebugSession, DEBUG_MODE_MAP, SIMULATION_MODE_MAP, createDebugInstance, DebugPollTimeoutError, buildPollTimeoutFailureOutput, pollDebugInstanceStatus, fetchDebugInstanceIncidents, DebugVariablesFetchFailedError, fetchDebugInstanceVariables, isFaultedDebugStatus, isSuccessfulDebugStatus, resolveFaultIncidents, buildStudioWebDesignerUrl, uploadAndDebugSolution, patchConnectionOverwrites };
624
+ export { FpsPropertiesInjectionError, injectInlineAgentProcessEntries, injectSolutionProjectProcessEntries, extractStartEventId, getPersonalFolderKey, getPersonalFolderInfo, DebugProvisioningFailedError, prepareForCustomDebug, getFolderInfoById, beginDebugSession, DEBUG_MODE_MAP, SIMULATION_MODE_MAP, createDebugInstance, DebugPollTimeoutError, buildPollTimeoutFailureOutput, pollDebugInstanceStatus, fetchDebugInstanceIncidents, DebugVariablesFetchFailedError, fetchDebugInstanceVariables, isFaultedDebugStatus, isSuccessfulDebugStatus, resolveFaultIncidents, buildStudioWebDesignerUrl, uploadAndDebugSolution, patchConnectionOverwrites };
611
625
 
612
- //# debugId=F817DF346555CDD564756E2164756E21
626
+ //# debugId=0729FB14BB655CB464756E2164756E21