@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,6 +1,6 @@
1
1
  import {
2
2
  Path
3
- } from "./packager-tool-0d7tcvg1.js";
3
+ } from "./packager-tool-b1xs6aty.js";
4
4
 
5
5
  // ../packager/packager-tool-flow/src/maestro-automate.ts
6
6
  var SENTINEL_FILE_NAME = ".maestro_automate";
@@ -0,0 +1,342 @@
1
+ // ../../node_modules/@uipath/resource-builder-sdk/dist/serialization/json-serializer-names.js
2
+ var JsonSerializerNames = {
3
+ DefaultCaseInsensitive: "DefaultCaseInsensitive",
4
+ CaseInsensitive: "CaseInsensitive",
5
+ Indented: "Indented",
6
+ CamelCase: "CamelCase",
7
+ CaseInsensitiveIndented: "CaseInsensitiveIndented",
8
+ IndentedIgnoreNull: "IndentedIgnoreNull",
9
+ PreservePropertyNames: "PreservePropertyNames",
10
+ CamelCaseIndented: "CamelCaseIndented",
11
+ AllNames: [
12
+ "DefaultCaseInsensitive",
13
+ "CaseInsensitive",
14
+ "Indented",
15
+ "CamelCase",
16
+ "CaseInsensitiveIndented",
17
+ "IndentedIgnoreNull",
18
+ "PreservePropertyNames",
19
+ "CamelCaseIndented"
20
+ ]
21
+ };
22
+
23
+ // ../../node_modules/@uipath/resource-builder-sdk/dist/serialization/json-serializer.js
24
+ class JsonSerializer {
25
+ serialize(value) {
26
+ if (value == null)
27
+ return null;
28
+ let toSerialize = value;
29
+ if (this.options.ignoreNull)
30
+ toSerialize = this.removeNullValues(value);
31
+ if (this.options.camelCase && !this.options.preservePropertyNames)
32
+ toSerialize = this.toCamelCase(toSerialize);
33
+ if (this.options.enumCamelCase !== false)
34
+ toSerialize = this.convertEnumValuesToCamelCase(toSerialize);
35
+ const json = JSON.stringify(toSerialize, null, this.options.indented ? 2 : undefined);
36
+ return json;
37
+ }
38
+ async serializeAsync(stream, value, cancellationToken) {
39
+ cancellationToken?.throwIfAborted?.();
40
+ const json = this.serialize(value);
41
+ if (json === null)
42
+ return;
43
+ const writer = stream.getWriter();
44
+ try {
45
+ const bytes = this.encoder.encode(json);
46
+ await writer.write(bytes);
47
+ } finally {
48
+ writer.releaseLock();
49
+ }
50
+ }
51
+ serializeToUtf8Bytes(value) {
52
+ const json = this.serialize(value);
53
+ if (json === null)
54
+ return new Uint8Array(0);
55
+ return this.encoder.encode(json);
56
+ }
57
+ deserialize(value) {
58
+ if (value == null || value === "")
59
+ return null;
60
+ try {
61
+ let cleanValue = value.charCodeAt(0) === 65279 ? value.slice(1) : value;
62
+ if (cleanValue.charCodeAt(cleanValue.length - 1) === 26)
63
+ cleanValue = cleanValue.slice(0, -1);
64
+ const parsed = JSON.parse(cleanValue);
65
+ return parsed;
66
+ } catch {
67
+ return null;
68
+ }
69
+ }
70
+ deserializeAsType(value, _type) {
71
+ return this.deserialize(value);
72
+ }
73
+ removeNullValues(obj) {
74
+ if (obj == null)
75
+ return obj;
76
+ if (Array.isArray(obj))
77
+ return obj.map((item) => this.removeNullValues(item));
78
+ if (typeof obj == "object") {
79
+ const result = {};
80
+ for (const [key, val] of Object.entries(obj))
81
+ if (val != null)
82
+ result[key] = this.removeNullValues(val);
83
+ return result;
84
+ }
85
+ return obj;
86
+ }
87
+ toCamelCase(obj) {
88
+ if (obj == null)
89
+ return obj;
90
+ if (Array.isArray(obj))
91
+ return obj.map((item) => this.toCamelCase(item));
92
+ if (typeof obj == "object") {
93
+ const result = {};
94
+ for (const [key, val] of Object.entries(obj)) {
95
+ const camelKey = key.charAt(0).toLowerCase() + key.slice(1);
96
+ result[camelKey] = this.toCamelCase(val);
97
+ }
98
+ return result;
99
+ }
100
+ return obj;
101
+ }
102
+ convertEnumValuesToCamelCase(obj, className) {
103
+ if (obj == null)
104
+ return obj;
105
+ if (typeof obj == "string")
106
+ return this.tryConvertEnumStringToCamelCase(obj, undefined, undefined);
107
+ if (Array.isArray(obj))
108
+ return obj.map((item) => this.convertEnumValuesToCamelCase(item, className));
109
+ if (typeof obj == "object") {
110
+ const result = {};
111
+ const currentClassName = obj.constructor?.name !== "Object" ? obj.constructor.name : className;
112
+ for (const [key, val] of Object.entries(obj))
113
+ if (typeof val == "string")
114
+ result[key] = this.tryConvertEnumStringToCamelCase(val, currentClassName, key);
115
+ else if (Array.isArray(val))
116
+ result[key] = val.map((item) => {
117
+ if (typeof item == "string")
118
+ return this.tryConvertEnumStringToCamelCase(item, currentClassName, key);
119
+ return this.convertEnumValuesToCamelCase(item, currentClassName);
120
+ });
121
+ else
122
+ result[key] = this.convertEnumValuesToCamelCase(val, currentClassName);
123
+ return result;
124
+ }
125
+ return obj;
126
+ }
127
+ tryConvertEnumStringToCamelCase(value, className, propertyName) {
128
+ if (this.camelCaseEnumProperties.size > 0) {
129
+ if (!propertyName || !this.isKnownCamelCaseEnum(className, propertyName))
130
+ return value;
131
+ } else if (propertyName && this.isInPropertySet(this.pascalCaseEnumProperties, className, propertyName))
132
+ return value;
133
+ if (/^[A-Z][a-zA-Z0-9]*$/.test(value))
134
+ return value.charAt(0).toLowerCase() + value.slice(1);
135
+ return value;
136
+ }
137
+ isKnownCamelCaseEnum(className, propertyName) {
138
+ if (this.isInPropertySet(this.pascalCaseEnumProperties, className, propertyName))
139
+ return false;
140
+ return this.isInPropertySet(this.camelCaseEnumProperties, className, propertyName);
141
+ }
142
+ isInPropertySet(propertySet, className, propertyName) {
143
+ if (className && propertySet.has(`${className}.${propertyName}`))
144
+ return true;
145
+ return propertySet.has(propertyName);
146
+ }
147
+ constructor(options = {}) {
148
+ this.isContextBased = false;
149
+ this.encoder = new TextEncoder;
150
+ this.options = options;
151
+ this.camelCaseEnumProperties = new Set(options.camelCaseEnumProperties ?? []);
152
+ this.pascalCaseEnumProperties = new Set(options.pascalCaseEnumProperties ?? []);
153
+ }
154
+ }
155
+
156
+ // ../../node_modules/@uipath/resource-builder-sdk/dist/serialization/pascal-case-enum-properties.js
157
+ var CAMEL_CASE_ENUM_PROPERTIES = [
158
+ "scope",
159
+ "replaceOption",
160
+ "lookupStrategy",
161
+ "folderType"
162
+ ];
163
+ var SHARED_CORE_ABSTRACTIONS_PASCAL_CASE_PROPERTIES = [
164
+ "propertyCategory"
165
+ ];
166
+ var RESOURCE_BUILDER_PASCAL_CASE_PROPERTIES = [
167
+ "ValidationState.errorSeverity",
168
+ "ValidationState.errorType",
169
+ "AddOrUpdateResourceToSolutionResponse.status",
170
+ "Overwrite.type",
171
+ "OverwriteValidationError.severity",
172
+ "ProjectResourceDescriptor.provisionType"
173
+ ];
174
+ var PASCAL_CASE_ENUM_PROPERTIES = [
175
+ ...SHARED_CORE_ABSTRACTIONS_PASCAL_CASE_PROPERTIES,
176
+ ...RESOURCE_BUILDER_PASCAL_CASE_PROPERTIES
177
+ ];
178
+
179
+ // ../../node_modules/@uipath/resource-builder-sdk/dist/serialization/json-serializer-factory.js
180
+ class JsonSerializerFactory {
181
+ get() {
182
+ return this.defaultSerializer;
183
+ }
184
+ getByName(name) {
185
+ if (!name)
186
+ return this.defaultSerializer;
187
+ let serializer = this.namedSerializers.get(name);
188
+ if (!serializer) {
189
+ serializer = this.createNamedSerializer(name);
190
+ this.namedSerializers.set(name, serializer);
191
+ }
192
+ return serializer;
193
+ }
194
+ initializePredefinedSerializers() {
195
+ for (const name of JsonSerializerNames.AllNames)
196
+ this.namedSerializers.set(name, this.createNamedSerializer(name));
197
+ }
198
+ createNamedSerializer(name) {
199
+ const options = this.createOptionsForName(name);
200
+ return new JsonSerializer(options);
201
+ }
202
+ createOptionsForName(name) {
203
+ const options = {
204
+ ...this.baseOptions
205
+ };
206
+ switch (name) {
207
+ case JsonSerializerNames.DefaultCaseInsensitive:
208
+ return {
209
+ caseInsensitive: true
210
+ };
211
+ case JsonSerializerNames.CaseInsensitive:
212
+ options.caseInsensitive = true;
213
+ break;
214
+ case JsonSerializerNames.Indented:
215
+ options.indented = true;
216
+ break;
217
+ case JsonSerializerNames.CamelCase:
218
+ options.camelCase = true;
219
+ break;
220
+ case JsonSerializerNames.CaseInsensitiveIndented:
221
+ options.caseInsensitive = true;
222
+ options.indented = true;
223
+ break;
224
+ case JsonSerializerNames.IndentedIgnoreNull:
225
+ options.indented = true;
226
+ options.ignoreNull = true;
227
+ break;
228
+ case JsonSerializerNames.PreservePropertyNames:
229
+ options.preservePropertyNames = true;
230
+ options.camelCase = false;
231
+ break;
232
+ case JsonSerializerNames.CamelCaseIndented:
233
+ options.indented = true;
234
+ options.camelCase = true;
235
+ options.ignoreNull = true;
236
+ break;
237
+ default:
238
+ break;
239
+ }
240
+ return options;
241
+ }
242
+ constructor(options) {
243
+ const defaults = {
244
+ camelCase: true,
245
+ enumCamelCase: true,
246
+ camelCaseEnumProperties: CAMEL_CASE_ENUM_PROPERTIES,
247
+ pascalCaseEnumProperties: PASCAL_CASE_ENUM_PROPERTIES
248
+ };
249
+ this.baseOptions = options ? {
250
+ ...defaults,
251
+ ...options
252
+ } : defaults;
253
+ this.defaultSerializer = new JsonSerializer(this.baseOptions);
254
+ this.namedSerializers = new Map;
255
+ this.initializePredefinedSerializers();
256
+ }
257
+ }
258
+
259
+ // ../../node_modules/@uipath/resource-builder-sdk/dist/serialization/serializer-proxy.js
260
+ class JsonSerializerProxy {
261
+ serialize(value) {
262
+ return this.jsonSerializer.serialize(value);
263
+ }
264
+ serializeAsync(stream, value, cancellationToken) {
265
+ return this.jsonSerializer.serializeAsync(stream, value, cancellationToken);
266
+ }
267
+ serializeToUtf8Bytes(value) {
268
+ return this.jsonSerializer.serializeToUtf8Bytes(value);
269
+ }
270
+ deserialize(value) {
271
+ return this.jsonSerializer.deserialize(value);
272
+ }
273
+ tryDeserializeObject(json) {
274
+ if (!json || json.trim() === "")
275
+ return null;
276
+ try {
277
+ return this.jsonSerializer.isContextBased ? this.jsonSerializer.deserialize(json) : this.caseInsensitiveSerializer.deserialize(json);
278
+ } catch (ex) {
279
+ this.logger.info("Deserialization failed with exception.", ex);
280
+ return null;
281
+ }
282
+ }
283
+ tryDeserialize(value) {
284
+ if (!value || value.trim() === "")
285
+ return [
286
+ false,
287
+ null
288
+ ];
289
+ try {
290
+ const result = this.jsonSerializer.deserialize(value);
291
+ return [
292
+ true,
293
+ result
294
+ ];
295
+ } catch (ex) {
296
+ this.logger.info("Deserialization failed with exception.", ex);
297
+ return [
298
+ false,
299
+ null
300
+ ];
301
+ }
302
+ }
303
+ constructor(jsonSerializerFactory, loggerFactory) {
304
+ this.jsonSerializer = jsonSerializerFactory.get();
305
+ this.caseInsensitiveSerializer = jsonSerializerFactory.getByName(JsonSerializerNames.CaseInsensitive);
306
+ this.logger = loggerFactory.create("JsonSerializerProxy");
307
+ }
308
+ }
309
+
310
+ // ../../node_modules/@uipath/resource-builder-sdk/dist/serialization/stream-serializer.js
311
+ class StreamSerializer {
312
+ async serializeAsync(data, cancellationToken) {
313
+ cancellationToken?.throwIfAborted?.();
314
+ const serializer = this.jsonSerializerFactory.getByName(JsonSerializerNames.PreservePropertyNames);
315
+ const serializedContent = serializer.serialize(data);
316
+ const encoder = new TextEncoder;
317
+ const bytes = serializedContent ? encoder.encode(serializedContent) : new Uint8Array(0);
318
+ let streamClosed = false;
319
+ const stream = new ReadableStream({
320
+ start(controller) {
321
+ controller.enqueue(bytes);
322
+ controller.close();
323
+ streamClosed = true;
324
+ }
325
+ });
326
+ const disposeStream = this.disposeStream;
327
+ return {
328
+ stream,
329
+ dispose() {
330
+ if (disposeStream && !streamClosed)
331
+ stream.cancel().catch(() => {});
332
+ }
333
+ };
334
+ }
335
+ constructor(jsonSerializerFactory, disposeStream = true) {
336
+ this.jsonSerializerFactory = jsonSerializerFactory;
337
+ this.disposeStream = disposeStream;
338
+ }
339
+ }
340
+ export { JsonSerializerNames, JsonSerializer, CAMEL_CASE_ENUM_PROPERTIES, SHARED_CORE_ABSTRACTIONS_PASCAL_CASE_PROPERTIES, RESOURCE_BUILDER_PASCAL_CASE_PROPERTIES, PASCAL_CASE_ENUM_PROPERTIES, JsonSerializerFactory, JsonSerializerProxy, StreamSerializer };
341
+
342
+ //# debugId=B9E68BD7718EF2DB64756E2164756E21
@@ -7,10 +7,7 @@ import {
7
7
  VARIABLE_PATH_SELECTOR_PATTERN,
8
8
  VARS_IDENTIFIER,
9
9
  VARS_PREFIX
10
- } from "./packager-tool-yr3bws42.js";
11
- import {
12
- init_esm_shims
13
- } from "./packager-tool-6ejqwbw9.js";
10
+ } from "./packager-tool-vqcnvaae.js";
14
11
  import {
15
12
  FLAT_SEP,
16
13
  JS_EXPRESSION_PREFIX,
@@ -21,7 +18,10 @@ import {
21
18
  isJobAttachmentRef,
22
19
  stripAutoDerivedFieldBindings,
23
20
  templateInterpolationBody
24
- } from "./packager-tool-e8td7b01.js";
21
+ } from "./packager-tool-fvm2dddf.js";
22
+ import {
23
+ init_esm_shims
24
+ } from "./packager-tool-6ejqwbw9.js";
25
25
 
