@uipath/flow-tool 1.202.2 → 1.203.0-preview.180

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 (150) hide show
  1. package/dist/THIRD-PARTY-NOTICES.md +48 -49
  2. package/dist/{authoring-cyybnqy9.js → authoring-tv4dh80p.js} +31 -9
  3. package/dist/{binding-service-xq110a7q.js → binding-service-1hjkvp7f.js} +37 -29
  4. package/dist/{connector-service-1jp3gvb1.js → connector-service-f50vt5ar.js} +225 -57
  5. package/dist/{conversion-FQTRFHRX-j8vsrk1c.js → conversion-FQTRFHRX-5bww6cg9.js} +11 -10
  6. package/dist/de-FGHEJRCI-gn4cf5gh.js +2697 -0
  7. package/dist/de-MUJPA4EB-dpg7t2rw.js +173 -0
  8. package/dist/{debug-conversation-trigger-q5jwq1x7.js → debug-conversation-trigger-nmd9v41y.js} +21 -18
  9. package/dist/{debug-http-client-4ev9xna7.js → debug-http-client-53qk6pc5.js} +2 -2
  10. package/dist/{debug-service-2skv6t3q.js → debug-service-nyk0s6mc.js} +3 -3
  11. package/dist/{edge-service-crgn8x3q.js → edge-service-qs0fmj4c.js} +19 -16
  12. package/dist/{index-4b8634za.js → embedded-file-reader-0sjt4nkj.js} +96 -16641
  13. package/dist/{en-TBNO2WUV-rfe87pgh.js → en-BWGKA5OE-1qkvb9rn.js} +2 -2
  14. package/dist/en-FBPVNKFN-dqt573xn.js +138 -0
  15. package/dist/en-TBNO2WUV-9nan43e5.js +1936 -0
  16. package/dist/es-7SE7HX2X-8yh1aj2y.js +173 -0
  17. package/dist/es-KR3ZSNMP-0cszm2n3.js +2697 -0
  18. package/dist/es-MX-2MYFZU7X-3rek4r73.js +173 -0
  19. package/dist/es-MX-XXZJGC4R-b4fbwe9d.js +2697 -0
  20. package/dist/first-party-service-srxaftkn.js +27 -0
  21. package/dist/{flow-api-p1jy8t6k.js → flow-api-f49qbvf6.js} +8 -8
  22. package/dist/{flow-debug-service-gtz48pcs.js → flow-debug-service-nvx6c5fm.js} +65 -40
  23. package/dist/{flow-eval-node-target-d4q72qzz.js → flow-eval-node-target-rv41h6g2.js} +24 -17
  24. package/dist/flow-eval-run-api-1bw5e0k4.js +13 -0
  25. package/dist/{flow-eval-run-service-bteardyh.js → flow-eval-run-service-bnpf0zhb.js} +105 -220
  26. package/dist/{flow-eval-service-8wn40enf.js → flow-eval-service-p0fbctsk.js} +350 -306
  27. package/dist/flow-init-service-6c5tj22g.js +42 -0
  28. package/dist/{flow-io-91tv36v5.js → flow-io-c05c9hc7.js} +18 -15
  29. package/dist/{flow-migrate-service-4mxge029.js → flow-migrate-service-6dky7rrg.js} +27 -23
  30. package/dist/{flow-pack-service-9s7wmwpf.js → flow-pack-service-3ms1t8nv.js} +44 -36
  31. package/dist/flow-validate-service-hq93ye0w.js +65 -0
  32. package/dist/fr-MDFKNZ4C-h4a122k9.js +173 -0
  33. package/dist/fr-Y6NPVODW-q5ef3htr.js +2697 -0
  34. package/dist/{governance-fetcher-kn29e4eb.js → governance-fetcher-7b0a301w.js} +6 -5
  35. package/dist/{headless-my7j1typ.js → headless-rkxtgwts.js} +42909 -1756
  36. package/dist/{hitl-service-fmrkamr4.js → hitl-service-fpdb3tf5.js} +18 -15
  37. package/dist/{index-1kgxzh8x.js → index-3ts7y9d3.js} +15 -3
  38. package/dist/{index-gbfvfhkw.js → index-4hhb8jhe.js} +6 -4
  39. package/dist/{index-apf8q9y0.js → index-51z10z84.js} +4 -4
  40. package/dist/{index-d1yqqk6q.js → index-55cym5j7.js} +6 -4
  41. package/dist/index-kmp9fmhb.js +25 -0
  42. package/dist/index-sc7ddh21.js +16742 -0
  43. package/dist/{index-acd6bpqc.js → index-ymsd3pyx.js} +12 -15
  44. package/dist/index.js +13 -24
  45. package/dist/init.js +23 -19
  46. package/dist/{input-reader-mm2ydeh5.js → input-reader-tw0j373f.js} +1 -1
  47. package/dist/ja-Q5PXKJ2V-tzf2rvz2.js +2697 -0
  48. package/dist/ja-UTQEAP34-8e0q6swp.js +173 -0
  49. package/dist/known-types-8dhhqk35.js +19 -0
  50. package/dist/ko-AXCHW2OK-askct7f6.js +173 -0
  51. package/dist/ko-AYBDSRZG-am0h0m2r.js +2697 -0
  52. package/dist/{maestro-automate-entry-6bxz7zxn.js → maestro-automate-entry-pqy9xqm3.js} +2 -2
  53. package/dist/{node-2ja52fbg.js → node-98psr4wc.js} +2344 -376
  54. package/dist/{node-service-1ygyqaed.js → node-service-yfyzjg1s.js} +37 -29
  55. package/dist/{node-sync-service-a4grwf1e.js → node-sync-service-zq2ptsep.js} +15 -15
  56. package/dist/{packager-tool-nnm6kw3x.js → packager-tool-0egkaa38.js} +1 -1
  57. package/dist/{packager-tool-0hrz9qfd.js → packager-tool-10t52r3c.js} +7 -7
  58. package/dist/{packager-tool-eb48j42f.js → packager-tool-13xbv18n.js} +100 -127
  59. package/dist/{packager-tool-nq4rcqqg.js → packager-tool-1frs4sr4.js} +32 -2
  60. package/dist/{packager-tool-bddj2zb4.js → packager-tool-1r5dnt9q.js} +1 -1
  61. package/dist/{packager-tool-f0kd5kq4.js → packager-tool-26ydwf12.js} +130 -15
  62. package/dist/{packager-tool-9ydywwp2.js → packager-tool-321a1806.js} +1 -1
  63. package/dist/packager-tool-35hg551a.js +1889 -0
  64. package/dist/{packager-tool-2csx1z2z.js → packager-tool-3j8sdsc2.js} +31 -30
  65. package/dist/{packager-tool-kscf0zaz.js → packager-tool-4rvnss1x.js} +15 -56
  66. package/dist/{packager-tool-t6exvxxr.js → packager-tool-5060zp48.js} +2 -2
  67. package/dist/packager-tool-53w8skv5.js +262 -0
  68. package/dist/{packager-tool-rew0hp2h.js → packager-tool-6k8s7pt9.js} +269 -23
  69. package/dist/{packager-tool-29eg86w6.js → packager-tool-6rsegsby.js} +6 -7
  70. package/dist/packager-tool-795gzq9k.js +208 -0
  71. package/dist/packager-tool-7q6z6npd.js +1937 -0
  72. package/dist/{packager-tool-h1mds3r4.js → packager-tool-8dj442ex.js} +5 -4
  73. package/dist/packager-tool-8qp60s20.js +12 -0
  74. package/dist/{packager-tool-114a3x6s.js → packager-tool-9kx94sj5.js} +16 -6
  75. package/dist/packager-tool-asvprb1k.js +3513 -0
  76. package/dist/{packager-tool-0d7tcvg1.js → packager-tool-b1xs6aty.js} +4 -1
  77. package/dist/{packager-tool-nmqwgqp7.js → packager-tool-bzry3t7v.js} +9 -9
  78. package/dist/{packager-tool-nt7g81h7.js → packager-tool-carzh1jy.js} +10 -10
  79. package/dist/packager-tool-d88rqwk8.js +135 -0
  80. package/dist/{packager-tool-pm3qh1hy.js → packager-tool-dh5nppv4.js} +1 -1
  81. package/dist/{packager-tool-r87gxwqa.js → packager-tool-e87tzg4y.js} +2 -2
  82. package/dist/{packager-tool-d0w3423x.js → packager-tool-e9yc5m6b.js} +1 -1
  83. package/dist/packager-tool-fvm2dddf.js +6297 -0
  84. package/dist/{packager-tool-3bra2c4j.js → packager-tool-gctpkdzs.js} +1 -1
  85. package/dist/packager-tool-gdtpsdn7.js +342 -0
  86. package/dist/{packager-tool-aa481g36.js → packager-tool-gpwec9sp.js} +6 -6
  87. package/dist/{packager-tool-a1hbfmws.js → packager-tool-gzpvdcnw.js} +124 -2
  88. package/dist/{packager-tool-03hjxcd7.js → packager-tool-h9d8c9rf.js} +1 -1
  89. package/dist/packager-tool-j78fwwhq.js +16 -0
  90. package/dist/packager-tool-jysvpt8p.js +11 -0
  91. package/dist/{packager-tool-5kd7msdf.js → packager-tool-nsmy7aap.js} +5 -5
  92. package/dist/packager-tool-paq9c70w.js +1332 -0
  93. package/dist/{packager-tool-tv33t02p.js → packager-tool-pszx10r5.js} +310 -13
  94. package/dist/{packager-tool-7qzyj26r.js → packager-tool-r45r9gk6.js} +209 -199
  95. package/dist/{packager-tool-sc5tddfj.js → packager-tool-s0mzv3sx.js} +1 -1
  96. package/dist/{packager-tool-pdg7hwvw.js → packager-tool-t9c77psy.js} +3098 -3179
  97. package/dist/{packager-tool-0880myh2.js → packager-tool-v31s32s4.js} +23 -5
  98. package/dist/{packager-tool-vfb74f9p.js → packager-tool-vbser1d9.js} +7 -7
  99. package/dist/packager-tool-vcjq9xkc.js +1895 -0
  100. package/dist/{packager-tool-w20r6n9v.js → packager-tool-vck7ct1e.js} +2877 -2221
  101. package/dist/{packager-tool-e8td7b01.js → packager-tool-vdc8r21p.js} +10328 -16610
  102. package/dist/{packager-tool-yr3bws42.js → packager-tool-vqcnvaae.js} +15 -15
  103. package/dist/{packager-tool-n7x6kxph.js → packager-tool-w22107ex.js} +8 -8
  104. package/dist/packager-tool-w5a1hhyj.js +13 -0
  105. package/dist/{packager-tool-rmh1jea6.js → packager-tool-xsta8jfz.js} +4 -3
  106. package/dist/packager-tool-yvva2vc5.js +261 -0
  107. package/dist/{packager-tool-9y5am147.js → packager-tool-z185rq2a.js} +4 -4
  108. package/dist/{packager-tool-gbzpz3qn.js → packager-tool-z894s8rx.js} +10 -13
  109. package/dist/packager-tool.js +17 -14
  110. package/dist/pt-3DIO5QWG-59b3f4bc.js +173 -0
  111. package/dist/pt-BR-TKHNHMET-dn6zxk1d.js +2697 -0
  112. package/dist/pt-BR-Y6K6XHXK-mp3hwhw1.js +173 -0
  113. package/dist/pt-ROXU257Y-yd80gx6s.js +2697 -0
  114. package/dist/ro-AVAWPKOO-42m6am1w.js +2697 -0
  115. package/dist/ro-BWR3ONRR-vzx3hy8a.js +173 -0
  116. package/dist/ru-GSCT4ARZ-jrxwev63.js +10 -0
  117. package/dist/ru-WBLQ5B2U-s4em88p0.js +10 -0
  118. package/dist/{serialization-BXU6AKAN-n5b0v0kd.js → serialization-BXU6AKAN-z0vcrhpz.js} +13 -12
  119. package/dist/services/connector-binding-validator.d.ts +10 -1
  120. package/dist/services/definitions-lookup.d.ts +27 -0
  121. package/dist/services/flow-debug-service.d.ts +290 -0
  122. package/dist/services/flow-eval-types.d.ts +2 -2
  123. package/dist/services/flow-eval-utils.d.ts +29 -0
  124. package/dist/services/flow-validate-service.d.ts +39 -0
  125. package/dist/services/node-validators/connector-validator.d.ts +8 -0
  126. package/dist/services/vars-reference-rule.d.ts +113 -13
  127. package/dist/{shared-utils-ka4xn0nn.js → shared-utils-wv356cvj.js} +1 -1
  128. package/dist/tidy-service-cxpm6pcy.js +39 -0
  129. package/dist/tool.js +13 -24
  130. package/dist/tr-5IIHSFW5-hw4cewew.js +173 -0
  131. package/dist/tr-JMIP7ZSL-fb67ft9w.js +2696 -0
  132. package/dist/utils/handle-expansion.d.ts +34 -0
  133. package/dist/utils/write-resolved-flow.d.ts +7 -0
  134. package/dist/validation.js +46 -39
  135. package/dist/{variable-service-caa9axmz.js → variable-service-c1f91388.js} +22 -19
  136. package/dist/{wait-for-flow-job-xtnb6zfc.js → wait-for-flow-job-yp3mhy43.js} +8 -8
  137. package/dist/zh-CN-IFFXSEJS-tke4mzty.js +2697 -0
  138. package/dist/zh-CN-R2KU4U5L-tc1hat59.js +173 -0
  139. package/dist/zh-TW-GNKMELBF-j674515r.js +173 -0
  140. package/dist/zh-TW-IYBNYAMG-wcan0qpb.js +2697 -0
  141. package/package.json +3 -2
  142. package/dist/flow-init-service-a4td40wm.js +0 -38
  143. package/dist/flow-validate-service-bd4zxhfx.js +0 -59
  144. package/dist/known-types-eq32py2n.js +0 -20
  145. package/dist/packager-tool-2wefykg9.js +0 -106
  146. package/dist/packager-tool-7t3rgb7f.js +0 -4945
  147. package/dist/packager-tool-8j92afwp.js +0 -58
  148. package/dist/packager-tool-jjpc0yka.js +0 -304
  149. package/dist/tidy-service-44n8x2mn.js +0 -36
  150. /package/dist/{localization-w8ada88j.js → localization-y790z9vm.js} +0 -0
