@uipath/agent-tool 0.9.0 → 1.0.0
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.
- package/dist/packager-tool.js +2101 -236
- package/dist/tool.js +68895 -123903
- package/package.json +12 -14
package/dist/packager-tool.js
CHANGED
|
@@ -44,15 +44,1783 @@ var __export = (target, all) => {
|
|
|
44
44
|
};
|
|
45
45
|
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
46
46
|
|
|
47
|
+
// ../../node_modules/fflate/esm/index.mjs
|
|
48
|
+
import { createRequire } from "module";
|
|
49
|
+
function deflateSync(data, opts) {
|
|
50
|
+
return dopt(data, opts || {}, 0, 0);
|
|
51
|
+
}
|
|
52
|
+
function strToU8(str, latin1) {
|
|
53
|
+
if (latin1) {
|
|
54
|
+
var ar_1 = new u8(str.length);
|
|
55
|
+
for (var i2 = 0;i2 < str.length; ++i2)
|
|
56
|
+
ar_1[i2] = str.charCodeAt(i2);
|
|
57
|
+
return ar_1;
|
|
58
|
+
}
|
|
59
|
+
if (te)
|
|
60
|
+
return te.encode(str);
|
|
61
|
+
var l = str.length;
|
|
62
|
+
var ar = new u8(str.length + (str.length >> 1));
|
|
63
|
+
var ai = 0;
|
|
64
|
+
var w = function(v) {
|
|
65
|
+
ar[ai++] = v;
|
|
66
|
+
};
|
|
67
|
+
for (var i2 = 0;i2 < l; ++i2) {
|
|
68
|
+
if (ai + 5 > ar.length) {
|
|
69
|
+
var n = new u8(ai + 8 + (l - i2 << 1));
|
|
70
|
+
n.set(ar);
|
|
71
|
+
ar = n;
|
|
72
|
+
}
|
|
73
|
+
var c = str.charCodeAt(i2);
|
|
74
|
+
if (c < 128 || latin1)
|
|
75
|
+
w(c);
|
|
76
|
+
else if (c < 2048)
|
|
77
|
+
w(192 | c >> 6), w(128 | c & 63);
|
|
78
|
+
else if (c > 55295 && c < 57344)
|
|
79
|
+
c = 65536 + (c & 1023 << 10) | str.charCodeAt(++i2) & 1023, w(240 | c >> 18), w(128 | c >> 12 & 63), w(128 | c >> 6 & 63), w(128 | c & 63);
|
|
80
|
+
else
|
|
81
|
+
w(224 | c >> 12), w(128 | c >> 6 & 63), w(128 | c & 63);
|
|
82
|
+
}
|
|
83
|
+
return slc(ar, 0, ai);
|
|
84
|
+
}
|
|
85
|
+
function zipSync(data, opts) {
|
|
86
|
+
if (!opts)
|
|
87
|
+
opts = {};
|
|
88
|
+
var r = {};
|
|
89
|
+
var files = [];
|
|
90
|
+
fltn(data, "", r, opts);
|
|
91
|
+
var o = 0;
|
|
92
|
+
var tot = 0;
|
|
93
|
+
for (var fn in r) {
|
|
94
|
+
var _a2 = r[fn], file = _a2[0], p = _a2[1];
|
|
95
|
+
var compression = p.level == 0 ? 0 : 8;
|
|
96
|
+
var f = strToU8(fn), s = f.length;
|
|
97
|
+
var com = p.comment, m = com && strToU8(com), ms = m && m.length;
|
|
98
|
+
var exl = exfl(p.extra);
|
|
99
|
+
if (s > 65535)
|
|
100
|
+
err(11);
|
|
101
|
+
var d = compression ? deflateSync(file, p) : file, l = d.length;
|
|
102
|
+
var c = crc();
|
|
103
|
+
c.p(file);
|
|
104
|
+
files.push(mrg(p, {
|
|
105
|
+
size: file.length,
|
|
106
|
+
crc: c.d(),
|
|
107
|
+
c: d,
|
|
108
|
+
f,
|
|
109
|
+
m,
|
|
110
|
+
u: s != fn.length || m && com.length != ms,
|
|
111
|
+
o,
|
|
112
|
+
compression
|
|
113
|
+
}));
|
|
114
|
+
o += 30 + s + exl + l;
|
|
115
|
+
tot += 76 + 2 * (s + exl) + (ms || 0) + l;
|
|
116
|
+
}
|
|
117
|
+
var out = new u8(tot + 22), oe = o, cdl = tot - o;
|
|
118
|
+
for (var i2 = 0;i2 < files.length; ++i2) {
|
|
119
|
+
var f = files[i2];
|
|
120
|
+
wzh(out, f.o, f, f.f, f.u, f.c.length);
|
|
121
|
+
var badd = 30 + f.f.length + exfl(f.extra);
|
|
122
|
+
out.set(f.c, f.o + badd);
|
|
123
|
+
wzh(out, o, f, f.f, f.u, f.c.length, f.o, f.m), o += 16 + badd + (f.m ? f.m.length : 0);
|
|
124
|
+
}
|
|
125
|
+
wzf(out, o, files.length, cdl, oe);
|
|
126
|
+
return out;
|
|
127
|
+
}
|
|
128
|
+
var require2, Worker, u8, u16, i32, fleb, fdeb, clim, freb = function(eb, start) {
|
|
129
|
+
var b = new u16(31);
|
|
130
|
+
for (var i = 0;i < 31; ++i) {
|
|
131
|
+
b[i] = start += 1 << eb[i - 1];
|
|
132
|
+
}
|
|
133
|
+
var r = new i32(b[30]);
|
|
134
|
+
for (var i = 1;i < 30; ++i) {
|
|
135
|
+
for (var j = b[i];j < b[i + 1]; ++j) {
|
|
136
|
+
r[j] = j - b[i] << 5 | i;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
return { b, r };
|
|
140
|
+
}, _a, fl, revfl, _b, fd, revfd, rev, x, i, hMap = function(cd, mb, r) {
|
|
141
|
+
var s = cd.length;
|
|
142
|
+
var i2 = 0;
|
|
143
|
+
var l = new u16(mb);
|
|
144
|
+
for (;i2 < s; ++i2) {
|
|
145
|
+
if (cd[i2])
|
|
146
|
+
++l[cd[i2] - 1];
|
|
147
|
+
}
|
|
148
|
+
var le = new u16(mb);
|
|
149
|
+
for (i2 = 1;i2 < mb; ++i2) {
|
|
150
|
+
le[i2] = le[i2 - 1] + l[i2 - 1] << 1;
|
|
151
|
+
}
|
|
152
|
+
var co;
|
|
153
|
+
if (r) {
|
|
154
|
+
co = new u16(1 << mb);
|
|
155
|
+
var rvb = 15 - mb;
|
|
156
|
+
for (i2 = 0;i2 < s; ++i2) {
|
|
157
|
+
if (cd[i2]) {
|
|
158
|
+
var sv = i2 << 4 | cd[i2];
|
|
159
|
+
var r_1 = mb - cd[i2];
|
|
160
|
+
var v = le[cd[i2] - 1]++ << r_1;
|
|
161
|
+
for (var m = v | (1 << r_1) - 1;v <= m; ++v) {
|
|
162
|
+
co[rev[v] >> rvb] = sv;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
} else {
|
|
167
|
+
co = new u16(s);
|
|
168
|
+
for (i2 = 0;i2 < s; ++i2) {
|
|
169
|
+
if (cd[i2]) {
|
|
170
|
+
co[i2] = rev[le[cd[i2] - 1]++] >> 15 - cd[i2];
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
return co;
|
|
175
|
+
}, flt, i, i, i, i, fdt, i, flm, fdm, shft = function(p) {
|
|
176
|
+
return (p + 7) / 8 | 0;
|
|
177
|
+
}, slc = function(v, s, e) {
|
|
178
|
+
if (s == null || s < 0)
|
|
179
|
+
s = 0;
|
|
180
|
+
if (e == null || e > v.length)
|
|
181
|
+
e = v.length;
|
|
182
|
+
return new u8(v.subarray(s, e));
|
|
183
|
+
}, ec, err = function(ind, msg, nt) {
|
|
184
|
+
var e = new Error(msg || ec[ind]);
|
|
185
|
+
e.code = ind;
|
|
186
|
+
if (Error.captureStackTrace)
|
|
187
|
+
Error.captureStackTrace(e, err);
|
|
188
|
+
if (!nt)
|
|
189
|
+
throw e;
|
|
190
|
+
return e;
|
|
191
|
+
}, wbits = function(d, p, v) {
|
|
192
|
+
v <<= p & 7;
|
|
193
|
+
var o = p / 8 | 0;
|
|
194
|
+
d[o] |= v;
|
|
195
|
+
d[o + 1] |= v >> 8;
|
|
196
|
+
}, wbits16 = function(d, p, v) {
|
|
197
|
+
v <<= p & 7;
|
|
198
|
+
var o = p / 8 | 0;
|
|
199
|
+
d[o] |= v;
|
|
200
|
+
d[o + 1] |= v >> 8;
|
|
201
|
+
d[o + 2] |= v >> 16;
|
|
202
|
+
}, hTree = function(d, mb) {
|
|
203
|
+
var t = [];
|
|
204
|
+
for (var i2 = 0;i2 < d.length; ++i2) {
|
|
205
|
+
if (d[i2])
|
|
206
|
+
t.push({ s: i2, f: d[i2] });
|
|
207
|
+
}
|
|
208
|
+
var s = t.length;
|
|
209
|
+
var t2 = t.slice();
|
|
210
|
+
if (!s)
|
|
211
|
+
return { t: et, l: 0 };
|
|
212
|
+
if (s == 1) {
|
|
213
|
+
var v = new u8(t[0].s + 1);
|
|
214
|
+
v[t[0].s] = 1;
|
|
215
|
+
return { t: v, l: 1 };
|
|
216
|
+
}
|
|
217
|
+
t.sort(function(a, b) {
|
|
218
|
+
return a.f - b.f;
|
|
219
|
+
});
|
|
220
|
+
t.push({ s: -1, f: 25001 });
|
|
221
|
+
var l = t[0], r = t[1], i0 = 0, i1 = 1, i22 = 2;
|
|
222
|
+
t[0] = { s: -1, f: l.f + r.f, l, r };
|
|
223
|
+
while (i1 != s - 1) {
|
|
224
|
+
l = t[t[i0].f < t[i22].f ? i0++ : i22++];
|
|
225
|
+
r = t[i0 != i1 && t[i0].f < t[i22].f ? i0++ : i22++];
|
|
226
|
+
t[i1++] = { s: -1, f: l.f + r.f, l, r };
|
|
227
|
+
}
|
|
228
|
+
var maxSym = t2[0].s;
|
|
229
|
+
for (var i2 = 1;i2 < s; ++i2) {
|
|
230
|
+
if (t2[i2].s > maxSym)
|
|
231
|
+
maxSym = t2[i2].s;
|
|
232
|
+
}
|
|
233
|
+
var tr = new u16(maxSym + 1);
|
|
234
|
+
var mbt = ln(t[i1 - 1], tr, 0);
|
|
235
|
+
if (mbt > mb) {
|
|
236
|
+
var i2 = 0, dt = 0;
|
|
237
|
+
var lft = mbt - mb, cst = 1 << lft;
|
|
238
|
+
t2.sort(function(a, b) {
|
|
239
|
+
return tr[b.s] - tr[a.s] || a.f - b.f;
|
|
240
|
+
});
|
|
241
|
+
for (;i2 < s; ++i2) {
|
|
242
|
+
var i2_1 = t2[i2].s;
|
|
243
|
+
if (tr[i2_1] > mb) {
|
|
244
|
+
dt += cst - (1 << mbt - tr[i2_1]);
|
|
245
|
+
tr[i2_1] = mb;
|
|
246
|
+
} else
|
|
247
|
+
break;
|
|
248
|
+
}
|
|
249
|
+
dt >>= lft;
|
|
250
|
+
while (dt > 0) {
|
|
251
|
+
var i2_2 = t2[i2].s;
|
|
252
|
+
if (tr[i2_2] < mb)
|
|
253
|
+
dt -= 1 << mb - tr[i2_2]++ - 1;
|
|
254
|
+
else
|
|
255
|
+
++i2;
|
|
256
|
+
}
|
|
257
|
+
for (;i2 >= 0 && dt; --i2) {
|
|
258
|
+
var i2_3 = t2[i2].s;
|
|
259
|
+
if (tr[i2_3] == mb) {
|
|
260
|
+
--tr[i2_3];
|
|
261
|
+
++dt;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
mbt = mb;
|
|
265
|
+
}
|
|
266
|
+
return { t: new u8(tr), l: mbt };
|
|
267
|
+
}, ln = function(n, l, d) {
|
|
268
|
+
return n.s == -1 ? Math.max(ln(n.l, l, d + 1), ln(n.r, l, d + 1)) : l[n.s] = d;
|
|
269
|
+
}, lc = function(c) {
|
|
270
|
+
var s = c.length;
|
|
271
|
+
while (s && !c[--s])
|
|
272
|
+
;
|
|
273
|
+
var cl = new u16(++s);
|
|
274
|
+
var cli = 0, cln = c[0], cls = 1;
|
|
275
|
+
var w = function(v) {
|
|
276
|
+
cl[cli++] = v;
|
|
277
|
+
};
|
|
278
|
+
for (var i2 = 1;i2 <= s; ++i2) {
|
|
279
|
+
if (c[i2] == cln && i2 != s)
|
|
280
|
+
++cls;
|
|
281
|
+
else {
|
|
282
|
+
if (!cln && cls > 2) {
|
|
283
|
+
for (;cls > 138; cls -= 138)
|
|
284
|
+
w(32754);
|
|
285
|
+
if (cls > 2) {
|
|
286
|
+
w(cls > 10 ? cls - 11 << 5 | 28690 : cls - 3 << 5 | 12305);
|
|
287
|
+
cls = 0;
|
|
288
|
+
}
|
|
289
|
+
} else if (cls > 3) {
|
|
290
|
+
w(cln), --cls;
|
|
291
|
+
for (;cls > 6; cls -= 6)
|
|
292
|
+
w(8304);
|
|
293
|
+
if (cls > 2)
|
|
294
|
+
w(cls - 3 << 5 | 8208), cls = 0;
|
|
295
|
+
}
|
|
296
|
+
while (cls--)
|
|
297
|
+
w(cln);
|
|
298
|
+
cls = 1;
|
|
299
|
+
cln = c[i2];
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
return { c: cl.subarray(0, cli), n: s };
|
|
303
|
+
}, clen = function(cf, cl) {
|
|
304
|
+
var l = 0;
|
|
305
|
+
for (var i2 = 0;i2 < cl.length; ++i2)
|
|
306
|
+
l += cf[i2] * cl[i2];
|
|
307
|
+
return l;
|
|
308
|
+
}, wfblk = function(out, pos, dat) {
|
|
309
|
+
var s = dat.length;
|
|
310
|
+
var o = shft(pos + 2);
|
|
311
|
+
out[o] = s & 255;
|
|
312
|
+
out[o + 1] = s >> 8;
|
|
313
|
+
out[o + 2] = out[o] ^ 255;
|
|
314
|
+
out[o + 3] = out[o + 1] ^ 255;
|
|
315
|
+
for (var i2 = 0;i2 < s; ++i2)
|
|
316
|
+
out[o + i2 + 4] = dat[i2];
|
|
317
|
+
return (o + 4 + s) * 8;
|
|
318
|
+
}, wblk = function(dat, out, final, syms, lf, df, eb, li, bs, bl, p) {
|
|
319
|
+
wbits(out, p++, final);
|
|
320
|
+
++lf[256];
|
|
321
|
+
var _a2 = hTree(lf, 15), dlt = _a2.t, mlb = _a2.l;
|
|
322
|
+
var _b2 = hTree(df, 15), ddt = _b2.t, mdb = _b2.l;
|
|
323
|
+
var _c = lc(dlt), lclt = _c.c, nlc = _c.n;
|
|
324
|
+
var _d = lc(ddt), lcdt = _d.c, ndc = _d.n;
|
|
325
|
+
var lcfreq = new u16(19);
|
|
326
|
+
for (var i2 = 0;i2 < lclt.length; ++i2)
|
|
327
|
+
++lcfreq[lclt[i2] & 31];
|
|
328
|
+
for (var i2 = 0;i2 < lcdt.length; ++i2)
|
|
329
|
+
++lcfreq[lcdt[i2] & 31];
|
|
330
|
+
var _e = hTree(lcfreq, 7), lct = _e.t, mlcb = _e.l;
|
|
331
|
+
var nlcc = 19;
|
|
332
|
+
for (;nlcc > 4 && !lct[clim[nlcc - 1]]; --nlcc)
|
|
333
|
+
;
|
|
334
|
+
var flen = bl + 5 << 3;
|
|
335
|
+
var ftlen = clen(lf, flt) + clen(df, fdt) + eb;
|
|
336
|
+
var dtlen = clen(lf, dlt) + clen(df, ddt) + eb + 14 + 3 * nlcc + clen(lcfreq, lct) + 2 * lcfreq[16] + 3 * lcfreq[17] + 7 * lcfreq[18];
|
|
337
|
+
if (bs >= 0 && flen <= ftlen && flen <= dtlen)
|
|
338
|
+
return wfblk(out, p, dat.subarray(bs, bs + bl));
|
|
339
|
+
var lm, ll, dm, dl;
|
|
340
|
+
wbits(out, p, 1 + (dtlen < ftlen)), p += 2;
|
|
341
|
+
if (dtlen < ftlen) {
|
|
342
|
+
lm = hMap(dlt, mlb, 0), ll = dlt, dm = hMap(ddt, mdb, 0), dl = ddt;
|
|
343
|
+
var llm = hMap(lct, mlcb, 0);
|
|
344
|
+
wbits(out, p, nlc - 257);
|
|
345
|
+
wbits(out, p + 5, ndc - 1);
|
|
346
|
+
wbits(out, p + 10, nlcc - 4);
|
|
347
|
+
p += 14;
|
|
348
|
+
for (var i2 = 0;i2 < nlcc; ++i2)
|
|
349
|
+
wbits(out, p + 3 * i2, lct[clim[i2]]);
|
|
350
|
+
p += 3 * nlcc;
|
|
351
|
+
var lcts = [lclt, lcdt];
|
|
352
|
+
for (var it = 0;it < 2; ++it) {
|
|
353
|
+
var clct = lcts[it];
|
|
354
|
+
for (var i2 = 0;i2 < clct.length; ++i2) {
|
|
355
|
+
var len = clct[i2] & 31;
|
|
356
|
+
wbits(out, p, llm[len]), p += lct[len];
|
|
357
|
+
if (len > 15)
|
|
358
|
+
wbits(out, p, clct[i2] >> 5 & 127), p += clct[i2] >> 12;
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
} else {
|
|
362
|
+
lm = flm, ll = flt, dm = fdm, dl = fdt;
|
|
363
|
+
}
|
|
364
|
+
for (var i2 = 0;i2 < li; ++i2) {
|
|
365
|
+
var sym = syms[i2];
|
|
366
|
+
if (sym > 255) {
|
|
367
|
+
var len = sym >> 18 & 31;
|
|
368
|
+
wbits16(out, p, lm[len + 257]), p += ll[len + 257];
|
|
369
|
+
if (len > 7)
|
|
370
|
+
wbits(out, p, sym >> 23 & 31), p += fleb[len];
|
|
371
|
+
var dst = sym & 31;
|
|
372
|
+
wbits16(out, p, dm[dst]), p += dl[dst];
|
|
373
|
+
if (dst > 3)
|
|
374
|
+
wbits16(out, p, sym >> 5 & 8191), p += fdeb[dst];
|
|
375
|
+
} else {
|
|
376
|
+
wbits16(out, p, lm[sym]), p += ll[sym];
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
wbits16(out, p, lm[256]);
|
|
380
|
+
return p + ll[256];
|
|
381
|
+
}, deo, et, dflt = function(dat, lvl, plvl, pre, post, st) {
|
|
382
|
+
var s = st.z || dat.length;
|
|
383
|
+
var o = new u8(pre + s + 5 * (1 + Math.ceil(s / 7000)) + post);
|
|
384
|
+
var w = o.subarray(pre, o.length - post);
|
|
385
|
+
var lst = st.l;
|
|
386
|
+
var pos = (st.r || 0) & 7;
|
|
387
|
+
if (lvl) {
|
|
388
|
+
if (pos)
|
|
389
|
+
w[0] = st.r >> 3;
|
|
390
|
+
var opt = deo[lvl - 1];
|
|
391
|
+
var n = opt >> 13, c = opt & 8191;
|
|
392
|
+
var msk_1 = (1 << plvl) - 1;
|
|
393
|
+
var prev = st.p || new u16(32768), head = st.h || new u16(msk_1 + 1);
|
|
394
|
+
var bs1_1 = Math.ceil(plvl / 3), bs2_1 = 2 * bs1_1;
|
|
395
|
+
var hsh = function(i3) {
|
|
396
|
+
return (dat[i3] ^ dat[i3 + 1] << bs1_1 ^ dat[i3 + 2] << bs2_1) & msk_1;
|
|
397
|
+
};
|
|
398
|
+
var syms = new i32(25000);
|
|
399
|
+
var lf = new u16(288), df = new u16(32);
|
|
400
|
+
var lc_1 = 0, eb = 0, i2 = st.i || 0, li = 0, wi = st.w || 0, bs = 0;
|
|
401
|
+
for (;i2 + 2 < s; ++i2) {
|
|
402
|
+
var hv = hsh(i2);
|
|
403
|
+
var imod = i2 & 32767, pimod = head[hv];
|
|
404
|
+
prev[imod] = pimod;
|
|
405
|
+
head[hv] = imod;
|
|
406
|
+
if (wi <= i2) {
|
|
407
|
+
var rem = s - i2;
|
|
408
|
+
if ((lc_1 > 7000 || li > 24576) && (rem > 423 || !lst)) {
|
|
409
|
+
pos = wblk(dat, w, 0, syms, lf, df, eb, li, bs, i2 - bs, pos);
|
|
410
|
+
li = lc_1 = eb = 0, bs = i2;
|
|
411
|
+
for (var j = 0;j < 286; ++j)
|
|
412
|
+
lf[j] = 0;
|
|
413
|
+
for (var j = 0;j < 30; ++j)
|
|
414
|
+
df[j] = 0;
|
|
415
|
+
}
|
|
416
|
+
var l = 2, d = 0, ch_1 = c, dif = imod - pimod & 32767;
|
|
417
|
+
if (rem > 2 && hv == hsh(i2 - dif)) {
|
|
418
|
+
var maxn = Math.min(n, rem) - 1;
|
|
419
|
+
var maxd = Math.min(32767, i2);
|
|
420
|
+
var ml = Math.min(258, rem);
|
|
421
|
+
while (dif <= maxd && --ch_1 && imod != pimod) {
|
|
422
|
+
if (dat[i2 + l] == dat[i2 + l - dif]) {
|
|
423
|
+
var nl = 0;
|
|
424
|
+
for (;nl < ml && dat[i2 + nl] == dat[i2 + nl - dif]; ++nl)
|
|
425
|
+
;
|
|
426
|
+
if (nl > l) {
|
|
427
|
+
l = nl, d = dif;
|
|
428
|
+
if (nl > maxn)
|
|
429
|
+
break;
|
|
430
|
+
var mmd = Math.min(dif, nl - 2);
|
|
431
|
+
var md = 0;
|
|
432
|
+
for (var j = 0;j < mmd; ++j) {
|
|
433
|
+
var ti = i2 - dif + j & 32767;
|
|
434
|
+
var pti = prev[ti];
|
|
435
|
+
var cd = ti - pti & 32767;
|
|
436
|
+
if (cd > md)
|
|
437
|
+
md = cd, pimod = ti;
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
imod = pimod, pimod = prev[imod];
|
|
442
|
+
dif += imod - pimod & 32767;
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
if (d) {
|
|
446
|
+
syms[li++] = 268435456 | revfl[l] << 18 | revfd[d];
|
|
447
|
+
var lin = revfl[l] & 31, din = revfd[d] & 31;
|
|
448
|
+
eb += fleb[lin] + fdeb[din];
|
|
449
|
+
++lf[257 + lin];
|
|
450
|
+
++df[din];
|
|
451
|
+
wi = i2 + l;
|
|
452
|
+
++lc_1;
|
|
453
|
+
} else {
|
|
454
|
+
syms[li++] = dat[i2];
|
|
455
|
+
++lf[dat[i2]];
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
for (i2 = Math.max(i2, wi);i2 < s; ++i2) {
|
|
460
|
+
syms[li++] = dat[i2];
|
|
461
|
+
++lf[dat[i2]];
|
|
462
|
+
}
|
|
463
|
+
pos = wblk(dat, w, lst, syms, lf, df, eb, li, bs, i2 - bs, pos);
|
|
464
|
+
if (!lst) {
|
|
465
|
+
st.r = pos & 7 | w[pos / 8 | 0] << 3;
|
|
466
|
+
pos -= 7;
|
|
467
|
+
st.h = head, st.p = prev, st.i = i2, st.w = wi;
|
|
468
|
+
}
|
|
469
|
+
} else {
|
|
470
|
+
for (var i2 = st.w || 0;i2 < s + lst; i2 += 65535) {
|
|
471
|
+
var e = i2 + 65535;
|
|
472
|
+
if (e >= s) {
|
|
473
|
+
w[pos / 8 | 0] = lst;
|
|
474
|
+
e = s;
|
|
475
|
+
}
|
|
476
|
+
pos = wfblk(w, pos + 1, dat.subarray(i2, e));
|
|
477
|
+
}
|
|
478
|
+
st.i = s;
|
|
479
|
+
}
|
|
480
|
+
return slc(o, 0, pre + shft(pos) + post);
|
|
481
|
+
}, crct, crc = function() {
|
|
482
|
+
var c = -1;
|
|
483
|
+
return {
|
|
484
|
+
p: function(d) {
|
|
485
|
+
var cr = c;
|
|
486
|
+
for (var i2 = 0;i2 < d.length; ++i2)
|
|
487
|
+
cr = crct[cr & 255 ^ d[i2]] ^ cr >>> 8;
|
|
488
|
+
c = cr;
|
|
489
|
+
},
|
|
490
|
+
d: function() {
|
|
491
|
+
return ~c;
|
|
492
|
+
}
|
|
493
|
+
};
|
|
494
|
+
}, dopt = function(dat, opt, pre, post, st) {
|
|
495
|
+
if (!st) {
|
|
496
|
+
st = { l: 1 };
|
|
497
|
+
if (opt.dictionary) {
|
|
498
|
+
var dict = opt.dictionary.subarray(-32768);
|
|
499
|
+
var newDat = new u8(dict.length + dat.length);
|
|
500
|
+
newDat.set(dict);
|
|
501
|
+
newDat.set(dat, dict.length);
|
|
502
|
+
dat = newDat;
|
|
503
|
+
st.w = dict.length;
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
return dflt(dat, opt.level == null ? 6 : opt.level, opt.mem == null ? st.l ? Math.ceil(Math.max(8, Math.min(13, Math.log(dat.length))) * 1.5) : 20 : 12 + opt.mem, pre, post, st);
|
|
507
|
+
}, mrg = function(a, b) {
|
|
508
|
+
var o = {};
|
|
509
|
+
for (var k in a)
|
|
510
|
+
o[k] = a[k];
|
|
511
|
+
for (var k in b)
|
|
512
|
+
o[k] = b[k];
|
|
513
|
+
return o;
|
|
514
|
+
}, wbytes = function(d, b, v) {
|
|
515
|
+
for (;v; ++b)
|
|
516
|
+
d[b] = v, v >>>= 8;
|
|
517
|
+
}, fltn = function(d, p, t, o) {
|
|
518
|
+
for (var k in d) {
|
|
519
|
+
var val = d[k], n = p + k, op = o;
|
|
520
|
+
if (Array.isArray(val))
|
|
521
|
+
op = mrg(o, val[1]), val = val[0];
|
|
522
|
+
if (val instanceof u8)
|
|
523
|
+
t[n] = [val, op];
|
|
524
|
+
else {
|
|
525
|
+
t[n += "/"] = [new u8(0), op];
|
|
526
|
+
fltn(val, n, t, o);
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
}, te, td, tds = 0, exfl = function(ex) {
|
|
530
|
+
var le = 0;
|
|
531
|
+
if (ex) {
|
|
532
|
+
for (var k in ex) {
|
|
533
|
+
var l = ex[k].length;
|
|
534
|
+
if (l > 65535)
|
|
535
|
+
err(9);
|
|
536
|
+
le += l + 4;
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
return le;
|
|
540
|
+
}, wzh = function(d, b, f, fn, u, c, ce, co) {
|
|
541
|
+
var fl2 = fn.length, ex = f.extra, col = co && co.length;
|
|
542
|
+
var exl = exfl(ex);
|
|
543
|
+
wbytes(d, b, ce != null ? 33639248 : 67324752), b += 4;
|
|
544
|
+
if (ce != null)
|
|
545
|
+
d[b++] = 20, d[b++] = f.os;
|
|
546
|
+
d[b] = 20, b += 2;
|
|
547
|
+
d[b++] = f.flag << 1 | (c < 0 && 8), d[b++] = u && 8;
|
|
548
|
+
d[b++] = f.compression & 255, d[b++] = f.compression >> 8;
|
|
549
|
+
var dt = new Date(f.mtime == null ? Date.now() : f.mtime), y = dt.getFullYear() - 1980;
|
|
550
|
+
if (y < 0 || y > 119)
|
|
551
|
+
err(10);
|
|
552
|
+
wbytes(d, b, y << 25 | dt.getMonth() + 1 << 21 | dt.getDate() << 16 | dt.getHours() << 11 | dt.getMinutes() << 5 | dt.getSeconds() >> 1), b += 4;
|
|
553
|
+
if (c != -1) {
|
|
554
|
+
wbytes(d, b, f.crc);
|
|
555
|
+
wbytes(d, b + 4, c < 0 ? -c - 2 : c);
|
|
556
|
+
wbytes(d, b + 8, f.size);
|
|
557
|
+
}
|
|
558
|
+
wbytes(d, b + 12, fl2);
|
|
559
|
+
wbytes(d, b + 14, exl), b += 16;
|
|
560
|
+
if (ce != null) {
|
|
561
|
+
wbytes(d, b, col);
|
|
562
|
+
wbytes(d, b + 6, f.attrs);
|
|
563
|
+
wbytes(d, b + 10, ce), b += 14;
|
|
564
|
+
}
|
|
565
|
+
d.set(fn, b);
|
|
566
|
+
b += fl2;
|
|
567
|
+
if (exl) {
|
|
568
|
+
for (var k in ex) {
|
|
569
|
+
var exf = ex[k], l = exf.length;
|
|
570
|
+
wbytes(d, b, +k);
|
|
571
|
+
wbytes(d, b + 2, l);
|
|
572
|
+
d.set(exf, b + 4), b += 4 + l;
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
if (col)
|
|
576
|
+
d.set(co, b), b += col;
|
|
577
|
+
return b;
|
|
578
|
+
}, wzf = function(o, b, c, d, e) {
|
|
579
|
+
wbytes(o, b, 101010256);
|
|
580
|
+
wbytes(o, b + 8, c);
|
|
581
|
+
wbytes(o, b + 10, c);
|
|
582
|
+
wbytes(o, b + 12, d);
|
|
583
|
+
wbytes(o, b + 16, e);
|
|
584
|
+
};
|
|
585
|
+
var init_esm = __esm(() => {
|
|
586
|
+
require2 = createRequire("/");
|
|
587
|
+
try {
|
|
588
|
+
Worker = require2("worker_threads").Worker;
|
|
589
|
+
} catch (e) {}
|
|
590
|
+
u8 = Uint8Array;
|
|
591
|
+
u16 = Uint16Array;
|
|
592
|
+
i32 = Int32Array;
|
|
593
|
+
fleb = new u8([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 0, 0, 0]);
|
|
594
|
+
fdeb = new u8([0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 0, 0]);
|
|
595
|
+
clim = new u8([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]);
|
|
596
|
+
_a = freb(fleb, 2);
|
|
597
|
+
fl = _a.b;
|
|
598
|
+
revfl = _a.r;
|
|
599
|
+
fl[28] = 258, revfl[258] = 28;
|
|
600
|
+
_b = freb(fdeb, 0);
|
|
601
|
+
fd = _b.b;
|
|
602
|
+
revfd = _b.r;
|
|
603
|
+
rev = new u16(32768);
|
|
604
|
+
for (i = 0;i < 32768; ++i) {
|
|
605
|
+
x = (i & 43690) >> 1 | (i & 21845) << 1;
|
|
606
|
+
x = (x & 52428) >> 2 | (x & 13107) << 2;
|
|
607
|
+
x = (x & 61680) >> 4 | (x & 3855) << 4;
|
|
608
|
+
rev[i] = ((x & 65280) >> 8 | (x & 255) << 8) >> 1;
|
|
609
|
+
}
|
|
610
|
+
flt = new u8(288);
|
|
611
|
+
for (i = 0;i < 144; ++i)
|
|
612
|
+
flt[i] = 8;
|
|
613
|
+
for (i = 144;i < 256; ++i)
|
|
614
|
+
flt[i] = 9;
|
|
615
|
+
for (i = 256;i < 280; ++i)
|
|
616
|
+
flt[i] = 7;
|
|
617
|
+
for (i = 280;i < 288; ++i)
|
|
618
|
+
flt[i] = 8;
|
|
619
|
+
fdt = new u8(32);
|
|
620
|
+
for (i = 0;i < 32; ++i)
|
|
621
|
+
fdt[i] = 5;
|
|
622
|
+
flm = /* @__PURE__ */ hMap(flt, 9, 0);
|
|
623
|
+
fdm = /* @__PURE__ */ hMap(fdt, 5, 0);
|
|
624
|
+
ec = [
|
|
625
|
+
"unexpected EOF",
|
|
626
|
+
"invalid block type",
|
|
627
|
+
"invalid length/literal",
|
|
628
|
+
"invalid distance",
|
|
629
|
+
"stream finished",
|
|
630
|
+
"no stream handler",
|
|
631
|
+
,
|
|
632
|
+
"no callback",
|
|
633
|
+
"invalid UTF-8 data",
|
|
634
|
+
"extra field too long",
|
|
635
|
+
"date not in range 1980-2099",
|
|
636
|
+
"filename too long",
|
|
637
|
+
"stream finishing",
|
|
638
|
+
"invalid zip data"
|
|
639
|
+
];
|
|
640
|
+
deo = /* @__PURE__ */ new i32([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]);
|
|
641
|
+
et = /* @__PURE__ */ new u8(0);
|
|
642
|
+
crct = /* @__PURE__ */ function() {
|
|
643
|
+
var t = new Int32Array(256);
|
|
644
|
+
for (var i2 = 0;i2 < 256; ++i2) {
|
|
645
|
+
var c = i2, k = 9;
|
|
646
|
+
while (--k)
|
|
647
|
+
c = (c & 1 && -306674912) ^ c >>> 1;
|
|
648
|
+
t[i2] = c;
|
|
649
|
+
}
|
|
650
|
+
return t;
|
|
651
|
+
}();
|
|
652
|
+
te = typeof TextEncoder != "undefined" && /* @__PURE__ */ new TextEncoder;
|
|
653
|
+
td = typeof TextDecoder != "undefined" && /* @__PURE__ */ new TextDecoder;
|
|
654
|
+
try {
|
|
655
|
+
td.decode(et, { stream: true });
|
|
656
|
+
tds = 1;
|
|
657
|
+
} catch (e) {}
|
|
658
|
+
});
|
|
659
|
+
|
|
660
|
+
// ../packager/packager-core/dist/index.js
|
|
661
|
+
class Path {
|
|
662
|
+
static normalize(path) {
|
|
663
|
+
return path.replace(/\\/g, "/").replace(/\/+/g, "/");
|
|
664
|
+
}
|
|
665
|
+
static join(...segments) {
|
|
666
|
+
return Path.normalize(segments.filter((s) => s.length > 0).join("/"));
|
|
667
|
+
}
|
|
668
|
+
static dirname(path) {
|
|
669
|
+
const normalized = Path.normalize(path).replace(/\/$/, "");
|
|
670
|
+
if (normalized === "")
|
|
671
|
+
return ".";
|
|
672
|
+
const lastSlash = normalized.lastIndexOf("/");
|
|
673
|
+
if (lastSlash === -1)
|
|
674
|
+
return ".";
|
|
675
|
+
if (lastSlash === 0)
|
|
676
|
+
return "/";
|
|
677
|
+
return normalized.substring(0, lastSlash);
|
|
678
|
+
}
|
|
679
|
+
static basename(path) {
|
|
680
|
+
const normalized = Path.normalize(path).replace(/\/$/, "");
|
|
681
|
+
if (normalized === "")
|
|
682
|
+
return "";
|
|
683
|
+
const lastSlash = normalized.lastIndexOf("/");
|
|
684
|
+
return lastSlash >= 0 ? normalized.substring(lastSlash + 1) : normalized;
|
|
685
|
+
}
|
|
686
|
+
static extname(path) {
|
|
687
|
+
const base = Path.basename(path);
|
|
688
|
+
const lastDot = base.lastIndexOf(".");
|
|
689
|
+
if (lastDot === -1 || lastDot === 0 || lastDot === base.length - 1) {
|
|
690
|
+
return "";
|
|
691
|
+
}
|
|
692
|
+
return base.substring(lastDot);
|
|
693
|
+
}
|
|
694
|
+
static async walkDirectory(fs, rootPath, currentRelativePath = "") {
|
|
695
|
+
const entries = [];
|
|
696
|
+
const absolutePath = currentRelativePath ? Path.join(rootPath, currentRelativePath) : rootPath;
|
|
697
|
+
const items = await fs.readdir(absolutePath);
|
|
698
|
+
for (const item of items) {
|
|
699
|
+
const itemRelativePath = currentRelativePath ? Path.join(currentRelativePath, item) : item;
|
|
700
|
+
const itemAbsolutePath = Path.join(rootPath, itemRelativePath);
|
|
701
|
+
const stat = await fs.stat(itemAbsolutePath);
|
|
702
|
+
if (stat?.isDirectory()) {
|
|
703
|
+
const subEntries = await Path.walkDirectory(fs, rootPath, itemRelativePath);
|
|
704
|
+
entries.push(...subEntries);
|
|
705
|
+
} else if (stat?.isFile()) {
|
|
706
|
+
entries.push({
|
|
707
|
+
relativePath: Path.normalize(itemRelativePath),
|
|
708
|
+
absolutePath: Path.normalize(itemAbsolutePath)
|
|
709
|
+
});
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
return entries;
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
class TemporaryStorageService {
|
|
717
|
+
fileSystem;
|
|
718
|
+
_tempFolderPath = null;
|
|
719
|
+
constructor(fileSystem) {
|
|
720
|
+
this.fileSystem = fileSystem;
|
|
721
|
+
}
|
|
722
|
+
async getTempFolderPath() {
|
|
723
|
+
if (!this._tempFolderPath) {
|
|
724
|
+
const systemTempDir = await this.fileSystem.getTempDir();
|
|
725
|
+
const uniqueFolderName = this.generateUniqueFolderName();
|
|
726
|
+
this._tempFolderPath = Path.join(systemTempDir, uniqueFolderName);
|
|
727
|
+
await this.fileSystem.mkdir(this._tempFolderPath);
|
|
728
|
+
}
|
|
729
|
+
return this._tempFolderPath;
|
|
730
|
+
}
|
|
731
|
+
generateUniqueFolderName() {
|
|
732
|
+
const timestamp = Date.now();
|
|
733
|
+
const random = Math.random().toString(36).substring(2, 10);
|
|
734
|
+
return `tool-temp-${timestamp}-${random}`;
|
|
735
|
+
}
|
|
736
|
+
async getTempSubfolderPathAsync(subfolder) {
|
|
737
|
+
const tempFolderPath = await this.getTempFolderPath();
|
|
738
|
+
const inputPath = Path.join(tempFolderPath, subfolder);
|
|
739
|
+
await this.fileSystem.mkdir(inputPath);
|
|
740
|
+
return inputPath;
|
|
741
|
+
}
|
|
742
|
+
async cleanup() {
|
|
743
|
+
try {
|
|
744
|
+
if (!this._tempFolderPath) {
|
|
745
|
+
return;
|
|
746
|
+
}
|
|
747
|
+
try {
|
|
748
|
+
const stats = await this.fileSystem.stat(this._tempFolderPath);
|
|
749
|
+
if (!stats) {
|
|
750
|
+
return;
|
|
751
|
+
}
|
|
752
|
+
} catch {
|
|
753
|
+
return;
|
|
754
|
+
}
|
|
755
|
+
const pathToCleanup = this._tempFolderPath;
|
|
756
|
+
await this.fileSystem.rm(this._tempFolderPath);
|
|
757
|
+
this._tempFolderPath = null;
|
|
758
|
+
} catch {}
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
function isPluralForm(value) {
|
|
762
|
+
return typeof value === "object" && value !== null && "other" in value;
|
|
763
|
+
}
|
|
764
|
+
function selectPluralForm(forms, count) {
|
|
765
|
+
if (count === 0 && forms.zero !== undefined) {
|
|
766
|
+
return forms.zero;
|
|
767
|
+
}
|
|
768
|
+
if (count === 1 && forms.one !== undefined) {
|
|
769
|
+
return forms.one;
|
|
770
|
+
}
|
|
771
|
+
if (count === 2 && forms.two !== undefined) {
|
|
772
|
+
return forms.two;
|
|
773
|
+
}
|
|
774
|
+
if (forms.few !== undefined) {
|
|
775
|
+
const mod10 = count % 10;
|
|
776
|
+
const mod100 = count % 100;
|
|
777
|
+
if (mod10 >= 2 && mod10 <= 4 && (mod100 < 10 || mod100 >= 20)) {
|
|
778
|
+
return forms.few;
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
if (forms.many !== undefined) {
|
|
782
|
+
const mod10 = count % 10;
|
|
783
|
+
const mod100 = count % 100;
|
|
784
|
+
if (count === 0 || mod10 === 0 && mod100 !== 0 || mod10 >= 5 && mod10 <= 9 || mod100 >= 11 && mod100 <= 14) {
|
|
785
|
+
return forms.many;
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
return forms.other;
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
class TranslationService {
|
|
792
|
+
static instance;
|
|
793
|
+
currentLocale = "en";
|
|
794
|
+
constructor() {}
|
|
795
|
+
static getInstance() {
|
|
796
|
+
if (!TranslationService.instance) {
|
|
797
|
+
TranslationService.instance = new TranslationService;
|
|
798
|
+
}
|
|
799
|
+
return TranslationService.instance;
|
|
800
|
+
}
|
|
801
|
+
setLocale(locale) {
|
|
802
|
+
this.currentLocale = I18nManager.setLocale(locale);
|
|
803
|
+
}
|
|
804
|
+
getLocale() {
|
|
805
|
+
return this.currentLocale;
|
|
806
|
+
}
|
|
807
|
+
t(key, params) {
|
|
808
|
+
return I18nManager.t(key, params, this.currentLocale);
|
|
809
|
+
}
|
|
810
|
+
tLocale(key, locale, params) {
|
|
811
|
+
return I18nManager.t(key, params, locale);
|
|
812
|
+
}
|
|
813
|
+
has(key) {
|
|
814
|
+
return I18nManager.has(key, this.currentLocale);
|
|
815
|
+
}
|
|
816
|
+
getAvailableLocales() {
|
|
817
|
+
return I18nManager.getAvailableLocales();
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
class ToolResult {
|
|
822
|
+
errorCode;
|
|
823
|
+
message;
|
|
824
|
+
packages;
|
|
825
|
+
constructor(errorCode, message, packages = []) {
|
|
826
|
+
this.errorCode = errorCode;
|
|
827
|
+
this.message = message;
|
|
828
|
+
this.packages = packages;
|
|
829
|
+
}
|
|
830
|
+
get isSuccess() {
|
|
831
|
+
return this.errorCode === "SUCCESS";
|
|
832
|
+
}
|
|
833
|
+
static success() {
|
|
834
|
+
return new ToolResult("SUCCESS");
|
|
835
|
+
}
|
|
836
|
+
static error(errorCode, message) {
|
|
837
|
+
return new ToolResult(errorCode, message);
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
function escapeXml(str) {
|
|
841
|
+
if (str === null || str === undefined) {
|
|
842
|
+
return "";
|
|
843
|
+
}
|
|
844
|
+
return String(str).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
845
|
+
}
|
|
846
|
+
function optionalElement(name, value) {
|
|
847
|
+
if (value === undefined || value === "")
|
|
848
|
+
return "";
|
|
849
|
+
return ` <${name}>${escapeXml(value)}</${name}>
|
|
850
|
+
`;
|
|
851
|
+
}
|
|
852
|
+
function generateDependenciesXml(dependencies) {
|
|
853
|
+
if (!dependencies || dependencies.length === 0)
|
|
854
|
+
return "";
|
|
855
|
+
const deps = dependencies.map((d) => ` <dependency id="${escapeXml(d.id)}" version="${escapeXml(d.version)}" />`).join(`
|
|
856
|
+
`);
|
|
857
|
+
return ` <dependencies>
|
|
858
|
+
${deps}
|
|
859
|
+
</dependencies>
|
|
860
|
+
`;
|
|
861
|
+
}
|
|
862
|
+
function generateRepositoryXml(packageInfo) {
|
|
863
|
+
if (!packageInfo.repositoryType || !packageInfo.repositoryUrl)
|
|
864
|
+
return "";
|
|
865
|
+
let repoXml = ` <repository type="${escapeXml(packageInfo.repositoryType)}" url="${escapeXml(packageInfo.repositoryUrl)}"`;
|
|
866
|
+
if (packageInfo.repositoryBranch) {
|
|
867
|
+
repoXml += ` branch="${escapeXml(packageInfo.repositoryBranch)}"`;
|
|
868
|
+
}
|
|
869
|
+
if (packageInfo.repositoryCommit) {
|
|
870
|
+
repoXml += ` commit="${escapeXml(packageInfo.repositoryCommit)}"`;
|
|
871
|
+
}
|
|
872
|
+
repoXml += ` />
|
|
873
|
+
`;
|
|
874
|
+
return repoXml;
|
|
875
|
+
}
|
|
876
|
+
function generateNuspecXml(packageInfo) {
|
|
877
|
+
const author = packageInfo.author?.trim() || "UiPath";
|
|
878
|
+
const description = packageInfo.description?.trim() || "Created by UiPath";
|
|
879
|
+
const title = packageInfo.title?.trim() || packageInfo.id;
|
|
880
|
+
const requireLicenseAcceptance = packageInfo.requireLicenseAcceptance === true ? "true" : "false";
|
|
881
|
+
const releaseNotes = packageInfo.releaseNotes ?? "";
|
|
882
|
+
const xml = `\uFEFF<?xml version="1.0" encoding="utf-8"?>
|
|
883
|
+
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
|
|
884
|
+
<metadata>
|
|
885
|
+
<id>${escapeXml(packageInfo.id)}</id>
|
|
886
|
+
<version>${escapeXml(packageInfo.version)}</version>
|
|
887
|
+
<title>${escapeXml(title)}</title>
|
|
888
|
+
<authors>${escapeXml(author)}</authors>
|
|
889
|
+
<requireLicenseAcceptance>${requireLicenseAcceptance}</requireLicenseAcceptance>
|
|
890
|
+
<description>${escapeXml(description)}</description>
|
|
891
|
+
<releaseNotes>${escapeXml(releaseNotes)}</releaseNotes>
|
|
892
|
+
${optionalElement("tags", packageInfo.tags)}${optionalElement("iconUrl", packageInfo.iconUrl)}${optionalElement("projectUrl", packageInfo.projectUrl)}${optionalElement("licenseUrl", packageInfo.licenseUrl)}${optionalElement("copyright", packageInfo.copyright)}${generateRepositoryXml(packageInfo)}${generateDependenciesXml(packageInfo.dependencies)} </metadata>
|
|
893
|
+
</package>
|
|
894
|
+
`;
|
|
895
|
+
return xml;
|
|
896
|
+
}
|
|
897
|
+
function generatePsmdcpXml(packageInfo) {
|
|
898
|
+
const author = packageInfo.author?.trim() || "UiPath";
|
|
899
|
+
const description = packageInfo.description?.trim() || "Created by UiPath";
|
|
900
|
+
return `<?xml version="1.0" encoding="utf-8"?>
|
|
901
|
+
<coreProperties xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.openxmlformats.org/package/2006/metadata/core-properties">
|
|
902
|
+
<dc:creator>${escapeXml(author)}</dc:creator>
|
|
903
|
+
<dc:description>${escapeXml(description)}</dc:description>
|
|
904
|
+
<dc:identifier>${escapeXml(packageInfo.id)}</dc:identifier>
|
|
905
|
+
<version>${escapeXml(packageInfo.version)}</version>
|
|
906
|
+
<keywords></keywords>
|
|
907
|
+
<lastModifiedBy>NuGet.Packaging, Version=6.12.1.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35;.NET 5.0</lastModifiedBy>
|
|
908
|
+
</coreProperties>`;
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
class NugetPackager {
|
|
912
|
+
fileSystem;
|
|
913
|
+
constructor(fileSystem) {
|
|
914
|
+
this.fileSystem = fileSystem;
|
|
915
|
+
}
|
|
916
|
+
async packAsync(rootPath, packageInfo, outputPath) {
|
|
917
|
+
const normalizedOutputPath = Path.normalize(outputPath);
|
|
918
|
+
const nuspecXml = generateNuspecXml(packageInfo);
|
|
919
|
+
const nuspecFileName = `${packageInfo.id}.nuspec`;
|
|
920
|
+
const fileEntries = await Path.walkDirectory(this.fileSystem, rootPath);
|
|
921
|
+
const zipContents = {};
|
|
922
|
+
const encoder = new TextEncoder;
|
|
923
|
+
const psmdcpId = Array.from({ length: 4 }, () => Math.floor(Math.random() * 4294967296).toString(16).padStart(8, "0")).join("");
|
|
924
|
+
const psmdcpFileName = `${psmdcpId}.psmdcp`;
|
|
925
|
+
const psmdcpPath = `package/services/metadata/core-properties/${psmdcpFileName}`;
|
|
926
|
+
const contentTypesXml = `<?xml version="1.0" encoding="utf-8"?>
|
|
927
|
+
<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">
|
|
928
|
+
<Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml" />
|
|
929
|
+
<Default Extension="psmdcp" ContentType="application/vnd.openxmlformats-package.core-properties+xml" />
|
|
930
|
+
<Default Extension="uiproj" ContentType="application/octet" />
|
|
931
|
+
<Default Extension="json" ContentType="application/octet" />
|
|
932
|
+
<Default Extension="nuspec" ContentType="application/octet" />
|
|
933
|
+
</Types>`;
|
|
934
|
+
zipContents["[Content_Types].xml"] = encoder.encode(contentTypesXml);
|
|
935
|
+
const manifestRelId = `R${Date.now().toString(16).toUpperCase()}`;
|
|
936
|
+
const corePropsRelId = `R${(Date.now() + 1).toString(16).toUpperCase()}`;
|
|
937
|
+
const relsXml = `<?xml version="1.0" encoding="utf-8"?>
|
|
938
|
+
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
|
|
939
|
+
<Relationship Type="http://schemas.microsoft.com/packaging/2010/07/manifest" Target="/${nuspecFileName}" Id="${manifestRelId}" />
|
|
940
|
+
<Relationship Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="/${psmdcpPath}" Id="${corePropsRelId}" />
|
|
941
|
+
</Relationships>`;
|
|
942
|
+
zipContents["_rels/.rels"] = encoder.encode(relsXml);
|
|
943
|
+
zipContents[psmdcpPath] = encoder.encode(generatePsmdcpXml(packageInfo));
|
|
944
|
+
zipContents[nuspecFileName] = encoder.encode(nuspecXml);
|
|
945
|
+
for (const entry of fileEntries) {
|
|
946
|
+
const content = await this.fileSystem.readFile(entry.absolutePath);
|
|
947
|
+
if (content !== null) {
|
|
948
|
+
zipContents[entry.relativePath] = content;
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
const zippedData = zipSync(zipContents);
|
|
952
|
+
await this.fileSystem.writeFile(normalizedOutputPath, zippedData);
|
|
953
|
+
return {
|
|
954
|
+
outputPath: normalizedOutputPath
|
|
955
|
+
};
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
class ProjectTool {
|
|
960
|
+
fileSystem;
|
|
961
|
+
logger;
|
|
962
|
+
static ProjectFileName = "project.uiproj";
|
|
963
|
+
constructor(fileSystem, logger) {
|
|
964
|
+
this.fileSystem = fileSystem;
|
|
965
|
+
this.logger = logger;
|
|
966
|
+
}
|
|
967
|
+
async restoreAsync(_options, _cancellationToken) {
|
|
968
|
+
this.logger.info("Restore operation is a noop");
|
|
969
|
+
return ToolResult.success();
|
|
970
|
+
}
|
|
971
|
+
async validateAsync(_options, _cancellationToken) {
|
|
972
|
+
this.logger.info("Validate operation is a noop");
|
|
973
|
+
return ToolResult.success();
|
|
974
|
+
}
|
|
975
|
+
async buildAsync(_options, _cancellationToken) {
|
|
976
|
+
this.logger.info("Build operation is a noop");
|
|
977
|
+
return ToolResult.success();
|
|
978
|
+
}
|
|
979
|
+
async packAsync(_options, _cancellationToken) {
|
|
980
|
+
this.logger.info("Pack operation is a noop");
|
|
981
|
+
return ToolResult.success();
|
|
982
|
+
}
|
|
983
|
+
async getUiProjectAsync(projectPath) {
|
|
984
|
+
const filePath = Path.join(projectPath, ProjectTool.ProjectFileName);
|
|
985
|
+
if (!await this.fileSystem.exists(filePath)) {
|
|
986
|
+
return;
|
|
987
|
+
}
|
|
988
|
+
const raw = await this.fileSystem.readFile(filePath);
|
|
989
|
+
if (!raw) {
|
|
990
|
+
return;
|
|
991
|
+
}
|
|
992
|
+
const json = typeof raw === "string" ? raw : new TextDecoder("utf-8").decode(raw);
|
|
993
|
+
return JSON.parse(json);
|
|
994
|
+
}
|
|
995
|
+
async dispose() {}
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
class ToolsFactoryRepository {
|
|
999
|
+
projectFactoryMap = new Map;
|
|
1000
|
+
solutionFactory = null;
|
|
1001
|
+
registerProjectToolFactory(factory) {
|
|
1002
|
+
for (const type of factory.supportedTypes) {
|
|
1003
|
+
if (this.projectFactoryMap.has(type)) {
|
|
1004
|
+
console.warn(`Tool factory already registered for project type '${type}', skipping.`);
|
|
1005
|
+
continue;
|
|
1006
|
+
}
|
|
1007
|
+
this.projectFactoryMap.set(type, factory);
|
|
1008
|
+
}
|
|
1009
|
+
}
|
|
1010
|
+
registerSolutionToolFactory(factory) {
|
|
1011
|
+
this.solutionFactory = factory;
|
|
1012
|
+
}
|
|
1013
|
+
getSolutionToolFactory() {
|
|
1014
|
+
if (!this.solutionFactory) {
|
|
1015
|
+
throw new Error("No solution tool factory is registered");
|
|
1016
|
+
}
|
|
1017
|
+
return this.solutionFactory;
|
|
1018
|
+
}
|
|
1019
|
+
canHandleProject(projectType) {
|
|
1020
|
+
return this.projectFactoryMap.has(projectType);
|
|
1021
|
+
}
|
|
1022
|
+
getProjectToolFactory(projectType) {
|
|
1023
|
+
const factory = this.projectFactoryMap.get(projectType);
|
|
1024
|
+
if (!factory) {
|
|
1025
|
+
throw new Error(`No tool factory found for project type '${projectType}'`);
|
|
1026
|
+
}
|
|
1027
|
+
return factory;
|
|
1028
|
+
}
|
|
1029
|
+
reset() {
|
|
1030
|
+
this.projectFactoryMap.clear();
|
|
1031
|
+
this.solutionFactory = null;
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
1034
|
+
var I18nManager, de, en, es, es_MX, fr, ja, ko, pt, pt_BR, ro, ru, tr, zh_CN, zh_TW, zu, translate, BuildConfiguration, LogLevel, NugetConstants, ProjectTypes, TargetFramework, ToolErrorCodes, REGISTRY_KEY, _global, toolsFactoryRepository;
|
|
1035
|
+
var init_dist = __esm(() => {
|
|
1036
|
+
init_esm();
|
|
1037
|
+
I18nManager = class I18nManager {
|
|
1038
|
+
static translations = {};
|
|
1039
|
+
static currentLocale = "en";
|
|
1040
|
+
static fallbackLocale = "en";
|
|
1041
|
+
static registerTranslations(locale, catalog) {
|
|
1042
|
+
if (!I18nManager.translations[locale]) {
|
|
1043
|
+
I18nManager.translations[locale] = {};
|
|
1044
|
+
}
|
|
1045
|
+
I18nManager.translations[locale] = I18nManager.deepMerge(I18nManager.translations[locale], catalog);
|
|
1046
|
+
}
|
|
1047
|
+
static setLocale(locale) {
|
|
1048
|
+
const normalized = I18nManager.normalizeLocale(locale);
|
|
1049
|
+
if (I18nManager.translations[normalized]) {
|
|
1050
|
+
I18nManager.currentLocale = normalized;
|
|
1051
|
+
return normalized;
|
|
1052
|
+
}
|
|
1053
|
+
const baseLocale = normalized.split("-")[0];
|
|
1054
|
+
if (baseLocale !== normalized && I18nManager.translations[baseLocale]) {
|
|
1055
|
+
I18nManager.currentLocale = baseLocale;
|
|
1056
|
+
return baseLocale;
|
|
1057
|
+
}
|
|
1058
|
+
return I18nManager.currentLocale;
|
|
1059
|
+
}
|
|
1060
|
+
static getLocale() {
|
|
1061
|
+
return I18nManager.currentLocale;
|
|
1062
|
+
}
|
|
1063
|
+
static setFallbackLocale(locale) {
|
|
1064
|
+
I18nManager.fallbackLocale = I18nManager.normalizeLocale(locale);
|
|
1065
|
+
}
|
|
1066
|
+
static t(key, params, locale) {
|
|
1067
|
+
const targetLocale = locale ? I18nManager.normalizeLocale(locale) : I18nManager.currentLocale;
|
|
1068
|
+
let value = I18nManager.getTranslationValue(key, targetLocale);
|
|
1069
|
+
if (value === undefined && targetLocale !== I18nManager.fallbackLocale) {
|
|
1070
|
+
value = I18nManager.getTranslationValue(key, I18nManager.fallbackLocale);
|
|
1071
|
+
}
|
|
1072
|
+
if (value === undefined) {
|
|
1073
|
+
return key;
|
|
1074
|
+
}
|
|
1075
|
+
if (isPluralForm(value) && params && "count" in params) {
|
|
1076
|
+
const count = typeof params.count === "number" ? params.count : Number(params.count);
|
|
1077
|
+
value = selectPluralForm(value, count);
|
|
1078
|
+
} else if (isPluralForm(value)) {
|
|
1079
|
+
value = value.other;
|
|
1080
|
+
}
|
|
1081
|
+
if (typeof value !== "string") {
|
|
1082
|
+
return key;
|
|
1083
|
+
}
|
|
1084
|
+
return params ? I18nManager.interpolate(value, params) : value;
|
|
1085
|
+
}
|
|
1086
|
+
static has(key, locale) {
|
|
1087
|
+
const targetLocale = locale ? I18nManager.normalizeLocale(locale) : I18nManager.currentLocale;
|
|
1088
|
+
const value = I18nManager.getTranslationValue(key, targetLocale);
|
|
1089
|
+
if (value !== undefined) {
|
|
1090
|
+
return true;
|
|
1091
|
+
}
|
|
1092
|
+
if (targetLocale !== I18nManager.fallbackLocale) {
|
|
1093
|
+
return I18nManager.getTranslationValue(key, I18nManager.fallbackLocale) !== undefined;
|
|
1094
|
+
}
|
|
1095
|
+
return false;
|
|
1096
|
+
}
|
|
1097
|
+
static getAvailableLocales() {
|
|
1098
|
+
return Object.keys(I18nManager.translations);
|
|
1099
|
+
}
|
|
1100
|
+
static clearTranslations() {
|
|
1101
|
+
I18nManager.translations = {};
|
|
1102
|
+
I18nManager.currentLocale = "en";
|
|
1103
|
+
}
|
|
1104
|
+
static getTranslationValue(key, locale) {
|
|
1105
|
+
const catalog = I18nManager.translations[locale];
|
|
1106
|
+
if (!catalog) {
|
|
1107
|
+
return;
|
|
1108
|
+
}
|
|
1109
|
+
const keys = key.split(".");
|
|
1110
|
+
let value = catalog;
|
|
1111
|
+
for (const k of keys) {
|
|
1112
|
+
if (value && typeof value === "object" && k in value) {
|
|
1113
|
+
value = value[k];
|
|
1114
|
+
} else {
|
|
1115
|
+
return;
|
|
1116
|
+
}
|
|
1117
|
+
}
|
|
1118
|
+
return value;
|
|
1119
|
+
}
|
|
1120
|
+
static interpolate(template, params) {
|
|
1121
|
+
return template.replace(/\{(\w+)\}/g, (_, key) => {
|
|
1122
|
+
const value = params[key];
|
|
1123
|
+
return value !== undefined ? String(value) : `{${key}}`;
|
|
1124
|
+
});
|
|
1125
|
+
}
|
|
1126
|
+
static normalizeLocale(locale) {
|
|
1127
|
+
const normalized = locale.toLowerCase().replace(/_/g, "-");
|
|
1128
|
+
const specialLocales = ["es-mx", "pt-br", "zh-cn", "zh-tw"];
|
|
1129
|
+
if (specialLocales.includes(normalized)) {
|
|
1130
|
+
return normalized;
|
|
1131
|
+
}
|
|
1132
|
+
return normalized.split("-")[0];
|
|
1133
|
+
}
|
|
1134
|
+
static deepMerge(target, source) {
|
|
1135
|
+
const result = { ...target };
|
|
1136
|
+
for (const key of Object.keys(source)) {
|
|
1137
|
+
const sourceValue = source[key];
|
|
1138
|
+
const targetValue = result[key];
|
|
1139
|
+
if (sourceValue && typeof sourceValue === "object" && !Array.isArray(sourceValue) && targetValue && typeof targetValue === "object" && !Array.isArray(targetValue)) {
|
|
1140
|
+
result[key] = I18nManager.deepMerge(targetValue, sourceValue);
|
|
1141
|
+
} else {
|
|
1142
|
+
result[key] = sourceValue;
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1145
|
+
return result;
|
|
1146
|
+
}
|
|
1147
|
+
};
|
|
1148
|
+
de = {
|
|
1149
|
+
toolCore: {
|
|
1150
|
+
errors: {
|
|
1151
|
+
internal: "Internal error: {message}",
|
|
1152
|
+
fileNotFound: "File not found: {path}",
|
|
1153
|
+
fileReadFailed: "Failed to read file: {path}",
|
|
1154
|
+
fileWriteFailed: "Failed to write file: {path}",
|
|
1155
|
+
directoryNotFound: "Directory not found: {path}",
|
|
1156
|
+
invalidPath: "{path} is not a valid path",
|
|
1157
|
+
operationCanceled: "Operation was canceled",
|
|
1158
|
+
invalidParameter: "Invalid parameter: {parameter}"
|
|
1159
|
+
},
|
|
1160
|
+
progress: {
|
|
1161
|
+
copying: "Copying files...",
|
|
1162
|
+
building: "Building project...",
|
|
1163
|
+
packaging: "Creating package...",
|
|
1164
|
+
validating: "Validating...",
|
|
1165
|
+
analyzing: "Analyzing...",
|
|
1166
|
+
restoring: "Restoring dependencies..."
|
|
1167
|
+
},
|
|
1168
|
+
validation: {
|
|
1169
|
+
requiredField: "{field} is required",
|
|
1170
|
+
invalidValue: "Invalid value for {field}",
|
|
1171
|
+
pathNotFound: "Path not found: {path}",
|
|
1172
|
+
fileRequired: "File is required: {path}",
|
|
1173
|
+
directoryRequired: "Directory is required: {path}"
|
|
1174
|
+
},
|
|
1175
|
+
warnings: {
|
|
1176
|
+
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
1177
|
+
},
|
|
1178
|
+
info: {
|
|
1179
|
+
operationComplete: "Operation completed successfully",
|
|
1180
|
+
filesProcessed: {
|
|
1181
|
+
zero: "No files processed",
|
|
1182
|
+
one: "{count} file processed",
|
|
1183
|
+
other: "{count} files processed"
|
|
1184
|
+
}
|
|
1185
|
+
}
|
|
1186
|
+
}
|
|
1187
|
+
};
|
|
1188
|
+
en = {
|
|
1189
|
+
toolCore: {
|
|
1190
|
+
errors: {
|
|
1191
|
+
internal: "Internal error: {message}",
|
|
1192
|
+
fileNotFound: "File not found: {path}",
|
|
1193
|
+
fileReadFailed: "Failed to read file: {path}",
|
|
1194
|
+
fileWriteFailed: "Failed to write file: {path}",
|
|
1195
|
+
directoryNotFound: "Directory not found: {path}",
|
|
1196
|
+
invalidPath: "{path} is not a valid path",
|
|
1197
|
+
operationCanceled: "Operation was canceled",
|
|
1198
|
+
invalidParameter: "Invalid parameter: {parameter}"
|
|
1199
|
+
},
|
|
1200
|
+
progress: {
|
|
1201
|
+
copying: "Copying files...",
|
|
1202
|
+
building: "Building project...",
|
|
1203
|
+
packaging: "Creating package...",
|
|
1204
|
+
validating: "Validating...",
|
|
1205
|
+
analyzing: "Analyzing...",
|
|
1206
|
+
restoring: "Restoring dependencies..."
|
|
1207
|
+
},
|
|
1208
|
+
validation: {
|
|
1209
|
+
requiredField: "{field} is required",
|
|
1210
|
+
invalidValue: "Invalid value for {field}",
|
|
1211
|
+
pathNotFound: "Path not found: {path}",
|
|
1212
|
+
fileRequired: "File is required: {path}",
|
|
1213
|
+
directoryRequired: "Directory is required: {path}"
|
|
1214
|
+
},
|
|
1215
|
+
warnings: {
|
|
1216
|
+
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
1217
|
+
},
|
|
1218
|
+
info: {
|
|
1219
|
+
operationComplete: "Operation completed successfully",
|
|
1220
|
+
filesProcessed: {
|
|
1221
|
+
zero: "No files processed",
|
|
1222
|
+
one: "{count} file processed",
|
|
1223
|
+
other: "{count} files processed"
|
|
1224
|
+
}
|
|
1225
|
+
}
|
|
1226
|
+
}
|
|
1227
|
+
};
|
|
1228
|
+
es = {
|
|
1229
|
+
toolCore: {
|
|
1230
|
+
errors: {
|
|
1231
|
+
internal: "Internal error: {message}",
|
|
1232
|
+
fileNotFound: "File not found: {path}",
|
|
1233
|
+
fileReadFailed: "Failed to read file: {path}",
|
|
1234
|
+
fileWriteFailed: "Failed to write file: {path}",
|
|
1235
|
+
directoryNotFound: "Directory not found: {path}",
|
|
1236
|
+
invalidPath: "{path} is not a valid path",
|
|
1237
|
+
operationCanceled: "Operation was canceled",
|
|
1238
|
+
invalidParameter: "Invalid parameter: {parameter}"
|
|
1239
|
+
},
|
|
1240
|
+
progress: {
|
|
1241
|
+
copying: "Copying files...",
|
|
1242
|
+
building: "Building project...",
|
|
1243
|
+
packaging: "Creating package...",
|
|
1244
|
+
validating: "Validating...",
|
|
1245
|
+
analyzing: "Analyzing...",
|
|
1246
|
+
restoring: "Restoring dependencies..."
|
|
1247
|
+
},
|
|
1248
|
+
validation: {
|
|
1249
|
+
requiredField: "{field} is required",
|
|
1250
|
+
invalidValue: "Invalid value for {field}",
|
|
1251
|
+
pathNotFound: "Path not found: {path}",
|
|
1252
|
+
fileRequired: "File is required: {path}",
|
|
1253
|
+
directoryRequired: "Directory is required: {path}"
|
|
1254
|
+
},
|
|
1255
|
+
warnings: {
|
|
1256
|
+
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
1257
|
+
},
|
|
1258
|
+
info: {
|
|
1259
|
+
operationComplete: "Operation completed successfully",
|
|
1260
|
+
filesProcessed: {
|
|
1261
|
+
zero: "No files processed",
|
|
1262
|
+
one: "{count} file processed",
|
|
1263
|
+
other: "{count} files processed"
|
|
1264
|
+
}
|
|
1265
|
+
}
|
|
1266
|
+
}
|
|
1267
|
+
};
|
|
1268
|
+
es_MX = {
|
|
1269
|
+
toolCore: {
|
|
1270
|
+
errors: {
|
|
1271
|
+
internal: "Internal error: {message}",
|
|
1272
|
+
fileNotFound: "File not found: {path}",
|
|
1273
|
+
fileReadFailed: "Failed to read file: {path}",
|
|
1274
|
+
fileWriteFailed: "Failed to write file: {path}",
|
|
1275
|
+
directoryNotFound: "Directory not found: {path}",
|
|
1276
|
+
invalidPath: "{path} is not a valid path",
|
|
1277
|
+
operationCanceled: "Operation was canceled",
|
|
1278
|
+
invalidParameter: "Invalid parameter: {parameter}"
|
|
1279
|
+
},
|
|
1280
|
+
progress: {
|
|
1281
|
+
copying: "Copying files...",
|
|
1282
|
+
building: "Building project...",
|
|
1283
|
+
packaging: "Creating package...",
|
|
1284
|
+
validating: "Validating...",
|
|
1285
|
+
analyzing: "Analyzing...",
|
|
1286
|
+
restoring: "Restoring dependencies..."
|
|
1287
|
+
},
|
|
1288
|
+
validation: {
|
|
1289
|
+
requiredField: "{field} is required",
|
|
1290
|
+
invalidValue: "Invalid value for {field}",
|
|
1291
|
+
pathNotFound: "Path not found: {path}",
|
|
1292
|
+
fileRequired: "File is required: {path}",
|
|
1293
|
+
directoryRequired: "Directory is required: {path}"
|
|
1294
|
+
},
|
|
1295
|
+
warnings: {
|
|
1296
|
+
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
1297
|
+
},
|
|
1298
|
+
info: {
|
|
1299
|
+
operationComplete: "Operation completed successfully",
|
|
1300
|
+
filesProcessed: {
|
|
1301
|
+
zero: "No files processed",
|
|
1302
|
+
one: "{count} file processed",
|
|
1303
|
+
other: "{count} files processed"
|
|
1304
|
+
}
|
|
1305
|
+
}
|
|
1306
|
+
}
|
|
1307
|
+
};
|
|
1308
|
+
fr = {
|
|
1309
|
+
toolCore: {
|
|
1310
|
+
errors: {
|
|
1311
|
+
internal: "Internal error: {message}",
|
|
1312
|
+
fileNotFound: "File not found: {path}",
|
|
1313
|
+
fileReadFailed: "Failed to read file: {path}",
|
|
1314
|
+
fileWriteFailed: "Failed to write file: {path}",
|
|
1315
|
+
directoryNotFound: "Directory not found: {path}",
|
|
1316
|
+
invalidPath: "{path} is not a valid path",
|
|
1317
|
+
operationCanceled: "Operation was canceled",
|
|
1318
|
+
invalidParameter: "Invalid parameter: {parameter}"
|
|
1319
|
+
},
|
|
1320
|
+
progress: {
|
|
1321
|
+
copying: "Copying files...",
|
|
1322
|
+
building: "Building project...",
|
|
1323
|
+
packaging: "Creating package...",
|
|
1324
|
+
validating: "Validating...",
|
|
1325
|
+
analyzing: "Analyzing...",
|
|
1326
|
+
restoring: "Restoring dependencies..."
|
|
1327
|
+
},
|
|
1328
|
+
validation: {
|
|
1329
|
+
requiredField: "{field} is required",
|
|
1330
|
+
invalidValue: "Invalid value for {field}",
|
|
1331
|
+
pathNotFound: "Path not found: {path}",
|
|
1332
|
+
fileRequired: "File is required: {path}",
|
|
1333
|
+
directoryRequired: "Directory is required: {path}"
|
|
1334
|
+
},
|
|
1335
|
+
warnings: {
|
|
1336
|
+
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
1337
|
+
},
|
|
1338
|
+
info: {
|
|
1339
|
+
operationComplete: "Operation completed successfully",
|
|
1340
|
+
filesProcessed: {
|
|
1341
|
+
zero: "No files processed",
|
|
1342
|
+
one: "{count} file processed",
|
|
1343
|
+
other: "{count} files processed"
|
|
1344
|
+
}
|
|
1345
|
+
}
|
|
1346
|
+
}
|
|
1347
|
+
};
|
|
1348
|
+
ja = {
|
|
1349
|
+
toolCore: {
|
|
1350
|
+
errors: {
|
|
1351
|
+
internal: "Internal error: {message}",
|
|
1352
|
+
fileNotFound: "File not found: {path}",
|
|
1353
|
+
fileReadFailed: "Failed to read file: {path}",
|
|
1354
|
+
fileWriteFailed: "Failed to write file: {path}",
|
|
1355
|
+
directoryNotFound: "Directory not found: {path}",
|
|
1356
|
+
invalidPath: "{path} is not a valid path",
|
|
1357
|
+
operationCanceled: "Operation was canceled",
|
|
1358
|
+
invalidParameter: "Invalid parameter: {parameter}"
|
|
1359
|
+
},
|
|
1360
|
+
progress: {
|
|
1361
|
+
copying: "Copying files...",
|
|
1362
|
+
building: "Building project...",
|
|
1363
|
+
packaging: "Creating package...",
|
|
1364
|
+
validating: "Validating...",
|
|
1365
|
+
analyzing: "Analyzing...",
|
|
1366
|
+
restoring: "Restoring dependencies..."
|
|
1367
|
+
},
|
|
1368
|
+
validation: {
|
|
1369
|
+
requiredField: "{field} is required",
|
|
1370
|
+
invalidValue: "Invalid value for {field}",
|
|
1371
|
+
pathNotFound: "Path not found: {path}",
|
|
1372
|
+
fileRequired: "File is required: {path}",
|
|
1373
|
+
directoryRequired: "Directory is required: {path}"
|
|
1374
|
+
},
|
|
1375
|
+
warnings: {
|
|
1376
|
+
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
1377
|
+
},
|
|
1378
|
+
info: {
|
|
1379
|
+
operationComplete: "Operation completed successfully",
|
|
1380
|
+
filesProcessed: {
|
|
1381
|
+
zero: "No files processed",
|
|
1382
|
+
one: "{count} file processed",
|
|
1383
|
+
other: "{count} files processed"
|
|
1384
|
+
}
|
|
1385
|
+
}
|
|
1386
|
+
}
|
|
1387
|
+
};
|
|
1388
|
+
ko = {
|
|
1389
|
+
toolCore: {
|
|
1390
|
+
errors: {
|
|
1391
|
+
internal: "Internal error: {message}",
|
|
1392
|
+
fileNotFound: "File not found: {path}",
|
|
1393
|
+
fileReadFailed: "Failed to read file: {path}",
|
|
1394
|
+
fileWriteFailed: "Failed to write file: {path}",
|
|
1395
|
+
directoryNotFound: "Directory not found: {path}",
|
|
1396
|
+
invalidPath: "{path} is not a valid path",
|
|
1397
|
+
operationCanceled: "Operation was canceled",
|
|
1398
|
+
invalidParameter: "Invalid parameter: {parameter}"
|
|
1399
|
+
},
|
|
1400
|
+
progress: {
|
|
1401
|
+
copying: "Copying files...",
|
|
1402
|
+
building: "Building project...",
|
|
1403
|
+
packaging: "Creating package...",
|
|
1404
|
+
validating: "Validating...",
|
|
1405
|
+
analyzing: "Analyzing...",
|
|
1406
|
+
restoring: "Restoring dependencies..."
|
|
1407
|
+
},
|
|
1408
|
+
validation: {
|
|
1409
|
+
requiredField: "{field} is required",
|
|
1410
|
+
invalidValue: "Invalid value for {field}",
|
|
1411
|
+
pathNotFound: "Path not found: {path}",
|
|
1412
|
+
fileRequired: "File is required: {path}",
|
|
1413
|
+
directoryRequired: "Directory is required: {path}"
|
|
1414
|
+
},
|
|
1415
|
+
warnings: {
|
|
1416
|
+
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
1417
|
+
},
|
|
1418
|
+
info: {
|
|
1419
|
+
operationComplete: "Operation completed successfully",
|
|
1420
|
+
filesProcessed: {
|
|
1421
|
+
zero: "No files processed",
|
|
1422
|
+
one: "{count} file processed",
|
|
1423
|
+
other: "{count} files processed"
|
|
1424
|
+
}
|
|
1425
|
+
}
|
|
1426
|
+
}
|
|
1427
|
+
};
|
|
1428
|
+
pt = {
|
|
1429
|
+
toolCore: {
|
|
1430
|
+
errors: {
|
|
1431
|
+
internal: "Internal error: {message}",
|
|
1432
|
+
fileNotFound: "File not found: {path}",
|
|
1433
|
+
fileReadFailed: "Failed to read file: {path}",
|
|
1434
|
+
fileWriteFailed: "Failed to write file: {path}",
|
|
1435
|
+
directoryNotFound: "Directory not found: {path}",
|
|
1436
|
+
invalidPath: "{path} is not a valid path",
|
|
1437
|
+
operationCanceled: "Operation was canceled",
|
|
1438
|
+
invalidParameter: "Invalid parameter: {parameter}"
|
|
1439
|
+
},
|
|
1440
|
+
progress: {
|
|
1441
|
+
copying: "Copying files...",
|
|
1442
|
+
building: "Building project...",
|
|
1443
|
+
packaging: "Creating package...",
|
|
1444
|
+
validating: "Validating...",
|
|
1445
|
+
analyzing: "Analyzing...",
|
|
1446
|
+
restoring: "Restoring dependencies..."
|
|
1447
|
+
},
|
|
1448
|
+
validation: {
|
|
1449
|
+
requiredField: "{field} is required",
|
|
1450
|
+
invalidValue: "Invalid value for {field}",
|
|
1451
|
+
pathNotFound: "Path not found: {path}",
|
|
1452
|
+
fileRequired: "File is required: {path}",
|
|
1453
|
+
directoryRequired: "Directory is required: {path}"
|
|
1454
|
+
},
|
|
1455
|
+
warnings: {
|
|
1456
|
+
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
1457
|
+
},
|
|
1458
|
+
info: {
|
|
1459
|
+
operationComplete: "Operation completed successfully",
|
|
1460
|
+
filesProcessed: {
|
|
1461
|
+
zero: "No files processed",
|
|
1462
|
+
one: "{count} file processed",
|
|
1463
|
+
other: "{count} files processed"
|
|
1464
|
+
}
|
|
1465
|
+
}
|
|
1466
|
+
}
|
|
1467
|
+
};
|
|
1468
|
+
pt_BR = {
|
|
1469
|
+
toolCore: {
|
|
1470
|
+
errors: {
|
|
1471
|
+
internal: "Internal error: {message}",
|
|
1472
|
+
fileNotFound: "File not found: {path}",
|
|
1473
|
+
fileReadFailed: "Failed to read file: {path}",
|
|
1474
|
+
fileWriteFailed: "Failed to write file: {path}",
|
|
1475
|
+
directoryNotFound: "Directory not found: {path}",
|
|
1476
|
+
invalidPath: "{path} is not a valid path",
|
|
1477
|
+
operationCanceled: "Operation was canceled",
|
|
1478
|
+
invalidParameter: "Invalid parameter: {parameter}"
|
|
1479
|
+
},
|
|
1480
|
+
progress: {
|
|
1481
|
+
copying: "Copying files...",
|
|
1482
|
+
building: "Building project...",
|
|
1483
|
+
packaging: "Creating package...",
|
|
1484
|
+
validating: "Validating...",
|
|
1485
|
+
analyzing: "Analyzing...",
|
|
1486
|
+
restoring: "Restoring dependencies..."
|
|
1487
|
+
},
|
|
1488
|
+
validation: {
|
|
1489
|
+
requiredField: "{field} is required",
|
|
1490
|
+
invalidValue: "Invalid value for {field}",
|
|
1491
|
+
pathNotFound: "Path not found: {path}",
|
|
1492
|
+
fileRequired: "File is required: {path}",
|
|
1493
|
+
directoryRequired: "Directory is required: {path}"
|
|
1494
|
+
},
|
|
1495
|
+
warnings: {
|
|
1496
|
+
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
1497
|
+
},
|
|
1498
|
+
info: {
|
|
1499
|
+
operationComplete: "Operation completed successfully",
|
|
1500
|
+
filesProcessed: {
|
|
1501
|
+
zero: "No files processed",
|
|
1502
|
+
one: "{count} file processed",
|
|
1503
|
+
other: "{count} files processed"
|
|
1504
|
+
}
|
|
1505
|
+
}
|
|
1506
|
+
}
|
|
1507
|
+
};
|
|
1508
|
+
ro = {
|
|
1509
|
+
toolCore: {
|
|
1510
|
+
errors: {
|
|
1511
|
+
internal: "Internal error: {message}",
|
|
1512
|
+
fileNotFound: "File not found: {path}",
|
|
1513
|
+
fileReadFailed: "Failed to read file: {path}",
|
|
1514
|
+
fileWriteFailed: "Failed to write file: {path}",
|
|
1515
|
+
directoryNotFound: "Directory not found: {path}",
|
|
1516
|
+
invalidPath: "{path} is not a valid path",
|
|
1517
|
+
operationCanceled: "Operation was canceled",
|
|
1518
|
+
invalidParameter: "Invalid parameter: {parameter}"
|
|
1519
|
+
},
|
|
1520
|
+
progress: {
|
|
1521
|
+
copying: "Copying files...",
|
|
1522
|
+
building: "Building project...",
|
|
1523
|
+
packaging: "Creating package...",
|
|
1524
|
+
validating: "Validating...",
|
|
1525
|
+
analyzing: "Analyzing...",
|
|
1526
|
+
restoring: "Restoring dependencies..."
|
|
1527
|
+
},
|
|
1528
|
+
validation: {
|
|
1529
|
+
requiredField: "{field} is required",
|
|
1530
|
+
invalidValue: "Invalid value for {field}",
|
|
1531
|
+
pathNotFound: "Path not found: {path}",
|
|
1532
|
+
fileRequired: "File is required: {path}",
|
|
1533
|
+
directoryRequired: "Directory is required: {path}"
|
|
1534
|
+
},
|
|
1535
|
+
warnings: {
|
|
1536
|
+
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
1537
|
+
},
|
|
1538
|
+
info: {
|
|
1539
|
+
operationComplete: "Operation completed successfully",
|
|
1540
|
+
filesProcessed: {
|
|
1541
|
+
zero: "No files processed",
|
|
1542
|
+
one: "{count} file processed",
|
|
1543
|
+
other: "{count} files processed"
|
|
1544
|
+
}
|
|
1545
|
+
}
|
|
1546
|
+
}
|
|
1547
|
+
};
|
|
1548
|
+
ru = {
|
|
1549
|
+
toolCore: {
|
|
1550
|
+
errors: {
|
|
1551
|
+
internal: "Internal error: {message}",
|
|
1552
|
+
fileNotFound: "File not found: {path}",
|
|
1553
|
+
fileReadFailed: "Failed to read file: {path}",
|
|
1554
|
+
fileWriteFailed: "Failed to write file: {path}",
|
|
1555
|
+
directoryNotFound: "Directory not found: {path}",
|
|
1556
|
+
invalidPath: "{path} is not a valid path",
|
|
1557
|
+
operationCanceled: "Operation was canceled",
|
|
1558
|
+
invalidParameter: "Invalid parameter: {parameter}"
|
|
1559
|
+
},
|
|
1560
|
+
progress: {
|
|
1561
|
+
copying: "Copying files...",
|
|
1562
|
+
building: "Building project...",
|
|
1563
|
+
packaging: "Creating package...",
|
|
1564
|
+
validating: "Validating...",
|
|
1565
|
+
analyzing: "Analyzing...",
|
|
1566
|
+
restoring: "Restoring dependencies..."
|
|
1567
|
+
},
|
|
1568
|
+
validation: {
|
|
1569
|
+
requiredField: "{field} is required",
|
|
1570
|
+
invalidValue: "Invalid value for {field}",
|
|
1571
|
+
pathNotFound: "Path not found: {path}",
|
|
1572
|
+
fileRequired: "File is required: {path}",
|
|
1573
|
+
directoryRequired: "Directory is required: {path}"
|
|
1574
|
+
},
|
|
1575
|
+
warnings: {
|
|
1576
|
+
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
1577
|
+
},
|
|
1578
|
+
info: {
|
|
1579
|
+
operationComplete: "Operation completed successfully",
|
|
1580
|
+
filesProcessed: {
|
|
1581
|
+
zero: "No files processed",
|
|
1582
|
+
one: "{count} file processed",
|
|
1583
|
+
other: "{count} files processed"
|
|
1584
|
+
}
|
|
1585
|
+
}
|
|
1586
|
+
}
|
|
1587
|
+
};
|
|
1588
|
+
tr = {
|
|
1589
|
+
toolCore: {
|
|
1590
|
+
errors: {
|
|
1591
|
+
internal: "Internal error: {message}",
|
|
1592
|
+
fileNotFound: "File not found: {path}",
|
|
1593
|
+
fileReadFailed: "Failed to read file: {path}",
|
|
1594
|
+
fileWriteFailed: "Failed to write file: {path}",
|
|
1595
|
+
directoryNotFound: "Directory not found: {path}",
|
|
1596
|
+
invalidPath: "{path} is not a valid path",
|
|
1597
|
+
operationCanceled: "Operation was canceled",
|
|
1598
|
+
invalidParameter: "Invalid parameter: {parameter}"
|
|
1599
|
+
},
|
|
1600
|
+
progress: {
|
|
1601
|
+
copying: "Copying files...",
|
|
1602
|
+
building: "Building project...",
|
|
1603
|
+
packaging: "Creating package...",
|
|
1604
|
+
validating: "Validating...",
|
|
1605
|
+
analyzing: "Analyzing...",
|
|
1606
|
+
restoring: "Restoring dependencies..."
|
|
1607
|
+
},
|
|
1608
|
+
validation: {
|
|
1609
|
+
requiredField: "{field} is required",
|
|
1610
|
+
invalidValue: "Invalid value for {field}",
|
|
1611
|
+
pathNotFound: "Path not found: {path}",
|
|
1612
|
+
fileRequired: "File is required: {path}",
|
|
1613
|
+
directoryRequired: "Directory is required: {path}"
|
|
1614
|
+
},
|
|
1615
|
+
warnings: {
|
|
1616
|
+
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
1617
|
+
},
|
|
1618
|
+
info: {
|
|
1619
|
+
operationComplete: "Operation completed successfully",
|
|
1620
|
+
filesProcessed: {
|
|
1621
|
+
zero: "No files processed",
|
|
1622
|
+
one: "{count} file processed",
|
|
1623
|
+
other: "{count} files processed"
|
|
1624
|
+
}
|
|
1625
|
+
}
|
|
1626
|
+
}
|
|
1627
|
+
};
|
|
1628
|
+
zh_CN = {
|
|
1629
|
+
toolCore: {
|
|
1630
|
+
errors: {
|
|
1631
|
+
internal: "Internal error: {message}",
|
|
1632
|
+
fileNotFound: "File not found: {path}",
|
|
1633
|
+
fileReadFailed: "Failed to read file: {path}",
|
|
1634
|
+
fileWriteFailed: "Failed to write file: {path}",
|
|
1635
|
+
directoryNotFound: "Directory not found: {path}",
|
|
1636
|
+
invalidPath: "{path} is not a valid path",
|
|
1637
|
+
operationCanceled: "Operation was canceled",
|
|
1638
|
+
invalidParameter: "Invalid parameter: {parameter}"
|
|
1639
|
+
},
|
|
1640
|
+
progress: {
|
|
1641
|
+
copying: "Copying files...",
|
|
1642
|
+
building: "Building project...",
|
|
1643
|
+
packaging: "Creating package...",
|
|
1644
|
+
validating: "Validating...",
|
|
1645
|
+
analyzing: "Analyzing...",
|
|
1646
|
+
restoring: "Restoring dependencies..."
|
|
1647
|
+
},
|
|
1648
|
+
validation: {
|
|
1649
|
+
requiredField: "{field} is required",
|
|
1650
|
+
invalidValue: "Invalid value for {field}",
|
|
1651
|
+
pathNotFound: "Path not found: {path}",
|
|
1652
|
+
fileRequired: "File is required: {path}",
|
|
1653
|
+
directoryRequired: "Directory is required: {path}"
|
|
1654
|
+
},
|
|
1655
|
+
warnings: {
|
|
1656
|
+
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
1657
|
+
},
|
|
1658
|
+
info: {
|
|
1659
|
+
operationComplete: "Operation completed successfully",
|
|
1660
|
+
filesProcessed: {
|
|
1661
|
+
zero: "No files processed",
|
|
1662
|
+
one: "{count} file processed",
|
|
1663
|
+
other: "{count} files processed"
|
|
1664
|
+
}
|
|
1665
|
+
}
|
|
1666
|
+
}
|
|
1667
|
+
};
|
|
1668
|
+
zh_TW = {
|
|
1669
|
+
toolCore: {
|
|
1670
|
+
errors: {
|
|
1671
|
+
internal: "Internal error: {message}",
|
|
1672
|
+
fileNotFound: "File not found: {path}",
|
|
1673
|
+
fileReadFailed: "Failed to read file: {path}",
|
|
1674
|
+
fileWriteFailed: "Failed to write file: {path}",
|
|
1675
|
+
directoryNotFound: "Directory not found: {path}",
|
|
1676
|
+
invalidPath: "{path} is not a valid path",
|
|
1677
|
+
operationCanceled: "Operation was canceled",
|
|
1678
|
+
invalidParameter: "Invalid parameter: {parameter}"
|
|
1679
|
+
},
|
|
1680
|
+
progress: {
|
|
1681
|
+
copying: "Copying files...",
|
|
1682
|
+
building: "Building project...",
|
|
1683
|
+
packaging: "Creating package...",
|
|
1684
|
+
validating: "Validating...",
|
|
1685
|
+
analyzing: "Analyzing...",
|
|
1686
|
+
restoring: "Restoring dependencies..."
|
|
1687
|
+
},
|
|
1688
|
+
validation: {
|
|
1689
|
+
requiredField: "{field} is required",
|
|
1690
|
+
invalidValue: "Invalid value for {field}",
|
|
1691
|
+
pathNotFound: "Path not found: {path}",
|
|
1692
|
+
fileRequired: "File is required: {path}",
|
|
1693
|
+
directoryRequired: "Directory is required: {path}"
|
|
1694
|
+
},
|
|
1695
|
+
warnings: {
|
|
1696
|
+
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
1697
|
+
},
|
|
1698
|
+
info: {
|
|
1699
|
+
operationComplete: "Operation completed successfully",
|
|
1700
|
+
filesProcessed: {
|
|
1701
|
+
zero: "No files processed",
|
|
1702
|
+
one: "{count} file processed",
|
|
1703
|
+
other: "{count} files processed"
|
|
1704
|
+
}
|
|
1705
|
+
}
|
|
1706
|
+
}
|
|
1707
|
+
};
|
|
1708
|
+
zu = {
|
|
1709
|
+
toolCore: {
|
|
1710
|
+
errors: {
|
|
1711
|
+
internal: "Internal error: {message}",
|
|
1712
|
+
fileNotFound: "File not found: {path}",
|
|
1713
|
+
fileReadFailed: "Failed to read file: {path}",
|
|
1714
|
+
fileWriteFailed: "Failed to write file: {path}",
|
|
1715
|
+
directoryNotFound: "Directory not found: {path}",
|
|
1716
|
+
invalidPath: "{path} is not a valid path",
|
|
1717
|
+
operationCanceled: "Operation was canceled",
|
|
1718
|
+
invalidParameter: "Invalid parameter: {parameter}"
|
|
1719
|
+
},
|
|
1720
|
+
progress: {
|
|
1721
|
+
copying: "Copying files...",
|
|
1722
|
+
building: "Building project...",
|
|
1723
|
+
packaging: "Creating package...",
|
|
1724
|
+
validating: "Validating...",
|
|
1725
|
+
analyzing: "Analyzing...",
|
|
1726
|
+
restoring: "Restoring dependencies..."
|
|
1727
|
+
},
|
|
1728
|
+
validation: {
|
|
1729
|
+
requiredField: "{field} is required",
|
|
1730
|
+
invalidValue: "Invalid value for {field}",
|
|
1731
|
+
pathNotFound: "Path not found: {path}",
|
|
1732
|
+
fileRequired: "File is required: {path}",
|
|
1733
|
+
directoryRequired: "Directory is required: {path}"
|
|
1734
|
+
},
|
|
1735
|
+
warnings: {
|
|
1736
|
+
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
1737
|
+
},
|
|
1738
|
+
info: {
|
|
1739
|
+
operationComplete: "Operation completed successfully",
|
|
1740
|
+
filesProcessed: {
|
|
1741
|
+
zero: "No files processed",
|
|
1742
|
+
one: "{count} file processed",
|
|
1743
|
+
other: "{count} files processed"
|
|
1744
|
+
}
|
|
1745
|
+
}
|
|
1746
|
+
}
|
|
1747
|
+
};
|
|
1748
|
+
translate = TranslationService.getInstance();
|
|
1749
|
+
I18nManager.registerTranslations("en", en);
|
|
1750
|
+
I18nManager.registerTranslations("de", de);
|
|
1751
|
+
I18nManager.registerTranslations("es", es);
|
|
1752
|
+
I18nManager.registerTranslations("es-mx", es_MX);
|
|
1753
|
+
I18nManager.registerTranslations("fr", fr);
|
|
1754
|
+
I18nManager.registerTranslations("ja", ja);
|
|
1755
|
+
I18nManager.registerTranslations("ko", ko);
|
|
1756
|
+
I18nManager.registerTranslations("pt", pt);
|
|
1757
|
+
I18nManager.registerTranslations("pt-br", pt_BR);
|
|
1758
|
+
I18nManager.registerTranslations("ro", ro);
|
|
1759
|
+
I18nManager.registerTranslations("ru", ru);
|
|
1760
|
+
I18nManager.registerTranslations("tr", tr);
|
|
1761
|
+
I18nManager.registerTranslations("zh-cn", zh_CN);
|
|
1762
|
+
I18nManager.registerTranslations("zh-tw", zh_TW);
|
|
1763
|
+
I18nManager.registerTranslations("zu", zu);
|
|
1764
|
+
I18nManager.setLocale("en");
|
|
1765
|
+
((BuildConfiguration2) => {
|
|
1766
|
+
BuildConfiguration2["Debug"] = "Debug";
|
|
1767
|
+
BuildConfiguration2["Release"] = "Release";
|
|
1768
|
+
})(BuildConfiguration ||= {});
|
|
1769
|
+
((LogLevel2) => {
|
|
1770
|
+
LogLevel2["Debug"] = "Debug";
|
|
1771
|
+
LogLevel2["Info"] = "Information";
|
|
1772
|
+
LogLevel2["Warn"] = "Warning";
|
|
1773
|
+
LogLevel2["Error"] = "Error";
|
|
1774
|
+
})(LogLevel ||= {});
|
|
1775
|
+
NugetConstants = {
|
|
1776
|
+
OutputFolderName: "bundle",
|
|
1777
|
+
ContentFolderName: "content",
|
|
1778
|
+
OperateFileName: "operate.json",
|
|
1779
|
+
EntryPointsFileName: "entry-points.json",
|
|
1780
|
+
PackageDescriptorFileName: "package-descriptor.json",
|
|
1781
|
+
BindingsV2FileName: "bindings_v2.json",
|
|
1782
|
+
BindingsFileId: "bindings.json"
|
|
1783
|
+
};
|
|
1784
|
+
((ProjectTypes2) => {
|
|
1785
|
+
ProjectTypes2["Agent"] = "Agent";
|
|
1786
|
+
ProjectTypes2["Api"] = "Api";
|
|
1787
|
+
ProjectTypes2["Connector"] = "Connector";
|
|
1788
|
+
ProjectTypes2["CaseManagement"] = "CaseManagement";
|
|
1789
|
+
ProjectTypes2["Flow"] = "Flow";
|
|
1790
|
+
ProjectTypes2["Function"] = "Function";
|
|
1791
|
+
ProjectTypes2["ProcessOrchestration"] = "ProcessOrchestration";
|
|
1792
|
+
ProjectTypes2["Process"] = "Process";
|
|
1793
|
+
ProjectTypes2["Library"] = "Library";
|
|
1794
|
+
ProjectTypes2["WebApp"] = "WebApp";
|
|
1795
|
+
ProjectTypes2["Tests"] = "Tests";
|
|
1796
|
+
ProjectTypes2["AppV2"] = "AppV2";
|
|
1797
|
+
})(ProjectTypes ||= {});
|
|
1798
|
+
((TargetFramework2) => {
|
|
1799
|
+
TargetFramework2["Portable"] = "Portable";
|
|
1800
|
+
TargetFramework2["Windows"] = "Windows";
|
|
1801
|
+
})(TargetFramework ||= {});
|
|
1802
|
+
((ToolErrorCodes2) => {
|
|
1803
|
+
ToolErrorCodes2["Success"] = "SUCCESS";
|
|
1804
|
+
ToolErrorCodes2["InternalError"] = "INTERNAL_ERROR";
|
|
1805
|
+
ToolErrorCodes2["Canceled"] = "CANCELED";
|
|
1806
|
+
})(ToolErrorCodes ||= {});
|
|
1807
|
+
REGISTRY_KEY = Symbol.for("@uipath/solutionpackager-tool-core/toolsFactoryRepository");
|
|
1808
|
+
_global = globalThis;
|
|
1809
|
+
if (!_global[REGISTRY_KEY]) {
|
|
1810
|
+
_global[REGISTRY_KEY] = new ToolsFactoryRepository;
|
|
1811
|
+
}
|
|
1812
|
+
toolsFactoryRepository = _global[REGISTRY_KEY];
|
|
1813
|
+
});
|
|
1814
|
+
|
|
47
1815
|
// ../../node_modules/@uipath/agents-storage-schemas/node_modules/zod/v4/core/core.js
|
|
48
1816
|
function $constructor(name, initializer, params) {
|
|
49
1817
|
function init(inst, def) {
|
|
50
|
-
var
|
|
1818
|
+
var _a2;
|
|
51
1819
|
Object.defineProperty(inst, "_zod", {
|
|
52
1820
|
value: inst._zod ?? {},
|
|
53
1821
|
enumerable: false
|
|
54
1822
|
});
|
|
55
|
-
(
|
|
1823
|
+
(_a2 = inst._zod).traits ?? (_a2.traits = new Set);
|
|
56
1824
|
inst._zod.traits.add(name);
|
|
57
1825
|
initializer(inst, def);
|
|
58
1826
|
for (const k in _.prototype) {
|
|
@@ -68,10 +1836,10 @@ function $constructor(name, initializer, params) {
|
|
|
68
1836
|
}
|
|
69
1837
|
Object.defineProperty(Definition, "name", { value: name });
|
|
70
1838
|
function _(def) {
|
|
71
|
-
var
|
|
1839
|
+
var _a2;
|
|
72
1840
|
const inst = params?.Parent ? new Definition : this;
|
|
73
1841
|
init(inst, def);
|
|
74
|
-
(
|
|
1842
|
+
(_a2 = inst._zod).deferred ?? (_a2.deferred = []);
|
|
75
1843
|
for (const fn of inst._zod.deferred) {
|
|
76
1844
|
fn();
|
|
77
1845
|
}
|
|
@@ -250,8 +2018,8 @@ function promiseAllObject(promisesObj) {
|
|
|
250
2018
|
const promises = keys.map((key) => promisesObj[key]);
|
|
251
2019
|
return Promise.all(promises).then((results) => {
|
|
252
2020
|
const resolvedObj = {};
|
|
253
|
-
for (let
|
|
254
|
-
resolvedObj[keys[
|
|
2021
|
+
for (let i2 = 0;i2 < keys.length; i2++) {
|
|
2022
|
+
resolvedObj[keys[i2]] = results[i2];
|
|
255
2023
|
}
|
|
256
2024
|
return resolvedObj;
|
|
257
2025
|
});
|
|
@@ -259,7 +2027,7 @@ function promiseAllObject(promisesObj) {
|
|
|
259
2027
|
function randomString(length = 10) {
|
|
260
2028
|
const chars = "abcdefghijklmnopqrstuvwxyz";
|
|
261
2029
|
let str = "";
|
|
262
|
-
for (let
|
|
2030
|
+
for (let i2 = 0;i2 < length; i2++) {
|
|
263
2031
|
str += chars[Math.floor(Math.random() * chars.length)];
|
|
264
2032
|
}
|
|
265
2033
|
return str;
|
|
@@ -482,17 +2250,17 @@ function required(Class, schema, mask) {
|
|
|
482
2250
|
checks: []
|
|
483
2251
|
});
|
|
484
2252
|
}
|
|
485
|
-
function aborted(
|
|
486
|
-
for (let
|
|
487
|
-
if (
|
|
2253
|
+
function aborted(x2, startIndex = 0) {
|
|
2254
|
+
for (let i2 = startIndex;i2 < x2.issues.length; i2++) {
|
|
2255
|
+
if (x2.issues[i2]?.continue !== true)
|
|
488
2256
|
return true;
|
|
489
2257
|
}
|
|
490
2258
|
return false;
|
|
491
2259
|
}
|
|
492
2260
|
function prefixIssues(path, issues) {
|
|
493
2261
|
return issues.map((iss) => {
|
|
494
|
-
var
|
|
495
|
-
(
|
|
2262
|
+
var _a2;
|
|
2263
|
+
(_a2 = iss).path ?? (_a2.path = []);
|
|
496
2264
|
iss.path.unshift(path);
|
|
497
2265
|
return iss;
|
|
498
2266
|
});
|
|
@@ -654,10 +2422,10 @@ function formatError(error, _mapper) {
|
|
|
654
2422
|
fieldErrors._errors.push(mapper(issue2));
|
|
655
2423
|
} else {
|
|
656
2424
|
let curr = fieldErrors;
|
|
657
|
-
let
|
|
658
|
-
while (
|
|
659
|
-
const el = issue2.path[
|
|
660
|
-
const terminal =
|
|
2425
|
+
let i2 = 0;
|
|
2426
|
+
while (i2 < issue2.path.length) {
|
|
2427
|
+
const el = issue2.path[i2];
|
|
2428
|
+
const terminal = i2 === issue2.path.length - 1;
|
|
661
2429
|
if (!terminal) {
|
|
662
2430
|
curr[el] = curr[el] || { _errors: [] };
|
|
663
2431
|
} else {
|
|
@@ -665,7 +2433,7 @@ function formatError(error, _mapper) {
|
|
|
665
2433
|
curr[el]._errors.push(mapper(issue2));
|
|
666
2434
|
}
|
|
667
2435
|
curr = curr[el];
|
|
668
|
-
|
|
2436
|
+
i2++;
|
|
669
2437
|
}
|
|
670
2438
|
}
|
|
671
2439
|
}
|
|
@@ -679,7 +2447,7 @@ function treeifyError(error, _mapper) {
|
|
|
679
2447
|
};
|
|
680
2448
|
const result = { errors: [] };
|
|
681
2449
|
const processError = (error2, path = []) => {
|
|
682
|
-
var
|
|
2450
|
+
var _a2, _b2;
|
|
683
2451
|
for (const issue2 of error2.issues) {
|
|
684
2452
|
if (issue2.code === "invalid_union" && issue2.errors.length) {
|
|
685
2453
|
issue2.errors.map((issues) => processError({ issues }, issue2.path));
|
|
@@ -694,23 +2462,23 @@ function treeifyError(error, _mapper) {
|
|
|
694
2462
|
continue;
|
|
695
2463
|
}
|
|
696
2464
|
let curr = result;
|
|
697
|
-
let
|
|
698
|
-
while (
|
|
699
|
-
const el = fullpath[
|
|
700
|
-
const terminal =
|
|
2465
|
+
let i2 = 0;
|
|
2466
|
+
while (i2 < fullpath.length) {
|
|
2467
|
+
const el = fullpath[i2];
|
|
2468
|
+
const terminal = i2 === fullpath.length - 1;
|
|
701
2469
|
if (typeof el === "string") {
|
|
702
2470
|
curr.properties ?? (curr.properties = {});
|
|
703
|
-
(
|
|
2471
|
+
(_a2 = curr.properties)[el] ?? (_a2[el] = { errors: [] });
|
|
704
2472
|
curr = curr.properties[el];
|
|
705
2473
|
} else {
|
|
706
2474
|
curr.items ?? (curr.items = []);
|
|
707
|
-
(
|
|
2475
|
+
(_b2 = curr.items)[el] ?? (_b2[el] = { errors: [] });
|
|
708
2476
|
curr = curr.items[el];
|
|
709
2477
|
}
|
|
710
2478
|
if (terminal) {
|
|
711
2479
|
curr.errors.push(mapper(issue2));
|
|
712
2480
|
}
|
|
713
|
-
|
|
2481
|
+
i2++;
|
|
714
2482
|
}
|
|
715
2483
|
}
|
|
716
2484
|
}
|
|
@@ -952,10 +2720,10 @@ var init_checks = __esm(() => {
|
|
|
952
2720
|
init_regexes();
|
|
953
2721
|
init_util();
|
|
954
2722
|
$ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
955
|
-
var
|
|
2723
|
+
var _a2;
|
|
956
2724
|
inst._zod ?? (inst._zod = {});
|
|
957
2725
|
inst._zod.def = def;
|
|
958
|
-
(
|
|
2726
|
+
(_a2 = inst._zod).onattach ?? (_a2.onattach = []);
|
|
959
2727
|
});
|
|
960
2728
|
numericOriginMap = {
|
|
961
2729
|
number: "number",
|
|
@@ -1021,8 +2789,8 @@ var init_checks = __esm(() => {
|
|
|
1021
2789
|
$ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {
|
|
1022
2790
|
$ZodCheck.init(inst, def);
|
|
1023
2791
|
inst._zod.onattach.push((inst2) => {
|
|
1024
|
-
var
|
|
1025
|
-
(
|
|
2792
|
+
var _a2;
|
|
2793
|
+
(_a2 = inst2._zod.bag).multipleOf ?? (_a2.multipleOf = def.value);
|
|
1026
2794
|
});
|
|
1027
2795
|
inst._zod.check = (payload) => {
|
|
1028
2796
|
if (typeof payload.value !== typeof def.value)
|
|
@@ -1148,9 +2916,9 @@ var init_checks = __esm(() => {
|
|
|
1148
2916
|
};
|
|
1149
2917
|
});
|
|
1150
2918
|
$ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
|
|
1151
|
-
var
|
|
2919
|
+
var _a2;
|
|
1152
2920
|
$ZodCheck.init(inst, def);
|
|
1153
|
-
(
|
|
2921
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
1154
2922
|
const val = payload.value;
|
|
1155
2923
|
return !nullish(val) && val.size !== undefined;
|
|
1156
2924
|
});
|
|
@@ -1175,9 +2943,9 @@ var init_checks = __esm(() => {
|
|
|
1175
2943
|
};
|
|
1176
2944
|
});
|
|
1177
2945
|
$ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
|
|
1178
|
-
var
|
|
2946
|
+
var _a2;
|
|
1179
2947
|
$ZodCheck.init(inst, def);
|
|
1180
|
-
(
|
|
2948
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
1181
2949
|
const val = payload.value;
|
|
1182
2950
|
return !nullish(val) && val.size !== undefined;
|
|
1183
2951
|
});
|
|
@@ -1202,9 +2970,9 @@ var init_checks = __esm(() => {
|
|
|
1202
2970
|
};
|
|
1203
2971
|
});
|
|
1204
2972
|
$ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
|
|
1205
|
-
var
|
|
2973
|
+
var _a2;
|
|
1206
2974
|
$ZodCheck.init(inst, def);
|
|
1207
|
-
(
|
|
2975
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
1208
2976
|
const val = payload.value;
|
|
1209
2977
|
return !nullish(val) && val.size !== undefined;
|
|
1210
2978
|
});
|
|
@@ -1232,9 +3000,9 @@ var init_checks = __esm(() => {
|
|
|
1232
3000
|
};
|
|
1233
3001
|
});
|
|
1234
3002
|
$ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
|
|
1235
|
-
var
|
|
3003
|
+
var _a2;
|
|
1236
3004
|
$ZodCheck.init(inst, def);
|
|
1237
|
-
(
|
|
3005
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
1238
3006
|
const val = payload.value;
|
|
1239
3007
|
return !nullish(val) && val.length !== undefined;
|
|
1240
3008
|
});
|
|
@@ -1261,9 +3029,9 @@ var init_checks = __esm(() => {
|
|
|
1261
3029
|
};
|
|
1262
3030
|
});
|
|
1263
3031
|
$ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
|
|
1264
|
-
var
|
|
3032
|
+
var _a2;
|
|
1265
3033
|
$ZodCheck.init(inst, def);
|
|
1266
|
-
(
|
|
3034
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
1267
3035
|
const val = payload.value;
|
|
1268
3036
|
return !nullish(val) && val.length !== undefined;
|
|
1269
3037
|
});
|
|
@@ -1290,9 +3058,9 @@ var init_checks = __esm(() => {
|
|
|
1290
3058
|
};
|
|
1291
3059
|
});
|
|
1292
3060
|
$ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
|
|
1293
|
-
var
|
|
3061
|
+
var _a2;
|
|
1294
3062
|
$ZodCheck.init(inst, def);
|
|
1295
|
-
(
|
|
3063
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
1296
3064
|
const val = payload.value;
|
|
1297
3065
|
return !nullish(val) && val.length !== undefined;
|
|
1298
3066
|
});
|
|
@@ -1321,7 +3089,7 @@ var init_checks = __esm(() => {
|
|
|
1321
3089
|
};
|
|
1322
3090
|
});
|
|
1323
3091
|
$ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
1324
|
-
var
|
|
3092
|
+
var _a2, _b2;
|
|
1325
3093
|
$ZodCheck.init(inst, def);
|
|
1326
3094
|
inst._zod.onattach.push((inst2) => {
|
|
1327
3095
|
const bag = inst2._zod.bag;
|
|
@@ -1332,7 +3100,7 @@ var init_checks = __esm(() => {
|
|
|
1332
3100
|
}
|
|
1333
3101
|
});
|
|
1334
3102
|
if (def.pattern)
|
|
1335
|
-
(
|
|
3103
|
+
(_a2 = inst._zod).check ?? (_a2.check = (payload) => {
|
|
1336
3104
|
def.pattern.lastIndex = 0;
|
|
1337
3105
|
if (def.pattern.test(payload.value))
|
|
1338
3106
|
return;
|
|
@@ -1347,7 +3115,7 @@ var init_checks = __esm(() => {
|
|
|
1347
3115
|
});
|
|
1348
3116
|
});
|
|
1349
3117
|
else
|
|
1350
|
-
(
|
|
3118
|
+
(_b2 = inst._zod).check ?? (_b2.check = () => {});
|
|
1351
3119
|
});
|
|
1352
3120
|
$ZodCheckRegex = /* @__PURE__ */ $constructor("$ZodCheckRegex", (inst, def) => {
|
|
1353
3121
|
$ZodCheckStringFormat.init(inst, def);
|
|
@@ -1504,9 +3272,9 @@ class Doc {
|
|
|
1504
3272
|
}
|
|
1505
3273
|
const content = arg;
|
|
1506
3274
|
const lines = content.split(`
|
|
1507
|
-
`).filter((
|
|
1508
|
-
const minIndent = Math.min(...lines.map((
|
|
1509
|
-
const dedented = lines.map((
|
|
3275
|
+
`).filter((x2) => x2);
|
|
3276
|
+
const minIndent = Math.min(...lines.map((x2) => x2.length - x2.trimStart().length));
|
|
3277
|
+
const dedented = lines.map((x2) => x2.slice(minIndent)).map((x2) => " ".repeat(this.indent * 2) + x2);
|
|
1510
3278
|
for (const line of dedented) {
|
|
1511
3279
|
this.content.push(line);
|
|
1512
3280
|
}
|
|
@@ -1515,7 +3283,7 @@ class Doc {
|
|
|
1515
3283
|
const F = Function;
|
|
1516
3284
|
const args = this?.args;
|
|
1517
3285
|
const content = this?.content ?? [``];
|
|
1518
|
-
const lines = [...content.map((
|
|
3286
|
+
const lines = [...content.map((x2) => ` ${x2}`)];
|
|
1519
3287
|
return new F(...args, lines.join(`
|
|
1520
3288
|
`));
|
|
1521
3289
|
}
|
|
@@ -1769,7 +3537,7 @@ var init_schemas = __esm(() => {
|
|
|
1769
3537
|
init_versions();
|
|
1770
3538
|
init_util();
|
|
1771
3539
|
$ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
1772
|
-
var
|
|
3540
|
+
var _a2;
|
|
1773
3541
|
inst ?? (inst = {});
|
|
1774
3542
|
inst._zod.def = def;
|
|
1775
3543
|
inst._zod.bag = inst._zod.bag || {};
|
|
@@ -1784,7 +3552,7 @@ var init_schemas = __esm(() => {
|
|
|
1784
3552
|
}
|
|
1785
3553
|
}
|
|
1786
3554
|
if (checks.length === 0) {
|
|
1787
|
-
(
|
|
3555
|
+
(_a2 = inst._zod).deferred ?? (_a2.deferred = []);
|
|
1788
3556
|
inst._zod.deferred?.push(() => {
|
|
1789
3557
|
inst._zod.run = inst._zod.parse;
|
|
1790
3558
|
});
|
|
@@ -2319,16 +4087,16 @@ var init_schemas = __esm(() => {
|
|
|
2319
4087
|
}
|
|
2320
4088
|
payload.value = Array(input.length);
|
|
2321
4089
|
const proms = [];
|
|
2322
|
-
for (let
|
|
2323
|
-
const item = input[
|
|
4090
|
+
for (let i2 = 0;i2 < input.length; i2++) {
|
|
4091
|
+
const item = input[i2];
|
|
2324
4092
|
const result = def.element._zod.run({
|
|
2325
4093
|
value: item,
|
|
2326
4094
|
issues: []
|
|
2327
4095
|
}, ctx);
|
|
2328
4096
|
if (result instanceof Promise) {
|
|
2329
|
-
proms.push(result.then((result2) => handleArrayResult(result2, payload,
|
|
4097
|
+
proms.push(result.then((result2) => handleArrayResult(result2, payload, i2)));
|
|
2330
4098
|
} else {
|
|
2331
|
-
handleArrayResult(result, payload,
|
|
4099
|
+
handleArrayResult(result, payload, i2);
|
|
2332
4100
|
}
|
|
2333
4101
|
}
|
|
2334
4102
|
if (proms.length) {
|
|
@@ -2649,35 +4417,35 @@ var init_schemas = __esm(() => {
|
|
|
2649
4417
|
return payload;
|
|
2650
4418
|
}
|
|
2651
4419
|
}
|
|
2652
|
-
let
|
|
4420
|
+
let i2 = -1;
|
|
2653
4421
|
for (const item of items) {
|
|
2654
|
-
|
|
2655
|
-
if (
|
|
2656
|
-
if (
|
|
4422
|
+
i2++;
|
|
4423
|
+
if (i2 >= input.length) {
|
|
4424
|
+
if (i2 >= optStart)
|
|
2657
4425
|
continue;
|
|
2658
4426
|
}
|
|
2659
4427
|
const result = item._zod.run({
|
|
2660
|
-
value: input[
|
|
4428
|
+
value: input[i2],
|
|
2661
4429
|
issues: []
|
|
2662
4430
|
}, ctx);
|
|
2663
4431
|
if (result instanceof Promise) {
|
|
2664
|
-
proms.push(result.then((result2) => handleTupleResult(result2, payload,
|
|
4432
|
+
proms.push(result.then((result2) => handleTupleResult(result2, payload, i2)));
|
|
2665
4433
|
} else {
|
|
2666
|
-
handleTupleResult(result, payload,
|
|
4434
|
+
handleTupleResult(result, payload, i2);
|
|
2667
4435
|
}
|
|
2668
4436
|
}
|
|
2669
4437
|
if (def.rest) {
|
|
2670
4438
|
const rest = input.slice(items.length);
|
|
2671
4439
|
for (const el of rest) {
|
|
2672
|
-
|
|
4440
|
+
i2++;
|
|
2673
4441
|
const result = def.rest._zod.run({
|
|
2674
4442
|
value: el,
|
|
2675
4443
|
issues: []
|
|
2676
4444
|
}, ctx);
|
|
2677
4445
|
if (result instanceof Promise) {
|
|
2678
|
-
proms.push(result.then((result2) => handleTupleResult(result2, payload,
|
|
4446
|
+
proms.push(result.then((result2) => handleTupleResult(result2, payload, i2)));
|
|
2679
4447
|
} else {
|
|
2680
|
-
handleTupleResult(result, payload,
|
|
4448
|
+
handleTupleResult(result, payload, i2);
|
|
2681
4449
|
}
|
|
2682
4450
|
}
|
|
2683
4451
|
}
|
|
@@ -2976,7 +4744,7 @@ var init_schemas = __esm(() => {
|
|
|
2976
4744
|
$ZodType.init(inst, def);
|
|
2977
4745
|
defineLazy(inst._zod, "values", () => {
|
|
2978
4746
|
const v = def.innerType._zod.values;
|
|
2979
|
-
return v ? new Set([...v].filter((
|
|
4747
|
+
return v ? new Set([...v].filter((x2) => x2 !== undefined)) : undefined;
|
|
2980
4748
|
});
|
|
2981
4749
|
inst._zod.parse = (payload, ctx) => {
|
|
2982
4750
|
const result = def.innerType._zod.run(payload, ctx);
|
|
@@ -9073,7 +10841,7 @@ class JSONSchemaGenerator {
|
|
|
9073
10841
|
this.seen = new Map;
|
|
9074
10842
|
}
|
|
9075
10843
|
process(schema, _params = { path: [], schemaPath: [] }) {
|
|
9076
|
-
var
|
|
10844
|
+
var _a2;
|
|
9077
10845
|
const def = schema._zod.def;
|
|
9078
10846
|
const formatMap = {
|
|
9079
10847
|
guid: "uuid",
|
|
@@ -9271,9 +11039,9 @@ class JSONSchemaGenerator {
|
|
|
9271
11039
|
}
|
|
9272
11040
|
case "union": {
|
|
9273
11041
|
const json = _json;
|
|
9274
|
-
json.anyOf = def.options.map((
|
|
11042
|
+
json.anyOf = def.options.map((x2, i2) => this.process(x2, {
|
|
9275
11043
|
...params,
|
|
9276
|
-
path: [...params.path, "anyOf",
|
|
11044
|
+
path: [...params.path, "anyOf", i2]
|
|
9277
11045
|
}));
|
|
9278
11046
|
break;
|
|
9279
11047
|
}
|
|
@@ -9298,7 +11066,7 @@ class JSONSchemaGenerator {
|
|
|
9298
11066
|
case "tuple": {
|
|
9299
11067
|
const json = _json;
|
|
9300
11068
|
json.type = "array";
|
|
9301
|
-
const prefixItems = def.items.map((
|
|
11069
|
+
const prefixItems = def.items.map((x2, i2) => this.process(x2, { ...params, path: [...params.path, "prefixItems", i2] }));
|
|
9302
11070
|
if (this.target === "draft-2020-12") {
|
|
9303
11071
|
json.prefixItems = prefixItems;
|
|
9304
11072
|
} else {
|
|
@@ -9529,7 +11297,7 @@ class JSONSchemaGenerator {
|
|
|
9529
11297
|
delete result.schema.default;
|
|
9530
11298
|
}
|
|
9531
11299
|
if (this.io === "input" && result.schema._prefault)
|
|
9532
|
-
(
|
|
11300
|
+
(_a2 = result.schema).default ?? (_a2.default = result.schema._prefault);
|
|
9533
11301
|
delete result.schema._prefault;
|
|
9534
11302
|
const _result = this.seen.get(schema);
|
|
9535
11303
|
return _result.schema;
|
|
@@ -11686,11 +13454,11 @@ var require_semver = __commonJS((exports, module) => {
|
|
|
11686
13454
|
} else if (!this.prerelease.length && !other.prerelease.length) {
|
|
11687
13455
|
return 0;
|
|
11688
13456
|
}
|
|
11689
|
-
let
|
|
13457
|
+
let i2 = 0;
|
|
11690
13458
|
do {
|
|
11691
|
-
const a = this.prerelease[
|
|
11692
|
-
const b = other.prerelease[
|
|
11693
|
-
debug("prerelease compare",
|
|
13459
|
+
const a = this.prerelease[i2];
|
|
13460
|
+
const b = other.prerelease[i2];
|
|
13461
|
+
debug("prerelease compare", i2, a, b);
|
|
11694
13462
|
if (a === undefined && b === undefined) {
|
|
11695
13463
|
return 0;
|
|
11696
13464
|
} else if (b === undefined) {
|
|
@@ -11702,17 +13470,17 @@ var require_semver = __commonJS((exports, module) => {
|
|
|
11702
13470
|
} else {
|
|
11703
13471
|
return compareIdentifiers(a, b);
|
|
11704
13472
|
}
|
|
11705
|
-
} while (++
|
|
13473
|
+
} while (++i2);
|
|
11706
13474
|
}
|
|
11707
13475
|
compareBuild(other) {
|
|
11708
13476
|
if (!(other instanceof SemVer)) {
|
|
11709
13477
|
other = new SemVer(other, this.options);
|
|
11710
13478
|
}
|
|
11711
|
-
let
|
|
13479
|
+
let i2 = 0;
|
|
11712
13480
|
do {
|
|
11713
|
-
const a = this.build[
|
|
11714
|
-
const b = other.build[
|
|
11715
|
-
debug("build compare",
|
|
13481
|
+
const a = this.build[i2];
|
|
13482
|
+
const b = other.build[i2];
|
|
13483
|
+
debug("build compare", i2, a, b);
|
|
11716
13484
|
if (a === undefined && b === undefined) {
|
|
11717
13485
|
return 0;
|
|
11718
13486
|
} else if (b === undefined) {
|
|
@@ -11724,7 +13492,7 @@ var require_semver = __commonJS((exports, module) => {
|
|
|
11724
13492
|
} else {
|
|
11725
13493
|
return compareIdentifiers(a, b);
|
|
11726
13494
|
}
|
|
11727
|
-
} while (++
|
|
13495
|
+
} while (++i2);
|
|
11728
13496
|
}
|
|
11729
13497
|
inc(release, identifier, identifierBase) {
|
|
11730
13498
|
if (release.startsWith("pre")) {
|
|
@@ -11795,14 +13563,14 @@ var require_semver = __commonJS((exports, module) => {
|
|
|
11795
13563
|
if (this.prerelease.length === 0) {
|
|
11796
13564
|
this.prerelease = [base];
|
|
11797
13565
|
} else {
|
|
11798
|
-
let
|
|
11799
|
-
while (--
|
|
11800
|
-
if (typeof this.prerelease[
|
|
11801
|
-
this.prerelease[
|
|
11802
|
-
|
|
13566
|
+
let i2 = this.prerelease.length;
|
|
13567
|
+
while (--i2 >= 0) {
|
|
13568
|
+
if (typeof this.prerelease[i2] === "number") {
|
|
13569
|
+
this.prerelease[i2]++;
|
|
13570
|
+
i2 = -2;
|
|
11803
13571
|
}
|
|
11804
13572
|
}
|
|
11805
|
-
if (
|
|
13573
|
+
if (i2 === -1) {
|
|
11806
13574
|
if (identifier === this.prerelease.join(".") && identifierBase === false) {
|
|
11807
13575
|
throw new Error("invalid increment argument: identifier already exists");
|
|
11808
13576
|
}
|
|
@@ -12226,11 +13994,11 @@ var require_range = __commonJS((exports, module) => {
|
|
|
12226
13994
|
get range() {
|
|
12227
13995
|
if (this.formatted === undefined) {
|
|
12228
13996
|
this.formatted = "";
|
|
12229
|
-
for (let
|
|
12230
|
-
if (
|
|
13997
|
+
for (let i2 = 0;i2 < this.set.length; i2++) {
|
|
13998
|
+
if (i2 > 0) {
|
|
12231
13999
|
this.formatted += "||";
|
|
12232
14000
|
}
|
|
12233
|
-
const comps = this.set[
|
|
14001
|
+
const comps = this.set[i2];
|
|
12234
14002
|
for (let k = 0;k < comps.length; k++) {
|
|
12235
14003
|
if (k > 0) {
|
|
12236
14004
|
this.formatted += " ";
|
|
@@ -12312,8 +14080,8 @@ var require_range = __commonJS((exports, module) => {
|
|
|
12312
14080
|
return false;
|
|
12313
14081
|
}
|
|
12314
14082
|
}
|
|
12315
|
-
for (let
|
|
12316
|
-
if (testSet(this.set[
|
|
14083
|
+
for (let i2 = 0;i2 < this.set.length; i2++) {
|
|
14084
|
+
if (testSet(this.set[i2], version2, this.options)) {
|
|
12317
14085
|
return true;
|
|
12318
14086
|
}
|
|
12319
14087
|
}
|
|
@@ -12529,19 +14297,19 @@ var require_range = __commonJS((exports, module) => {
|
|
|
12529
14297
|
return `${from} ${to}`.trim();
|
|
12530
14298
|
};
|
|
12531
14299
|
var testSet = (set2, version2, options) => {
|
|
12532
|
-
for (let
|
|
12533
|
-
if (!set2[
|
|
14300
|
+
for (let i2 = 0;i2 < set2.length; i2++) {
|
|
14301
|
+
if (!set2[i2].test(version2)) {
|
|
12534
14302
|
return false;
|
|
12535
14303
|
}
|
|
12536
14304
|
}
|
|
12537
14305
|
if (version2.prerelease.length && !options.includePrerelease) {
|
|
12538
|
-
for (let
|
|
12539
|
-
debug(set2[
|
|
12540
|
-
if (set2[
|
|
14306
|
+
for (let i2 = 0;i2 < set2.length; i2++) {
|
|
14307
|
+
debug(set2[i2].semver);
|
|
14308
|
+
if (set2[i2].semver === Comparator.ANY) {
|
|
12541
14309
|
continue;
|
|
12542
14310
|
}
|
|
12543
|
-
if (set2[
|
|
12544
|
-
const allowed = set2[
|
|
14311
|
+
if (set2[i2].semver.prerelease.length > 0) {
|
|
14312
|
+
const allowed = set2[i2].semver;
|
|
12545
14313
|
if (allowed.major === version2.major && allowed.minor === version2.minor && allowed.patch === version2.patch) {
|
|
12546
14314
|
return true;
|
|
12547
14315
|
}
|
|
@@ -12753,8 +14521,8 @@ var require_min_version = __commonJS((exports, module) => {
|
|
|
12753
14521
|
return minver;
|
|
12754
14522
|
}
|
|
12755
14523
|
minver = null;
|
|
12756
|
-
for (let
|
|
12757
|
-
const comparators = range.set[
|
|
14524
|
+
for (let i2 = 0;i2 < range.set.length; ++i2) {
|
|
14525
|
+
const comparators = range.set[i2];
|
|
12758
14526
|
let setMin = null;
|
|
12759
14527
|
comparators.forEach((comparator) => {
|
|
12760
14528
|
const compver = new SemVer(comparator.semver.version);
|
|
@@ -12840,8 +14608,8 @@ var require_outside = __commonJS((exports, module) => {
|
|
|
12840
14608
|
if (satisfies(version2, range, options)) {
|
|
12841
14609
|
return false;
|
|
12842
14610
|
}
|
|
12843
|
-
for (let
|
|
12844
|
-
const comparators = range.set[
|
|
14611
|
+
for (let i2 = 0;i2 < range.set.length; ++i2) {
|
|
14612
|
+
const comparators = range.set[i2];
|
|
12845
14613
|
let high = null;
|
|
12846
14614
|
let low = null;
|
|
12847
14615
|
comparators.forEach((comparator) => {
|
|
@@ -13397,10 +15165,10 @@ var import_semver, createStorageSchema = (factory) => {
|
|
|
13397
15165
|
exampleCalls,
|
|
13398
15166
|
requireConversationalConfirmation
|
|
13399
15167
|
};
|
|
13400
|
-
}, migrationV40, version16 = "41.0.0", nodePositionSchemaV41, nodeSizeSchemaV41, resourceNodeSchemaV41, stickyNoteNodeSchemaV41, flowLayoutSchemaV41, lowCodeAgentSchemaV41, codedAgentSchemaV41, agentStorageSchemaV41, storageSchemaV41, v41, migrationV41, version17 = "42.0.0", ENTITIES_TO_REMOVE, lowCodeAgentSchemaV42, codedAgentSchemaV42, agentStorageSchemaV42, storageSchemaV42, v42, migrationV42, version18 = "43.0.0", lowCodeAgentSchemaV43, codedAgentSchemaV43, agentStorageSchemaV43, storageSchemaV43, v43, migrationV43, version19 = "44.0.0", _memorySpaceStorageSchemaV43, msEscalationSettingsSchemaV44, escalationStorageSchemaV44, resourceStorageSchemaV44, resourcesFolderSchemaV44, lowCodeAgentSchemaV44, codedAgentSchemaV44, agentStorageSchemaV44, storageSchemaV44, v44, migrationV44, version20 = "45.0.0", appearanceSchema2, lowCodeAgentSchemaV45, codedAgentSchemaV45, agentStorageSchemaV45, storageSchemaV45, v45, migrationV45, version21 = "46.0.0", lowCodeAgentSchemaV46, codedAgentSchemaV46, agentStorageSchemaV46, storageSchemaV46, v46, migrationV46, version222 = "47.0.0", processOrchestrationToolStorageSchemaV47, toolStorageSchemaV47, resourceStorageSchemaV47, resourcesFolderSchemaV47, lowCodeAgentSchemaV47, codedAgentSchemaV47, agentStorageSchemaV47, storageSchemaV47, v47, migrationV47, version23 = "48.0.0", dataFabricEntityItemSchemaV48, indexOrAttachmentsContextStorageSchemaV48, dataFabricContextStorageSchemaV48, contextStorageSchemaV48,
|
|
15168
|
+
}, migrationV40, version16 = "41.0.0", nodePositionSchemaV41, nodeSizeSchemaV41, resourceNodeSchemaV41, stickyNoteNodeSchemaV41, flowLayoutSchemaV41, lowCodeAgentSchemaV41, codedAgentSchemaV41, agentStorageSchemaV41, storageSchemaV41, v41, migrationV41, version17 = "42.0.0", ENTITIES_TO_REMOVE, lowCodeAgentSchemaV42, codedAgentSchemaV42, agentStorageSchemaV42, storageSchemaV42, v42, migrationV42, version18 = "43.0.0", lowCodeAgentSchemaV43, codedAgentSchemaV43, agentStorageSchemaV43, storageSchemaV43, v43, migrationV43, version19 = "44.0.0", _memorySpaceStorageSchemaV43, msEscalationSettingsSchemaV44, escalationStorageSchemaV44, resourceStorageSchemaV44, resourcesFolderSchemaV44, lowCodeAgentSchemaV44, codedAgentSchemaV44, agentStorageSchemaV44, storageSchemaV44, v44, migrationV44, version20 = "45.0.0", appearanceSchema2, lowCodeAgentSchemaV45, codedAgentSchemaV45, agentStorageSchemaV45, storageSchemaV45, v45, migrationV45, version21 = "46.0.0", lowCodeAgentSchemaV46, codedAgentSchemaV46, agentStorageSchemaV46, storageSchemaV46, v46, migrationV46, version222 = "47.0.0", processOrchestrationToolStorageSchemaV47, toolStorageSchemaV47, resourceStorageSchemaV47, resourcesFolderSchemaV47, lowCodeAgentSchemaV47, codedAgentSchemaV47, agentStorageSchemaV47, storageSchemaV47, v47, migrationV47, version23 = "48.0.0", vdoInputValueSchemaV48, requiredEntityInputSchemaV48, dataFabricEntityItemSchemaV48, indexOrAttachmentsContextStorageSchemaV48, dataFabricContextStorageSchemaV48, contextStorageSchemaV48, a2aStorageSchemaV48, resourceStorageSchemaV48, resourcesFolderSchemaV48, lowCodeAgentSchemaV48, codedAgentSchemaV48, agentStorageSchemaV48, storageSchemaV48, migrateContextResource = (context) => ({
|
|
13401
15169
|
...context,
|
|
13402
15170
|
contextType: context.contextType ?? (context.attachments ? "attachments" : "index")
|
|
13403
|
-
}), v48, migrationV48, version24 = "49.0.0", lowCodeAgentSchemaV49, codedAgentSchemaV49, agentStorageSchemaV49, storageSchemaV49, v49, migrationV49, version25 = "50.0.0", baseLowCodeSettingsSchema, standardLowCodeAgentSettingsV50, advancedLowCodeAgentSettingsV50, lowCodeAgentSettingsV50, lowCodeAgentSchemaV50, codedAgentSchemaV50, agentStorageSchemaV50, storageSchemaV50, v50, migrationV50, migrations, currentStorageSchemaMigration, currentStorageSchema, currentAgentStorageSchema, currentResourceStorageSchema, currentFeatureStorageSchema, currentEvaluationSetStorageSchema, currentCodedAgentStorageSchema, currentFlowLayoutStorageSchema, applyMigrations = async (migrations2, data, currentVersion9, options = {}) => {
|
|
15171
|
+
}), v48, migrationV48, version24 = "49.0.0", lowCodeAgentSchemaV49, codedAgentSchemaV49, agentStorageSchemaV49, storageSchemaV49, v49, migrationV49, version25 = "50.0.0", RECIPIENT_TYPE3, escalationChannelActionCenterSchemaV50, escalationStorageSchemaV50, baseLowCodeSettingsSchema, _v49ProcessToolSchema, standardLowCodeAgentSettingsV50, advancedLowCodeAgentSettingsV50, lowCodeAgentSettingsV50, lowCodeAgentSchemaV50, codedAgentSchemaV50, agentStorageSchemaV50, clientSideToolStorageSchemaV50, toolStorageSchemaV50, resourceStorageSchemaV50, resourcesFolderSchemaV50, storageSchemaV50, v50, migrationV50, migrations, currentStorageSchemaMigration, currentStorageSchema, currentAgentStorageSchema, currentResourceStorageSchema, currentFeatureStorageSchema, currentEvaluationSetStorageSchema, currentCodedAgentStorageSchema, currentFlowLayoutStorageSchema, applyMigrations = async (migrations2, data, currentVersion9, options = {}) => {
|
|
13404
15172
|
const parsedCurrentVersion = import_semver.coerce(currentVersion9);
|
|
13405
15173
|
if (!parsedCurrentVersion) {
|
|
13406
15174
|
throw new Error(`Invalid current version: ${currentVersion9}`);
|
|
@@ -13436,7 +15204,7 @@ var import_semver, createStorageSchema = (factory) => {
|
|
|
13436
15204
|
throw new Error("No migrations available");
|
|
13437
15205
|
return migrations2[migrations2.length - 1].to.version;
|
|
13438
15206
|
};
|
|
13439
|
-
var
|
|
15207
|
+
var init_dist2 = __esm(() => {
|
|
13440
15208
|
init_v4();
|
|
13441
15209
|
import_semver = __toESM(require_semver2(), 1);
|
|
13442
15210
|
jsonSchemaTypeSchema = exports_external.enum([
|
|
@@ -20428,6 +22196,7 @@ var init_dist = __esm(() => {
|
|
|
20428
22196
|
lowCodeAgent: lowCodeAgentSchemaV39,
|
|
20429
22197
|
codedAgent: codedAgentSchemaV39,
|
|
20430
22198
|
context: v38.context,
|
|
22199
|
+
escalationChannelActionCenter: v38.escalationChannelActionCenter,
|
|
20431
22200
|
escalation: v38.escalation,
|
|
20432
22201
|
resource: v38.resource,
|
|
20433
22202
|
feature: v38.feature,
|
|
@@ -20668,6 +22437,7 @@ var init_dist = __esm(() => {
|
|
|
20668
22437
|
lowCodeAgent: lowCodeAgentSchemaV40,
|
|
20669
22438
|
codedAgent: codedAgentSchemaV40,
|
|
20670
22439
|
context: v39.context,
|
|
22440
|
+
escalationChannelActionCenter: v39.escalationChannelActionCenter,
|
|
20671
22441
|
escalation: v39.escalation,
|
|
20672
22442
|
resource: resourceStorageSchemaV40,
|
|
20673
22443
|
feature: v39.feature,
|
|
@@ -20834,6 +22604,7 @@ var init_dist = __esm(() => {
|
|
|
20834
22604
|
lowCodeAgent: lowCodeAgentSchemaV41,
|
|
20835
22605
|
codedAgent: codedAgentSchemaV41,
|
|
20836
22606
|
context: v40.context,
|
|
22607
|
+
escalationChannelActionCenter: v40.escalationChannelActionCenter,
|
|
20837
22608
|
escalation: v40.escalation,
|
|
20838
22609
|
resource: v40.resource,
|
|
20839
22610
|
feature: v40.feature,
|
|
@@ -20950,6 +22721,7 @@ var init_dist = __esm(() => {
|
|
|
20950
22721
|
lowCodeAgent: lowCodeAgentSchemaV42,
|
|
20951
22722
|
codedAgent: codedAgentSchemaV42,
|
|
20952
22723
|
context: v41.context,
|
|
22724
|
+
escalationChannelActionCenter: v41.escalationChannelActionCenter,
|
|
20953
22725
|
escalation: v41.escalation,
|
|
20954
22726
|
resource: v41.resource,
|
|
20955
22727
|
feature: v41.feature,
|
|
@@ -21088,6 +22860,7 @@ var init_dist = __esm(() => {
|
|
|
21088
22860
|
lowCodeAgent: lowCodeAgentSchemaV43,
|
|
21089
22861
|
codedAgent: codedAgentSchemaV43,
|
|
21090
22862
|
context: v42.context,
|
|
22863
|
+
escalationChannelActionCenter: v42.escalationChannelActionCenter,
|
|
21091
22864
|
escalation: v42.escalation,
|
|
21092
22865
|
resource: v42.resource,
|
|
21093
22866
|
feature: v42.feature,
|
|
@@ -21220,6 +22993,7 @@ var init_dist = __esm(() => {
|
|
|
21220
22993
|
lowCodeAgent: lowCodeAgentSchemaV44,
|
|
21221
22994
|
codedAgent: codedAgentSchemaV44,
|
|
21222
22995
|
context: v43.context,
|
|
22996
|
+
escalationChannelActionCenter: v43.escalationChannelActionCenter,
|
|
21223
22997
|
escalation: escalationStorageSchemaV44,
|
|
21224
22998
|
resource: resourceStorageSchemaV44,
|
|
21225
22999
|
feature: v43.feature,
|
|
@@ -21361,6 +23135,7 @@ var init_dist = __esm(() => {
|
|
|
21361
23135
|
lowCodeAgent: lowCodeAgentSchemaV45,
|
|
21362
23136
|
codedAgent: codedAgentSchemaV45,
|
|
21363
23137
|
context: v44.context,
|
|
23138
|
+
escalationChannelActionCenter: v44.escalationChannelActionCenter,
|
|
21364
23139
|
escalation: v44.escalation,
|
|
21365
23140
|
resource: v44.resource,
|
|
21366
23141
|
feature: v44.feature,
|
|
@@ -21471,6 +23246,7 @@ var init_dist = __esm(() => {
|
|
|
21471
23246
|
lowCodeAgent: lowCodeAgentSchemaV46,
|
|
21472
23247
|
codedAgent: codedAgentSchemaV46,
|
|
21473
23248
|
context: v45.context,
|
|
23249
|
+
escalationChannelActionCenter: v45.escalationChannelActionCenter,
|
|
21474
23250
|
escalation: v45.escalation,
|
|
21475
23251
|
resource: v45.resource,
|
|
21476
23252
|
feature: v45.feature,
|
|
@@ -21605,6 +23381,7 @@ var init_dist = __esm(() => {
|
|
|
21605
23381
|
lowCodeAgent: lowCodeAgentSchemaV47,
|
|
21606
23382
|
codedAgent: codedAgentSchemaV47,
|
|
21607
23383
|
context: v46.context,
|
|
23384
|
+
escalationChannelActionCenter: v46.escalationChannelActionCenter,
|
|
21608
23385
|
escalation: v46.escalation,
|
|
21609
23386
|
resource: resourceStorageSchemaV47,
|
|
21610
23387
|
feature: v46.feature,
|
|
@@ -21683,12 +23460,25 @@ var init_dist = __esm(() => {
|
|
|
21683
23460
|
};
|
|
21684
23461
|
}
|
|
21685
23462
|
});
|
|
23463
|
+
vdoInputValueSchemaV48 = exports_external.object({
|
|
23464
|
+
variant: exports_external.enum(["static", "argument"]),
|
|
23465
|
+
value: exports_external.string().optional()
|
|
23466
|
+
});
|
|
23467
|
+
requiredEntityInputSchemaV48 = exports_external.object({
|
|
23468
|
+
name: exports_external.string(),
|
|
23469
|
+
displayName: exports_external.string(),
|
|
23470
|
+
description: exports_external.string().nullable(),
|
|
23471
|
+
type: exports_external.string().nullable()
|
|
23472
|
+
});
|
|
21686
23473
|
dataFabricEntityItemSchemaV48 = exports_external.object({
|
|
21687
23474
|
id: exports_external.string(),
|
|
21688
23475
|
referenceKey: exports_external.string().optional(),
|
|
21689
23476
|
name: exports_external.string(),
|
|
21690
23477
|
folderId: exports_external.string(),
|
|
21691
|
-
|
|
23478
|
+
folderDisplayName: exports_external.string().optional(),
|
|
23479
|
+
description: exports_external.string().nullable(),
|
|
23480
|
+
inputs: exports_external.record(exports_external.string(), vdoInputValueSchemaV48).optional(),
|
|
23481
|
+
requiredInputs: exports_external.array(requiredEntityInputSchemaV48).optional()
|
|
21692
23482
|
});
|
|
21693
23483
|
indexOrAttachmentsContextStorageSchemaV48 = v47.context.extend({
|
|
21694
23484
|
contextType: exports_external.enum(["index", "attachments"]),
|
|
@@ -21706,26 +23496,17 @@ var init_dist = __esm(() => {
|
|
|
21706
23496
|
indexOrAttachmentsContextStorageSchemaV48,
|
|
21707
23497
|
dataFabricContextStorageSchemaV48
|
|
21708
23498
|
]);
|
|
21709
|
-
a2aCachedAgentCardStorageSchemaV48 = exports_external.record(exports_external.string(), exports_external.any());
|
|
21710
|
-
a2aFolderStorageSchemaV48 = exports_external.object({
|
|
21711
|
-
key: exports_external.string(),
|
|
21712
|
-
displayName: exports_external.string(),
|
|
21713
|
-
fullyQualifiedName: exports_external.string()
|
|
21714
|
-
});
|
|
21715
23499
|
a2aStorageSchemaV48 = exports_external.object({
|
|
21716
23500
|
$resourceType: exports_external.literal("a2a"),
|
|
21717
23501
|
id: exports_external.string(),
|
|
21718
23502
|
name: exports_external.string(),
|
|
21719
23503
|
description: exports_external.string(),
|
|
23504
|
+
folderPath: exports_external.string().optional(),
|
|
21720
23505
|
slug: exports_external.string(),
|
|
21721
|
-
|
|
21722
|
-
|
|
21723
|
-
|
|
21724
|
-
|
|
21725
|
-
createdAt: exports_external.string().optional(),
|
|
21726
|
-
createdBy: exports_external.string().optional(),
|
|
21727
|
-
updatedAt: exports_external.string().nullable().optional(),
|
|
21728
|
-
updatedBy: exports_external.string().nullable().optional()
|
|
23506
|
+
cachedAgentCard: exports_external.record(exports_external.string(), exports_external.any()).nullable().optional(),
|
|
23507
|
+
solutionProperties: exports_external.object({
|
|
23508
|
+
resourceKey: exports_external.string()
|
|
23509
|
+
})
|
|
21729
23510
|
});
|
|
21730
23511
|
resourceStorageSchemaV48 = exports_external.union([
|
|
21731
23512
|
v47.tool,
|
|
@@ -21774,13 +23555,19 @@ var init_dist = __esm(() => {
|
|
|
21774
23555
|
agent: agentStorageSchemaV48,
|
|
21775
23556
|
lowCodeAgent: lowCodeAgentSchemaV48,
|
|
21776
23557
|
codedAgent: codedAgentSchemaV48,
|
|
23558
|
+
context: contextStorageSchemaV48,
|
|
23559
|
+
escalationChannelActionCenter: v47.escalationChannelActionCenter,
|
|
23560
|
+
escalation: v47.escalation,
|
|
21777
23561
|
resource: resourceStorageSchemaV48,
|
|
21778
23562
|
feature: v47.feature,
|
|
21779
23563
|
evalSet: v47.evalSet,
|
|
21780
23564
|
evalsFolder: v47.evalsFolder,
|
|
21781
23565
|
resourcesFolder: resourcesFolderSchemaV48,
|
|
21782
23566
|
featuresFolder: v47.featuresFolder,
|
|
21783
|
-
flowLayout: v47.flowLayout
|
|
23567
|
+
flowLayout: v47.flowLayout,
|
|
23568
|
+
mcp: v47.mcp,
|
|
23569
|
+
a2a: a2aStorageSchemaV48,
|
|
23570
|
+
tool: v47.tool
|
|
21784
23571
|
};
|
|
21785
23572
|
migrationV48 = createMigration({
|
|
21786
23573
|
from: v47.storage,
|
|
@@ -21891,13 +23678,18 @@ var init_dist = __esm(() => {
|
|
|
21891
23678
|
agent: agentStorageSchemaV49,
|
|
21892
23679
|
lowCodeAgent: lowCodeAgentSchemaV49,
|
|
21893
23680
|
codedAgent: codedAgentSchemaV49,
|
|
23681
|
+
context: v48.context,
|
|
23682
|
+
escalationChannelActionCenter: v48.escalationChannelActionCenter,
|
|
23683
|
+
escalation: v48.escalation,
|
|
21894
23684
|
resource: v48.resource,
|
|
21895
23685
|
feature: v48.feature,
|
|
21896
23686
|
evalSet: v48.evalSet,
|
|
21897
23687
|
evalsFolder: v48.evalsFolder,
|
|
21898
|
-
resourcesFolder: v48.resourcesFolder,
|
|
21899
23688
|
featuresFolder: v48.featuresFolder,
|
|
21900
|
-
flowLayout: v48.flowLayout
|
|
23689
|
+
flowLayout: v48.flowLayout,
|
|
23690
|
+
mcp: v48.mcp,
|
|
23691
|
+
a2a: v48.a2a,
|
|
23692
|
+
tool: v48.tool
|
|
21901
23693
|
};
|
|
21902
23694
|
migrationV49 = createMigration({
|
|
21903
23695
|
from: v48.storage,
|
|
@@ -21966,7 +23758,41 @@ var init_dist = __esm(() => {
|
|
|
21966
23758
|
};
|
|
21967
23759
|
}
|
|
21968
23760
|
});
|
|
23761
|
+
RECIPIENT_TYPE3 = {
|
|
23762
|
+
USER_ID: 1,
|
|
23763
|
+
GROUP_ID: 2,
|
|
23764
|
+
STATIC_USER_EMAIL: 3,
|
|
23765
|
+
ASSET_USER_EMAIL: 4,
|
|
23766
|
+
STATIC_GROUP_NAME: 5,
|
|
23767
|
+
ASSET_GROUP_NAME: 6,
|
|
23768
|
+
ARGUMENT_USER_EMAIL: 7,
|
|
23769
|
+
ARGUMENT_GROUP_NAME: 8
|
|
23770
|
+
};
|
|
23771
|
+
escalationChannelActionCenterSchemaV50 = v49.escalationChannelActionCenter.extend({
|
|
23772
|
+
recipients: exports_external.array(exports_external.discriminatedUnion("type", [
|
|
23773
|
+
exports_external.object({ type: exports_external.literal(RECIPIENT_TYPE3.USER_ID), value: exports_external.string(), displayName: exports_external.string() }),
|
|
23774
|
+
exports_external.object({ type: exports_external.literal(RECIPIENT_TYPE3.GROUP_ID), value: exports_external.string(), displayName: exports_external.string() }),
|
|
23775
|
+
exports_external.object({ type: exports_external.literal(RECIPIENT_TYPE3.STATIC_USER_EMAIL), value: exports_external.string() }),
|
|
23776
|
+
exports_external.object({
|
|
23777
|
+
type: exports_external.literal(RECIPIENT_TYPE3.ASSET_USER_EMAIL),
|
|
23778
|
+
folderPath: exports_external.string().optional(),
|
|
23779
|
+
assetName: exports_external.string()
|
|
23780
|
+
}),
|
|
23781
|
+
exports_external.object({ type: exports_external.literal(RECIPIENT_TYPE3.STATIC_GROUP_NAME), value: exports_external.string() }),
|
|
23782
|
+
exports_external.object({
|
|
23783
|
+
type: exports_external.literal(RECIPIENT_TYPE3.ASSET_GROUP_NAME),
|
|
23784
|
+
folderPath: exports_external.string().optional(),
|
|
23785
|
+
assetName: exports_external.string()
|
|
23786
|
+
}),
|
|
23787
|
+
exports_external.object({ type: exports_external.literal(RECIPIENT_TYPE3.ARGUMENT_USER_EMAIL), argumentName: exports_external.string() }),
|
|
23788
|
+
exports_external.object({ type: exports_external.literal(RECIPIENT_TYPE3.ARGUMENT_GROUP_NAME), argumentName: exports_external.string() })
|
|
23789
|
+
]))
|
|
23790
|
+
});
|
|
23791
|
+
escalationStorageSchemaV50 = v49.escalation.extend({
|
|
23792
|
+
channels: exports_external.array(exports_external.discriminatedUnion("type", [escalationChannelActionCenterSchemaV50]))
|
|
23793
|
+
});
|
|
21969
23794
|
baseLowCodeSettingsSchema = v49.lowCodeAgent.shape.settings;
|
|
23795
|
+
_v49ProcessToolSchema = v49.tool.options[1];
|
|
21970
23796
|
standardLowCodeAgentSettingsV50 = baseLowCodeSettingsSchema.extend({ mode: exports_external.literal("standard") });
|
|
21971
23797
|
advancedLowCodeAgentSettingsV50 = baseLowCodeSettingsSchema.extend({ mode: exports_external.literal("advanced") });
|
|
21972
23798
|
lowCodeAgentSettingsV50 = exports_external.discriminatedUnion("mode", [
|
|
@@ -21977,7 +23803,9 @@ var init_dist = __esm(() => {
|
|
|
21977
23803
|
metadata: v49.lowCodeAgent.shape.metadata.extend({
|
|
21978
23804
|
storageVersion: exports_external.literal(version25)
|
|
21979
23805
|
}),
|
|
21980
|
-
settings: lowCodeAgentSettingsV50
|
|
23806
|
+
settings: lowCodeAgentSettingsV50,
|
|
23807
|
+
id: exports_external.string().optional(),
|
|
23808
|
+
name: exports_external.string().optional()
|
|
21981
23809
|
});
|
|
21982
23810
|
codedAgentSchemaV50 = v49.codedAgent.extend({
|
|
21983
23811
|
metadata: v49.codedAgent.shape.metadata.extend({
|
|
@@ -21985,10 +23813,56 @@ var init_dist = __esm(() => {
|
|
|
21985
23813
|
})
|
|
21986
23814
|
});
|
|
21987
23815
|
agentStorageSchemaV50 = exports_external.discriminatedUnion("type", [lowCodeAgentSchemaV50, codedAgentSchemaV50]);
|
|
23816
|
+
clientSideToolStorageSchemaV50 = exports_external.object({
|
|
23817
|
+
$resourceType: exports_external.literal("tool"),
|
|
23818
|
+
id: exports_external.string(),
|
|
23819
|
+
name: exports_external.string(),
|
|
23820
|
+
description: exports_external.string(),
|
|
23821
|
+
type: exports_external.literal("clientSide"),
|
|
23822
|
+
location: exports_external.literal("solution"),
|
|
23823
|
+
referenceKey: exports_external.null().default(null),
|
|
23824
|
+
isEnabled: exports_external.boolean().default(true),
|
|
23825
|
+
inputSchema: jsonSchemaSchema,
|
|
23826
|
+
outputSchema: jsonSchemaSchema,
|
|
23827
|
+
settings: exports_external.object({
|
|
23828
|
+
timeout: exports_external.number().optional()
|
|
23829
|
+
}),
|
|
23830
|
+
properties: exports_external.object({
|
|
23831
|
+
exampleCalls: _v49ProcessToolSchema.shape.properties.shape.exampleCalls,
|
|
23832
|
+
requireConversationalConfirmation: exports_external.boolean().optional()
|
|
23833
|
+
}),
|
|
23834
|
+
argumentProperties: _v49ProcessToolSchema.shape.argumentProperties,
|
|
23835
|
+
guardrail: _v49ProcessToolSchema.shape.guardrail
|
|
23836
|
+
});
|
|
23837
|
+
toolStorageSchemaV50 = exports_external.discriminatedUnion("type", [
|
|
23838
|
+
...v49.tool.options,
|
|
23839
|
+
clientSideToolStorageSchemaV50
|
|
23840
|
+
]);
|
|
23841
|
+
resourceStorageSchemaV50 = exports_external.union([
|
|
23842
|
+
toolStorageSchemaV50,
|
|
23843
|
+
v49.context,
|
|
23844
|
+
escalationStorageSchemaV50,
|
|
23845
|
+
v49.mcp,
|
|
23846
|
+
v49.a2a
|
|
23847
|
+
]);
|
|
23848
|
+
resourcesFolderSchemaV50 = exports_external.object({
|
|
23849
|
+
name: exports_external.literal("resources"),
|
|
23850
|
+
folders: exports_external.array(exports_external.object({
|
|
23851
|
+
name: exports_external.string(),
|
|
23852
|
+
folders: exports_external.array(exports_external.any()),
|
|
23853
|
+
files: exports_external.tuple([
|
|
23854
|
+
exports_external.object({
|
|
23855
|
+
name: exports_external.literal("resource.json"),
|
|
23856
|
+
content: deserialized(resourceStorageSchemaV50)
|
|
23857
|
+
})
|
|
23858
|
+
])
|
|
23859
|
+
})),
|
|
23860
|
+
files: exports_external.tuple([])
|
|
23861
|
+
});
|
|
21988
23862
|
storageSchemaV50 = createStorageSchema(() => ({
|
|
21989
23863
|
version: version25,
|
|
21990
23864
|
fileSystem: exports_external.object({
|
|
21991
|
-
folders: exports_external.tuple([v49.evalsFolder, v49.featuresFolder,
|
|
23865
|
+
folders: exports_external.tuple([v49.evalsFolder, v49.featuresFolder, resourcesFolderSchemaV50]),
|
|
21992
23866
|
files: exports_external.tuple([
|
|
21993
23867
|
exports_external.object({ name: exports_external.literal("agent.json"), content: deserialized(agentStorageSchemaV50) }),
|
|
21994
23868
|
exports_external.object({ name: exports_external.literal("flow-layout.json"), content: deserialized(v49.flowLayout) })
|
|
@@ -21999,7 +23873,6 @@ var init_dist = __esm(() => {
|
|
|
21999
23873
|
storage: storageSchemaV50,
|
|
22000
23874
|
agent: agentStorageSchemaV50,
|
|
22001
23875
|
codedAgent: codedAgentSchemaV50,
|
|
22002
|
-
resource: v49.resource,
|
|
22003
23876
|
feature: v49.feature,
|
|
22004
23877
|
evalSet: v49.evalSet,
|
|
22005
23878
|
flowLayout: v49.flowLayout
|
|
@@ -22010,7 +23883,7 @@ var init_dist = __esm(() => {
|
|
|
22010
23883
|
entities: {
|
|
22011
23884
|
agent: v50.agent,
|
|
22012
23885
|
codedAgent: v50.codedAgent,
|
|
22013
|
-
resource:
|
|
23886
|
+
resource: resourceStorageSchemaV50,
|
|
22014
23887
|
feature: v50.feature,
|
|
22015
23888
|
evalSet: v50.evalSet,
|
|
22016
23889
|
flowLayout: v50.flowLayout
|
|
@@ -22140,12 +24013,12 @@ var init_dist = __esm(() => {
|
|
|
22140
24013
|
// ../../node_modules/@uipath/tool-agent/node_modules/zod/v4/core/core.js
|
|
22141
24014
|
function $constructor2(name, initializer3, params) {
|
|
22142
24015
|
function init(inst, def) {
|
|
22143
|
-
var
|
|
24016
|
+
var _a2;
|
|
22144
24017
|
Object.defineProperty(inst, "_zod", {
|
|
22145
24018
|
value: inst._zod ?? {},
|
|
22146
24019
|
enumerable: false
|
|
22147
24020
|
});
|
|
22148
|
-
(
|
|
24021
|
+
(_a2 = inst._zod).traits ?? (_a2.traits = new Set);
|
|
22149
24022
|
inst._zod.traits.add(name);
|
|
22150
24023
|
initializer3(inst, def);
|
|
22151
24024
|
for (const k in _.prototype) {
|
|
@@ -22161,10 +24034,10 @@ function $constructor2(name, initializer3, params) {
|
|
|
22161
24034
|
}
|
|
22162
24035
|
Object.defineProperty(Definition, "name", { value: name });
|
|
22163
24036
|
function _(def) {
|
|
22164
|
-
var
|
|
24037
|
+
var _a2;
|
|
22165
24038
|
const inst = params?.Parent ? new Definition : this;
|
|
22166
24039
|
init(inst, def);
|
|
22167
|
-
(
|
|
24040
|
+
(_a2 = inst._zod).deferred ?? (_a2.deferred = []);
|
|
22168
24041
|
for (const fn of inst._zod.deferred) {
|
|
22169
24042
|
fn();
|
|
22170
24043
|
}
|
|
@@ -22343,8 +24216,8 @@ function promiseAllObject2(promisesObj) {
|
|
|
22343
24216
|
const promises = keys.map((key) => promisesObj[key]);
|
|
22344
24217
|
return Promise.all(promises).then((results) => {
|
|
22345
24218
|
const resolvedObj = {};
|
|
22346
|
-
for (let
|
|
22347
|
-
resolvedObj[keys[
|
|
24219
|
+
for (let i2 = 0;i2 < keys.length; i2++) {
|
|
24220
|
+
resolvedObj[keys[i2]] = results[i2];
|
|
22348
24221
|
}
|
|
22349
24222
|
return resolvedObj;
|
|
22350
24223
|
});
|
|
@@ -22352,7 +24225,7 @@ function promiseAllObject2(promisesObj) {
|
|
|
22352
24225
|
function randomString2(length = 10) {
|
|
22353
24226
|
const chars = "abcdefghijklmnopqrstuvwxyz";
|
|
22354
24227
|
let str = "";
|
|
22355
|
-
for (let
|
|
24228
|
+
for (let i2 = 0;i2 < length; i2++) {
|
|
22356
24229
|
str += chars[Math.floor(Math.random() * chars.length)];
|
|
22357
24230
|
}
|
|
22358
24231
|
return str;
|
|
@@ -22575,17 +24448,17 @@ function required2(Class2, schema, mask) {
|
|
|
22575
24448
|
checks: []
|
|
22576
24449
|
});
|
|
22577
24450
|
}
|
|
22578
|
-
function aborted2(
|
|
22579
|
-
for (let
|
|
22580
|
-
if (
|
|
24451
|
+
function aborted2(x2, startIndex = 0) {
|
|
24452
|
+
for (let i2 = startIndex;i2 < x2.issues.length; i2++) {
|
|
24453
|
+
if (x2.issues[i2]?.continue !== true)
|
|
22581
24454
|
return true;
|
|
22582
24455
|
}
|
|
22583
24456
|
return false;
|
|
22584
24457
|
}
|
|
22585
24458
|
function prefixIssues2(path, issues) {
|
|
22586
24459
|
return issues.map((iss) => {
|
|
22587
|
-
var
|
|
22588
|
-
(
|
|
24460
|
+
var _a2;
|
|
24461
|
+
(_a2 = iss).path ?? (_a2.path = []);
|
|
22589
24462
|
iss.path.unshift(path);
|
|
22590
24463
|
return iss;
|
|
22591
24464
|
});
|
|
@@ -22747,10 +24620,10 @@ function formatError2(error40, _mapper) {
|
|
|
22747
24620
|
fieldErrors._errors.push(mapper(issue3));
|
|
22748
24621
|
} else {
|
|
22749
24622
|
let curr = fieldErrors;
|
|
22750
|
-
let
|
|
22751
|
-
while (
|
|
22752
|
-
const el = issue3.path[
|
|
22753
|
-
const terminal =
|
|
24623
|
+
let i2 = 0;
|
|
24624
|
+
while (i2 < issue3.path.length) {
|
|
24625
|
+
const el = issue3.path[i2];
|
|
24626
|
+
const terminal = i2 === issue3.path.length - 1;
|
|
22754
24627
|
if (!terminal) {
|
|
22755
24628
|
curr[el] = curr[el] || { _errors: [] };
|
|
22756
24629
|
} else {
|
|
@@ -22758,7 +24631,7 @@ function formatError2(error40, _mapper) {
|
|
|
22758
24631
|
curr[el]._errors.push(mapper(issue3));
|
|
22759
24632
|
}
|
|
22760
24633
|
curr = curr[el];
|
|
22761
|
-
|
|
24634
|
+
i2++;
|
|
22762
24635
|
}
|
|
22763
24636
|
}
|
|
22764
24637
|
}
|
|
@@ -22772,7 +24645,7 @@ function treeifyError2(error40, _mapper) {
|
|
|
22772
24645
|
};
|
|
22773
24646
|
const result = { errors: [] };
|
|
22774
24647
|
const processError = (error41, path = []) => {
|
|
22775
|
-
var
|
|
24648
|
+
var _a2, _b2;
|
|
22776
24649
|
for (const issue3 of error41.issues) {
|
|
22777
24650
|
if (issue3.code === "invalid_union" && issue3.errors.length) {
|
|
22778
24651
|
issue3.errors.map((issues) => processError({ issues }, issue3.path));
|
|
@@ -22787,23 +24660,23 @@ function treeifyError2(error40, _mapper) {
|
|
|
22787
24660
|
continue;
|
|
22788
24661
|
}
|
|
22789
24662
|
let curr = result;
|
|
22790
|
-
let
|
|
22791
|
-
while (
|
|
22792
|
-
const el = fullpath[
|
|
22793
|
-
const terminal =
|
|
24663
|
+
let i2 = 0;
|
|
24664
|
+
while (i2 < fullpath.length) {
|
|
24665
|
+
const el = fullpath[i2];
|
|
24666
|
+
const terminal = i2 === fullpath.length - 1;
|
|
22794
24667
|
if (typeof el === "string") {
|
|
22795
24668
|
curr.properties ?? (curr.properties = {});
|
|
22796
|
-
(
|
|
24669
|
+
(_a2 = curr.properties)[el] ?? (_a2[el] = { errors: [] });
|
|
22797
24670
|
curr = curr.properties[el];
|
|
22798
24671
|
} else {
|
|
22799
24672
|
curr.items ?? (curr.items = []);
|
|
22800
|
-
(
|
|
24673
|
+
(_b2 = curr.items)[el] ?? (_b2[el] = { errors: [] });
|
|
22801
24674
|
curr = curr.items[el];
|
|
22802
24675
|
}
|
|
22803
24676
|
if (terminal) {
|
|
22804
24677
|
curr.errors.push(mapper(issue3));
|
|
22805
24678
|
}
|
|
22806
|
-
|
|
24679
|
+
i2++;
|
|
22807
24680
|
}
|
|
22808
24681
|
}
|
|
22809
24682
|
}
|
|
@@ -23045,10 +24918,10 @@ var init_checks3 = __esm(() => {
|
|
|
23045
24918
|
init_regexes2();
|
|
23046
24919
|
init_util2();
|
|
23047
24920
|
$ZodCheck2 = /* @__PURE__ */ $constructor2("$ZodCheck", (inst, def) => {
|
|
23048
|
-
var
|
|
24921
|
+
var _a2;
|
|
23049
24922
|
inst._zod ?? (inst._zod = {});
|
|
23050
24923
|
inst._zod.def = def;
|
|
23051
|
-
(
|
|
24924
|
+
(_a2 = inst._zod).onattach ?? (_a2.onattach = []);
|
|
23052
24925
|
});
|
|
23053
24926
|
numericOriginMap2 = {
|
|
23054
24927
|
number: "number",
|
|
@@ -23114,8 +24987,8 @@ var init_checks3 = __esm(() => {
|
|
|
23114
24987
|
$ZodCheckMultipleOf2 = /* @__PURE__ */ $constructor2("$ZodCheckMultipleOf", (inst, def) => {
|
|
23115
24988
|
$ZodCheck2.init(inst, def);
|
|
23116
24989
|
inst._zod.onattach.push((inst2) => {
|
|
23117
|
-
var
|
|
23118
|
-
(
|
|
24990
|
+
var _a2;
|
|
24991
|
+
(_a2 = inst2._zod.bag).multipleOf ?? (_a2.multipleOf = def.value);
|
|
23119
24992
|
});
|
|
23120
24993
|
inst._zod.check = (payload) => {
|
|
23121
24994
|
if (typeof payload.value !== typeof def.value)
|
|
@@ -23241,9 +25114,9 @@ var init_checks3 = __esm(() => {
|
|
|
23241
25114
|
};
|
|
23242
25115
|
});
|
|
23243
25116
|
$ZodCheckMaxSize2 = /* @__PURE__ */ $constructor2("$ZodCheckMaxSize", (inst, def) => {
|
|
23244
|
-
var
|
|
25117
|
+
var _a2;
|
|
23245
25118
|
$ZodCheck2.init(inst, def);
|
|
23246
|
-
(
|
|
25119
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
23247
25120
|
const val = payload.value;
|
|
23248
25121
|
return !nullish3(val) && val.size !== undefined;
|
|
23249
25122
|
});
|
|
@@ -23268,9 +25141,9 @@ var init_checks3 = __esm(() => {
|
|
|
23268
25141
|
};
|
|
23269
25142
|
});
|
|
23270
25143
|
$ZodCheckMinSize2 = /* @__PURE__ */ $constructor2("$ZodCheckMinSize", (inst, def) => {
|
|
23271
|
-
var
|
|
25144
|
+
var _a2;
|
|
23272
25145
|
$ZodCheck2.init(inst, def);
|
|
23273
|
-
(
|
|
25146
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
23274
25147
|
const val = payload.value;
|
|
23275
25148
|
return !nullish3(val) && val.size !== undefined;
|
|
23276
25149
|
});
|
|
@@ -23295,9 +25168,9 @@ var init_checks3 = __esm(() => {
|
|
|
23295
25168
|
};
|
|
23296
25169
|
});
|
|
23297
25170
|
$ZodCheckSizeEquals2 = /* @__PURE__ */ $constructor2("$ZodCheckSizeEquals", (inst, def) => {
|
|
23298
|
-
var
|
|
25171
|
+
var _a2;
|
|
23299
25172
|
$ZodCheck2.init(inst, def);
|
|
23300
|
-
(
|
|
25173
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
23301
25174
|
const val = payload.value;
|
|
23302
25175
|
return !nullish3(val) && val.size !== undefined;
|
|
23303
25176
|
});
|
|
@@ -23325,9 +25198,9 @@ var init_checks3 = __esm(() => {
|
|
|
23325
25198
|
};
|
|
23326
25199
|
});
|
|
23327
25200
|
$ZodCheckMaxLength2 = /* @__PURE__ */ $constructor2("$ZodCheckMaxLength", (inst, def) => {
|
|
23328
|
-
var
|
|
25201
|
+
var _a2;
|
|
23329
25202
|
$ZodCheck2.init(inst, def);
|
|
23330
|
-
(
|
|
25203
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
23331
25204
|
const val = payload.value;
|
|
23332
25205
|
return !nullish3(val) && val.length !== undefined;
|
|
23333
25206
|
});
|
|
@@ -23354,9 +25227,9 @@ var init_checks3 = __esm(() => {
|
|
|
23354
25227
|
};
|
|
23355
25228
|
});
|
|
23356
25229
|
$ZodCheckMinLength2 = /* @__PURE__ */ $constructor2("$ZodCheckMinLength", (inst, def) => {
|
|
23357
|
-
var
|
|
25230
|
+
var _a2;
|
|
23358
25231
|
$ZodCheck2.init(inst, def);
|
|
23359
|
-
(
|
|
25232
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
23360
25233
|
const val = payload.value;
|
|
23361
25234
|
return !nullish3(val) && val.length !== undefined;
|
|
23362
25235
|
});
|
|
@@ -23383,9 +25256,9 @@ var init_checks3 = __esm(() => {
|
|
|
23383
25256
|
};
|
|
23384
25257
|
});
|
|
23385
25258
|
$ZodCheckLengthEquals2 = /* @__PURE__ */ $constructor2("$ZodCheckLengthEquals", (inst, def) => {
|
|
23386
|
-
var
|
|
25259
|
+
var _a2;
|
|
23387
25260
|
$ZodCheck2.init(inst, def);
|
|
23388
|
-
(
|
|
25261
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
23389
25262
|
const val = payload.value;
|
|
23390
25263
|
return !nullish3(val) && val.length !== undefined;
|
|
23391
25264
|
});
|
|
@@ -23414,7 +25287,7 @@ var init_checks3 = __esm(() => {
|
|
|
23414
25287
|
};
|
|
23415
25288
|
});
|
|
23416
25289
|
$ZodCheckStringFormat2 = /* @__PURE__ */ $constructor2("$ZodCheckStringFormat", (inst, def) => {
|
|
23417
|
-
var
|
|
25290
|
+
var _a2, _b2;
|
|
23418
25291
|
$ZodCheck2.init(inst, def);
|
|
23419
25292
|
inst._zod.onattach.push((inst2) => {
|
|
23420
25293
|
const bag = inst2._zod.bag;
|
|
@@ -23425,7 +25298,7 @@ var init_checks3 = __esm(() => {
|
|
|
23425
25298
|
}
|
|
23426
25299
|
});
|
|
23427
25300
|
if (def.pattern)
|
|
23428
|
-
(
|
|
25301
|
+
(_a2 = inst._zod).check ?? (_a2.check = (payload) => {
|
|
23429
25302
|
def.pattern.lastIndex = 0;
|
|
23430
25303
|
if (def.pattern.test(payload.value))
|
|
23431
25304
|
return;
|
|
@@ -23440,7 +25313,7 @@ var init_checks3 = __esm(() => {
|
|
|
23440
25313
|
});
|
|
23441
25314
|
});
|
|
23442
25315
|
else
|
|
23443
|
-
(
|
|
25316
|
+
(_b2 = inst._zod).check ?? (_b2.check = () => {});
|
|
23444
25317
|
});
|
|
23445
25318
|
$ZodCheckRegex2 = /* @__PURE__ */ $constructor2("$ZodCheckRegex", (inst, def) => {
|
|
23446
25319
|
$ZodCheckStringFormat2.init(inst, def);
|
|
@@ -23597,9 +25470,9 @@ class Doc2 {
|
|
|
23597
25470
|
}
|
|
23598
25471
|
const content = arg;
|
|
23599
25472
|
const lines = content.split(`
|
|
23600
|
-
`).filter((
|
|
23601
|
-
const minIndent = Math.min(...lines.map((
|
|
23602
|
-
const dedented = lines.map((
|
|
25473
|
+
`).filter((x2) => x2);
|
|
25474
|
+
const minIndent = Math.min(...lines.map((x2) => x2.length - x2.trimStart().length));
|
|
25475
|
+
const dedented = lines.map((x2) => x2.slice(minIndent)).map((x2) => " ".repeat(this.indent * 2) + x2);
|
|
23603
25476
|
for (const line of dedented) {
|
|
23604
25477
|
this.content.push(line);
|
|
23605
25478
|
}
|
|
@@ -23608,7 +25481,7 @@ class Doc2 {
|
|
|
23608
25481
|
const F = Function;
|
|
23609
25482
|
const args = this?.args;
|
|
23610
25483
|
const content = this?.content ?? [``];
|
|
23611
|
-
const lines = [...content.map((
|
|
25484
|
+
const lines = [...content.map((x2) => ` ${x2}`)];
|
|
23612
25485
|
return new F(...args, lines.join(`
|
|
23613
25486
|
`));
|
|
23614
25487
|
}
|
|
@@ -23862,7 +25735,7 @@ var init_schemas3 = __esm(() => {
|
|
|
23862
25735
|
init_versions2();
|
|
23863
25736
|
init_util2();
|
|
23864
25737
|
$ZodType2 = /* @__PURE__ */ $constructor2("$ZodType", (inst, def) => {
|
|
23865
|
-
var
|
|
25738
|
+
var _a2;
|
|
23866
25739
|
inst ?? (inst = {});
|
|
23867
25740
|
inst._zod.def = def;
|
|
23868
25741
|
inst._zod.bag = inst._zod.bag || {};
|
|
@@ -23877,7 +25750,7 @@ var init_schemas3 = __esm(() => {
|
|
|
23877
25750
|
}
|
|
23878
25751
|
}
|
|
23879
25752
|
if (checks3.length === 0) {
|
|
23880
|
-
(
|
|
25753
|
+
(_a2 = inst._zod).deferred ?? (_a2.deferred = []);
|
|
23881
25754
|
inst._zod.deferred?.push(() => {
|
|
23882
25755
|
inst._zod.run = inst._zod.parse;
|
|
23883
25756
|
});
|
|
@@ -24412,16 +26285,16 @@ var init_schemas3 = __esm(() => {
|
|
|
24412
26285
|
}
|
|
24413
26286
|
payload.value = Array(input.length);
|
|
24414
26287
|
const proms = [];
|
|
24415
|
-
for (let
|
|
24416
|
-
const item = input[
|
|
26288
|
+
for (let i2 = 0;i2 < input.length; i2++) {
|
|
26289
|
+
const item = input[i2];
|
|
24417
26290
|
const result = def.element._zod.run({
|
|
24418
26291
|
value: item,
|
|
24419
26292
|
issues: []
|
|
24420
26293
|
}, ctx);
|
|
24421
26294
|
if (result instanceof Promise) {
|
|
24422
|
-
proms.push(result.then((result2) => handleArrayResult2(result2, payload,
|
|
26295
|
+
proms.push(result.then((result2) => handleArrayResult2(result2, payload, i2)));
|
|
24423
26296
|
} else {
|
|
24424
|
-
handleArrayResult2(result, payload,
|
|
26297
|
+
handleArrayResult2(result, payload, i2);
|
|
24425
26298
|
}
|
|
24426
26299
|
}
|
|
24427
26300
|
if (proms.length) {
|
|
@@ -24742,35 +26615,35 @@ var init_schemas3 = __esm(() => {
|
|
|
24742
26615
|
return payload;
|
|
24743
26616
|
}
|
|
24744
26617
|
}
|
|
24745
|
-
let
|
|
26618
|
+
let i2 = -1;
|
|
24746
26619
|
for (const item of items) {
|
|
24747
|
-
|
|
24748
|
-
if (
|
|
24749
|
-
if (
|
|
26620
|
+
i2++;
|
|
26621
|
+
if (i2 >= input.length) {
|
|
26622
|
+
if (i2 >= optStart)
|
|
24750
26623
|
continue;
|
|
24751
26624
|
}
|
|
24752
26625
|
const result = item._zod.run({
|
|
24753
|
-
value: input[
|
|
26626
|
+
value: input[i2],
|
|
24754
26627
|
issues: []
|
|
24755
26628
|
}, ctx);
|
|
24756
26629
|
if (result instanceof Promise) {
|
|
24757
|
-
proms.push(result.then((result2) => handleTupleResult2(result2, payload,
|
|
26630
|
+
proms.push(result.then((result2) => handleTupleResult2(result2, payload, i2)));
|
|
24758
26631
|
} else {
|
|
24759
|
-
handleTupleResult2(result, payload,
|
|
26632
|
+
handleTupleResult2(result, payload, i2);
|
|
24760
26633
|
}
|
|
24761
26634
|
}
|
|
24762
26635
|
if (def.rest) {
|
|
24763
26636
|
const rest = input.slice(items.length);
|
|
24764
26637
|
for (const el of rest) {
|
|
24765
|
-
|
|
26638
|
+
i2++;
|
|
24766
26639
|
const result = def.rest._zod.run({
|
|
24767
26640
|
value: el,
|
|
24768
26641
|
issues: []
|
|
24769
26642
|
}, ctx);
|
|
24770
26643
|
if (result instanceof Promise) {
|
|
24771
|
-
proms.push(result.then((result2) => handleTupleResult2(result2, payload,
|
|
26644
|
+
proms.push(result.then((result2) => handleTupleResult2(result2, payload, i2)));
|
|
24772
26645
|
} else {
|
|
24773
|
-
handleTupleResult2(result, payload,
|
|
26646
|
+
handleTupleResult2(result, payload, i2);
|
|
24774
26647
|
}
|
|
24775
26648
|
}
|
|
24776
26649
|
}
|
|
@@ -25069,7 +26942,7 @@ var init_schemas3 = __esm(() => {
|
|
|
25069
26942
|
$ZodType2.init(inst, def);
|
|
25070
26943
|
defineLazy2(inst._zod, "values", () => {
|
|
25071
26944
|
const v = def.innerType._zod.values;
|
|
25072
|
-
return v ? new Set([...v].filter((
|
|
26945
|
+
return v ? new Set([...v].filter((x2) => x2 !== undefined)) : undefined;
|
|
25073
26946
|
});
|
|
25074
26947
|
inst._zod.parse = (payload, ctx) => {
|
|
25075
26948
|
const result = def.innerType._zod.run(payload, ctx);
|
|
@@ -31166,7 +33039,7 @@ class JSONSchemaGenerator2 {
|
|
|
31166
33039
|
this.seen = new Map;
|
|
31167
33040
|
}
|
|
31168
33041
|
process(schema, _params = { path: [], schemaPath: [] }) {
|
|
31169
|
-
var
|
|
33042
|
+
var _a2;
|
|
31170
33043
|
const def = schema._zod.def;
|
|
31171
33044
|
const formatMap = {
|
|
31172
33045
|
guid: "uuid",
|
|
@@ -31364,9 +33237,9 @@ class JSONSchemaGenerator2 {
|
|
|
31364
33237
|
}
|
|
31365
33238
|
case "union": {
|
|
31366
33239
|
const json2 = _json;
|
|
31367
|
-
json2.anyOf = def.options.map((
|
|
33240
|
+
json2.anyOf = def.options.map((x2, i2) => this.process(x2, {
|
|
31368
33241
|
...params,
|
|
31369
|
-
path: [...params.path, "anyOf",
|
|
33242
|
+
path: [...params.path, "anyOf", i2]
|
|
31370
33243
|
}));
|
|
31371
33244
|
break;
|
|
31372
33245
|
}
|
|
@@ -31391,7 +33264,7 @@ class JSONSchemaGenerator2 {
|
|
|
31391
33264
|
case "tuple": {
|
|
31392
33265
|
const json2 = _json;
|
|
31393
33266
|
json2.type = "array";
|
|
31394
|
-
const prefixItems = def.items.map((
|
|
33267
|
+
const prefixItems = def.items.map((x2, i2) => this.process(x2, { ...params, path: [...params.path, "prefixItems", i2] }));
|
|
31395
33268
|
if (this.target === "draft-2020-12") {
|
|
31396
33269
|
json2.prefixItems = prefixItems;
|
|
31397
33270
|
} else {
|
|
@@ -31622,7 +33495,7 @@ class JSONSchemaGenerator2 {
|
|
|
31622
33495
|
delete result.schema.default;
|
|
31623
33496
|
}
|
|
31624
33497
|
if (this.io === "input" && result.schema._prefault)
|
|
31625
|
-
(
|
|
33498
|
+
(_a2 = result.schema).default ?? (_a2.default = result.schema._prefault);
|
|
31626
33499
|
delete result.schema._prefault;
|
|
31627
33500
|
const _result = this.seen.get(schema);
|
|
31628
33501
|
return _result.schema;
|
|
@@ -33505,9 +35378,6 @@ var init_v42 = __esm(() => {
|
|
|
33505
35378
|
});
|
|
33506
35379
|
|
|
33507
35380
|
// ../../node_modules/@uipath/tool-agent/dist/chunk-7ZQB234J.js
|
|
33508
|
-
import { Path } from "@uipath/solutionpackager-tool-core";
|
|
33509
|
-
import { Path as Path3 } from "@uipath/solutionpackager-tool-core";
|
|
33510
|
-
import { Path as Path2 } from "@uipath/solutionpackager-tool-core";
|
|
33511
35381
|
function serializeJson(value) {
|
|
33512
35382
|
return JSON.stringify(value, (_key, val) => val === undefined || val === null ? undefined : val, 2);
|
|
33513
35383
|
}
|
|
@@ -33592,7 +35462,7 @@ async function buildFolderTree(fileSystem, folderPath, name) {
|
|
|
33592
35462
|
const files = [];
|
|
33593
35463
|
const folders = [];
|
|
33594
35464
|
for (const entry of entries) {
|
|
33595
|
-
const entryPath =
|
|
35465
|
+
const entryPath = Path.join(folderPath, entry);
|
|
33596
35466
|
const stat = await fileSystem.stat(entryPath);
|
|
33597
35467
|
if (stat?.isFile()) {
|
|
33598
35468
|
const content = await fileSystem.readFile(entryPath);
|
|
@@ -33611,7 +35481,7 @@ async function buildProjectTree(fileSystem, projectPath, storageMajorVersion) {
|
|
|
33611
35481
|
const rootFiles = [];
|
|
33612
35482
|
const rootFolders = [];
|
|
33613
35483
|
for (const fileName of MIGRATION_ROOT_FILES) {
|
|
33614
|
-
const filePath =
|
|
35484
|
+
const filePath = Path.join(projectPath, fileName);
|
|
33615
35485
|
const content = await fileSystem.readFile(filePath);
|
|
33616
35486
|
if (content) {
|
|
33617
35487
|
rootFiles.push({ name: fileName, content: new TextDecoder().decode(content) });
|
|
@@ -33619,7 +35489,7 @@ async function buildProjectTree(fileSystem, projectPath, storageMajorVersion) {
|
|
|
33619
35489
|
}
|
|
33620
35490
|
const supportedRootFolders = getSupportedRootFolders(storageMajorVersion);
|
|
33621
35491
|
for (const folderName of supportedRootFolders) {
|
|
33622
|
-
const folderPath =
|
|
35492
|
+
const folderPath = Path.join(projectPath, folderName);
|
|
33623
35493
|
if (await fileSystem.exists(folderPath)) {
|
|
33624
35494
|
rootFolders.push(await buildFolderTree(fileSystem, folderPath, folderName));
|
|
33625
35495
|
} else if (isRootFolderRequired(folderName, storageMajorVersion)) {
|
|
@@ -33794,7 +35664,7 @@ var import_semver2, FileConstants, AgentProjectConstants, CodedProjectConstants,
|
|
|
33794
35664
|
return extractMigratedProjectData(tree);
|
|
33795
35665
|
}
|
|
33796
35666
|
async resolveVersion(projectPath) {
|
|
33797
|
-
const agentPath =
|
|
35667
|
+
const agentPath = Path.join(projectPath, FileConstants.AgentFileName);
|
|
33798
35668
|
const agentRaw = await readJsonFile(this.fileSystem, agentPath);
|
|
33799
35669
|
const latestVersion = getLatestVersion(migrations);
|
|
33800
35670
|
const versionState = resolveProjectVersionState(agentRaw, latestVersion);
|
|
@@ -33827,8 +35697,11 @@ var import_semver2, FileConstants, AgentProjectConstants, CodedProjectConstants,
|
|
|
33827
35697
|
}, defaultStorageSchemaTranslator, PackageConstants, PackageDescriptorConstants, SchemaConstants, RESOURCE_DESIGN_ONLY_FIELDS;
|
|
33828
35698
|
var init_chunk_7ZQB234J = __esm(() => {
|
|
33829
35699
|
init_dist();
|
|
33830
|
-
init_v42();
|
|
33831
35700
|
init_dist();
|
|
35701
|
+
init_dist2();
|
|
35702
|
+
init_dist();
|
|
35703
|
+
init_v42();
|
|
35704
|
+
init_dist2();
|
|
33832
35705
|
import_semver2 = __toESM(require_semver2(), 1);
|
|
33833
35706
|
FileConstants = {
|
|
33834
35707
|
AgentFileName: "agent.json",
|
|
@@ -34240,19 +36113,6 @@ var init_chunk_RQQ7Q4C6 = __esm(() => {
|
|
|
34240
36113
|
});
|
|
34241
36114
|
|
|
34242
36115
|
// ../../node_modules/@uipath/tool-agent/dist/chunk-LDMMPF7X.js
|
|
34243
|
-
import {
|
|
34244
|
-
NugetConstants,
|
|
34245
|
-
NugetPackager,
|
|
34246
|
-
Path as Path4,
|
|
34247
|
-
ProjectTool,
|
|
34248
|
-
TemporaryStorageService,
|
|
34249
|
-
ToolErrorCodes as ToolErrorCodes2,
|
|
34250
|
-
ToolResult as ToolResult2
|
|
34251
|
-
} from "@uipath/solutionpackager-tool-core";
|
|
34252
|
-
import { Path as Path22 } from "@uipath/solutionpackager-tool-core";
|
|
34253
|
-
import { Path as Path5 } from "@uipath/solutionpackager-tool-core";
|
|
34254
|
-
import { Path as Path32 } from "@uipath/solutionpackager-tool-core";
|
|
34255
|
-
import { ToolErrorCodes, ToolResult } from "@uipath/solutionpackager-tool-core";
|
|
34256
36116
|
function compilePolicy(policy) {
|
|
34257
36117
|
return {
|
|
34258
36118
|
contentDirectory: policy.contentDirectory,
|
|
@@ -34265,7 +36125,7 @@ async function copyDirectoryRecursively(fileSystem, sourceDir, targetDir, policy
|
|
|
34265
36125
|
await fileSystem.mkdir(targetDir);
|
|
34266
36126
|
const entries = await fileSystem.readdir(sourceDir);
|
|
34267
36127
|
for (const entry of entries) {
|
|
34268
|
-
const sourcePath =
|
|
36128
|
+
const sourcePath = Path.join(sourceDir, entry);
|
|
34269
36129
|
const stat = await fileSystem.stat(sourcePath);
|
|
34270
36130
|
if (stat?.isFile()) {
|
|
34271
36131
|
if (policy.ignoredFiles.has(entry))
|
|
@@ -34273,21 +36133,21 @@ async function copyDirectoryRecursively(fileSystem, sourceDir, targetDir, policy
|
|
|
34273
36133
|
const targetFileName = policy.fileNameMappings[entry] ?? entry;
|
|
34274
36134
|
const content = await fileSystem.readFile(sourcePath);
|
|
34275
36135
|
if (content) {
|
|
34276
|
-
await fileSystem.writeFile(
|
|
36136
|
+
await fileSystem.writeFile(Path.join(targetDir, targetFileName), content);
|
|
34277
36137
|
}
|
|
34278
36138
|
} else if (stat?.isDirectory()) {
|
|
34279
36139
|
if (policy.ignoredDirectories.has(entry))
|
|
34280
36140
|
continue;
|
|
34281
|
-
await copyDirectoryRecursively(fileSystem, sourcePath,
|
|
36141
|
+
await copyDirectoryRecursively(fileSystem, sourcePath, Path.join(targetDir, entry), policy);
|
|
34282
36142
|
}
|
|
34283
36143
|
}
|
|
34284
36144
|
}
|
|
34285
36145
|
async function copyCodeFiles(fileSystem, sourcePath, outputPath, policy = DEFAULT_CODE_COPY_POLICY) {
|
|
34286
36146
|
const compiledPolicy = compilePolicy(policy);
|
|
34287
|
-
await copyDirectoryRecursively(fileSystem, sourcePath,
|
|
36147
|
+
await copyDirectoryRecursively(fileSystem, sourcePath, Path.join(outputPath, compiledPolicy.contentDirectory), compiledPolicy);
|
|
34288
36148
|
}
|
|
34289
36149
|
async function detectProjectKind(fileSystem, projectPath) {
|
|
34290
|
-
const pythonDependenciesPath =
|
|
36150
|
+
const pythonDependenciesPath = Path.join(projectPath, CodedProjectConstants.PythonDependenciesFileName);
|
|
34291
36151
|
return await fileSystem.exists(pythonDependenciesPath) ? "coded" : "agents";
|
|
34292
36152
|
}
|
|
34293
36153
|
function formatCause(causeError) {
|
|
@@ -34331,10 +36191,10 @@ var entryPointSchema, entryPointsFileSchema, codedConfigSchema, DEFAULT_CODE_COP
|
|
|
34331
36191
|
this.logger.progress("Reading agent data...");
|
|
34332
36192
|
const [agentData, projectConfig] = await Promise.all([
|
|
34333
36193
|
readAgentsProjectData(this.fileSystem, this.logger, projectPath),
|
|
34334
|
-
readOptionalJsonFile(this.fileSystem,
|
|
36194
|
+
readOptionalJsonFile(this.fileSystem, Path.join(projectPath, FileConstants.ProjectConfigFileName))
|
|
34335
36195
|
]);
|
|
34336
36196
|
this.logger.progress("Generating package artifacts...");
|
|
34337
|
-
const out = (file3) =>
|
|
36197
|
+
const out = (file3) => Path.join(outputPath, file3);
|
|
34338
36198
|
const agentOutput = buildAgentUnifiedModel(agentData.agent, agentData.resources, agentData.features, { projectStorageId, projectName: projectConfig?.name });
|
|
34339
36199
|
await Promise.all([
|
|
34340
36200
|
writeJsonFile(this.fileSystem, out(PackageDescriptorConstants.AgentFilePath), agentOutput),
|
|
@@ -34347,14 +36207,14 @@ var entryPointSchema, entryPointsFileSchema, codedConfigSchema, DEFAULT_CODE_COP
|
|
|
34347
36207
|
}
|
|
34348
36208
|
async buildCodedPackage(projectPath, outputPath, projectStorageId) {
|
|
34349
36209
|
this.logger.progress("Reading coded agent configuration...");
|
|
34350
|
-
const entryPoints = await readJsonFile(this.fileSystem,
|
|
34351
|
-
const codedConfig = await readJsonFile(this.fileSystem,
|
|
36210
|
+
const entryPoints = await readJsonFile(this.fileSystem, Path.join(projectPath, PackageConstants.EntryPointsFileName), (raw) => entryPointsFileSchema.parse(raw));
|
|
36211
|
+
const codedConfig = await readJsonFile(this.fileSystem, Path.join(projectPath, CodedProjectConstants.CodedAgentConfigFileName), (raw) => codedConfigSchema.parse(raw));
|
|
34352
36212
|
const [firstEntryPoint] = entryPoints.entryPoints;
|
|
34353
36213
|
if (!firstEntryPoint) {
|
|
34354
36214
|
throw new Error("entry-points.json must contain at least one entry point");
|
|
34355
36215
|
}
|
|
34356
36216
|
this.logger.progress("Generating package artifacts...");
|
|
34357
|
-
const out = (file3) =>
|
|
36217
|
+
const out = (file3) => Path.join(outputPath, file3);
|
|
34358
36218
|
await Promise.all([
|
|
34359
36219
|
copyCodeFiles(this.fileSystem, projectPath, outputPath),
|
|
34360
36220
|
writeJsonFile(this.fileSystem, out(PackageDescriptorConstants.OperateFilePath), createOperatePython(projectStorageId, codedConfig, firstEntryPoint)),
|
|
@@ -34365,7 +36225,12 @@ var entryPointSchema, entryPointsFileSchema, codedConfigSchema, DEFAULT_CODE_COP
|
|
|
34365
36225
|
var init_chunk_LDMMPF7X = __esm(() => {
|
|
34366
36226
|
init_chunk_7ZQB234J();
|
|
34367
36227
|
init_chunk_RQQ7Q4C6();
|
|
36228
|
+
init_dist();
|
|
36229
|
+
init_dist();
|
|
34368
36230
|
init_v42();
|
|
36231
|
+
init_dist();
|
|
36232
|
+
init_dist();
|
|
36233
|
+
init_dist();
|
|
34369
36234
|
entryPointSchema = exports_external2.object({
|
|
34370
36235
|
filePath: exports_external2.string(),
|
|
34371
36236
|
uniqueId: exports_external2.string(),
|
|
@@ -34420,7 +36285,7 @@ var init_chunk_LDMMPF7X = __esm(() => {
|
|
|
34420
36285
|
}
|
|
34421
36286
|
async buildAsync(options, _cancellationToken) {
|
|
34422
36287
|
const tempFolder = await this._temporaryStorage.getTempFolderPath();
|
|
34423
|
-
const localBuildFolder =
|
|
36288
|
+
const localBuildFolder = Path.join(tempFolder, NugetConstants.OutputFolderName);
|
|
34424
36289
|
try {
|
|
34425
36290
|
this.logger.info(`buildAsync started: projectPath=${options.projectPath}, outputPath=${localBuildFolder}`);
|
|
34426
36291
|
this.logger.progress("Building agent package...");
|
|
@@ -34433,12 +36298,12 @@ var init_chunk_LDMMPF7X = __esm(() => {
|
|
|
34433
36298
|
}
|
|
34434
36299
|
this.logger.info(`buildAsync finished: outputPath=${localBuildFolder}`);
|
|
34435
36300
|
this.logger.progress("Build completed successfully");
|
|
34436
|
-
return new
|
|
36301
|
+
return new ToolResult(ToolErrorCodes.Success, "done", [localBuildFolder]);
|
|
34437
36302
|
} catch (error79) {
|
|
34438
36303
|
const errorMessage = error79 instanceof Error ? error79.toString() : String(error79);
|
|
34439
36304
|
this.logger.error(`buildAsync failed: ${errorMessage}`);
|
|
34440
36305
|
const canceledResult = mapToolErrorToResult(error79);
|
|
34441
|
-
if (canceledResult.errorCode ===
|
|
36306
|
+
if (canceledResult.errorCode === ToolErrorCodes.Canceled) {
|
|
34442
36307
|
return canceledResult;
|
|
34443
36308
|
}
|
|
34444
36309
|
return mapToolErrorToResult(new AgentBuildError("An error occurred while building agent project", error79));
|
|
@@ -34455,17 +36320,17 @@ var init_chunk_LDMMPF7X = __esm(() => {
|
|
|
34455
36320
|
try {
|
|
34456
36321
|
this.logger.progress("Creating NuGet package...");
|
|
34457
36322
|
const nupkgFileName = `${options.package.id}.${options.package.version}.nupkg`;
|
|
34458
|
-
const nupkgPath =
|
|
36323
|
+
const nupkgPath = Path.join(options.outputPath, nupkgFileName);
|
|
34459
36324
|
const packager = new NugetPackager(this.fileSystem);
|
|
34460
36325
|
const result = await packager.packAsync(localBuildFolder, options.package, nupkgPath);
|
|
34461
36326
|
this.logger.info(`packAsync finished: nupkgPath=${result.outputPath}`);
|
|
34462
36327
|
this.logger.progress("Package created successfully");
|
|
34463
|
-
return new
|
|
36328
|
+
return new ToolResult(ToolErrorCodes.Success, "done", [result.outputPath]);
|
|
34464
36329
|
} catch (error79) {
|
|
34465
36330
|
const errorMessage = error79 instanceof Error ? error79.toString() : String(error79);
|
|
34466
36331
|
this.logger.error(`packAsync failed: ${errorMessage}`);
|
|
34467
36332
|
const canceledResult = mapToolErrorToResult(error79);
|
|
34468
|
-
if (canceledResult.errorCode ===
|
|
36333
|
+
if (canceledResult.errorCode === ToolErrorCodes.Canceled) {
|
|
34469
36334
|
return canceledResult;
|
|
34470
36335
|
}
|
|
34471
36336
|
return mapToolErrorToResult(new AgentPackError("An error occurred while packing agent project", error79));
|
|
@@ -34495,8 +36360,8 @@ var init_agent_tool_DLZZJOCT = __esm(() => {
|
|
|
34495
36360
|
init_chunk_LDMMPF7X();
|
|
34496
36361
|
init_chunk_7ZQB234J();
|
|
34497
36362
|
init_chunk_RQQ7Q4C6();
|
|
34498
|
-
|
|
34499
|
-
|
|
36363
|
+
init_dist();
|
|
36364
|
+
init_dist();
|
|
34500
36365
|
var AgentToolFactory = class {
|
|
34501
36366
|
constructor() {
|
|
34502
36367
|
this.supportedTypes = [ProjectTypes.Agent];
|