26
26
  // ../../node_modules/@uipath/flow-converter/dist/chunk-KX2HWNFV.js
27
27
  init_esm_shims();
@@ -1080,4 +1080,4 @@ function rewriteStringsDeep(value, fn) {
1080
1080
 
1081
1081
  export { ITERATOR_FIELDS, SCRIPT_TASK_NODE_TYPES, DATA_TRANSFORM_NODE_TYPES, unwrapScriptBody, serializeTemplateInterpolations, transformExpression, serializeExpressionValueAsMappingSource, serializeExpressionValue, transformNodeExpressions, transformEdgeExpression, DEFAULT_AGENT_INPUT_ENCODING, SCHEMA_CONTAINER_MARKER, getContainerChildProps, CONNECTOR_PARAM_BUCKET_KEYS, extractAgentInputName, isCompositeConnectorValue, compositeConnectorInputKey, isSyntheticAgentInputId, collectCompositeConnectorInputs, encodeFlatName, decodeFlatName, rewriteInputTokensToSource, UnresolvedAgentInputTypeError, AmbiguousAgentInputRootError, detectAmbiguousAgentInputRoot, buildAgentInputTypeResolver, canPruneAgentInputs, deriveAgentInputVariables, scanSourceRefsDeep, collectInlineAgentClusterInputs, collectInlineAgentInputsFromAgent, collectArtifactDescendants, mergeCompositeConnectorInputs, deriveMergedAgentInputVariables, preDeriveAgentInputDefinitions, buildDerivedInputDefinition, rewriteStringsDeep };
1082
1082
 
1083
- //# debugId=3F34FC97A81EFC8764756E2164756E21
1083
+ //# debugId=678BEB3000A25CC964756E2164756E21
@@ -1,3 +1,13 @@
1
+ import {
2
+ findNodeDefinition
3
+ } from "./packager-tool-w5a1hhyj.js";
4
+ import {
5
+ catchError
6
+ } from "./packager-tool-6k8s7pt9.js";
7
+ import {
8
+ __require
9
+ } from "./packager-tool-1yh8g550.js";
10
+
1
11
  // src/services/flow-eval-schema/prompts.ts
2
12
  var DEFAULT_EVALUATOR_PROMPT = `As an expert evaluator, analyze the semantic similarity of these JSON contents to determine a score from 0-100. Focus on comparing the meaning and contextual equivalence of corresponding fields, accounting for alternative valid expressions, synonyms, and reasonable variations in language while maintaining high standards for accuracy and completeness. Provide your score with a justification, explaining briefly and concisely why you gave that score.
3
13
  ----
@@ -393,7 +403,119 @@ function evaluatorTypeHasConfigField(typeId, fieldKey) {
393
403
  function evaluatorCanUseSharedExpectedOutput(typeId) {
394
404
  return getEvaluatorTypeDefinition(typeId)?.criteriaFields.some((field) => field.key === "expectedOutput" && field.type === "object") ?? false;
395
405
  }
406
+ // src/services/flow-eval-utils.ts
407
+ function isRecord(value) {
408
+ return typeof value === "object" && value !== null && !Array.isArray(value);
409
+ }
410
+ var UUID_RE = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
411
+ function isUUID(value) {
412
+ return UUID_RE.test(value);
413
+ }
414
+ function stripJsonExt(name) {
415
+ return name.endsWith(".json") ? name.slice(0, -".json".length) : name;
416
+ }
417
+ function slugify(text) {
418
+ const slug = text.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "");
419
+ return slug || "untitled";
420
+ }
421
+ function getEvaluatorRef(evaluator) {
422
+ return stripJsonExt(evaluator.fileName ?? `${evaluator.id}.json`);
423
+ }
424
+ function buildEvaluatorConfig(typeId, options) {
425
+ const evaluatorConfig = {
426
+ name: options.name,
427
+ ...getDefaultConfigForEvaluatorType(typeId)
428
+ };
429
+ if (evaluatorTypeHasConfigField(typeId, "targetOutputKey")) {
430
+ evaluatorConfig.targetOutputKey = options.targetOutputKey ?? "*";
431
+ }
432
+ if (options.model !== undefined) {
433
+ evaluatorConfig.model = options.model;
434
+ }
435
+ if (options.prompt !== undefined) {
436
+ evaluatorConfig.prompt = options.prompt;
437
+ }
438
+ return evaluatorConfig;
439
+ }
440
+ async function validateLoginFields() {
441
+ const { getLoginStatusAsync } = await import("./index-3ts7y9d3.js");
442
+ const [loginError, login] = await catchError(getLoginStatusAsync());
443
+ if (loginError) {
444
+ throw new Error(loginError.message);
445
+ }
446
+ if (login.loginStatus !== "Logged in" || !login.baseUrl) {
447
+ throw new Error("Not logged in. Run 'uip login' first.");
448
+ }
449
+ if (!login.organizationId) {
450
+ throw new Error("Organization ID not available from login.");
451
+ }
452
+ if (!login.tenantId) {
453
+ throw new Error("Tenant ID not available from login.");
454
+ }
455
+ if (!login.tenantName) {
456
+ throw new Error("Tenant name not available from login.");
457
+ }
458
+ if (!login.accessToken) {
459
+ throw new Error("Access token not available from login.");
460
+ }
461
+ return {
462
+ baseUrl: login.baseUrl,
463
+ organizationId: login.organizationId,
464
+ tenantId: login.tenantId,
465
+ tenantName: login.tenantName,
466
+ accessToken: login.accessToken,
467
+ organizationName: login.organizationName || undefined
468
+ };
469
+ }
470
+ async function resolveLoginConfig() {
471
+ const fields = await validateLoginFields();
472
+ if (!fields.organizationName) {
473
+ throw new Error("Organization name not available from login. Required for Studio Web evaluation.");
474
+ }
475
+ return {
476
+ baseUrl: fields.baseUrl,
477
+ organizationId: fields.organizationId,
478
+ tenantId: fields.tenantId,
479
+ tenantName: fields.tenantName,
480
+ authToken: fields.accessToken,
481
+ organizationName: fields.organizationName
482
+ };
483
+ }
484
+ async function resolveEvalApiConfig() {
485
+ const fields = await validateLoginFields();
486
+ return {
487
+ baseUrl: fields.baseUrl,
488
+ organizationId: fields.organizationId,
489
+ tenantName: fields.tenantName,
490
+ tenantId: fields.tenantId,
491
+ authToken: fields.accessToken
492
+ };
493
+ }
494
+ function findMatchingDefinition(nodeType, typeVersion, definitions) {
495
+ const strict = findNodeDefinition(definitions, {
496
+ type: nodeType,
497
+ typeVersion
498
+ });
499
+ if (strict)
500
+ return strict;
501
+ return definitions.find((d) => d.nodeType === nodeType);
502
+ }
503
+ function buildDefaultCriteria(evaluators, expectedOutput, searchText) {
504
+ const criterias = {};
505
+ for (const evaluator of evaluators) {
506
+ const key = evaluator.id;
507
+ if (expectedOutput !== undefined && evaluatorCanUseSharedExpectedOutput(evaluator.evaluatorTypeId)) {
508
+ criterias[key] = { expectedOutput };
509
+ } else if (searchText !== undefined && evaluator.evaluatorTypeId === "uipath-contains") {
510
+ criterias[key] = { searchText };
511
+ } else {
512
+ const defaultCriteria = evaluator.evaluatorConfig.defaultEvaluationCriteria;
513
+ criterias[key] = isRecord(defaultCriteria) ? defaultCriteria : null;
514
+ }
515
+ }
516
+ return criterias;
517
+ }
396
518
 
397
- export { evaluatorTypeAliases, resolveEvaluatorType, getDefaultConfigForEvaluatorType, evaluatorTypeHasConfigField, evaluatorCanUseSharedExpectedOutput };
519
+ export { evaluatorTypeAliases, resolveEvaluatorType, isRecord, isUUID, stripJsonExt, slugify, getEvaluatorRef, buildEvaluatorConfig, resolveLoginConfig, resolveEvalApiConfig, findMatchingDefinition, buildDefaultCriteria };
398
520
 
399
- //# debugId=25565E7CDA9B5A3664756E2164756E21
521
+ //# debugId=6033C3040704269E64756E2164756E21
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  readStdin
3
- } from "./packager-tool-rew0hp2h.js";
3
+ } from "./packager-tool-6k8s7pt9.js";
4
4
  import {
5
5
  getFileSystem
6
6
  } from "./packager-tool-0v3s8r01.js";
@@ -0,0 +1,16 @@
1
+ // ../../node_modules/@uipath/flow-expression-model/node_modules/@uipath/flow-core/dist/chunk-EVM6BVMO.js
2
+ var __defProp = Object.defineProperty;
3
+ var __glob = (map) => (path) => {
4
+ var fn = map[path];
5
+ if (fn)
6
+ return fn();
7
+ throw new Error("Module not found in bundle: " + path);
8
+ };
9
+ var __export = (target, all) => {
10
+ for (var name in all)
11
+ __defProp(target, name, { get: all[name], enumerable: true });
12
+ };
13
+
14
+ export { __glob, __export };
15
+
16
+ //# debugId=3A2F5FBC7A6C56F364756E2164756E21
@@ -0,0 +1,11 @@
1
+ // ../../node_modules/@uipath/flow-core/node_modules/@uipath/flow-schema/dist/chunk-QKQ47GQZ.js
2
+ var __glob = (map) => (path) => {
3
+ var fn = map[path];
4
+ if (fn)
5
+ return fn();
6
+ throw new Error("Module not found in bundle: " + path);
7
+ };
8
+
9
+ export { __glob };
10
+
11
+ //# debugId=CD595A1AF45EBB3464756E2164756E21
@@ -1,9 +1,9 @@
1
- import {
2
- logger
3
- } from "./packager-tool-rew0hp2h.js";
4
1
  import {
5
2
  inMemoryWorkflowToFileFormat
6
- } from "./packager-tool-e8td7b01.js";
3
+ } from "./packager-tool-fvm2dddf.js";
4
+ import {
5
+ logger
6
+ } from "./packager-tool-6k8s7pt9.js";
7
7
 
8
8
  // src/utils/write-resolved-flow.ts
9
9
  async function writeResolvedFlow(fs, dir, name, workflow) {
@@ -15,4 +15,4 @@ async function writeResolvedFlow(fs, dir, name, workflow) {
15
15
 
16
16
  export { writeResolvedFlow };
17
17
 
18
- //# debugId=AE0D61ABCE2DA4C364756E2164756E21
18
+ //# debugId=6009258457D2C62464756E2164756E21