@@ -1,88 +1,109 @@
1
+ import {
2
+ FlowEvalRunApi
3
+ } from "./packager-tool-795gzq9k.js";
1
4
  import {
2
5
  FlowEvalPathResolver,
3
6
  findEvalSet,
4
7
  getLinkedEvaluators,
5
8
  readStartNodeId,
6
9
  readWorkflowId
7
- } from "./packager-tool-vfb74f9p.js";
10
+ } from "./packager-tool-vbser1d9.js";
8
11
  import {
12
+ findFlowNode,
13
+ formatTriggerIdsHint,
9
14
  readNodeTargetId
10
- } from "./packager-tool-0880myh2.js";
15
+ } from "./packager-tool-v31s32s4.js";
11
16
  import {
12
17
  writeResolvedFlow
13
- } from "./packager-tool-5kd7msdf.js";
18
+ } from "./packager-tool-nsmy7aap.js";
14
19
  import {
15
20
  package_default
16
- } from "./packager-tool-rmh1jea6.js";
17
- import {
18
- isRecord,
19
- isUUID
20
- } from "./packager-tool-8j92afwp.js";
21
+ } from "./packager-tool-xsta8jfz.js";
21
22
  import {
22
23
  ensureProcessBindings
23
- } from "./packager-tool-kscf0zaz.js";
24
+ } from "./packager-tool-4rvnss1x.js";
25
+ import"./packager-tool-t9c77psy.js";
24
26
  import {
25
27
  fileNodesToPackagingNodes,
26
28
  packageInlineAgents,
27
29
  stageInlineAgentPackageFiles,
28
30
  writePackagingArtifactsDetailed
29
- } from "./packager-tool-nmqwgqp7.js";
31
+ } from "./packager-tool-bzry3t7v.js";
30
32
  import {
31
33
  FlowEvalFileStore,
32
34
  ensureDirectory
33
- } from "./packager-tool-bddj2zb4.js";
35
+ } from "./packager-tool-1r5dnt9q.js";
36
+ import"./packager-tool-8dj442ex.js";
37
+ import"./packager-tool-3j8sdsc2.js";
38
+ import"./packager-tool-0egkaa38.js";
39
+ import"./packager-tool-dh5nppv4.js";
34
40
  import"./packager-tool-w0kr4mbc.js";
35
- import"./packager-tool-a1hbfmws.js";
36
- import"./packager-tool-7t3rgb7f.js";
37
- import"./packager-tool-03hjxcd7.js";
38
- import"./packager-tool-h1mds3r4.js";
41
+ import"./packager-tool-35hg551a.js";
42
+ import"./packager-tool-h9d8c9rf.js";
39
43
  import {
40
44
  extractStartEventId,
41
45
  getPersonalFolderInfo,
42
46
  getPersonalFolderKey,
43
47
  patchConnectionOverwrites,
44
48
  prepareForCustomDebug
45
- } from "./packager-tool-114a3x6s.js";
46
- import"./packager-tool-sc5tddfj.js";
47
- import"./packager-tool-2csx1z2z.js";
48
- import"./packager-tool-nnm6kw3x.js";
49
- import"./packager-tool-f0kd5kq4.js";
50
- import"./packager-tool-0gctz400.js";
49
+ } from "./packager-tool-9kx94sj5.js";
50
+ import {
51
+ isRecord,
52
+ isUUID
53
+ } from "./packager-tool-gzpvdcnw.js";
54
+ import"./packager-tool-w5a1hhyj.js";
55
+ import"./packager-tool-s0mzv3sx.js";
56
+ import"./packager-tool-8qp60s20.js";
57
+ import"./packager-tool-26ydwf12.js";
51
58
  import"./packager-tool-qa9gftnj.js";
59
+ import"./packager-tool-0gctz400.js";
52
60
  import"./packager-tool-yc4kw997.js";
53
- import"./packager-tool-pm3qh1hy.js";
54
61
  import {
55
62
  buildSolutionPackageFromDir,
56
63
  getStudioWebSolutionProjects,
57
64
  uploadOrOverwriteSolution
58
- } from "./packager-tool-gbzpz3qn.js";
65
+ } from "./packager-tool-z894s8rx.js";
59
66
  import {
60
67
  findSolutionFile,
61
68
  readUipxFile,
62
69
  updateSolutionFile
63
- } from "./packager-tool-9ydywwp2.js";
70
+ } from "./packager-tool-321a1806.js";
71
+ import"./packager-tool-vck7ct1e.js";
72
+ import"./packager-tool-paq9c70w.js";
64
73
  import {
65
74
  readFlowWorkflow,
66
75
  resolveProjectFlowFile,
67
76
  writeFlowWorkflow
68
- } from "./packager-tool-n7x6kxph.js";
77
+ } from "./packager-tool-w22107ex.js";
69
78
  import {
70
79
  convertFlowToBpmn,
71
80
  replaceExporterVersion,
72
81
  setPublishIntentOnInlineAgents
73
- } from "./packager-tool-7qzyj26r.js";
74
- import"./packager-tool-29eg86w6.js";
82
+ } from "./packager-tool-r45r9gk6.js";
83
+ import"./packager-tool-6rsegsby.js";
75
84
  import {
76
85
  applyRuntimeProfile,
77
86
  resolveRuntimeProfile
78
- } from "./packager-tool-3bra2c4j.js";
87
+ } from "./packager-tool-gctpkdzs.js";
79
88
  import"./packager-tool-2513jrxr.js";
80
- import"./packager-tool-0d7tcvg1.js";
89
+ import"./packager-tool-b1xs6aty.js";
81
90
  import"./packager-tool-nkrmjr3a.js";
91
+ import"./packager-tool-vcjq9xkc.js";
82
92
  import"./packager-tool-rs6jm14d.js";
83
93
  import"./packager-tool-hk1gxnth.js";
84
- import"./packager-tool-aa481g36.js";
85
- import"./packager-tool-yr3bws42.js";
94
+ import"./packager-tool-7q6z6npd.js";
95
+ import"./packager-tool-sc961w0q.js";
96
+ import"./packager-tool-gpwec9sp.js";
97
+ import"./packager-tool-vqcnvaae.js";
98
+ import"./packager-tool-gbgfwx8f.js";
99
+ import"./packager-tool-d88rqwk8.js";
100
+ import"./packager-tool-jysvpt8p.js";
101
+ import {
102
+ inMemoryWorkflowToFileFormat,
103
+ isVoiceAgentNodeType
104
+ } from "./packager-tool-fvm2dddf.js";
105
+ import"./packager-tool-p79yh9ww.js";
106
+ import"./packager-tool-vdc8r21p.js";
86
107
  import"./packager-tool-z83pga0z.js";
87
108
  import"./packager-tool-6ejqwbw9.js";
88
109
  import"./packager-tool-mcaf4ewf.js";
@@ -90,197 +111,14 @@ import"./packager-tool-eypvc2kv.js";
90
111
  import {
91
112
  catchError,
92
113
  logger
93
- } from "./packager-tool-rew0hp2h.js";
114
+ } from "./packager-tool-6k8s7pt9.js";
94
115
  import {
95
116
  getFileSystem
96
117
  } from "./packager-tool-0v3s8r01.js";
97
- import"./packager-tool-w20r6n9v.js";
98
- import"./packager-tool-jjpc0yka.js";
99
- import"./packager-tool-gbgfwx8f.js";
100
- import"./packager-tool-r87gxwqa.js";
101
- import"./packager-tool-sc961w0q.js";
102
- import {
103
- inMemoryWorkflowToFileFormat,
104
- isVoiceAgentNodeType
105
- } from "./packager-tool-e8td7b01.js";
106
- import"./packager-tool-p79yh9ww.js";
107
118
  import"./packager-tool-4mna26cc.js";
108
119
  import"./packager-tool-c23zrhj8.js";
109
120
  import"./packager-tool-1yh8g550.js";
110
121
 
111
- // src/services/flow-eval-run-readers.ts
112
- function asRecordArray(value, label) {
113
- if (!Array.isArray(value)) {
114
- throw new Error(`${label} response must be an array`);
115
- }
116
- return value.map((item, index) => {
117
- if (!isRecord(item)) {
118
- throw new Error(`${label} response item ${index} must be an object`);
119
- }
120
- return item;
121
- });
122
- }
123
- function readRecord(value) {
124
- return isRecord(value) ? value : undefined;
125
- }
126
- function readRecordArray(value) {
127
- if (!Array.isArray(value)) {
128
- return;
129
- }
130
- return value.filter(isRecord);
131
- }
132
- function optionalNumber(value) {
133
- return typeof value === "number" ? value : null;
134
- }
135
- function optionalString(value) {
136
- return typeof value === "string" ? value : "";
137
- }
138
- function statusString(value) {
139
- if (typeof value === "string") {
140
- return value;
141
- }
142
- if (typeof value === "number") {
143
- const statusByCode = {
144
- 0: "Pending",
145
- 1: "Running",
146
- 2: "Completed",
147
- 3: "PartiallyCompleted",
148
- 4: "Failed"
149
- };
150
- return statusByCode[value] ?? String(value);
151
- }
152
- return "";
153
- }
154
- function readEvaluatorScores(value) {
155
- const records = readRecordArray(value);
156
- if (!records) {
157
- return null;
158
- }
159
- return records.flatMap((score) => {
160
- const evaluatorId = score.evaluatorId;
161
- const scoreValue = score.value;
162
- if (typeof evaluatorId !== "string" || typeof scoreValue !== "number") {
163
- return [];
164
- }
165
- return [{ evaluatorId, value: scoreValue }];
166
- });
167
- }
168
- function readRemoteEvalSetRun(record) {
169
- return {
170
- id: optionalString(record.id),
171
- workloadId: optionalString(record.workloadId),
172
- evalSetId: typeof record.evalSetId === "string" ? record.evalSetId : null,
173
- status: statusString(record.status),
174
- score: optionalNumber(record.score),
175
- evaluatorScores: readEvaluatorScores(record.evaluatorScores),
176
- config: readRecord(record.config) ?? {},
177
- numberOfEvalsExecuted: optionalNumber(record.numberOfEvalsExecuted),
178
- durationMilliseconds: optionalNumber(record.durationMilliseconds),
179
- createdAt: optionalString(record.createdAt),
180
- updatedAt: optionalString(record.updatedAt)
181
- };
182
- }
183
- function readRemoteEvalRun(record) {
184
- const snapshot = readRecord(record.evalSnapshot);
185
- const result = readRecord(record.result);
186
- return {
187
- id: optionalString(record.id),
188
- evalSetRunId: optionalString(record.evalSetRunId),
189
- evalSnapshot: snapshot ? {
190
- id: typeof snapshot.id === "string" ? snapshot.id : undefined,
191
- name: typeof snapshot.name === "string" ? snapshot.name : undefined,
192
- inputs: readRecord(snapshot.inputs),
193
- evaluationCriterias: readRecord(snapshot.evaluationCriterias),
194
- expectedOutput: readRecord(snapshot.expectedOutput) ?? (snapshot.expectedOutput === null ? null : undefined)
195
- } : undefined,
196
- status: statusString(record.status),
197
- result: result ? {
198
- output: readRecord(result.output),
199
- scores: readEvaluatorScores(result.scores) ?? undefined,
200
- score: readRecord(result.score)
201
- } : null,
202
- completionMetrics: readRecord(record.completionMetrics),
203
- evaluatorRuns: readRecordArray(record.evaluatorRuns)?.flatMap((evaluatorRun) => {
204
- const evaluatorId = evaluatorRun.evaluatorId;
205
- if (typeof evaluatorId !== "string") {
206
- return [];
207
- }
208
- const evaluatorResult = readRecord(evaluatorRun.result);
209
- return [
210
- {
211
- evaluatorId,
212
- evaluatorSnapshot: evaluatorRun.evaluatorSnapshot,
213
- status: typeof evaluatorRun.status === "string" ? evaluatorRun.status : undefined,
214
- result: evaluatorResult ? {
215
- output: readRecord(evaluatorResult.output),
216
- score: readRecord(evaluatorResult.score)
217
- } : null,
218
- completionMetrics: readRecord(evaluatorRun.completionMetrics)
219
- }
220
- ];
221
- }),
222
- error: typeof record.error === "string" || isRecord(record.error) ? record.error : null,
223
- errorMessage: typeof record.errorMessage === "string" ? record.errorMessage : null,
224
- createdAt: typeof record.createdAt === "string" ? record.createdAt : undefined,
225
- updatedAt: typeof record.updatedAt === "string" ? record.updatedAt : undefined
226
- };
227
- }
228
-
229
- // src/services/flow-eval-run-api.ts
230
- class FlowEvalRunApi {
231
- async executeAndEvaluate(config, payload) {
232
- return this.requestJson(config, "/unifiedEvals/workloads/executeAndEvaluate", {
233
- method: "POST",
234
- body: JSON.stringify(payload)
235
- });
236
- }
237
- async listEvalSetRuns(config, workloadId) {
238
- const response = await this.requestJson(config, `/unifiedEvals/workloads/${encodeURIComponent(workloadId)}/evalSetRuns?workloadType=Flow`, { method: "GET" });
239
- return asRecordArray(response, "Eval set runs").map(readRemoteEvalSetRun);
240
- }
241
- async getEvalSetRun(config, workloadId, evalSetRunId) {
242
- const response = await this.requestJson(config, `/unifiedEvals/workloads/${encodeURIComponent(workloadId)}/evalSetRuns/${encodeURIComponent(evalSetRunId)}?workloadType=Flow`, { method: "GET" });
243
- if (!isRecord(response)) {
244
- throw new Error("Eval set run response must be an object");
245
- }
246
- return readRemoteEvalSetRun(response);
247
- }
248
- async getEvalRuns(config, workloadId, evalSetRunId) {
249
- const response = await this.requestJson(config, `/unifiedEvals/workloads/${encodeURIComponent(workloadId)}/evalSetRuns/${encodeURIComponent(evalSetRunId)}/evalRuns?workloadType=Flow`, { method: "GET" });
250
- return asRecordArray(response, "Eval runs").map(readRemoteEvalRun);
251
- }
252
- apiBase(config) {
253
- return `${config.baseUrl}/${config.organizationId}/${config.tenantName}/agentsruntime_/api`;
254
- }
255
- headers(config) {
256
- return {
257
- Authorization: `Bearer ${config.authToken}`,
258
- Accept: "application/json",
259
- "Content-Type": "application/json",
260
- "X-UiPath-Internal-TenantId": config.tenantId,
261
- "X-UiPath-Internal-AccountId": config.organizationId
262
- };
263
- }
264
- async requestJson(config, path, request) {
265
- const response = await fetch(`${this.apiBase(config)}${path}`, {
266
- method: request.method,
267
- headers: {
268
- ...this.headers(config),
269
- ...request.headers
270
- },
271
- body: request.body
272
- });
273
- const text = await response.text();
274
- if (!response.ok) {
275
- throw new Error(`Unified eval API returned ${response.status}: ${text}`);
276
- }
277
- if (!text) {
278
- throw new Error(`Unified eval API returned ${response.status} with empty body`);
279
- }
280
- return JSON.parse(text);
281
- }
282
- }
283
-
284
122
  // src/services/flow-local-workspace-eval-preparer.ts
285
123
  function toForwardSlash(path) {
286
124
  return path.replace(/\\/g, "/");
@@ -632,7 +470,10 @@ class FlowEvalRunContextResolver {
632
470
  throw new Error("Could not resolve Flow project ID. Provide --project-id or run from a project listed in the parent .uipx or SolutionStorage.json file.");
633
471
  }
634
472
  let cloudProjects;
635
- if (projectIdFromUipxManifest && config && solutionId) {
473
+ if (projectIdFromUipxManifest && solutionId) {
474
+ if (!config) {
475
+ throw new Error("The project ID from .uipx is a design-time ID that must be mapped to a cloud project ID. " + "Log in with 'uip login' so the mapping can be resolved.");
476
+ }
636
477
  cloudProjects = await this.fetchCloudProjects(config, solutionId);
637
478
  studioWebProjectId = this.mapDesignIdToCloudProjectId(cloudProjects, studioWebProjectId, this.fs.path.basename(absoluteProjectPath), solutionId);
638
479
  }
@@ -657,7 +498,7 @@ class FlowEvalRunContextResolver {
657
498
  if (!target.solutionId) {
658
499
  throw new Error("Could not resolve solution ID.");
659
500
  }
660
- const shouldPrepareLocalProject = (target.isLocalWorkspace || target.isVsixLocalProject) && !options.projectId && !options.solutionId;
501
+ const shouldPrepareLocalProject = !options.projectId && !options.solutionId;
661
502
  const resolvedIds = shouldPrepareLocalProject ? await this.resolvePreparedDebugIds(target, config, options.folderKey) : {
662
503
  studioWebProjectId: target.studioWebProjectId,
663
504
  solutionId: target.solutionId,
@@ -828,12 +669,22 @@ class FlowEvalRunContextResolver {
828
669
  }
829
670
 
830
671
  // src/services/inject-workload-id.ts
672
+ var SIMULATION_STRATEGY_WIRE_VALUES = {
673
+ Llm: 0,
674
+ Static: 2
675
+ };
831
676
  function injectWorkloadId(simulation, defaultWorkloadId) {
677
+ const { childSimulations: rawChildSimulations, ...rest } = simulation;
832
678
  const workloadId = typeof simulation.workloadId === "string" ? simulation.workloadId : defaultWorkloadId;
833
- const childSimulations = Array.isArray(simulation.childSimulations) ? simulation.childSimulations.map((child) => injectWorkloadId(child, workloadId)) : undefined;
679
+ const childSimulations = Array.isArray(rawChildSimulations) ? rawChildSimulations.map((child) => injectWorkloadId(child, workloadId)) : undefined;
680
+ const wireStrategy = SIMULATION_STRATEGY_WIRE_VALUES[simulation.simulationStrategy];
681
+ if (wireStrategy === undefined) {
682
+ throw new Error(`Unknown simulationStrategy "${String(simulation.simulationStrategy)}" on component "${simulation.componentId}". Supported values: ${Object.keys(SIMULATION_STRATEGY_WIRE_VALUES).join(", ")}.`);
683
+ }
834
684
  return {
835
- ...simulation,
685
+ ...rest,
836
686
  workloadId,
687
+ simulationStrategy: wireStrategy,
837
688
  ...childSimulations ? { childSimulations } : {}
838
689
  };
839
690
  }
@@ -876,6 +727,7 @@ class FlowEvalRunService {
876
727
  if (evaluators.length === 0) {
877
728
  throw new Error("No evaluators found for this evaluation set. Add evaluators first.");
878
729
  }
730
+ await this.validateEvalTarget(absoluteProjectPath, evalSet, options.entryPoint);
879
731
  const { context } = await this.resolveRemoteEvalContext(absoluteProjectPath, setIdOrName, config, options);
880
732
  const response = await this.api.executeAndEvaluate(config, {
881
733
  workloadId: context.workloadId,
@@ -951,6 +803,39 @@ class FlowEvalRunService {
951
803
  }
952
804
  return this.store.readJsonFiles(this.fs.path.join(root, "evaluators"));
953
805
  }
806
+ async validateEvalTarget(projectPath, evalSet, entryPointOverride) {
807
+ const [findError, flowFilePath] = await catchError(this.pathResolver.findFlowFile(projectPath));
808
+ if (findError || !flowFilePath) {
809
+ return;
810
+ }
811
+ const [readError, rawContent] = await catchError(this.fs.readFile(flowFilePath, "utf-8"));
812
+ if (readError) {
813
+ return;
814
+ }
815
+ const flowContent = String(rawContent);
816
+ const nodeTargetId = readNodeTargetId(evalSet);
817
+ if (nodeTargetId !== undefined) {
818
+ const lookup2 = findFlowNode(flowContent, nodeTargetId);
819
+ if (lookup2.flowParsed && !lookup2.node) {
820
+ throw new Error(`Evaluation set "${evalSet.name}" targets agent node "${nodeTargetId}", which no longer exists in the flow. Recreate the set with 'maestro flow eval set add --entry-point <agent-node-id>'.`);
821
+ }
822
+ return;
823
+ }
824
+ const entryPoint = entryPointOverride ?? evalSet.selectedEntrypoint;
825
+ if (entryPoint === undefined) {
826
+ return;
827
+ }
828
+ if (entryPoint.includes("/") || entryPoint.includes("#")) {
829
+ if (entryPointOverride !== undefined) {
830
+ return;
831
+ }
832
+ throw new Error(`Evaluation set "${evalSet.name}" has entry point "${entryPoint}", which is a BPMN path, not a node id — Studio Web cannot resolve the evaluation target.${formatTriggerIdsHint(flowContent)} Recreate the set with 'maestro flow eval set add', or fix its selectedEntrypoint to a trigger node id.`);
833
+ }
834
+ const lookup = findFlowNode(flowContent, entryPoint);
835
+ if (lookup.flowParsed && !lookup.node) {
836
+ throw new Error(`Evaluation set "${evalSet.name}" has entry point "${entryPoint}", which does not match any node in the flow.${formatTriggerIdsHint(flowContent)} Recreate the set with 'maestro flow eval set add', or fix its selectedEntrypoint to a trigger node id.`);
837
+ }
838
+ }
954
839
  async requireEvalSet(projectPath, idOrName) {
955
840
  const evalSet = findEvalSet(await this.listEvalSets(projectPath), idOrName);
956
841
  if (!evalSet) {
@@ -966,4 +851,4 @@ export {
966
851
  FlowEvalRunService
967
852
  };
968
853
 
969
- //# debugId=7572B679388363C264756E2164756E21
854
+ //# debugId=FC57BF288799B83D64756E2164756E21