@uipath/codedapp-tool 1.204.1-preview.255 → 1.205.0-preview.256
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/THIRD-PARTY-NOTICES.md +2 -2
- package/dist/{embedded-file-reader-v8c2yj2a.js → embedded-file-reader-r66242ey.js} +2 -2
- package/dist/{index-wj8fy4z0.js → index-0k30knwv.js} +1138 -2077
- package/dist/index-78bnpdqb.js +3177 -0
- package/dist/{index-y32y7rjh.js → index-wbp18pm0.js} +2 -2
- package/dist/index.js +8 -7
- package/dist/{node-strategy-0267x5e5.js → node-strategy-myagr1zp.js} +1 -1
- package/dist/packager-tool-5ebgtev7.js +22083 -0
- package/dist/{packager-tool-cfc7qtm7.js → packager-tool-cmfktvbt.js} +183 -1970
- package/dist/packager-tool-d94wjncg.js +1814 -0
- package/dist/{packager-tool-zy0bgdq8.js → packager-tool-gbp9jdy5.js} +1650 -252
- package/dist/{packager-tool-0v3s8r01.js → packager-tool-je2re4j6.js} +11 -1
- package/dist/{packager-tool-cakm5nqb.js → packager-tool-pxqgvv15.js} +159 -45
- package/dist/{packager-tool-nd0vpsgx.js → packager-tool-s8h46737.js} +124 -58
- package/dist/{packager-tool-zzg1ddjd.js → packager-tool-vc19fcdp.js} +4 -3
- package/dist/packager-tool.js +5 -4
- package/dist/tool.js +8 -7
- package/package.json +5 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getFileSystem
|
|
3
|
-
} from "./packager-tool-
|
|
3
|
+
} from "./packager-tool-je2re4j6.js";
|
|
4
4
|
import {
|
|
5
5
|
__commonJS,
|
|
6
6
|
__require,
|
|
@@ -2116,1817 +2116,6 @@ var {
|
|
|
2116
2116
|
Help
|
|
2117
2117
|
} = import__.default;
|
|
2118
2118
|
|
|
2119
|
-
// ../packager/packager-core/src/services/tools-factory-repository.ts
|
|
2120
|
-
class ToolsFactoryRepository {
|
|
2121
|
-
projectFactoryMap = new Map;
|
|
2122
|
-
solutionFactory = null;
|
|
2123
|
-
registerProjectToolFactory(factory) {
|
|
2124
|
-
for (const type of factory.supportedTypes) {
|
|
2125
|
-
const existing = this.projectFactoryMap.get(type);
|
|
2126
|
-
if (existing) {
|
|
2127
|
-
if (existing.constructor?.name !== factory.constructor?.name) {
|
|
2128
|
-
console.warn(`Tool factory conflict for project type '${type}': ` + `'${existing.constructor?.name}' already registered, ` + `ignoring '${factory.constructor?.name}'.`);
|
|
2129
|
-
}
|
|
2130
|
-
continue;
|
|
2131
|
-
}
|
|
2132
|
-
this.projectFactoryMap.set(type, factory);
|
|
2133
|
-
}
|
|
2134
|
-
}
|
|
2135
|
-
registerSolutionToolFactory(factory) {
|
|
2136
|
-
this.solutionFactory = factory;
|
|
2137
|
-
}
|
|
2138
|
-
getSolutionToolFactory() {
|
|
2139
|
-
if (!this.solutionFactory) {
|
|
2140
|
-
throw new Error("No solution tool factory is registered");
|
|
2141
|
-
}
|
|
2142
|
-
return this.solutionFactory;
|
|
2143
|
-
}
|
|
2144
|
-
canHandleProject(projectType) {
|
|
2145
|
-
return this.projectFactoryMap.has(projectType);
|
|
2146
|
-
}
|
|
2147
|
-
getProjectToolFactory(projectType) {
|
|
2148
|
-
const factory = this.projectFactoryMap.get(projectType);
|
|
2149
|
-
if (!factory) {
|
|
2150
|
-
throw new Error(`Cannot pack project type '${projectType}': no packager is installed for it.`);
|
|
2151
|
-
}
|
|
2152
|
-
return factory;
|
|
2153
|
-
}
|
|
2154
|
-
reset() {
|
|
2155
|
-
this.projectFactoryMap.clear();
|
|
2156
|
-
this.solutionFactory = null;
|
|
2157
|
-
}
|
|
2158
|
-
}
|
|
2159
|
-
var REGISTRY_KEY = Symbol.for("@uipath/solutionpackager-tool-core/toolsFactoryRepository");
|
|
2160
|
-
var _global = globalThis;
|
|
2161
|
-
if (!_global[REGISTRY_KEY]) {
|
|
2162
|
-
_global[REGISTRY_KEY] = new ToolsFactoryRepository;
|
|
2163
|
-
}
|
|
2164
|
-
var toolsFactoryRepository = _global[REGISTRY_KEY];
|
|
2165
|
-
|
|
2166
|
-
// ../packager/packager-core/src/filesystem/path.ts
|
|
2167
|
-
class Path {
|
|
2168
|
-
static normalize(path) {
|
|
2169
|
-
return path.replace(/\\/g, "/").replace(/\/+/g, "/");
|
|
2170
|
-
}
|
|
2171
|
-
static join(...segments) {
|
|
2172
|
-
return Path.normalize(segments.filter((s) => s.length > 0).join("/"));
|
|
2173
|
-
}
|
|
2174
|
-
static dirname(path) {
|
|
2175
|
-
const normalized = Path.normalize(path).replace(/\/$/, "");
|
|
2176
|
-
if (normalized === "")
|
|
2177
|
-
return ".";
|
|
2178
|
-
const lastSlash = normalized.lastIndexOf("/");
|
|
2179
|
-
if (lastSlash === -1)
|
|
2180
|
-
return ".";
|
|
2181
|
-
if (lastSlash === 0)
|
|
2182
|
-
return "/";
|
|
2183
|
-
return normalized.substring(0, lastSlash);
|
|
2184
|
-
}
|
|
2185
|
-
static basename(path) {
|
|
2186
|
-
const normalized = Path.normalize(path).replace(/\/$/, "");
|
|
2187
|
-
if (normalized === "")
|
|
2188
|
-
return "";
|
|
2189
|
-
const lastSlash = normalized.lastIndexOf("/");
|
|
2190
|
-
return lastSlash >= 0 ? normalized.substring(lastSlash + 1) : normalized;
|
|
2191
|
-
}
|
|
2192
|
-
static extname(path) {
|
|
2193
|
-
const base = Path.basename(path);
|
|
2194
|
-
const lastDot = base.lastIndexOf(".");
|
|
2195
|
-
if (lastDot === -1 || lastDot === 0 || lastDot === base.length - 1) {
|
|
2196
|
-
return "";
|
|
2197
|
-
}
|
|
2198
|
-
return base.substring(lastDot);
|
|
2199
|
-
}
|
|
2200
|
-
static async walkDirectory(fs, rootPath, currentRelativePath = "") {
|
|
2201
|
-
const entries = [];
|
|
2202
|
-
const absolutePath = currentRelativePath ? Path.join(rootPath, currentRelativePath) : rootPath;
|
|
2203
|
-
const items = await fs.readdir(absolutePath);
|
|
2204
|
-
for (const item of items) {
|
|
2205
|
-
const itemRelativePath = currentRelativePath ? Path.join(currentRelativePath, item) : item;
|
|
2206
|
-
const itemAbsolutePath = Path.join(rootPath, itemRelativePath);
|
|
2207
|
-
const stat = await fs.stat(itemAbsolutePath);
|
|
2208
|
-
if (stat?.isDirectory()) {
|
|
2209
|
-
const subEntries = await Path.walkDirectory(fs, rootPath, itemRelativePath);
|
|
2210
|
-
entries.push(...subEntries);
|
|
2211
|
-
} else if (stat?.isFile()) {
|
|
2212
|
-
entries.push({
|
|
2213
|
-
relativePath: Path.normalize(itemRelativePath),
|
|
2214
|
-
absolutePath: Path.normalize(itemAbsolutePath)
|
|
2215
|
-
});
|
|
2216
|
-
}
|
|
2217
|
-
}
|
|
2218
|
-
return entries;
|
|
2219
|
-
}
|
|
2220
|
-
}
|
|
2221
|
-
|
|
2222
|
-
// ../packager/packager-core/src/models/nuget-constants.ts
|
|
2223
|
-
var NugetConstants = {
|
|
2224
|
-
OutputFolderName: "bundle",
|
|
2225
|
-
ContentFolderName: "content",
|
|
2226
|
-
OperateFileName: "operate.json",
|
|
2227
|
-
EntryPointsFileName: "entry-points.json",
|
|
2228
|
-
PackageDescriptorFileName: "package-descriptor.json",
|
|
2229
|
-
BindingsV2FileName: "bindings_v2.json",
|
|
2230
|
-
BindingsFileId: "bindings.json"
|
|
2231
|
-
};
|
|
2232
|
-
// ../../node_modules/fflate/esm/index.mjs
|
|
2233
|
-
import { createRequire } from "module";
|
|
2234
|
-
var require2 = createRequire("/");
|
|
2235
|
-
var _a;
|
|
2236
|
-
var Worker;
|
|
2237
|
-
var isMarkedAsUntransferable;
|
|
2238
|
-
try {
|
|
2239
|
-
_a = require2("worker_threads"), Worker = _a.Worker, isMarkedAsUntransferable = _a.isMarkedAsUntransferable;
|
|
2240
|
-
} catch (e) {}
|
|
2241
|
-
var u8 = Uint8Array;
|
|
2242
|
-
var u16 = Uint16Array;
|
|
2243
|
-
var i32 = Int32Array;
|
|
2244
|
-
var 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]);
|
|
2245
|
-
var 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]);
|
|
2246
|
-
var clim = new u8([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]);
|
|
2247
|
-
var freb = function(eb, start) {
|
|
2248
|
-
var b = new u16(31);
|
|
2249
|
-
for (var i = 0;i < 31; ++i) {
|
|
2250
|
-
b[i] = start += 1 << eb[i - 1];
|
|
2251
|
-
}
|
|
2252
|
-
var r = new i32(b[30]);
|
|
2253
|
-
for (var i = 1;i < 30; ++i) {
|
|
2254
|
-
for (var j = b[i];j < b[i + 1]; ++j) {
|
|
2255
|
-
r[j] = j - b[i] << 5 | i;
|
|
2256
|
-
}
|
|
2257
|
-
}
|
|
2258
|
-
return { b, r };
|
|
2259
|
-
};
|
|
2260
|
-
var _a = freb(fleb, 2);
|
|
2261
|
-
var fl = _a.b;
|
|
2262
|
-
var revfl = _a.r;
|
|
2263
|
-
fl[28] = 258, revfl[258] = 28;
|
|
2264
|
-
var _b = freb(fdeb, 0);
|
|
2265
|
-
var fd = _b.b;
|
|
2266
|
-
var revfd = _b.r;
|
|
2267
|
-
var rev = new u16(32768);
|
|
2268
|
-
for (i = 0;i < 32768; ++i) {
|
|
2269
|
-
x = (i & 43690) >> 1 | (i & 21845) << 1;
|
|
2270
|
-
x = (x & 52428) >> 2 | (x & 13107) << 2;
|
|
2271
|
-
x = (x & 61680) >> 4 | (x & 3855) << 4;
|
|
2272
|
-
rev[i] = ((x & 65280) >> 8 | (x & 255) << 8) >> 1;
|
|
2273
|
-
}
|
|
2274
|
-
var x;
|
|
2275
|
-
var i;
|
|
2276
|
-
var hMap = function(cd, mb, r) {
|
|
2277
|
-
var s = cd.length;
|
|
2278
|
-
var i2 = 0;
|
|
2279
|
-
var l = new u16(mb);
|
|
2280
|
-
for (;i2 < s; ++i2) {
|
|
2281
|
-
if (cd[i2])
|
|
2282
|
-
++l[cd[i2] - 1];
|
|
2283
|
-
}
|
|
2284
|
-
var le = new u16(mb);
|
|
2285
|
-
for (i2 = 1;i2 < mb; ++i2) {
|
|
2286
|
-
le[i2] = le[i2 - 1] + l[i2 - 1] << 1;
|
|
2287
|
-
}
|
|
2288
|
-
var co;
|
|
2289
|
-
if (r) {
|
|
2290
|
-
co = new u16(1 << mb);
|
|
2291
|
-
var rvb = 15 - mb;
|
|
2292
|
-
for (i2 = 0;i2 < s; ++i2) {
|
|
2293
|
-
if (cd[i2]) {
|
|
2294
|
-
var sv = i2 << 4 | cd[i2];
|
|
2295
|
-
var r_1 = mb - cd[i2];
|
|
2296
|
-
var v = le[cd[i2] - 1]++ << r_1;
|
|
2297
|
-
for (var m = v | (1 << r_1) - 1;v <= m; ++v) {
|
|
2298
|
-
co[rev[v] >> rvb] = sv;
|
|
2299
|
-
}
|
|
2300
|
-
}
|
|
2301
|
-
}
|
|
2302
|
-
} else {
|
|
2303
|
-
co = new u16(s);
|
|
2304
|
-
for (i2 = 0;i2 < s; ++i2) {
|
|
2305
|
-
if (cd[i2]) {
|
|
2306
|
-
co[i2] = rev[le[cd[i2] - 1]++] >> 15 - cd[i2];
|
|
2307
|
-
}
|
|
2308
|
-
}
|
|
2309
|
-
}
|
|
2310
|
-
return co;
|
|
2311
|
-
};
|
|
2312
|
-
var flt = new u8(288);
|
|
2313
|
-
for (i = 0;i < 144; ++i)
|
|
2314
|
-
flt[i] = 8;
|
|
2315
|
-
var i;
|
|
2316
|
-
for (i = 144;i < 256; ++i)
|
|
2317
|
-
flt[i] = 9;
|
|
2318
|
-
var i;
|
|
2319
|
-
for (i = 256;i < 280; ++i)
|
|
2320
|
-
flt[i] = 7;
|
|
2321
|
-
var i;
|
|
2322
|
-
for (i = 280;i < 288; ++i)
|
|
2323
|
-
flt[i] = 8;
|
|
2324
|
-
var i;
|
|
2325
|
-
var fdt = new u8(32);
|
|
2326
|
-
for (i = 0;i < 32; ++i)
|
|
2327
|
-
fdt[i] = 5;
|
|
2328
|
-
var i;
|
|
2329
|
-
var flm = /* @__PURE__ */ hMap(flt, 9, 0);
|
|
2330
|
-
var fdm = /* @__PURE__ */ hMap(fdt, 5, 0);
|
|
2331
|
-
var shft = function(p) {
|
|
2332
|
-
return (p + 7) / 8 | 0;
|
|
2333
|
-
};
|
|
2334
|
-
var slc = function(v, s, e) {
|
|
2335
|
-
if (s == null || s < 0)
|
|
2336
|
-
s = 0;
|
|
2337
|
-
if (e == null || e > v.length)
|
|
2338
|
-
e = v.length;
|
|
2339
|
-
return new u8(v.subarray(s, e));
|
|
2340
|
-
};
|
|
2341
|
-
var ec = [
|
|
2342
|
-
"unexpected EOF",
|
|
2343
|
-
"invalid block type",
|
|
2344
|
-
"invalid length/literal",
|
|
2345
|
-
"invalid distance",
|
|
2346
|
-
"stream finished",
|
|
2347
|
-
"no stream handler",
|
|
2348
|
-
,
|
|
2349
|
-
"no callback",
|
|
2350
|
-
"invalid UTF-8 data",
|
|
2351
|
-
"extra field too long",
|
|
2352
|
-
"date not in range 1980-2099",
|
|
2353
|
-
"filename too long",
|
|
2354
|
-
"stream finishing",
|
|
2355
|
-
"invalid zip data"
|
|
2356
|
-
];
|
|
2357
|
-
var err = function(ind, msg, nt) {
|
|
2358
|
-
var e = new Error(msg || ec[ind]);
|
|
2359
|
-
e.code = ind;
|
|
2360
|
-
if (Error.captureStackTrace)
|
|
2361
|
-
Error.captureStackTrace(e, err);
|
|
2362
|
-
if (!nt)
|
|
2363
|
-
throw e;
|
|
2364
|
-
return e;
|
|
2365
|
-
};
|
|
2366
|
-
var wbits = function(d, p, v) {
|
|
2367
|
-
v <<= p & 7;
|
|
2368
|
-
var o = p / 8 | 0;
|
|
2369
|
-
d[o] |= v;
|
|
2370
|
-
d[o + 1] |= v >> 8;
|
|
2371
|
-
};
|
|
2372
|
-
var wbits16 = function(d, p, v) {
|
|
2373
|
-
v <<= p & 7;
|
|
2374
|
-
var o = p / 8 | 0;
|
|
2375
|
-
d[o] |= v;
|
|
2376
|
-
d[o + 1] |= v >> 8;
|
|
2377
|
-
d[o + 2] |= v >> 16;
|
|
2378
|
-
};
|
|
2379
|
-
var hTree = function(d, mb) {
|
|
2380
|
-
var t = [];
|
|
2381
|
-
for (var i2 = 0;i2 < d.length; ++i2) {
|
|
2382
|
-
if (d[i2])
|
|
2383
|
-
t.push({ s: i2, f: d[i2] });
|
|
2384
|
-
}
|
|
2385
|
-
var s = t.length;
|
|
2386
|
-
var t2 = t.slice();
|
|
2387
|
-
if (!s)
|
|
2388
|
-
return { t: et, l: 0 };
|
|
2389
|
-
if (s == 1) {
|
|
2390
|
-
var v = new u8(t[0].s + 1);
|
|
2391
|
-
v[t[0].s] = 1;
|
|
2392
|
-
return { t: v, l: 1 };
|
|
2393
|
-
}
|
|
2394
|
-
t.sort(function(a, b) {
|
|
2395
|
-
return a.f - b.f;
|
|
2396
|
-
});
|
|
2397
|
-
t.push({ s: -1, f: 25001 });
|
|
2398
|
-
var l = t[0], r = t[1], i0 = 0, i1 = 1, i22 = 2;
|
|
2399
|
-
t[0] = { s: -1, f: l.f + r.f, l, r };
|
|
2400
|
-
while (i1 != s - 1) {
|
|
2401
|
-
l = t[t[i0].f < t[i22].f ? i0++ : i22++];
|
|
2402
|
-
r = t[i0 != i1 && t[i0].f < t[i22].f ? i0++ : i22++];
|
|
2403
|
-
t[i1++] = { s: -1, f: l.f + r.f, l, r };
|
|
2404
|
-
}
|
|
2405
|
-
var maxSym = t2[0].s;
|
|
2406
|
-
for (var i2 = 1;i2 < s; ++i2) {
|
|
2407
|
-
if (t2[i2].s > maxSym)
|
|
2408
|
-
maxSym = t2[i2].s;
|
|
2409
|
-
}
|
|
2410
|
-
var tr = new u16(maxSym + 1);
|
|
2411
|
-
var mbt = ln(t[i1 - 1], tr, 0);
|
|
2412
|
-
if (mbt > mb) {
|
|
2413
|
-
var i2 = 0, dt = 0;
|
|
2414
|
-
var lft = mbt - mb, cst = 1 << lft;
|
|
2415
|
-
t2.sort(function(a, b) {
|
|
2416
|
-
return tr[b.s] - tr[a.s] || a.f - b.f;
|
|
2417
|
-
});
|
|
2418
|
-
for (;i2 < s; ++i2) {
|
|
2419
|
-
var i2_1 = t2[i2].s;
|
|
2420
|
-
if (tr[i2_1] > mb) {
|
|
2421
|
-
dt += cst - (1 << mbt - tr[i2_1]);
|
|
2422
|
-
tr[i2_1] = mb;
|
|
2423
|
-
} else
|
|
2424
|
-
break;
|
|
2425
|
-
}
|
|
2426
|
-
dt >>= lft;
|
|
2427
|
-
while (dt > 0) {
|
|
2428
|
-
var i2_2 = t2[i2].s;
|
|
2429
|
-
if (tr[i2_2] < mb)
|
|
2430
|
-
dt -= 1 << mb - tr[i2_2]++ - 1;
|
|
2431
|
-
else
|
|
2432
|
-
++i2;
|
|
2433
|
-
}
|
|
2434
|
-
for (;i2 >= 0 && dt; --i2) {
|
|
2435
|
-
var i2_3 = t2[i2].s;
|
|
2436
|
-
if (tr[i2_3] == mb) {
|
|
2437
|
-
--tr[i2_3];
|
|
2438
|
-
++dt;
|
|
2439
|
-
}
|
|
2440
|
-
}
|
|
2441
|
-
mbt = mb;
|
|
2442
|
-
}
|
|
2443
|
-
return { t: new u8(tr), l: mbt };
|
|
2444
|
-
};
|
|
2445
|
-
var ln = function(n, l, d) {
|
|
2446
|
-
return n.s == -1 ? Math.max(ln(n.l, l, d + 1), ln(n.r, l, d + 1)) : l[n.s] = d;
|
|
2447
|
-
};
|
|
2448
|
-
var lc = function(c) {
|
|
2449
|
-
var s = c.length;
|
|
2450
|
-
while (s && !c[--s])
|
|
2451
|
-
;
|
|
2452
|
-
var cl = new u16(++s);
|
|
2453
|
-
var cli = 0, cln = c[0], cls = 1;
|
|
2454
|
-
var w = function(v) {
|
|
2455
|
-
cl[cli++] = v;
|
|
2456
|
-
};
|
|
2457
|
-
for (var i2 = 1;i2 <= s; ++i2) {
|
|
2458
|
-
if (c[i2] == cln && i2 != s)
|
|
2459
|
-
++cls;
|
|
2460
|
-
else {
|
|
2461
|
-
if (!cln && cls > 2) {
|
|
2462
|
-
for (;cls > 138; cls -= 138)
|
|
2463
|
-
w(32754);
|
|
2464
|
-
if (cls > 2) {
|
|
2465
|
-
w(cls > 10 ? cls - 11 << 5 | 28690 : cls - 3 << 5 | 12305);
|
|
2466
|
-
cls = 0;
|
|
2467
|
-
}
|
|
2468
|
-
} else if (cls > 3) {
|
|
2469
|
-
w(cln), --cls;
|
|
2470
|
-
for (;cls > 6; cls -= 6)
|
|
2471
|
-
w(8304);
|
|
2472
|
-
if (cls > 2)
|
|
2473
|
-
w(cls - 3 << 5 | 8208), cls = 0;
|
|
2474
|
-
}
|
|
2475
|
-
while (cls--)
|
|
2476
|
-
w(cln);
|
|
2477
|
-
cls = 1;
|
|
2478
|
-
cln = c[i2];
|
|
2479
|
-
}
|
|
2480
|
-
}
|
|
2481
|
-
return { c: cl.subarray(0, cli), n: s };
|
|
2482
|
-
};
|
|
2483
|
-
var clen = function(cf, cl) {
|
|
2484
|
-
var l = 0;
|
|
2485
|
-
for (var i2 = 0;i2 < cl.length; ++i2)
|
|
2486
|
-
l += cf[i2] * cl[i2];
|
|
2487
|
-
return l;
|
|
2488
|
-
};
|
|
2489
|
-
var wfblk = function(out, pos, dat) {
|
|
2490
|
-
var s = dat.length;
|
|
2491
|
-
var o = shft(pos + 2);
|
|
2492
|
-
out[o] = s & 255;
|
|
2493
|
-
out[o + 1] = s >> 8;
|
|
2494
|
-
out[o + 2] = out[o] ^ 255;
|
|
2495
|
-
out[o + 3] = out[o + 1] ^ 255;
|
|
2496
|
-
for (var i2 = 0;i2 < s; ++i2)
|
|
2497
|
-
out[o + i2 + 4] = dat[i2];
|
|
2498
|
-
return (o + 4 + s) * 8;
|
|
2499
|
-
};
|
|
2500
|
-
var wblk = function(dat, out, final, syms, lf, df, eb, li, bs, bl, p) {
|
|
2501
|
-
wbits(out, p++, final);
|
|
2502
|
-
++lf[256];
|
|
2503
|
-
var _a2 = hTree(lf, 15), dlt = _a2.t, mlb = _a2.l;
|
|
2504
|
-
var _b2 = hTree(df, 15), ddt = _b2.t, mdb = _b2.l;
|
|
2505
|
-
var _c = lc(dlt), lclt = _c.c, nlc = _c.n;
|
|
2506
|
-
var _d = lc(ddt), lcdt = _d.c, ndc = _d.n;
|
|
2507
|
-
var lcfreq = new u16(19);
|
|
2508
|
-
for (var i2 = 0;i2 < lclt.length; ++i2)
|
|
2509
|
-
++lcfreq[lclt[i2] & 31];
|
|
2510
|
-
for (var i2 = 0;i2 < lcdt.length; ++i2)
|
|
2511
|
-
++lcfreq[lcdt[i2] & 31];
|
|
2512
|
-
var _e = hTree(lcfreq, 7), lct = _e.t, mlcb = _e.l;
|
|
2513
|
-
var nlcc = 19;
|
|
2514
|
-
for (;nlcc > 4 && !lct[clim[nlcc - 1]]; --nlcc)
|
|
2515
|
-
;
|
|
2516
|
-
var flen = bl + 5 << 3;
|
|
2517
|
-
var ftlen = clen(lf, flt) + clen(df, fdt) + eb;
|
|
2518
|
-
var dtlen = clen(lf, dlt) + clen(df, ddt) + eb + 14 + 3 * nlcc + clen(lcfreq, lct) + 2 * lcfreq[16] + 3 * lcfreq[17] + 7 * lcfreq[18];
|
|
2519
|
-
if (bs >= 0 && flen <= ftlen && flen <= dtlen)
|
|
2520
|
-
return wfblk(out, p, dat.subarray(bs, bs + bl));
|
|
2521
|
-
var lm, ll, dm, dl;
|
|
2522
|
-
wbits(out, p, 1 + (dtlen < ftlen)), p += 2;
|
|
2523
|
-
if (dtlen < ftlen) {
|
|
2524
|
-
lm = hMap(dlt, mlb, 0), ll = dlt, dm = hMap(ddt, mdb, 0), dl = ddt;
|
|
2525
|
-
var llm = hMap(lct, mlcb, 0);
|
|
2526
|
-
wbits(out, p, nlc - 257);
|
|
2527
|
-
wbits(out, p + 5, ndc - 1);
|
|
2528
|
-
wbits(out, p + 10, nlcc - 4);
|
|
2529
|
-
p += 14;
|
|
2530
|
-
for (var i2 = 0;i2 < nlcc; ++i2)
|
|
2531
|
-
wbits(out, p + 3 * i2, lct[clim[i2]]);
|
|
2532
|
-
p += 3 * nlcc;
|
|
2533
|
-
var lcts = [lclt, lcdt];
|
|
2534
|
-
for (var it = 0;it < 2; ++it) {
|
|
2535
|
-
var clct = lcts[it];
|
|
2536
|
-
for (var i2 = 0;i2 < clct.length; ++i2) {
|
|
2537
|
-
var len = clct[i2] & 31;
|
|
2538
|
-
wbits(out, p, llm[len]), p += lct[len];
|
|
2539
|
-
if (len > 15)
|
|
2540
|
-
wbits(out, p, clct[i2] >> 5 & 127), p += clct[i2] >> 12;
|
|
2541
|
-
}
|
|
2542
|
-
}
|
|
2543
|
-
} else {
|
|
2544
|
-
lm = flm, ll = flt, dm = fdm, dl = fdt;
|
|
2545
|
-
}
|
|
2546
|
-
for (var i2 = 0;i2 < li; ++i2) {
|
|
2547
|
-
var sym = syms[i2];
|
|
2548
|
-
if (sym > 255) {
|
|
2549
|
-
var len = sym >> 18 & 31;
|
|
2550
|
-
wbits16(out, p, lm[len + 257]), p += ll[len + 257];
|
|
2551
|
-
if (len > 7)
|
|
2552
|
-
wbits(out, p, sym >> 23 & 31), p += fleb[len];
|
|
2553
|
-
var dst = sym & 31;
|
|
2554
|
-
wbits16(out, p, dm[dst]), p += dl[dst];
|
|
2555
|
-
if (dst > 3)
|
|
2556
|
-
wbits16(out, p, sym >> 5 & 8191), p += fdeb[dst];
|
|
2557
|
-
} else {
|
|
2558
|
-
wbits16(out, p, lm[sym]), p += ll[sym];
|
|
2559
|
-
}
|
|
2560
|
-
}
|
|
2561
|
-
wbits16(out, p, lm[256]);
|
|
2562
|
-
return p + ll[256];
|
|
2563
|
-
};
|
|
2564
|
-
var deo = /* @__PURE__ */ new i32([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]);
|
|
2565
|
-
var et = /* @__PURE__ */ new u8(0);
|
|
2566
|
-
var dflt = function(dat, lvl, plvl, pre, post, st) {
|
|
2567
|
-
var s = st.z || dat.length;
|
|
2568
|
-
var o = new u8(pre + s + 5 * (1 + Math.ceil(s / 7000)) + post);
|
|
2569
|
-
var w = o.subarray(pre, o.length - post);
|
|
2570
|
-
var lst = st.l;
|
|
2571
|
-
var pos = (st.r || 0) & 7;
|
|
2572
|
-
if (lvl) {
|
|
2573
|
-
if (pos)
|
|
2574
|
-
w[0] = st.r >> 3;
|
|
2575
|
-
var opt = deo[lvl - 1];
|
|
2576
|
-
var n = opt >> 13, c = opt & 8191;
|
|
2577
|
-
var msk_1 = (1 << plvl) - 1;
|
|
2578
|
-
var prev = st.p || new u16(32768), head = st.h || new u16(msk_1 + 1);
|
|
2579
|
-
var bs1_1 = Math.ceil(plvl / 3), bs2_1 = 2 * bs1_1;
|
|
2580
|
-
var hsh = function(i3) {
|
|
2581
|
-
return (dat[i3] ^ dat[i3 + 1] << bs1_1 ^ dat[i3 + 2] << bs2_1) & msk_1;
|
|
2582
|
-
};
|
|
2583
|
-
var syms = new i32(25000);
|
|
2584
|
-
var lf = new u16(288), df = new u16(32);
|
|
2585
|
-
var lc_1 = 0, eb = 0, i2 = st.i || 0, li = 0, wi = st.w || 0, bs = 0;
|
|
2586
|
-
for (;i2 + 2 < s; ++i2) {
|
|
2587
|
-
var hv = hsh(i2);
|
|
2588
|
-
var imod = i2 & 32767, pimod = head[hv];
|
|
2589
|
-
prev[imod] = pimod;
|
|
2590
|
-
head[hv] = imod;
|
|
2591
|
-
if (wi <= i2) {
|
|
2592
|
-
var rem = s - i2;
|
|
2593
|
-
if ((lc_1 > 7000 || li > 24576) && (rem > 423 || !lst)) {
|
|
2594
|
-
pos = wblk(dat, w, 0, syms, lf, df, eb, li, bs, i2 - bs, pos);
|
|
2595
|
-
li = lc_1 = eb = 0, bs = i2;
|
|
2596
|
-
for (var j = 0;j < 286; ++j)
|
|
2597
|
-
lf[j] = 0;
|
|
2598
|
-
for (var j = 0;j < 30; ++j)
|
|
2599
|
-
df[j] = 0;
|
|
2600
|
-
}
|
|
2601
|
-
var l = 2, d = 0, ch_1 = c, dif = imod - pimod & 32767;
|
|
2602
|
-
if (rem > 2 && hv == hsh(i2 - dif)) {
|
|
2603
|
-
var maxn = Math.min(n, rem) - 1;
|
|
2604
|
-
var maxd = Math.min(32767, i2);
|
|
2605
|
-
var ml = Math.min(258, rem);
|
|
2606
|
-
while (dif <= maxd && --ch_1 && imod != pimod) {
|
|
2607
|
-
if (dat[i2 + l] == dat[i2 + l - dif]) {
|
|
2608
|
-
var nl = 0;
|
|
2609
|
-
for (;nl < ml && dat[i2 + nl] == dat[i2 + nl - dif]; ++nl)
|
|
2610
|
-
;
|
|
2611
|
-
if (nl > l) {
|
|
2612
|
-
l = nl, d = dif;
|
|
2613
|
-
if (nl > maxn)
|
|
2614
|
-
break;
|
|
2615
|
-
var mmd = Math.min(dif, nl - 2);
|
|
2616
|
-
var md = 0;
|
|
2617
|
-
for (var j = 0;j < mmd; ++j) {
|
|
2618
|
-
var ti = i2 - dif + j & 32767;
|
|
2619
|
-
var pti = prev[ti];
|
|
2620
|
-
var cd = ti - pti & 32767;
|
|
2621
|
-
if (cd > md)
|
|
2622
|
-
md = cd, pimod = ti;
|
|
2623
|
-
}
|
|
2624
|
-
}
|
|
2625
|
-
}
|
|
2626
|
-
imod = pimod, pimod = prev[imod];
|
|
2627
|
-
dif += imod - pimod & 32767;
|
|
2628
|
-
}
|
|
2629
|
-
}
|
|
2630
|
-
if (d) {
|
|
2631
|
-
syms[li++] = 268435456 | revfl[l] << 18 | revfd[d];
|
|
2632
|
-
var lin = revfl[l] & 31, din = revfd[d] & 31;
|
|
2633
|
-
eb += fleb[lin] + fdeb[din];
|
|
2634
|
-
++lf[257 + lin];
|
|
2635
|
-
++df[din];
|
|
2636
|
-
wi = i2 + l;
|
|
2637
|
-
++lc_1;
|
|
2638
|
-
} else {
|
|
2639
|
-
syms[li++] = dat[i2];
|
|
2640
|
-
++lf[dat[i2]];
|
|
2641
|
-
}
|
|
2642
|
-
}
|
|
2643
|
-
}
|
|
2644
|
-
for (i2 = Math.max(i2, wi);i2 < s; ++i2) {
|
|
2645
|
-
syms[li++] = dat[i2];
|
|
2646
|
-
++lf[dat[i2]];
|
|
2647
|
-
}
|
|
2648
|
-
pos = wblk(dat, w, lst, syms, lf, df, eb, li, bs, i2 - bs, pos);
|
|
2649
|
-
if (!lst) {
|
|
2650
|
-
st.r = pos & 7 | w[pos / 8 | 0] << 3;
|
|
2651
|
-
pos -= 7;
|
|
2652
|
-
st.h = head, st.p = prev, st.i = i2, st.w = wi;
|
|
2653
|
-
}
|
|
2654
|
-
} else {
|
|
2655
|
-
for (var i2 = st.w || 0;i2 < s + lst; i2 += 65535) {
|
|
2656
|
-
var e = i2 + 65535;
|
|
2657
|
-
if (e >= s) {
|
|
2658
|
-
w[pos / 8 | 0] = lst;
|
|
2659
|
-
e = s;
|
|
2660
|
-
}
|
|
2661
|
-
pos = wfblk(w, pos + 1, dat.subarray(i2, e));
|
|
2662
|
-
}
|
|
2663
|
-
st.i = s;
|
|
2664
|
-
}
|
|
2665
|
-
return slc(o, 0, pre + shft(pos) + post);
|
|
2666
|
-
};
|
|
2667
|
-
var crct = /* @__PURE__ */ function() {
|
|
2668
|
-
var t = new Int32Array(256);
|
|
2669
|
-
for (var i2 = 0;i2 < 256; ++i2) {
|
|
2670
|
-
var c = i2, k = 9;
|
|
2671
|
-
while (--k)
|
|
2672
|
-
c = (c & 1 && -306674912) ^ c >>> 1;
|
|
2673
|
-
t[i2] = c;
|
|
2674
|
-
}
|
|
2675
|
-
return t;
|
|
2676
|
-
}();
|
|
2677
|
-
var crc = function() {
|
|
2678
|
-
var c = -1;
|
|
2679
|
-
return {
|
|
2680
|
-
p: function(d) {
|
|
2681
|
-
var cr = c;
|
|
2682
|
-
for (var i2 = 0;i2 < d.length; ++i2)
|
|
2683
|
-
cr = crct[cr & 255 ^ d[i2]] ^ cr >>> 8;
|
|
2684
|
-
c = cr;
|
|
2685
|
-
},
|
|
2686
|
-
d: function() {
|
|
2687
|
-
return ~c;
|
|
2688
|
-
}
|
|
2689
|
-
};
|
|
2690
|
-
};
|
|
2691
|
-
var dopt = function(dat, opt, pre, post, st) {
|
|
2692
|
-
if (!st) {
|
|
2693
|
-
st = { l: 1 };
|
|
2694
|
-
if (opt.dictionary) {
|
|
2695
|
-
var dict = opt.dictionary.subarray(-32768);
|
|
2696
|
-
var newDat = new u8(dict.length + dat.length);
|
|
2697
|
-
newDat.set(dict);
|
|
2698
|
-
newDat.set(dat, dict.length);
|
|
2699
|
-
dat = newDat;
|
|
2700
|
-
st.w = dict.length;
|
|
2701
|
-
}
|
|
2702
|
-
}
|
|
2703
|
-
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);
|
|
2704
|
-
};
|
|
2705
|
-
var mrg = function(a, b) {
|
|
2706
|
-
var o = {};
|
|
2707
|
-
for (var k in a)
|
|
2708
|
-
o[k] = a[k];
|
|
2709
|
-
for (var k in b)
|
|
2710
|
-
o[k] = b[k];
|
|
2711
|
-
return o;
|
|
2712
|
-
};
|
|
2713
|
-
var wbytes = function(d, b, v) {
|
|
2714
|
-
for (;v; ++b)
|
|
2715
|
-
d[b] = v, v >>>= 8;
|
|
2716
|
-
};
|
|
2717
|
-
function deflateSync(data, opts) {
|
|
2718
|
-
return dopt(data, opts || {}, 0, 0);
|
|
2719
|
-
}
|
|
2720
|
-
var fltn = function(d, p, t, o) {
|
|
2721
|
-
for (var k in d) {
|
|
2722
|
-
var val = d[k], n = p + k, op = o;
|
|
2723
|
-
if (Array.isArray(val))
|
|
2724
|
-
op = mrg(o, val[1]), val = val[0];
|
|
2725
|
-
if (ArrayBuffer.isView(val))
|
|
2726
|
-
t[n] = [val, op];
|
|
2727
|
-
else {
|
|
2728
|
-
t[n += "/"] = [new u8(0), op];
|
|
2729
|
-
fltn(val, n, t, o);
|
|
2730
|
-
}
|
|
2731
|
-
}
|
|
2732
|
-
};
|
|
2733
|
-
var te = typeof TextEncoder != "undefined" && /* @__PURE__ */ new TextEncoder;
|
|
2734
|
-
var td = typeof TextDecoder != "undefined" && /* @__PURE__ */ new TextDecoder;
|
|
2735
|
-
var tds = 0;
|
|
2736
|
-
try {
|
|
2737
|
-
td.decode(et, { stream: true });
|
|
2738
|
-
tds = 1;
|
|
2739
|
-
} catch (e) {}
|
|
2740
|
-
function strToU8(str, latin1) {
|
|
2741
|
-
if (latin1) {
|
|
2742
|
-
var ar_1 = new u8(str.length);
|
|
2743
|
-
for (var i2 = 0;i2 < str.length; ++i2)
|
|
2744
|
-
ar_1[i2] = str.charCodeAt(i2);
|
|
2745
|
-
return ar_1;
|
|
2746
|
-
}
|
|
2747
|
-
if (te)
|
|
2748
|
-
return te.encode(str);
|
|
2749
|
-
var l = str.length;
|
|
2750
|
-
var ar = new u8(str.length + (str.length >> 1));
|
|
2751
|
-
var ai = 0;
|
|
2752
|
-
var w = function(v) {
|
|
2753
|
-
ar[ai++] = v;
|
|
2754
|
-
};
|
|
2755
|
-
for (var i2 = 0;i2 < l; ++i2) {
|
|
2756
|
-
if (ai + 5 > ar.length) {
|
|
2757
|
-
var n = new u8(ai + 8 + (l - i2 << 1));
|
|
2758
|
-
n.set(ar);
|
|
2759
|
-
ar = n;
|
|
2760
|
-
}
|
|
2761
|
-
var c = str.charCodeAt(i2);
|
|
2762
|
-
if (c < 128 || latin1)
|
|
2763
|
-
w(c);
|
|
2764
|
-
else if (c < 2048)
|
|
2765
|
-
w(192 | c >> 6), w(128 | c & 63);
|
|
2766
|
-
else if (c > 55295 && c < 57344)
|
|
2767
|
-
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);
|
|
2768
|
-
else
|
|
2769
|
-
w(224 | c >> 12), w(128 | c >> 6 & 63), w(128 | c & 63);
|
|
2770
|
-
}
|
|
2771
|
-
return slc(ar, 0, ai);
|
|
2772
|
-
}
|
|
2773
|
-
var exfl = function(ex) {
|
|
2774
|
-
var le = 0;
|
|
2775
|
-
if (ex) {
|
|
2776
|
-
for (var k in ex) {
|
|
2777
|
-
var l = ex[k].length;
|
|
2778
|
-
if (l > 65535)
|
|
2779
|
-
err(9);
|
|
2780
|
-
le += l + 4;
|
|
2781
|
-
}
|
|
2782
|
-
}
|
|
2783
|
-
return le;
|
|
2784
|
-
};
|
|
2785
|
-
var wzh = function(d, b, f, fn, u, c, ce, co) {
|
|
2786
|
-
var fl2 = fn.length, ex = f.extra, col = co && co.length;
|
|
2787
|
-
var exl = exfl(ex);
|
|
2788
|
-
wbytes(d, b, ce != null ? 33639248 : 67324752), b += 4;
|
|
2789
|
-
if (ce != null)
|
|
2790
|
-
d[b++] = 20, d[b++] = f.os;
|
|
2791
|
-
d[b] = 20, b += 2;
|
|
2792
|
-
d[b++] = f.flag << 1 | (c < 0 && 8), d[b++] = u && 8;
|
|
2793
|
-
d[b++] = f.compression & 255, d[b++] = f.compression >> 8;
|
|
2794
|
-
var dt = new Date(f.mtime == null ? Date.now() : f.mtime), y = dt.getFullYear() - 1980;
|
|
2795
|
-
if (y < 0 || y > 119)
|
|
2796
|
-
err(10);
|
|
2797
|
-
wbytes(d, b, y << 25 | dt.getMonth() + 1 << 21 | dt.getDate() << 16 | dt.getHours() << 11 | dt.getMinutes() << 5 | dt.getSeconds() >> 1), b += 4;
|
|
2798
|
-
if (c != -1) {
|
|
2799
|
-
wbytes(d, b, f.crc);
|
|
2800
|
-
wbytes(d, b + 4, c < 0 ? -c - 2 : c);
|
|
2801
|
-
wbytes(d, b + 8, f.size);
|
|
2802
|
-
}
|
|
2803
|
-
wbytes(d, b + 12, fl2);
|
|
2804
|
-
wbytes(d, b + 14, exl), b += 16;
|
|
2805
|
-
if (ce != null) {
|
|
2806
|
-
wbytes(d, b, col);
|
|
2807
|
-
wbytes(d, b + 6, f.attrs);
|
|
2808
|
-
wbytes(d, b + 10, ce), b += 14;
|
|
2809
|
-
}
|
|
2810
|
-
d.set(fn, b);
|
|
2811
|
-
b += fl2;
|
|
2812
|
-
if (exl) {
|
|
2813
|
-
for (var k in ex) {
|
|
2814
|
-
var exf = ex[k], l = exf.length;
|
|
2815
|
-
wbytes(d, b, +k);
|
|
2816
|
-
wbytes(d, b + 2, l);
|
|
2817
|
-
d.set(exf, b + 4), b += 4 + l;
|
|
2818
|
-
}
|
|
2819
|
-
}
|
|
2820
|
-
if (col)
|
|
2821
|
-
d.set(co, b), b += col;
|
|
2822
|
-
return b;
|
|
2823
|
-
};
|
|
2824
|
-
var wzf = function(o, b, c, d, e) {
|
|
2825
|
-
wbytes(o, b, 101010256);
|
|
2826
|
-
wbytes(o, b + 8, c);
|
|
2827
|
-
wbytes(o, b + 10, c);
|
|
2828
|
-
wbytes(o, b + 12, d);
|
|
2829
|
-
wbytes(o, b + 16, e);
|
|
2830
|
-
};
|
|
2831
|
-
function zipSync(data, opts) {
|
|
2832
|
-
if (!opts)
|
|
2833
|
-
opts = {};
|
|
2834
|
-
var r = {};
|
|
2835
|
-
var files = [];
|
|
2836
|
-
fltn(data, "", r, opts);
|
|
2837
|
-
var o = 0;
|
|
2838
|
-
var tot = 0;
|
|
2839
|
-
for (var fn in r) {
|
|
2840
|
-
var _a2 = r[fn], file = _a2[0], p = _a2[1];
|
|
2841
|
-
var compression = p.level == 0 ? 0 : 8;
|
|
2842
|
-
var f = strToU8(fn), s = f.length;
|
|
2843
|
-
var com = p.comment, m = com && strToU8(com), ms = m && m.length;
|
|
2844
|
-
var exl = exfl(p.extra);
|
|
2845
|
-
if (s > 65535)
|
|
2846
|
-
err(11);
|
|
2847
|
-
var d = compression ? deflateSync(file, p) : file, l = d.length;
|
|
2848
|
-
var c = crc();
|
|
2849
|
-
c.p(file);
|
|
2850
|
-
files.push(mrg(p, {
|
|
2851
|
-
size: file.length,
|
|
2852
|
-
crc: c.d(),
|
|
2853
|
-
c: d,
|
|
2854
|
-
f,
|
|
2855
|
-
m,
|
|
2856
|
-
u: s != fn.length || m && com.length != ms,
|
|
2857
|
-
o,
|
|
2858
|
-
compression
|
|
2859
|
-
}));
|
|
2860
|
-
o += 30 + s + exl + l;
|
|
2861
|
-
tot += 76 + 2 * (s + exl) + (ms || 0) + l;
|
|
2862
|
-
}
|
|
2863
|
-
var out = new u8(tot + 22), oe = o, cdl = tot - o;
|
|
2864
|
-
for (var i2 = 0;i2 < files.length; ++i2) {
|
|
2865
|
-
var f = files[i2];
|
|
2866
|
-
wzh(out, f.o, f, f.f, f.u, f.c.length);
|
|
2867
|
-
var badd = 30 + f.f.length + exfl(f.extra);
|
|
2868
|
-
out.set(f.c, f.o + badd);
|
|
2869
|
-
wzh(out, o, f, f.f, f.u, f.c.length, f.o, f.m), o += 16 + badd + (f.m ? f.m.length : 0);
|
|
2870
|
-
}
|
|
2871
|
-
wzf(out, o, files.length, cdl, oe);
|
|
2872
|
-
return out;
|
|
2873
|
-
}
|
|
2874
|
-
|
|
2875
|
-
// ../packager/packager-core/src/services/nuget-packager.ts
|
|
2876
|
-
function escapeXml(str) {
|
|
2877
|
-
if (str === null || str === undefined) {
|
|
2878
|
-
return "";
|
|
2879
|
-
}
|
|
2880
|
-
return String(str).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
2881
|
-
}
|
|
2882
|
-
function optionalElement(name, value) {
|
|
2883
|
-
if (value === undefined || value === "")
|
|
2884
|
-
return "";
|
|
2885
|
-
return ` <${name}>${escapeXml(value)}</${name}>
|
|
2886
|
-
`;
|
|
2887
|
-
}
|
|
2888
|
-
function generateDependenciesXml(dependencies) {
|
|
2889
|
-
if (!dependencies || dependencies.length === 0)
|
|
2890
|
-
return "";
|
|
2891
|
-
const deps = dependencies.map((d) => ` <dependency id="${escapeXml(d.id)}" version="${escapeXml(d.version)}" />`).join(`
|
|
2892
|
-
`);
|
|
2893
|
-
return ` <dependencies>
|
|
2894
|
-
${deps}
|
|
2895
|
-
</dependencies>
|
|
2896
|
-
`;
|
|
2897
|
-
}
|
|
2898
|
-
function generateRepositoryXml(packageInfo) {
|
|
2899
|
-
if (!packageInfo.repositoryType || !packageInfo.repositoryUrl)
|
|
2900
|
-
return "";
|
|
2901
|
-
let repoXml = ` <repository type="${escapeXml(packageInfo.repositoryType)}" url="${escapeXml(packageInfo.repositoryUrl)}"`;
|
|
2902
|
-
if (packageInfo.repositoryBranch) {
|
|
2903
|
-
repoXml += ` branch="${escapeXml(packageInfo.repositoryBranch)}"`;
|
|
2904
|
-
}
|
|
2905
|
-
if (packageInfo.repositoryCommit) {
|
|
2906
|
-
repoXml += ` commit="${escapeXml(packageInfo.repositoryCommit)}"`;
|
|
2907
|
-
}
|
|
2908
|
-
repoXml += ` />
|
|
2909
|
-
`;
|
|
2910
|
-
return repoXml;
|
|
2911
|
-
}
|
|
2912
|
-
function generateNuspecXml(packageInfo) {
|
|
2913
|
-
const author = packageInfo.author?.trim() || "UiPath";
|
|
2914
|
-
const description = packageInfo.description?.trim() || "Created by UiPath";
|
|
2915
|
-
const title = packageInfo.title?.trim() || packageInfo.id;
|
|
2916
|
-
const requireLicenseAcceptance = packageInfo.requireLicenseAcceptance === true ? "true" : "false";
|
|
2917
|
-
const releaseNotes = packageInfo.releaseNotes ?? "";
|
|
2918
|
-
const xml = `\uFEFF<?xml version="1.0" encoding="utf-8"?>
|
|
2919
|
-
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
|
|
2920
|
-
<metadata>
|
|
2921
|
-
<id>${escapeXml(packageInfo.id)}</id>
|
|
2922
|
-
<version>${escapeXml(packageInfo.version)}</version>
|
|
2923
|
-
<title>${escapeXml(title)}</title>
|
|
2924
|
-
<authors>${escapeXml(author)}</authors>
|
|
2925
|
-
<requireLicenseAcceptance>${requireLicenseAcceptance}</requireLicenseAcceptance>
|
|
2926
|
-
<description>${escapeXml(description)}</description>
|
|
2927
|
-
<releaseNotes>${escapeXml(releaseNotes)}</releaseNotes>
|
|
2928
|
-
${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>
|
|
2929
|
-
</package>
|
|
2930
|
-
`;
|
|
2931
|
-
return xml;
|
|
2932
|
-
}
|
|
2933
|
-
function generatePsmdcpXml(packageInfo) {
|
|
2934
|
-
const author = packageInfo.author?.trim() || "UiPath";
|
|
2935
|
-
const description = packageInfo.description?.trim() || "Created by UiPath";
|
|
2936
|
-
return `<?xml version="1.0" encoding="utf-8"?>
|
|
2937
|
-
<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">
|
|
2938
|
-
<dc:creator>${escapeXml(author)}</dc:creator>
|
|
2939
|
-
<dc:description>${escapeXml(description)}</dc:description>
|
|
2940
|
-
<dc:identifier>${escapeXml(packageInfo.id)}</dc:identifier>
|
|
2941
|
-
<version>${escapeXml(packageInfo.version)}</version>
|
|
2942
|
-
<keywords></keywords>
|
|
2943
|
-
<lastModifiedBy>NuGet.Packaging, Version=6.12.1.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35;.NET 5.0</lastModifiedBy>
|
|
2944
|
-
</coreProperties>`;
|
|
2945
|
-
}
|
|
2946
|
-
|
|
2947
|
-
class NugetPackager {
|
|
2948
|
-
fileSystem;
|
|
2949
|
-
constructor(fileSystem) {
|
|
2950
|
-
this.fileSystem = fileSystem;
|
|
2951
|
-
}
|
|
2952
|
-
async packAsync(rootPath, packageInfo, outputPath) {
|
|
2953
|
-
const normalizedOutputPath = Path.normalize(outputPath);
|
|
2954
|
-
const nuspecXml = generateNuspecXml(packageInfo);
|
|
2955
|
-
const nuspecFileName = `${packageInfo.id}.nuspec`;
|
|
2956
|
-
const fileEntries = await Path.walkDirectory(this.fileSystem, rootPath);
|
|
2957
|
-
const zipContents = {};
|
|
2958
|
-
const encoder = new TextEncoder;
|
|
2959
|
-
const psmdcpId = Array.from({ length: 4 }, () => Math.floor(Math.random() * 4294967296).toString(16).padStart(8, "0")).join("");
|
|
2960
|
-
const psmdcpFileName = `${psmdcpId}.psmdcp`;
|
|
2961
|
-
const psmdcpPath = `package/services/metadata/core-properties/${psmdcpFileName}`;
|
|
2962
|
-
const contentTypesXml = `<?xml version="1.0" encoding="utf-8"?>
|
|
2963
|
-
<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">
|
|
2964
|
-
<Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml" />
|
|
2965
|
-
<Default Extension="psmdcp" ContentType="application/vnd.openxmlformats-package.core-properties+xml" />
|
|
2966
|
-
<Default Extension="uiproj" ContentType="application/octet" />
|
|
2967
|
-
<Default Extension="json" ContentType="application/octet" />
|
|
2968
|
-
<Default Extension="nuspec" ContentType="application/octet" />
|
|
2969
|
-
</Types>`;
|
|
2970
|
-
zipContents["[Content_Types].xml"] = encoder.encode(contentTypesXml);
|
|
2971
|
-
const manifestRelId = `R${Date.now().toString(16).toUpperCase()}`;
|
|
2972
|
-
const corePropsRelId = `R${(Date.now() + 1).toString(16).toUpperCase()}`;
|
|
2973
|
-
const relsXml = `<?xml version="1.0" encoding="utf-8"?>
|
|
2974
|
-
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
|
|
2975
|
-
<Relationship Type="http://schemas.microsoft.com/packaging/2010/07/manifest" Target="/${nuspecFileName}" Id="${manifestRelId}" />
|
|
2976
|
-
<Relationship Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="/${psmdcpPath}" Id="${corePropsRelId}" />
|
|
2977
|
-
</Relationships>`;
|
|
2978
|
-
zipContents["_rels/.rels"] = encoder.encode(relsXml);
|
|
2979
|
-
zipContents[psmdcpPath] = encoder.encode(generatePsmdcpXml(packageInfo));
|
|
2980
|
-
zipContents[nuspecFileName] = encoder.encode(nuspecXml);
|
|
2981
|
-
for (const entry of fileEntries) {
|
|
2982
|
-
const content = await this.fileSystem.readFile(entry.absolutePath);
|
|
2983
|
-
if (content !== null) {
|
|
2984
|
-
zipContents[entry.relativePath] = content;
|
|
2985
|
-
}
|
|
2986
|
-
}
|
|
2987
|
-
const zippedData = zipSync(zipContents);
|
|
2988
|
-
await this.fileSystem.writeFile(normalizedOutputPath, zippedData);
|
|
2989
|
-
return {
|
|
2990
|
-
outputPath: normalizedOutputPath
|
|
2991
|
-
};
|
|
2992
|
-
}
|
|
2993
|
-
}
|
|
2994
|
-
// ../packager/packager-core/src/models/tool-result.ts
|
|
2995
|
-
class ToolResult {
|
|
2996
|
-
errorCode;
|
|
2997
|
-
message;
|
|
2998
|
-
packages;
|
|
2999
|
-
details;
|
|
3000
|
-
instructions;
|
|
3001
|
-
constructor(errorCode, message, packages = [], instructions) {
|
|
3002
|
-
this.errorCode = errorCode;
|
|
3003
|
-
this.message = message;
|
|
3004
|
-
this.packages = packages;
|
|
3005
|
-
this.instructions = instructions;
|
|
3006
|
-
}
|
|
3007
|
-
get isSuccess() {
|
|
3008
|
-
return this.errorCode === "SUCCESS" /* Success */;
|
|
3009
|
-
}
|
|
3010
|
-
static success() {
|
|
3011
|
-
return new ToolResult("SUCCESS" /* Success */);
|
|
3012
|
-
}
|
|
3013
|
-
static error(errorCode, message, instructions) {
|
|
3014
|
-
return new ToolResult(errorCode, message, [], instructions);
|
|
3015
|
-
}
|
|
3016
|
-
}
|
|
3017
|
-
|
|
3018
|
-
// ../packager/packager-core/src/services/project-tool.ts
|
|
3019
|
-
class ProjectTool {
|
|
3020
|
-
fileSystem;
|
|
3021
|
-
logger;
|
|
3022
|
-
static ProjectFileName = "project.uiproj";
|
|
3023
|
-
constructor(fileSystem, logger) {
|
|
3024
|
-
this.fileSystem = fileSystem;
|
|
3025
|
-
this.logger = logger;
|
|
3026
|
-
}
|
|
3027
|
-
async restoreAsync(_options, _cancellationToken) {
|
|
3028
|
-
this.logger.info("Restore operation is a noop");
|
|
3029
|
-
return ToolResult.success();
|
|
3030
|
-
}
|
|
3031
|
-
async validateAsync(_options, _cancellationToken) {
|
|
3032
|
-
this.logger.info("Validate operation is a noop");
|
|
3033
|
-
return ToolResult.success();
|
|
3034
|
-
}
|
|
3035
|
-
async buildAsync(_options, _cancellationToken) {
|
|
3036
|
-
this.logger.info("Build operation is a noop");
|
|
3037
|
-
return ToolResult.success();
|
|
3038
|
-
}
|
|
3039
|
-
async packAsync(_options, _cancellationToken) {
|
|
3040
|
-
this.logger.info("Pack operation is a noop");
|
|
3041
|
-
return ToolResult.success();
|
|
3042
|
-
}
|
|
3043
|
-
async cleanupAsync(_options, _cancellationToken) {
|
|
3044
|
-
this.logger.info("Cleanup operation is a noop");
|
|
3045
|
-
return ToolResult.success();
|
|
3046
|
-
}
|
|
3047
|
-
async getUiProjectAsync(projectPath) {
|
|
3048
|
-
const filePath = Path.join(projectPath, ProjectTool.ProjectFileName);
|
|
3049
|
-
if (!await this.fileSystem.exists(filePath)) {
|
|
3050
|
-
return;
|
|
3051
|
-
}
|
|
3052
|
-
const raw = await this.fileSystem.readFile(filePath);
|
|
3053
|
-
if (!raw) {
|
|
3054
|
-
return;
|
|
3055
|
-
}
|
|
3056
|
-
const json = typeof raw === "string" ? raw : new TextDecoder("utf-8").decode(raw);
|
|
3057
|
-
return JSON.parse(json);
|
|
3058
|
-
}
|
|
3059
|
-
async dispose() {}
|
|
3060
|
-
}
|
|
3061
|
-
// ../packager/packager-core/src/filesystem/temporary-storage-service.ts
|
|
3062
|
-
class TemporaryStorageService {
|
|
3063
|
-
fileSystem;
|
|
3064
|
-
_tempFolderPath = null;
|
|
3065
|
-
constructor(fileSystem) {
|
|
3066
|
-
this.fileSystem = fileSystem;
|
|
3067
|
-
}
|
|
3068
|
-
async getTempFolderPath() {
|
|
3069
|
-
if (!this._tempFolderPath) {
|
|
3070
|
-
const systemTempDir = await this.fileSystem.getTempDir();
|
|
3071
|
-
const uniqueFolderName = this.generateUniqueFolderName();
|
|
3072
|
-
this._tempFolderPath = Path.join(systemTempDir, uniqueFolderName);
|
|
3073
|
-
await this.fileSystem.mkdir(this._tempFolderPath);
|
|
3074
|
-
}
|
|
3075
|
-
return this._tempFolderPath;
|
|
3076
|
-
}
|
|
3077
|
-
generateUniqueFolderName() {
|
|
3078
|
-
const timestamp = Date.now();
|
|
3079
|
-
const random = Math.random().toString(36).substring(2, 10);
|
|
3080
|
-
return `tool-temp-${timestamp}-${random}`;
|
|
3081
|
-
}
|
|
3082
|
-
async getTempSubfolderPathAsync(subfolder) {
|
|
3083
|
-
const tempFolderPath = await this.getTempFolderPath();
|
|
3084
|
-
const inputPath = Path.join(tempFolderPath, subfolder);
|
|
3085
|
-
await this.fileSystem.mkdir(inputPath);
|
|
3086
|
-
return inputPath;
|
|
3087
|
-
}
|
|
3088
|
-
async cleanup() {
|
|
3089
|
-
try {
|
|
3090
|
-
if (!this._tempFolderPath) {
|
|
3091
|
-
return;
|
|
3092
|
-
}
|
|
3093
|
-
try {
|
|
3094
|
-
const stats = await this.fileSystem.stat(this._tempFolderPath);
|
|
3095
|
-
if (!stats) {
|
|
3096
|
-
return;
|
|
3097
|
-
}
|
|
3098
|
-
} catch {
|
|
3099
|
-
return;
|
|
3100
|
-
}
|
|
3101
|
-
const _pathToCleanup = this._tempFolderPath;
|
|
3102
|
-
await this.fileSystem.rm(this._tempFolderPath);
|
|
3103
|
-
this._tempFolderPath = null;
|
|
3104
|
-
} catch {}
|
|
3105
|
-
}
|
|
3106
|
-
}
|
|
3107
|
-
// ../packager/packager-core/src/i18n/types.ts
|
|
3108
|
-
function isPluralForm(value) {
|
|
3109
|
-
return typeof value === "object" && value !== null && "other" in value;
|
|
3110
|
-
}
|
|
3111
|
-
function selectPluralForm(forms, count) {
|
|
3112
|
-
if (count === 0 && forms.zero !== undefined) {
|
|
3113
|
-
return forms.zero;
|
|
3114
|
-
}
|
|
3115
|
-
if (count === 1 && forms.one !== undefined) {
|
|
3116
|
-
return forms.one;
|
|
3117
|
-
}
|
|
3118
|
-
if (count === 2 && forms.two !== undefined) {
|
|
3119
|
-
return forms.two;
|
|
3120
|
-
}
|
|
3121
|
-
if (forms.few !== undefined) {
|
|
3122
|
-
const mod10 = count % 10;
|
|
3123
|
-
const mod100 = count % 100;
|
|
3124
|
-
if (mod10 >= 2 && mod10 <= 4 && (mod100 < 10 || mod100 >= 20)) {
|
|
3125
|
-
return forms.few;
|
|
3126
|
-
}
|
|
3127
|
-
}
|
|
3128
|
-
if (forms.many !== undefined) {
|
|
3129
|
-
const mod10 = count % 10;
|
|
3130
|
-
const mod100 = count % 100;
|
|
3131
|
-
if (count === 0 || mod10 === 0 && mod100 !== 0 || mod10 >= 5 && mod10 <= 9 || mod100 >= 11 && mod100 <= 14) {
|
|
3132
|
-
return forms.many;
|
|
3133
|
-
}
|
|
3134
|
-
}
|
|
3135
|
-
return forms.other;
|
|
3136
|
-
}
|
|
3137
|
-
|
|
3138
|
-
// ../packager/packager-core/src/i18n/i18n-manager.ts
|
|
3139
|
-
class I18nManager {
|
|
3140
|
-
static translations = {};
|
|
3141
|
-
static currentLocale = "en";
|
|
3142
|
-
static fallbackLocale = "en";
|
|
3143
|
-
static registerTranslations(locale, catalog) {
|
|
3144
|
-
if (!I18nManager.translations[locale]) {
|
|
3145
|
-
I18nManager.translations[locale] = {};
|
|
3146
|
-
}
|
|
3147
|
-
I18nManager.translations[locale] = I18nManager.deepMerge(I18nManager.translations[locale], catalog);
|
|
3148
|
-
}
|
|
3149
|
-
static setLocale(locale) {
|
|
3150
|
-
const normalized = I18nManager.normalizeLocale(locale);
|
|
3151
|
-
if (I18nManager.translations[normalized]) {
|
|
3152
|
-
I18nManager.currentLocale = normalized;
|
|
3153
|
-
return normalized;
|
|
3154
|
-
}
|
|
3155
|
-
const baseLocale = normalized.split("-")[0];
|
|
3156
|
-
if (baseLocale !== normalized && I18nManager.translations[baseLocale]) {
|
|
3157
|
-
I18nManager.currentLocale = baseLocale;
|
|
3158
|
-
return baseLocale;
|
|
3159
|
-
}
|
|
3160
|
-
return I18nManager.currentLocale;
|
|
3161
|
-
}
|
|
3162
|
-
static getLocale() {
|
|
3163
|
-
return I18nManager.currentLocale;
|
|
3164
|
-
}
|
|
3165
|
-
static setFallbackLocale(locale) {
|
|
3166
|
-
I18nManager.fallbackLocale = I18nManager.normalizeLocale(locale);
|
|
3167
|
-
}
|
|
3168
|
-
static t(key, params, locale) {
|
|
3169
|
-
const targetLocale = locale ? I18nManager.normalizeLocale(locale) : I18nManager.currentLocale;
|
|
3170
|
-
let value = I18nManager.getTranslationValue(key, targetLocale);
|
|
3171
|
-
if (value === undefined && targetLocale !== I18nManager.fallbackLocale) {
|
|
3172
|
-
value = I18nManager.getTranslationValue(key, I18nManager.fallbackLocale);
|
|
3173
|
-
}
|
|
3174
|
-
if (value === undefined) {
|
|
3175
|
-
return key;
|
|
3176
|
-
}
|
|
3177
|
-
if (isPluralForm(value) && params && "count" in params) {
|
|
3178
|
-
const count = typeof params.count === "number" ? params.count : Number(params.count);
|
|
3179
|
-
value = selectPluralForm(value, count);
|
|
3180
|
-
} else if (isPluralForm(value)) {
|
|
3181
|
-
value = value.other;
|
|
3182
|
-
}
|
|
3183
|
-
if (typeof value !== "string") {
|
|
3184
|
-
return key;
|
|
3185
|
-
}
|
|
3186
|
-
return params ? I18nManager.interpolate(value, params) : value;
|
|
3187
|
-
}
|
|
3188
|
-
static has(key, locale) {
|
|
3189
|
-
const targetLocale = locale ? I18nManager.normalizeLocale(locale) : I18nManager.currentLocale;
|
|
3190
|
-
const value = I18nManager.getTranslationValue(key, targetLocale);
|
|
3191
|
-
if (value !== undefined) {
|
|
3192
|
-
return true;
|
|
3193
|
-
}
|
|
3194
|
-
if (targetLocale !== I18nManager.fallbackLocale) {
|
|
3195
|
-
return I18nManager.getTranslationValue(key, I18nManager.fallbackLocale) !== undefined;
|
|
3196
|
-
}
|
|
3197
|
-
return false;
|
|
3198
|
-
}
|
|
3199
|
-
static getAvailableLocales() {
|
|
3200
|
-
return Object.keys(I18nManager.translations);
|
|
3201
|
-
}
|
|
3202
|
-
static clearTranslations() {
|
|
3203
|
-
I18nManager.translations = {};
|
|
3204
|
-
I18nManager.currentLocale = "en";
|
|
3205
|
-
}
|
|
3206
|
-
static getTranslationValue(key, locale) {
|
|
3207
|
-
const catalog = I18nManager.translations[locale];
|
|
3208
|
-
if (!catalog) {
|
|
3209
|
-
return;
|
|
3210
|
-
}
|
|
3211
|
-
const keys = key.split(".");
|
|
3212
|
-
let value = catalog;
|
|
3213
|
-
for (const k of keys) {
|
|
3214
|
-
if (value && typeof value === "object" && k in value) {
|
|
3215
|
-
value = value[k];
|
|
3216
|
-
} else {
|
|
3217
|
-
return;
|
|
3218
|
-
}
|
|
3219
|
-
}
|
|
3220
|
-
return value;
|
|
3221
|
-
}
|
|
3222
|
-
static interpolate(template, params) {
|
|
3223
|
-
return template.replace(/\{(\w+)\}/g, (_, key) => {
|
|
3224
|
-
const value = params[key];
|
|
3225
|
-
return value !== undefined ? String(value) : `{${key}}`;
|
|
3226
|
-
});
|
|
3227
|
-
}
|
|
3228
|
-
static normalizeLocale(locale) {
|
|
3229
|
-
const normalized = locale.toLowerCase().replace(/_/g, "-");
|
|
3230
|
-
const specialLocales = ["es-mx", "pt-br", "zh-cn", "zh-tw"];
|
|
3231
|
-
if (specialLocales.includes(normalized)) {
|
|
3232
|
-
return normalized;
|
|
3233
|
-
}
|
|
3234
|
-
return normalized.split("-")[0];
|
|
3235
|
-
}
|
|
3236
|
-
static deepMerge(target, source) {
|
|
3237
|
-
const result = { ...target };
|
|
3238
|
-
for (const key of Object.keys(source)) {
|
|
3239
|
-
const sourceValue = source[key];
|
|
3240
|
-
const targetValue = result[key];
|
|
3241
|
-
if (sourceValue && typeof sourceValue === "object" && !Array.isArray(sourceValue) && targetValue && typeof targetValue === "object" && !Array.isArray(targetValue)) {
|
|
3242
|
-
result[key] = I18nManager.deepMerge(targetValue, sourceValue);
|
|
3243
|
-
} else {
|
|
3244
|
-
result[key] = sourceValue;
|
|
3245
|
-
}
|
|
3246
|
-
}
|
|
3247
|
-
return result;
|
|
3248
|
-
}
|
|
3249
|
-
}
|
|
3250
|
-
|
|
3251
|
-
// ../packager/packager-core/src/i18n/locales/de.ts
|
|
3252
|
-
var de = {
|
|
3253
|
-
toolCore: {
|
|
3254
|
-
errors: {
|
|
3255
|
-
internal: "Internal error: {message}",
|
|
3256
|
-
fileNotFound: "File not found: {path}",
|
|
3257
|
-
fileReadFailed: "Failed to read file: {path}",
|
|
3258
|
-
fileWriteFailed: "Failed to write file: {path}",
|
|
3259
|
-
directoryNotFound: "Directory not found: {path}",
|
|
3260
|
-
invalidPath: "{path} is not a valid path",
|
|
3261
|
-
operationCanceled: "Operation was canceled",
|
|
3262
|
-
invalidParameter: "Invalid parameter: {parameter}"
|
|
3263
|
-
},
|
|
3264
|
-
progress: {
|
|
3265
|
-
copying: "Copying files...",
|
|
3266
|
-
building: "Building project...",
|
|
3267
|
-
packaging: "Creating package...",
|
|
3268
|
-
validating: "Validating...",
|
|
3269
|
-
analyzing: "Analyzing...",
|
|
3270
|
-
restoring: "Restoring dependencies..."
|
|
3271
|
-
},
|
|
3272
|
-
validation: {
|
|
3273
|
-
requiredField: "{field} is required",
|
|
3274
|
-
invalidValue: "Invalid value for {field}",
|
|
3275
|
-
pathNotFound: "Path not found: {path}",
|
|
3276
|
-
fileRequired: "File is required: {path}",
|
|
3277
|
-
directoryRequired: "Directory is required: {path}"
|
|
3278
|
-
},
|
|
3279
|
-
warnings: {
|
|
3280
|
-
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
3281
|
-
},
|
|
3282
|
-
info: {
|
|
3283
|
-
operationComplete: "Operation completed successfully",
|
|
3284
|
-
filesProcessed: {
|
|
3285
|
-
zero: "No files processed",
|
|
3286
|
-
one: "{count} file processed",
|
|
3287
|
-
other: "{count} files processed"
|
|
3288
|
-
}
|
|
3289
|
-
}
|
|
3290
|
-
}
|
|
3291
|
-
};
|
|
3292
|
-
|
|
3293
|
-
// ../packager/packager-core/src/i18n/locales/en.ts
|
|
3294
|
-
var en = {
|
|
3295
|
-
toolCore: {
|
|
3296
|
-
errors: {
|
|
3297
|
-
internal: "Internal error: {message}",
|
|
3298
|
-
fileNotFound: "File not found: {path}",
|
|
3299
|
-
fileReadFailed: "Failed to read file: {path}",
|
|
3300
|
-
fileWriteFailed: "Failed to write file: {path}",
|
|
3301
|
-
directoryNotFound: "Directory not found: {path}",
|
|
3302
|
-
invalidPath: "{path} is not a valid path",
|
|
3303
|
-
operationCanceled: "Operation was canceled",
|
|
3304
|
-
invalidParameter: "Invalid parameter: {parameter}"
|
|
3305
|
-
},
|
|
3306
|
-
progress: {
|
|
3307
|
-
copying: "Copying files...",
|
|
3308
|
-
building: "Building project...",
|
|
3309
|
-
packaging: "Creating package...",
|
|
3310
|
-
validating: "Validating...",
|
|
3311
|
-
analyzing: "Analyzing...",
|
|
3312
|
-
restoring: "Restoring dependencies..."
|
|
3313
|
-
},
|
|
3314
|
-
validation: {
|
|
3315
|
-
requiredField: "{field} is required",
|
|
3316
|
-
invalidValue: "Invalid value for {field}",
|
|
3317
|
-
pathNotFound: "Path not found: {path}",
|
|
3318
|
-
fileRequired: "File is required: {path}",
|
|
3319
|
-
directoryRequired: "Directory is required: {path}"
|
|
3320
|
-
},
|
|
3321
|
-
warnings: {
|
|
3322
|
-
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
3323
|
-
},
|
|
3324
|
-
info: {
|
|
3325
|
-
operationComplete: "Operation completed successfully",
|
|
3326
|
-
filesProcessed: {
|
|
3327
|
-
zero: "No files processed",
|
|
3328
|
-
one: "{count} file processed",
|
|
3329
|
-
other: "{count} files processed"
|
|
3330
|
-
}
|
|
3331
|
-
}
|
|
3332
|
-
}
|
|
3333
|
-
};
|
|
3334
|
-
|
|
3335
|
-
// ../packager/packager-core/src/i18n/locales/es.ts
|
|
3336
|
-
var es = {
|
|
3337
|
-
toolCore: {
|
|
3338
|
-
errors: {
|
|
3339
|
-
internal: "Internal error: {message}",
|
|
3340
|
-
fileNotFound: "File not found: {path}",
|
|
3341
|
-
fileReadFailed: "Failed to read file: {path}",
|
|
3342
|
-
fileWriteFailed: "Failed to write file: {path}",
|
|
3343
|
-
directoryNotFound: "Directory not found: {path}",
|
|
3344
|
-
invalidPath: "{path} is not a valid path",
|
|
3345
|
-
operationCanceled: "Operation was canceled",
|
|
3346
|
-
invalidParameter: "Invalid parameter: {parameter}"
|
|
3347
|
-
},
|
|
3348
|
-
progress: {
|
|
3349
|
-
copying: "Copying files...",
|
|
3350
|
-
building: "Building project...",
|
|
3351
|
-
packaging: "Creating package...",
|
|
3352
|
-
validating: "Validating...",
|
|
3353
|
-
analyzing: "Analyzing...",
|
|
3354
|
-
restoring: "Restoring dependencies..."
|
|
3355
|
-
},
|
|
3356
|
-
validation: {
|
|
3357
|
-
requiredField: "{field} is required",
|
|
3358
|
-
invalidValue: "Invalid value for {field}",
|
|
3359
|
-
pathNotFound: "Path not found: {path}",
|
|
3360
|
-
fileRequired: "File is required: {path}",
|
|
3361
|
-
directoryRequired: "Directory is required: {path}"
|
|
3362
|
-
},
|
|
3363
|
-
warnings: {
|
|
3364
|
-
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
3365
|
-
},
|
|
3366
|
-
info: {
|
|
3367
|
-
operationComplete: "Operation completed successfully",
|
|
3368
|
-
filesProcessed: {
|
|
3369
|
-
zero: "No files processed",
|
|
3370
|
-
one: "{count} file processed",
|
|
3371
|
-
other: "{count} files processed"
|
|
3372
|
-
}
|
|
3373
|
-
}
|
|
3374
|
-
}
|
|
3375
|
-
};
|
|
3376
|
-
|
|
3377
|
-
// ../packager/packager-core/src/i18n/locales/es-MX.ts
|
|
3378
|
-
var es_MX = {
|
|
3379
|
-
toolCore: {
|
|
3380
|
-
errors: {
|
|
3381
|
-
internal: "Internal error: {message}",
|
|
3382
|
-
fileNotFound: "File not found: {path}",
|
|
3383
|
-
fileReadFailed: "Failed to read file: {path}",
|
|
3384
|
-
fileWriteFailed: "Failed to write file: {path}",
|
|
3385
|
-
directoryNotFound: "Directory not found: {path}",
|
|
3386
|
-
invalidPath: "{path} is not a valid path",
|
|
3387
|
-
operationCanceled: "Operation was canceled",
|
|
3388
|
-
invalidParameter: "Invalid parameter: {parameter}"
|
|
3389
|
-
},
|
|
3390
|
-
progress: {
|
|
3391
|
-
copying: "Copying files...",
|
|
3392
|
-
building: "Building project...",
|
|
3393
|
-
packaging: "Creating package...",
|
|
3394
|
-
validating: "Validating...",
|
|
3395
|
-
analyzing: "Analyzing...",
|
|
3396
|
-
restoring: "Restoring dependencies..."
|
|
3397
|
-
},
|
|
3398
|
-
validation: {
|
|
3399
|
-
requiredField: "{field} is required",
|
|
3400
|
-
invalidValue: "Invalid value for {field}",
|
|
3401
|
-
pathNotFound: "Path not found: {path}",
|
|
3402
|
-
fileRequired: "File is required: {path}",
|
|
3403
|
-
directoryRequired: "Directory is required: {path}"
|
|
3404
|
-
},
|
|
3405
|
-
warnings: {
|
|
3406
|
-
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
3407
|
-
},
|
|
3408
|
-
info: {
|
|
3409
|
-
operationComplete: "Operation completed successfully",
|
|
3410
|
-
filesProcessed: {
|
|
3411
|
-
zero: "No files processed",
|
|
3412
|
-
one: "{count} file processed",
|
|
3413
|
-
other: "{count} files processed"
|
|
3414
|
-
}
|
|
3415
|
-
}
|
|
3416
|
-
}
|
|
3417
|
-
};
|
|
3418
|
-
|
|
3419
|
-
// ../packager/packager-core/src/i18n/locales/fr.ts
|
|
3420
|
-
var fr = {
|
|
3421
|
-
toolCore: {
|
|
3422
|
-
errors: {
|
|
3423
|
-
internal: "Internal error: {message}",
|
|
3424
|
-
fileNotFound: "File not found: {path}",
|
|
3425
|
-
fileReadFailed: "Failed to read file: {path}",
|
|
3426
|
-
fileWriteFailed: "Failed to write file: {path}",
|
|
3427
|
-
directoryNotFound: "Directory not found: {path}",
|
|
3428
|
-
invalidPath: "{path} is not a valid path",
|
|
3429
|
-
operationCanceled: "Operation was canceled",
|
|
3430
|
-
invalidParameter: "Invalid parameter: {parameter}"
|
|
3431
|
-
},
|
|
3432
|
-
progress: {
|
|
3433
|
-
copying: "Copying files...",
|
|
3434
|
-
building: "Building project...",
|
|
3435
|
-
packaging: "Creating package...",
|
|
3436
|
-
validating: "Validating...",
|
|
3437
|
-
analyzing: "Analyzing...",
|
|
3438
|
-
restoring: "Restoring dependencies..."
|
|
3439
|
-
},
|
|
3440
|
-
validation: {
|
|
3441
|
-
requiredField: "{field} is required",
|
|
3442
|
-
invalidValue: "Invalid value for {field}",
|
|
3443
|
-
pathNotFound: "Path not found: {path}",
|
|
3444
|
-
fileRequired: "File is required: {path}",
|
|
3445
|
-
directoryRequired: "Directory is required: {path}"
|
|
3446
|
-
},
|
|
3447
|
-
warnings: {
|
|
3448
|
-
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
3449
|
-
},
|
|
3450
|
-
info: {
|
|
3451
|
-
operationComplete: "Operation completed successfully",
|
|
3452
|
-
filesProcessed: {
|
|
3453
|
-
zero: "No files processed",
|
|
3454
|
-
one: "{count} file processed",
|
|
3455
|
-
other: "{count} files processed"
|
|
3456
|
-
}
|
|
3457
|
-
}
|
|
3458
|
-
}
|
|
3459
|
-
};
|
|
3460
|
-
|
|
3461
|
-
// ../packager/packager-core/src/i18n/locales/ja.ts
|
|
3462
|
-
var ja = {
|
|
3463
|
-
toolCore: {
|
|
3464
|
-
errors: {
|
|
3465
|
-
internal: "Internal error: {message}",
|
|
3466
|
-
fileNotFound: "File not found: {path}",
|
|
3467
|
-
fileReadFailed: "Failed to read file: {path}",
|
|
3468
|
-
fileWriteFailed: "Failed to write file: {path}",
|
|
3469
|
-
directoryNotFound: "Directory not found: {path}",
|
|
3470
|
-
invalidPath: "{path} is not a valid path",
|
|
3471
|
-
operationCanceled: "Operation was canceled",
|
|
3472
|
-
invalidParameter: "Invalid parameter: {parameter}"
|
|
3473
|
-
},
|
|
3474
|
-
progress: {
|
|
3475
|
-
copying: "Copying files...",
|
|
3476
|
-
building: "Building project...",
|
|
3477
|
-
packaging: "Creating package...",
|
|
3478
|
-
validating: "Validating...",
|
|
3479
|
-
analyzing: "Analyzing...",
|
|
3480
|
-
restoring: "Restoring dependencies..."
|
|
3481
|
-
},
|
|
3482
|
-
validation: {
|
|
3483
|
-
requiredField: "{field} is required",
|
|
3484
|
-
invalidValue: "Invalid value for {field}",
|
|
3485
|
-
pathNotFound: "Path not found: {path}",
|
|
3486
|
-
fileRequired: "File is required: {path}",
|
|
3487
|
-
directoryRequired: "Directory is required: {path}"
|
|
3488
|
-
},
|
|
3489
|
-
warnings: {
|
|
3490
|
-
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
3491
|
-
},
|
|
3492
|
-
info: {
|
|
3493
|
-
operationComplete: "Operation completed successfully",
|
|
3494
|
-
filesProcessed: {
|
|
3495
|
-
zero: "No files processed",
|
|
3496
|
-
one: "{count} file processed",
|
|
3497
|
-
other: "{count} files processed"
|
|
3498
|
-
}
|
|
3499
|
-
}
|
|
3500
|
-
}
|
|
3501
|
-
};
|
|
3502
|
-
|
|
3503
|
-
// ../packager/packager-core/src/i18n/locales/ko.ts
|
|
3504
|
-
var ko = {
|
|
3505
|
-
toolCore: {
|
|
3506
|
-
errors: {
|
|
3507
|
-
internal: "Internal error: {message}",
|
|
3508
|
-
fileNotFound: "File not found: {path}",
|
|
3509
|
-
fileReadFailed: "Failed to read file: {path}",
|
|
3510
|
-
fileWriteFailed: "Failed to write file: {path}",
|
|
3511
|
-
directoryNotFound: "Directory not found: {path}",
|
|
3512
|
-
invalidPath: "{path} is not a valid path",
|
|
3513
|
-
operationCanceled: "Operation was canceled",
|
|
3514
|
-
invalidParameter: "Invalid parameter: {parameter}"
|
|
3515
|
-
},
|
|
3516
|
-
progress: {
|
|
3517
|
-
copying: "Copying files...",
|
|
3518
|
-
building: "Building project...",
|
|
3519
|
-
packaging: "Creating package...",
|
|
3520
|
-
validating: "Validating...",
|
|
3521
|
-
analyzing: "Analyzing...",
|
|
3522
|
-
restoring: "Restoring dependencies..."
|
|
3523
|
-
},
|
|
3524
|
-
validation: {
|
|
3525
|
-
requiredField: "{field} is required",
|
|
3526
|
-
invalidValue: "Invalid value for {field}",
|
|
3527
|
-
pathNotFound: "Path not found: {path}",
|
|
3528
|
-
fileRequired: "File is required: {path}",
|
|
3529
|
-
directoryRequired: "Directory is required: {path}"
|
|
3530
|
-
},
|
|
3531
|
-
warnings: {
|
|
3532
|
-
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
3533
|
-
},
|
|
3534
|
-
info: {
|
|
3535
|
-
operationComplete: "Operation completed successfully",
|
|
3536
|
-
filesProcessed: {
|
|
3537
|
-
zero: "No files processed",
|
|
3538
|
-
one: "{count} file processed",
|
|
3539
|
-
other: "{count} files processed"
|
|
3540
|
-
}
|
|
3541
|
-
}
|
|
3542
|
-
}
|
|
3543
|
-
};
|
|
3544
|
-
|
|
3545
|
-
// ../packager/packager-core/src/i18n/locales/pt.ts
|
|
3546
|
-
var pt = {
|
|
3547
|
-
toolCore: {
|
|
3548
|
-
errors: {
|
|
3549
|
-
internal: "Internal error: {message}",
|
|
3550
|
-
fileNotFound: "File not found: {path}",
|
|
3551
|
-
fileReadFailed: "Failed to read file: {path}",
|
|
3552
|
-
fileWriteFailed: "Failed to write file: {path}",
|
|
3553
|
-
directoryNotFound: "Directory not found: {path}",
|
|
3554
|
-
invalidPath: "{path} is not a valid path",
|
|
3555
|
-
operationCanceled: "Operation was canceled",
|
|
3556
|
-
invalidParameter: "Invalid parameter: {parameter}"
|
|
3557
|
-
},
|
|
3558
|
-
progress: {
|
|
3559
|
-
copying: "Copying files...",
|
|
3560
|
-
building: "Building project...",
|
|
3561
|
-
packaging: "Creating package...",
|
|
3562
|
-
validating: "Validating...",
|
|
3563
|
-
analyzing: "Analyzing...",
|
|
3564
|
-
restoring: "Restoring dependencies..."
|
|
3565
|
-
},
|
|
3566
|
-
validation: {
|
|
3567
|
-
requiredField: "{field} is required",
|
|
3568
|
-
invalidValue: "Invalid value for {field}",
|
|
3569
|
-
pathNotFound: "Path not found: {path}",
|
|
3570
|
-
fileRequired: "File is required: {path}",
|
|
3571
|
-
directoryRequired: "Directory is required: {path}"
|
|
3572
|
-
},
|
|
3573
|
-
warnings: {
|
|
3574
|
-
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
3575
|
-
},
|
|
3576
|
-
info: {
|
|
3577
|
-
operationComplete: "Operation completed successfully",
|
|
3578
|
-
filesProcessed: {
|
|
3579
|
-
zero: "No files processed",
|
|
3580
|
-
one: "{count} file processed",
|
|
3581
|
-
other: "{count} files processed"
|
|
3582
|
-
}
|
|
3583
|
-
}
|
|
3584
|
-
}
|
|
3585
|
-
};
|
|
3586
|
-
|
|
3587
|
-
// ../packager/packager-core/src/i18n/locales/pt-BR.ts
|
|
3588
|
-
var pt_BR = {
|
|
3589
|
-
toolCore: {
|
|
3590
|
-
errors: {
|
|
3591
|
-
internal: "Internal error: {message}",
|
|
3592
|
-
fileNotFound: "File not found: {path}",
|
|
3593
|
-
fileReadFailed: "Failed to read file: {path}",
|
|
3594
|
-
fileWriteFailed: "Failed to write file: {path}",
|
|
3595
|
-
directoryNotFound: "Directory not found: {path}",
|
|
3596
|
-
invalidPath: "{path} is not a valid path",
|
|
3597
|
-
operationCanceled: "Operation was canceled",
|
|
3598
|
-
invalidParameter: "Invalid parameter: {parameter}"
|
|
3599
|
-
},
|
|
3600
|
-
progress: {
|
|
3601
|
-
copying: "Copying files...",
|
|
3602
|
-
building: "Building project...",
|
|
3603
|
-
packaging: "Creating package...",
|
|
3604
|
-
validating: "Validating...",
|
|
3605
|
-
analyzing: "Analyzing...",
|
|
3606
|
-
restoring: "Restoring dependencies..."
|
|
3607
|
-
},
|
|
3608
|
-
validation: {
|
|
3609
|
-
requiredField: "{field} is required",
|
|
3610
|
-
invalidValue: "Invalid value for {field}",
|
|
3611
|
-
pathNotFound: "Path not found: {path}",
|
|
3612
|
-
fileRequired: "File is required: {path}",
|
|
3613
|
-
directoryRequired: "Directory is required: {path}"
|
|
3614
|
-
},
|
|
3615
|
-
warnings: {
|
|
3616
|
-
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
3617
|
-
},
|
|
3618
|
-
info: {
|
|
3619
|
-
operationComplete: "Operation completed successfully",
|
|
3620
|
-
filesProcessed: {
|
|
3621
|
-
zero: "No files processed",
|
|
3622
|
-
one: "{count} file processed",
|
|
3623
|
-
other: "{count} files processed"
|
|
3624
|
-
}
|
|
3625
|
-
}
|
|
3626
|
-
}
|
|
3627
|
-
};
|
|
3628
|
-
|
|
3629
|
-
// ../packager/packager-core/src/i18n/locales/ro.ts
|
|
3630
|
-
var ro = {
|
|
3631
|
-
toolCore: {
|
|
3632
|
-
errors: {
|
|
3633
|
-
internal: "Internal error: {message}",
|
|
3634
|
-
fileNotFound: "File not found: {path}",
|
|
3635
|
-
fileReadFailed: "Failed to read file: {path}",
|
|
3636
|
-
fileWriteFailed: "Failed to write file: {path}",
|
|
3637
|
-
directoryNotFound: "Directory not found: {path}",
|
|
3638
|
-
invalidPath: "{path} is not a valid path",
|
|
3639
|
-
operationCanceled: "Operation was canceled",
|
|
3640
|
-
invalidParameter: "Invalid parameter: {parameter}"
|
|
3641
|
-
},
|
|
3642
|
-
progress: {
|
|
3643
|
-
copying: "Copying files...",
|
|
3644
|
-
building: "Building project...",
|
|
3645
|
-
packaging: "Creating package...",
|
|
3646
|
-
validating: "Validating...",
|
|
3647
|
-
analyzing: "Analyzing...",
|
|
3648
|
-
restoring: "Restoring dependencies..."
|
|
3649
|
-
},
|
|
3650
|
-
validation: {
|
|
3651
|
-
requiredField: "{field} is required",
|
|
3652
|
-
invalidValue: "Invalid value for {field}",
|
|
3653
|
-
pathNotFound: "Path not found: {path}",
|
|
3654
|
-
fileRequired: "File is required: {path}",
|
|
3655
|
-
directoryRequired: "Directory is required: {path}"
|
|
3656
|
-
},
|
|
3657
|
-
warnings: {
|
|
3658
|
-
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
3659
|
-
},
|
|
3660
|
-
info: {
|
|
3661
|
-
operationComplete: "Operation completed successfully",
|
|
3662
|
-
filesProcessed: {
|
|
3663
|
-
zero: "No files processed",
|
|
3664
|
-
one: "{count} file processed",
|
|
3665
|
-
other: "{count} files processed"
|
|
3666
|
-
}
|
|
3667
|
-
}
|
|
3668
|
-
}
|
|
3669
|
-
};
|
|
3670
|
-
|
|
3671
|
-
// ../packager/packager-core/src/i18n/locales/ru.ts
|
|
3672
|
-
var ru = {
|
|
3673
|
-
toolCore: {
|
|
3674
|
-
errors: {
|
|
3675
|
-
internal: "Internal error: {message}",
|
|
3676
|
-
fileNotFound: "File not found: {path}",
|
|
3677
|
-
fileReadFailed: "Failed to read file: {path}",
|
|
3678
|
-
fileWriteFailed: "Failed to write file: {path}",
|
|
3679
|
-
directoryNotFound: "Directory not found: {path}",
|
|
3680
|
-
invalidPath: "{path} is not a valid path",
|
|
3681
|
-
operationCanceled: "Operation was canceled",
|
|
3682
|
-
invalidParameter: "Invalid parameter: {parameter}"
|
|
3683
|
-
},
|
|
3684
|
-
progress: {
|
|
3685
|
-
copying: "Copying files...",
|
|
3686
|
-
building: "Building project...",
|
|
3687
|
-
packaging: "Creating package...",
|
|
3688
|
-
validating: "Validating...",
|
|
3689
|
-
analyzing: "Analyzing...",
|
|
3690
|
-
restoring: "Restoring dependencies..."
|
|
3691
|
-
},
|
|
3692
|
-
validation: {
|
|
3693
|
-
requiredField: "{field} is required",
|
|
3694
|
-
invalidValue: "Invalid value for {field}",
|
|
3695
|
-
pathNotFound: "Path not found: {path}",
|
|
3696
|
-
fileRequired: "File is required: {path}",
|
|
3697
|
-
directoryRequired: "Directory is required: {path}"
|
|
3698
|
-
},
|
|
3699
|
-
warnings: {
|
|
3700
|
-
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
3701
|
-
},
|
|
3702
|
-
info: {
|
|
3703
|
-
operationComplete: "Operation completed successfully",
|
|
3704
|
-
filesProcessed: {
|
|
3705
|
-
zero: "No files processed",
|
|
3706
|
-
one: "{count} file processed",
|
|
3707
|
-
other: "{count} files processed"
|
|
3708
|
-
}
|
|
3709
|
-
}
|
|
3710
|
-
}
|
|
3711
|
-
};
|
|
3712
|
-
|
|
3713
|
-
// ../packager/packager-core/src/i18n/locales/tr.ts
|
|
3714
|
-
var tr = {
|
|
3715
|
-
toolCore: {
|
|
3716
|
-
errors: {
|
|
3717
|
-
internal: "Internal error: {message}",
|
|
3718
|
-
fileNotFound: "File not found: {path}",
|
|
3719
|
-
fileReadFailed: "Failed to read file: {path}",
|
|
3720
|
-
fileWriteFailed: "Failed to write file: {path}",
|
|
3721
|
-
directoryNotFound: "Directory not found: {path}",
|
|
3722
|
-
invalidPath: "{path} is not a valid path",
|
|
3723
|
-
operationCanceled: "Operation was canceled",
|
|
3724
|
-
invalidParameter: "Invalid parameter: {parameter}"
|
|
3725
|
-
},
|
|
3726
|
-
progress: {
|
|
3727
|
-
copying: "Copying files...",
|
|
3728
|
-
building: "Building project...",
|
|
3729
|
-
packaging: "Creating package...",
|
|
3730
|
-
validating: "Validating...",
|
|
3731
|
-
analyzing: "Analyzing...",
|
|
3732
|
-
restoring: "Restoring dependencies..."
|
|
3733
|
-
},
|
|
3734
|
-
validation: {
|
|
3735
|
-
requiredField: "{field} is required",
|
|
3736
|
-
invalidValue: "Invalid value for {field}",
|
|
3737
|
-
pathNotFound: "Path not found: {path}",
|
|
3738
|
-
fileRequired: "File is required: {path}",
|
|
3739
|
-
directoryRequired: "Directory is required: {path}"
|
|
3740
|
-
},
|
|
3741
|
-
warnings: {
|
|
3742
|
-
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
3743
|
-
},
|
|
3744
|
-
info: {
|
|
3745
|
-
operationComplete: "Operation completed successfully",
|
|
3746
|
-
filesProcessed: {
|
|
3747
|
-
zero: "No files processed",
|
|
3748
|
-
one: "{count} file processed",
|
|
3749
|
-
other: "{count} files processed"
|
|
3750
|
-
}
|
|
3751
|
-
}
|
|
3752
|
-
}
|
|
3753
|
-
};
|
|
3754
|
-
|
|
3755
|
-
// ../packager/packager-core/src/i18n/locales/zh-CN.ts
|
|
3756
|
-
var zh_CN = {
|
|
3757
|
-
toolCore: {
|
|
3758
|
-
errors: {
|
|
3759
|
-
internal: "Internal error: {message}",
|
|
3760
|
-
fileNotFound: "File not found: {path}",
|
|
3761
|
-
fileReadFailed: "Failed to read file: {path}",
|
|
3762
|
-
fileWriteFailed: "Failed to write file: {path}",
|
|
3763
|
-
directoryNotFound: "Directory not found: {path}",
|
|
3764
|
-
invalidPath: "{path} is not a valid path",
|
|
3765
|
-
operationCanceled: "Operation was canceled",
|
|
3766
|
-
invalidParameter: "Invalid parameter: {parameter}"
|
|
3767
|
-
},
|
|
3768
|
-
progress: {
|
|
3769
|
-
copying: "Copying files...",
|
|
3770
|
-
building: "Building project...",
|
|
3771
|
-
packaging: "Creating package...",
|
|
3772
|
-
validating: "Validating...",
|
|
3773
|
-
analyzing: "Analyzing...",
|
|
3774
|
-
restoring: "Restoring dependencies..."
|
|
3775
|
-
},
|
|
3776
|
-
validation: {
|
|
3777
|
-
requiredField: "{field} is required",
|
|
3778
|
-
invalidValue: "Invalid value for {field}",
|
|
3779
|
-
pathNotFound: "Path not found: {path}",
|
|
3780
|
-
fileRequired: "File is required: {path}",
|
|
3781
|
-
directoryRequired: "Directory is required: {path}"
|
|
3782
|
-
},
|
|
3783
|
-
warnings: {
|
|
3784
|
-
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
3785
|
-
},
|
|
3786
|
-
info: {
|
|
3787
|
-
operationComplete: "Operation completed successfully",
|
|
3788
|
-
filesProcessed: {
|
|
3789
|
-
zero: "No files processed",
|
|
3790
|
-
one: "{count} file processed",
|
|
3791
|
-
other: "{count} files processed"
|
|
3792
|
-
}
|
|
3793
|
-
}
|
|
3794
|
-
}
|
|
3795
|
-
};
|
|
3796
|
-
|
|
3797
|
-
// ../packager/packager-core/src/i18n/locales/zh-TW.ts
|
|
3798
|
-
var zh_TW = {
|
|
3799
|
-
toolCore: {
|
|
3800
|
-
errors: {
|
|
3801
|
-
internal: "Internal error: {message}",
|
|
3802
|
-
fileNotFound: "File not found: {path}",
|
|
3803
|
-
fileReadFailed: "Failed to read file: {path}",
|
|
3804
|
-
fileWriteFailed: "Failed to write file: {path}",
|
|
3805
|
-
directoryNotFound: "Directory not found: {path}",
|
|
3806
|
-
invalidPath: "{path} is not a valid path",
|
|
3807
|
-
operationCanceled: "Operation was canceled",
|
|
3808
|
-
invalidParameter: "Invalid parameter: {parameter}"
|
|
3809
|
-
},
|
|
3810
|
-
progress: {
|
|
3811
|
-
copying: "Copying files...",
|
|
3812
|
-
building: "Building project...",
|
|
3813
|
-
packaging: "Creating package...",
|
|
3814
|
-
validating: "Validating...",
|
|
3815
|
-
analyzing: "Analyzing...",
|
|
3816
|
-
restoring: "Restoring dependencies..."
|
|
3817
|
-
},
|
|
3818
|
-
validation: {
|
|
3819
|
-
requiredField: "{field} is required",
|
|
3820
|
-
invalidValue: "Invalid value for {field}",
|
|
3821
|
-
pathNotFound: "Path not found: {path}",
|
|
3822
|
-
fileRequired: "File is required: {path}",
|
|
3823
|
-
directoryRequired: "Directory is required: {path}"
|
|
3824
|
-
},
|
|
3825
|
-
warnings: {
|
|
3826
|
-
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
3827
|
-
},
|
|
3828
|
-
info: {
|
|
3829
|
-
operationComplete: "Operation completed successfully",
|
|
3830
|
-
filesProcessed: {
|
|
3831
|
-
zero: "No files processed",
|
|
3832
|
-
one: "{count} file processed",
|
|
3833
|
-
other: "{count} files processed"
|
|
3834
|
-
}
|
|
3835
|
-
}
|
|
3836
|
-
}
|
|
3837
|
-
};
|
|
3838
|
-
|
|
3839
|
-
// ../packager/packager-core/src/i18n/locales/zu.ts
|
|
3840
|
-
var zu = {
|
|
3841
|
-
toolCore: {
|
|
3842
|
-
errors: {
|
|
3843
|
-
internal: "Internal error: {message}",
|
|
3844
|
-
fileNotFound: "File not found: {path}",
|
|
3845
|
-
fileReadFailed: "Failed to read file: {path}",
|
|
3846
|
-
fileWriteFailed: "Failed to write file: {path}",
|
|
3847
|
-
directoryNotFound: "Directory not found: {path}",
|
|
3848
|
-
invalidPath: "{path} is not a valid path",
|
|
3849
|
-
operationCanceled: "Operation was canceled",
|
|
3850
|
-
invalidParameter: "Invalid parameter: {parameter}"
|
|
3851
|
-
},
|
|
3852
|
-
progress: {
|
|
3853
|
-
copying: "Copying files...",
|
|
3854
|
-
building: "Building project...",
|
|
3855
|
-
packaging: "Creating package...",
|
|
3856
|
-
validating: "Validating...",
|
|
3857
|
-
analyzing: "Analyzing...",
|
|
3858
|
-
restoring: "Restoring dependencies..."
|
|
3859
|
-
},
|
|
3860
|
-
validation: {
|
|
3861
|
-
requiredField: "{field} is required",
|
|
3862
|
-
invalidValue: "Invalid value for {field}",
|
|
3863
|
-
pathNotFound: "Path not found: {path}",
|
|
3864
|
-
fileRequired: "File is required: {path}",
|
|
3865
|
-
directoryRequired: "Directory is required: {path}"
|
|
3866
|
-
},
|
|
3867
|
-
warnings: {
|
|
3868
|
-
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
3869
|
-
},
|
|
3870
|
-
info: {
|
|
3871
|
-
operationComplete: "Operation completed successfully",
|
|
3872
|
-
filesProcessed: {
|
|
3873
|
-
zero: "No files processed",
|
|
3874
|
-
one: "{count} file processed",
|
|
3875
|
-
other: "{count} files processed"
|
|
3876
|
-
}
|
|
3877
|
-
}
|
|
3878
|
-
}
|
|
3879
|
-
};
|
|
3880
|
-
|
|
3881
|
-
// ../packager/packager-core/src/i18n/translation-service.ts
|
|
3882
|
-
class TranslationService {
|
|
3883
|
-
static instance;
|
|
3884
|
-
currentLocale = "en";
|
|
3885
|
-
constructor() {}
|
|
3886
|
-
static getInstance() {
|
|
3887
|
-
if (!TranslationService.instance) {
|
|
3888
|
-
TranslationService.instance = new TranslationService;
|
|
3889
|
-
}
|
|
3890
|
-
return TranslationService.instance;
|
|
3891
|
-
}
|
|
3892
|
-
setLocale(locale) {
|
|
3893
|
-
this.currentLocale = I18nManager.setLocale(locale);
|
|
3894
|
-
}
|
|
3895
|
-
getLocale() {
|
|
3896
|
-
return this.currentLocale;
|
|
3897
|
-
}
|
|
3898
|
-
t(key, params) {
|
|
3899
|
-
return I18nManager.t(key, params, this.currentLocale);
|
|
3900
|
-
}
|
|
3901
|
-
tLocale(key, locale, params) {
|
|
3902
|
-
return I18nManager.t(key, params, locale);
|
|
3903
|
-
}
|
|
3904
|
-
has(key) {
|
|
3905
|
-
return I18nManager.has(key, this.currentLocale);
|
|
3906
|
-
}
|
|
3907
|
-
getAvailableLocales() {
|
|
3908
|
-
return I18nManager.getAvailableLocales();
|
|
3909
|
-
}
|
|
3910
|
-
}
|
|
3911
|
-
var translate = TranslationService.getInstance();
|
|
3912
|
-
|
|
3913
|
-
// ../packager/packager-core/src/i18n/index.ts
|
|
3914
|
-
I18nManager.registerTranslations("en", en);
|
|
3915
|
-
I18nManager.registerTranslations("de", de);
|
|
3916
|
-
I18nManager.registerTranslations("es", es);
|
|
3917
|
-
I18nManager.registerTranslations("es-mx", es_MX);
|
|
3918
|
-
I18nManager.registerTranslations("fr", fr);
|
|
3919
|
-
I18nManager.registerTranslations("ja", ja);
|
|
3920
|
-
I18nManager.registerTranslations("ko", ko);
|
|
3921
|
-
I18nManager.registerTranslations("pt", pt);
|
|
3922
|
-
I18nManager.registerTranslations("pt-br", pt_BR);
|
|
3923
|
-
I18nManager.registerTranslations("ro", ro);
|
|
3924
|
-
I18nManager.registerTranslations("ru", ru);
|
|
3925
|
-
I18nManager.registerTranslations("tr", tr);
|
|
3926
|
-
I18nManager.registerTranslations("zh-cn", zh_CN);
|
|
3927
|
-
I18nManager.registerTranslations("zh-tw", zh_TW);
|
|
3928
|
-
I18nManager.registerTranslations("zu", zu);
|
|
3929
|
-
I18nManager.setLocale("en");
|
|
3930
2119
|
// ../common/src/telemetry/pseudonymize.ts
|
|
3931
2120
|
var PSEUDONYM_DOMAIN = "uipath-cli/telemetry/pseudonym/v1:";
|
|
3932
2121
|
var PSEUDONYM_HEX_LENGTH = 32;
|
|
@@ -4022,15 +2211,15 @@ function sha256Hex(input) {
|
|
|
4022
2211
|
const state = SHA256_INITIAL_STATE.slice();
|
|
4023
2212
|
const schedule = new Uint32Array(64);
|
|
4024
2213
|
for (let offset = 0;offset < paddedLength; offset += 64) {
|
|
4025
|
-
for (let
|
|
4026
|
-
schedule[
|
|
2214
|
+
for (let i = 0;i < 16; i++) {
|
|
2215
|
+
schedule[i] = view.getUint32(offset + i * 4);
|
|
4027
2216
|
}
|
|
4028
|
-
for (let
|
|
4029
|
-
const
|
|
4030
|
-
const y = schedule[
|
|
4031
|
-
const s0 = (rotr(
|
|
2217
|
+
for (let i = 16;i < 64; i++) {
|
|
2218
|
+
const x = schedule[i - 15];
|
|
2219
|
+
const y = schedule[i - 2];
|
|
2220
|
+
const s0 = (rotr(x, 7) ^ rotr(x, 18) ^ x >>> 3) >>> 0;
|
|
4032
2221
|
const s1 = (rotr(y, 17) ^ rotr(y, 19) ^ y >>> 10) >>> 0;
|
|
4033
|
-
schedule[
|
|
2222
|
+
schedule[i] = schedule[i - 16] + s0 + schedule[i - 7] + s1 >>> 0;
|
|
4034
2223
|
}
|
|
4035
2224
|
let a = state[0];
|
|
4036
2225
|
let b = state[1];
|
|
@@ -4040,10 +2229,10 @@ function sha256Hex(input) {
|
|
|
4040
2229
|
let f = state[5];
|
|
4041
2230
|
let g = state[6];
|
|
4042
2231
|
let h = state[7];
|
|
4043
|
-
for (let
|
|
2232
|
+
for (let i = 0;i < 64; i++) {
|
|
4044
2233
|
const s1 = (rotr(e, 6) ^ rotr(e, 11) ^ rotr(e, 25)) >>> 0;
|
|
4045
2234
|
const ch = (e & f ^ ~e & g) >>> 0;
|
|
4046
|
-
const temp1 = h + s1 + ch + SHA256_K[
|
|
2235
|
+
const temp1 = h + s1 + ch + SHA256_K[i] + schedule[i] >>> 0;
|
|
4047
2236
|
const s0 = (rotr(a, 2) ^ rotr(a, 13) ^ rotr(a, 22)) >>> 0;
|
|
4048
2237
|
const maj = (a & b ^ a & c ^ b & c) >>> 0;
|
|
4049
2238
|
const temp2 = s0 + maj >>> 0;
|
|
@@ -4369,13 +2558,13 @@ function nameTokens(name) {
|
|
|
4369
2558
|
}
|
|
4370
2559
|
function isSensitiveName(name) {
|
|
4371
2560
|
const tokens = nameTokens(name);
|
|
4372
|
-
for (let
|
|
4373
|
-
const token = tokens[
|
|
2561
|
+
for (let i = 0;i < tokens.length; i++) {
|
|
2562
|
+
const token = tokens[i];
|
|
4374
2563
|
if (SENSITIVE_NAME_TOKENS.has(token)) {
|
|
4375
2564
|
return true;
|
|
4376
2565
|
}
|
|
4377
2566
|
if (token === "key" || token === "keys") {
|
|
4378
|
-
const prev = tokens[
|
|
2567
|
+
const prev = tokens[i - 1];
|
|
4379
2568
|
if (prev && SENSITIVE_KEY_PREFIXES.has(prev)) {
|
|
4380
2569
|
return true;
|
|
4381
2570
|
}
|
|
@@ -4673,10 +2862,10 @@ function formatHttpStatusMessage(status, rawMessage, extractedMessage, inferredS
|
|
|
4673
2862
|
return inferredStatus !== undefined ? rawMessage : `HTTP ${status}: ${rawMessage}`;
|
|
4674
2863
|
}
|
|
4675
2864
|
async function extractErrorDetails(error, options) {
|
|
4676
|
-
const
|
|
4677
|
-
const response =
|
|
4678
|
-
const rawMessage = typeof
|
|
4679
|
-
const explicitStatus =
|
|
2865
|
+
const err = error !== null && error !== undefined && typeof error === "object" ? error : {};
|
|
2866
|
+
const response = err.response;
|
|
2867
|
+
const rawMessage = typeof err.message === "string" ? err.message : "Unknown error";
|
|
2868
|
+
const explicitStatus = err.status ?? response?.status;
|
|
4680
2869
|
const inferredStatus = explicitStatus === undefined ? parseHttpStatusFromMessage(rawMessage) : undefined;
|
|
4681
2870
|
const status = explicitStatus ?? inferredStatus;
|
|
4682
2871
|
const isSuccessfulResponse = status !== undefined && status >= 200 && status < 300;
|
|
@@ -4789,8 +2978,8 @@ async function extractErrorDetails(error, options) {
|
|
|
4789
2978
|
} else {
|
|
4790
2979
|
details = rawBody;
|
|
4791
2980
|
}
|
|
4792
|
-
} else if (typeof
|
|
4793
|
-
details =
|
|
2981
|
+
} else if (typeof err.message === "string") {
|
|
2982
|
+
details = err.message;
|
|
4794
2983
|
} else {
|
|
4795
2984
|
details = describeThrownValue(error);
|
|
4796
2985
|
}
|
|
@@ -4908,7 +3097,7 @@ function setGlobalLogFilePath(path) {
|
|
|
4908
3097
|
function getGlobalLogFilePath() {
|
|
4909
3098
|
return logFilePathSlot.get("");
|
|
4910
3099
|
}
|
|
4911
|
-
var DEFAULT_LOG_LEVEL =
|
|
3100
|
+
var DEFAULT_LOG_LEVEL = 2 /* WARN */;
|
|
4912
3101
|
|
|
4913
3102
|
class SimpleLogger {
|
|
4914
3103
|
__brand = "SimpleLogger";
|
|
@@ -5139,7 +3328,9 @@ var ErrorDimensions = {
|
|
|
5139
3328
|
Result: "Result",
|
|
5140
3329
|
ErrorCode: "ErrorCode",
|
|
5141
3330
|
Retry: "Retry",
|
|
5142
|
-
ErrorMessage: "ErrorMessage"
|
|
3331
|
+
ErrorMessage: "ErrorMessage",
|
|
3332
|
+
HttpStatus: "HttpStatus",
|
|
3333
|
+
UpstreamErrorCode: "UpstreamErrorCode"
|
|
5143
3334
|
};
|
|
5144
3335
|
var AuthDimensions = {
|
|
5145
3336
|
AuthenticationMethod: "AuthenticationMethod",
|
|
@@ -5900,10 +4091,10 @@ class TelemetryService {
|
|
|
5900
4091
|
return result;
|
|
5901
4092
|
} catch (error) {
|
|
5902
4093
|
const durationMs = clock.elapsedMs();
|
|
5903
|
-
const
|
|
4094
|
+
const err = error instanceof Error ? error : new Error(String(error));
|
|
5904
4095
|
await this.telemetryProvider.trackRequest(this.spanFor(name, durationMs, false, {
|
|
5905
4096
|
...properties,
|
|
5906
|
-
[CommandDimensions.ErrorMessage]:
|
|
4097
|
+
[CommandDimensions.ErrorMessage]: err.message
|
|
5907
4098
|
}, context));
|
|
5908
4099
|
throw error;
|
|
5909
4100
|
}
|
|
@@ -5973,11 +4164,11 @@ class TelemetryService {
|
|
|
5973
4164
|
return result;
|
|
5974
4165
|
} catch (error) {
|
|
5975
4166
|
const durationMs = clock.elapsedMs();
|
|
5976
|
-
const
|
|
4167
|
+
const err = error instanceof Error ? error : new Error(String(error));
|
|
5977
4168
|
await this.telemetryProvider.trackDependency({
|
|
5978
4169
|
...this.spanFor(name, durationMs, false, {
|
|
5979
4170
|
...properties,
|
|
5980
|
-
[CommandDimensions.ErrorMessage]:
|
|
4171
|
+
[CommandDimensions.ErrorMessage]: err.message
|
|
5981
4172
|
}, childContext),
|
|
5982
4173
|
type
|
|
5983
4174
|
});
|
|
@@ -6168,7 +4359,9 @@ var CLI_ERROR_CODES = [
|
|
|
6168
4359
|
"timeout",
|
|
6169
4360
|
"server_error",
|
|
6170
4361
|
"method_not_allowed",
|
|
4362
|
+
"not_supported",
|
|
6171
4363
|
"configuration_error",
|
|
4364
|
+
"execution_failed",
|
|
6172
4365
|
"unknown_error"
|
|
6173
4366
|
];
|
|
6174
4367
|
var RETRY_HINTS = [
|
|
@@ -6312,6 +4505,9 @@ function toPascalCaseData(value, verbatimKeys, subtrees) {
|
|
|
6312
4505
|
function normalizeDataKeys(data, verbatimKeys, subtrees) {
|
|
6313
4506
|
return toPascalCaseData(data, verbatimKeys, subtrees);
|
|
6314
4507
|
}
|
|
4508
|
+
function pascalCaseDataKeys(data) {
|
|
4509
|
+
return normalizeDataKeys(data);
|
|
4510
|
+
}
|
|
6315
4511
|
function toVerbatimKeySet(preserve) {
|
|
6316
4512
|
if (!Array.isArray(preserve))
|
|
6317
4513
|
return;
|
|
@@ -6401,11 +4597,11 @@ function printTable(data, logFn, externalLogValue, tableRowStyle) {
|
|
|
6401
4597
|
return;
|
|
6402
4598
|
const keys = Object.keys(data[0]).filter((key) => !isPlumbingKey(key));
|
|
6403
4599
|
const maxWidths = keys.map((key) => Math.max(key.length, ...data.map((item) => cellToString(item[key]).length)));
|
|
6404
|
-
const header = keys.map((key,
|
|
4600
|
+
const header = keys.map((key, i) => key.padEnd(maxWidths[i])).join(" | ");
|
|
6405
4601
|
logFn(header);
|
|
6406
|
-
logFn(keys.map((_,
|
|
4602
|
+
logFn(keys.map((_, i) => "-".repeat(maxWidths[i])).join("-|-"));
|
|
6407
4603
|
data.forEach((item) => {
|
|
6408
|
-
const row = keys.map((key,
|
|
4604
|
+
const row = keys.map((key, i) => cellToString(item[key]).padEnd(maxWidths[i])).join(" | ");
|
|
6409
4605
|
logFn(styleLine(row, tableRowStyle?.(item)));
|
|
6410
4606
|
});
|
|
6411
4607
|
if (externalLogValue) {
|
|
@@ -6472,21 +4668,21 @@ function printResizableTable(data, logFn = console.log, externalLogValue, availa
|
|
|
6472
4668
|
const minWidths = keys.map((key) => Math.max(key.length, MIN_COL_WIDTH));
|
|
6473
4669
|
let bestCol = -1;
|
|
6474
4670
|
let bestCost = Infinity;
|
|
6475
|
-
for (let
|
|
6476
|
-
const maxShrink = naturalWidths[
|
|
4671
|
+
for (let i = 0;i < keys.length; i++) {
|
|
4672
|
+
const maxShrink = naturalWidths[i] - minWidths[i];
|
|
6477
4673
|
if (maxShrink < overflow)
|
|
6478
4674
|
continue;
|
|
6479
|
-
const newWidth = naturalWidths[
|
|
4675
|
+
const newWidth = naturalWidths[i] - overflow;
|
|
6480
4676
|
let extraRows = 0;
|
|
6481
4677
|
for (const item of data) {
|
|
6482
|
-
const cellLen = cellToString(item[keys[
|
|
4678
|
+
const cellLen = cellToString(item[keys[i]]).length;
|
|
6483
4679
|
if (cellLen > newWidth) {
|
|
6484
4680
|
extraRows += Math.ceil(cellLen / newWidth) - 1;
|
|
6485
4681
|
}
|
|
6486
4682
|
}
|
|
6487
4683
|
if (extraRows < bestCost) {
|
|
6488
4684
|
bestCost = extraRows;
|
|
6489
|
-
bestCol =
|
|
4685
|
+
bestCol = i;
|
|
6490
4686
|
}
|
|
6491
4687
|
}
|
|
6492
4688
|
const finalWidths = [...naturalWidths];
|
|
@@ -6494,9 +4690,9 @@ function printResizableTable(data, logFn = console.log, externalLogValue, availa
|
|
|
6494
4690
|
finalWidths[bestCol] = naturalWidths[bestCol] - overflow;
|
|
6495
4691
|
} else {
|
|
6496
4692
|
let remaining = overflow;
|
|
6497
|
-
const colsByShrinkPotential = keys.map((_,
|
|
6498
|
-
index:
|
|
6499
|
-
potential: naturalWidths[
|
|
4693
|
+
const colsByShrinkPotential = keys.map((_, i) => ({
|
|
4694
|
+
index: i,
|
|
4695
|
+
potential: naturalWidths[i] - minWidths[i]
|
|
6500
4696
|
})).filter((c) => c.potential > 0).sort((a, b) => b.potential - a.potential);
|
|
6501
4697
|
for (const col of colsByShrinkPotential) {
|
|
6502
4698
|
if (remaining <= 0)
|
|
@@ -6506,17 +4702,17 @@ function printResizableTable(data, logFn = console.log, externalLogValue, availa
|
|
|
6506
4702
|
remaining -= shrink;
|
|
6507
4703
|
}
|
|
6508
4704
|
}
|
|
6509
|
-
const header = keys.map((key,
|
|
4705
|
+
const header = keys.map((key, i) => key.padEnd(finalWidths[i])).join(" | ");
|
|
6510
4706
|
logFn(header);
|
|
6511
|
-
logFn(keys.map((_,
|
|
4707
|
+
logFn(keys.map((_, i) => "-".repeat(finalWidths[i])).join("-|-"));
|
|
6512
4708
|
data.forEach((item) => {
|
|
6513
4709
|
const style = tableRowStyle?.(item);
|
|
6514
|
-
const cellLines = keys.map((key,
|
|
4710
|
+
const cellLines = keys.map((key, i) => wrapText(cellToString(item[key]), finalWidths[i]));
|
|
6515
4711
|
const lineCount = Math.max(...cellLines.map((l) => l.length));
|
|
6516
4712
|
for (let line = 0;line < lineCount; line++) {
|
|
6517
|
-
const row = keys.map((_,
|
|
6518
|
-
const val = line < cellLines[
|
|
6519
|
-
return val.padEnd(finalWidths[
|
|
4713
|
+
const row = keys.map((_, i) => {
|
|
4714
|
+
const val = line < cellLines[i].length ? cellLines[i][line] : "";
|
|
4715
|
+
return val.padEnd(finalWidths[i]);
|
|
6520
4716
|
}).join(" | ");
|
|
6521
4717
|
logFn(styleLine(row, style));
|
|
6522
4718
|
}
|
|
@@ -6960,8 +5156,8 @@ function applyFilter(data, filter, onWarning) {
|
|
|
6960
5156
|
let result;
|
|
6961
5157
|
try {
|
|
6962
5158
|
result = codec.search(data, filter);
|
|
6963
|
-
} catch (
|
|
6964
|
-
throw new FilterEvaluationError(filter,
|
|
5159
|
+
} catch (err) {
|
|
5160
|
+
throw new FilterEvaluationError(filter, err);
|
|
6965
5161
|
}
|
|
6966
5162
|
const inputCount = countRecords(data);
|
|
6967
5163
|
const warn = (outcome) => {
|
|
@@ -7145,7 +5341,9 @@ var OutputFormatter;
|
|
|
7145
5341
|
[ErrorDimensions.Result]: data.Result,
|
|
7146
5342
|
[ErrorDimensions.ErrorCode]: data.ErrorCode,
|
|
7147
5343
|
[ErrorDimensions.Retry]: data.Retry,
|
|
7148
|
-
[ErrorDimensions.ErrorMessage]: data.Message
|
|
5344
|
+
[ErrorDimensions.ErrorMessage]: data.Message,
|
|
5345
|
+
[ErrorDimensions.HttpStatus]: data.Context?.httpStatus?.toString(),
|
|
5346
|
+
[ErrorDimensions.UpstreamErrorCode]: data.Context?.errorCode
|
|
7149
5347
|
});
|
|
7150
5348
|
}
|
|
7151
5349
|
logOutput(normalizeOutputKeys(envelope), getOutputFormat());
|
|
@@ -7498,10 +5696,10 @@ function isDefaultedPositional(cmd, index) {
|
|
|
7498
5696
|
function forEachSuppliedArgument(cmd, visit) {
|
|
7499
5697
|
const registered = cmd.registeredArguments ?? [];
|
|
7500
5698
|
const processed = cmd.processedArgs ?? [];
|
|
7501
|
-
for (let
|
|
7502
|
-
const name = registered[
|
|
7503
|
-
if (name && processed[
|
|
7504
|
-
visit(name, processed[
|
|
5699
|
+
for (let i = 0;i < registered.length; i++) {
|
|
5700
|
+
const name = registered[i].name();
|
|
5701
|
+
if (name && processed[i] !== undefined) {
|
|
5702
|
+
visit(name, processed[i], registered[i].argChoices, isDefaultedPositional(cmd, i));
|
|
7505
5703
|
}
|
|
7506
5704
|
}
|
|
7507
5705
|
const choicesByAttribute = new Map;
|
|
@@ -7664,6 +5862,50 @@ function requireConfirmation(flags, operation) {
|
|
|
7664
5862
|
return false;
|
|
7665
5863
|
}
|
|
7666
5864
|
|
|
5865
|
+
// ../common/src/mime-types.ts
|
|
5866
|
+
var OCTET_STREAM = "application/octet-stream";
|
|
5867
|
+
var MIME_TYPES_BY_EXTENSION = Object.freeze({
|
|
5868
|
+
pdf: "application/pdf",
|
|
5869
|
+
png: "image/png",
|
|
5870
|
+
jpg: "image/jpeg",
|
|
5871
|
+
jpeg: "image/jpeg",
|
|
5872
|
+
gif: "image/gif",
|
|
5873
|
+
webp: "image/webp",
|
|
5874
|
+
bmp: "image/bmp",
|
|
5875
|
+
tif: "image/tiff",
|
|
5876
|
+
tiff: "image/tiff",
|
|
5877
|
+
svg: "image/svg+xml",
|
|
5878
|
+
txt: "text/plain",
|
|
5879
|
+
log: "text/plain",
|
|
5880
|
+
md: "text/markdown",
|
|
5881
|
+
csv: "text/csv",
|
|
5882
|
+
tsv: "text/tab-separated-values",
|
|
5883
|
+
json: "application/json",
|
|
5884
|
+
xml: "application/xml",
|
|
5885
|
+
html: "text/html",
|
|
5886
|
+
htm: "text/html",
|
|
5887
|
+
yaml: "application/yaml",
|
|
5888
|
+
yml: "application/yaml",
|
|
5889
|
+
doc: "application/msword",
|
|
5890
|
+
docx: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
5891
|
+
xls: "application/vnd.ms-excel",
|
|
5892
|
+
xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
5893
|
+
ppt: "application/vnd.ms-powerpoint",
|
|
5894
|
+
pptx: "application/vnd.openxmlformats-officedocument.presentationml.presentation",
|
|
5895
|
+
zip: "application/zip",
|
|
5896
|
+
mp3: "audio/mpeg",
|
|
5897
|
+
wav: "audio/wav",
|
|
5898
|
+
mp4: "video/mp4"
|
|
5899
|
+
});
|
|
5900
|
+
function mimeTypeForFileName(fileName) {
|
|
5901
|
+
const dot = fileName.lastIndexOf(".");
|
|
5902
|
+
if (dot < 0 || dot === fileName.length - 1) {
|
|
5903
|
+
return OCTET_STREAM;
|
|
5904
|
+
}
|
|
5905
|
+
const extension = fileName.slice(dot + 1).toLowerCase();
|
|
5906
|
+
return Object.hasOwn(MIME_TYPES_BY_EXTENSION, extension) ? MIME_TYPES_BY_EXTENSION[extension] : OCTET_STREAM;
|
|
5907
|
+
}
|
|
5908
|
+
|
|
7667
5909
|
// ../common/src/package-metadata-options.ts
|
|
7668
5910
|
function registerPackageMetadataOptions(command) {
|
|
7669
5911
|
return command.option("--author <author>", "Package author").option("--description <text>", "Package description").option("--repository-url <url>", "Source repository URL (recorded in the package for traceability)").option("--repository-commit <sha>", "Source repository commit hash (recorded in the package for traceability)").option("--repository-branch <branch>", "Source repository branch").option("--repository-type <type>", "Source repository type (defaults to 'git' when --repository-url is set)").option("--release-notes <text>", "Release notes for the package").option("--project-url <url>", "Automation Hub idea URL");
|
|
@@ -7692,6 +5934,82 @@ function mapPackageMetadataOptions(opts) {
|
|
|
7692
5934
|
return fields;
|
|
7693
5935
|
}
|
|
7694
5936
|
|
|
5937
|
+
// ../common/src/sdk-user-agent.ts
|
|
5938
|
+
var USER_AGENT_HEADER = "User-Agent";
|
|
5939
|
+
var AGENT_PROPERTY = BaseDimensions.Agent;
|
|
5940
|
+
var sdkUserAgentHostToken = singleton("SdkUserAgentHostToken");
|
|
5941
|
+
function userAgentPatchKey(userAgent) {
|
|
5942
|
+
return Symbol.for(`@uipath/common/sdk-user-agent/${userAgent}`);
|
|
5943
|
+
}
|
|
5944
|
+
function splitUserAgentTokens(value) {
|
|
5945
|
+
return value?.trim().split(/\s+/).filter(Boolean) ?? [];
|
|
5946
|
+
}
|
|
5947
|
+
function appendUserAgentToken(value, userAgent) {
|
|
5948
|
+
const tokens = splitUserAgentTokens(value);
|
|
5949
|
+
const seen = new Set(tokens);
|
|
5950
|
+
for (const token of splitUserAgentTokens(userAgent)) {
|
|
5951
|
+
if (!seen.has(token)) {
|
|
5952
|
+
tokens.push(token);
|
|
5953
|
+
seen.add(token);
|
|
5954
|
+
}
|
|
5955
|
+
}
|
|
5956
|
+
return tokens.join(" ");
|
|
5957
|
+
}
|
|
5958
|
+
function getEffectiveUserAgent(userAgent) {
|
|
5959
|
+
return appendUserAgentToken(sdkUserAgentHostToken.get(), userAgent);
|
|
5960
|
+
}
|
|
5961
|
+
function getHeaderName(headers, headerName) {
|
|
5962
|
+
return Object.keys(headers).find((key) => key.toLowerCase() === headerName.toLowerCase());
|
|
5963
|
+
}
|
|
5964
|
+
function getSdkUserAgentToken(pkg) {
|
|
5965
|
+
const packageName = pkg.name.replace(/^@uipath\//, "");
|
|
5966
|
+
return getEffectiveUserAgent(`${packageName}/${pkg.version}`);
|
|
5967
|
+
}
|
|
5968
|
+
function addSdkUserAgentHeader(headers, userAgent) {
|
|
5969
|
+
const result = { ...headers ?? {} };
|
|
5970
|
+
const headerName = getHeaderName(result, USER_AGENT_HEADER);
|
|
5971
|
+
result[headerName ?? USER_AGENT_HEADER] = appendUserAgentToken(headerName ? result[headerName] : undefined, getEffectiveUserAgent(userAgent));
|
|
5972
|
+
return result;
|
|
5973
|
+
}
|
|
5974
|
+
function asHeaderRecord(headers) {
|
|
5975
|
+
return typeof headers === "object" && headers !== null ? { ...headers } : {};
|
|
5976
|
+
}
|
|
5977
|
+
function withForwardedHeadersInitOverride(initOverrides, forward) {
|
|
5978
|
+
return async (requestContext) => {
|
|
5979
|
+
const initWithHeaders = {
|
|
5980
|
+
...requestContext.init,
|
|
5981
|
+
headers: forward(asHeaderRecord(requestContext.init.headers))
|
|
5982
|
+
};
|
|
5983
|
+
const override = typeof initOverrides === "function" ? await initOverrides({
|
|
5984
|
+
...requestContext,
|
|
5985
|
+
init: initWithHeaders
|
|
5986
|
+
}) : initOverrides;
|
|
5987
|
+
return {
|
|
5988
|
+
...override ?? {},
|
|
5989
|
+
headers: forward(asHeaderRecord(override?.headers ?? initWithHeaders.headers))
|
|
5990
|
+
};
|
|
5991
|
+
};
|
|
5992
|
+
}
|
|
5993
|
+
function installRequestHeaderForwarding(BaseApiClass, patchKey, forward) {
|
|
5994
|
+
const prototype = BaseApiClass.prototype;
|
|
5995
|
+
if (prototype[patchKey]) {
|
|
5996
|
+
return;
|
|
5997
|
+
}
|
|
5998
|
+
if (typeof prototype.request !== "function") {
|
|
5999
|
+
throw new Error("Generated BaseAPI request function not found.");
|
|
6000
|
+
}
|
|
6001
|
+
const originalRequest = prototype.request;
|
|
6002
|
+
prototype.request = function requestWithForwardedHeaders(context, initOverrides) {
|
|
6003
|
+
return originalRequest.call(this, context, withForwardedHeadersInitOverride(initOverrides, forward));
|
|
6004
|
+
};
|
|
6005
|
+
Object.defineProperty(prototype, patchKey, {
|
|
6006
|
+
value: true
|
|
6007
|
+
});
|
|
6008
|
+
}
|
|
6009
|
+
function installSdkUserAgentHeader(BaseApiClass, userAgent) {
|
|
6010
|
+
installRequestHeaderForwarding(BaseApiClass, userAgentPatchKey(userAgent), (headers) => addSdkUserAgentHeader(headers, userAgent));
|
|
6011
|
+
}
|
|
6012
|
+
|
|
7695
6013
|
// ../common/src/telemetry/ship-succeeded.ts
|
|
7696
6014
|
var shippedKeysSlot = singleton("ShipSucceededDedupeKeys");
|
|
7697
6015
|
function getShippedKeys() {
|
|
@@ -7992,40 +6310,6 @@ function canPrompt() {
|
|
|
7992
6310
|
const capabilities = getOutputSink().capabilities;
|
|
7993
6311
|
return capabilities.isInteractive && capabilities.canReadInput;
|
|
7994
6312
|
}
|
|
7995
|
-
// ../common/src/mime-types.ts
|
|
7996
|
-
var MIME_TYPES_BY_EXTENSION = Object.freeze({
|
|
7997
|
-
pdf: "application/pdf",
|
|
7998
|
-
png: "image/png",
|
|
7999
|
-
jpg: "image/jpeg",
|
|
8000
|
-
jpeg: "image/jpeg",
|
|
8001
|
-
gif: "image/gif",
|
|
8002
|
-
webp: "image/webp",
|
|
8003
|
-
bmp: "image/bmp",
|
|
8004
|
-
tif: "image/tiff",
|
|
8005
|
-
tiff: "image/tiff",
|
|
8006
|
-
svg: "image/svg+xml",
|
|
8007
|
-
txt: "text/plain",
|
|
8008
|
-
log: "text/plain",
|
|
8009
|
-
md: "text/markdown",
|
|
8010
|
-
csv: "text/csv",
|
|
8011
|
-
tsv: "text/tab-separated-values",
|
|
8012
|
-
json: "application/json",
|
|
8013
|
-
xml: "application/xml",
|
|
8014
|
-
html: "text/html",
|
|
8015
|
-
htm: "text/html",
|
|
8016
|
-
yaml: "application/yaml",
|
|
8017
|
-
yml: "application/yaml",
|
|
8018
|
-
doc: "application/msword",
|
|
8019
|
-
docx: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
8020
|
-
xls: "application/vnd.ms-excel",
|
|
8021
|
-
xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
8022
|
-
ppt: "application/vnd.ms-powerpoint",
|
|
8023
|
-
pptx: "application/vnd.openxmlformats-officedocument.presentationml.presentation",
|
|
8024
|
-
zip: "application/zip",
|
|
8025
|
-
mp3: "audio/mpeg",
|
|
8026
|
-
wav: "audio/wav",
|
|
8027
|
-
mp4: "video/mp4"
|
|
8028
|
-
});
|
|
8029
6313
|
// ../common/src/polling/types.ts
|
|
8030
6314
|
var PollOutcome = {
|
|
8031
6315
|
Completed: "completed",
|
|
@@ -8069,80 +6353,9 @@ var ScreenLogger;
|
|
|
8069
6353
|
}
|
|
8070
6354
|
ScreenLogger.progress = progress;
|
|
8071
6355
|
})(ScreenLogger ||= {});
|
|
8072
|
-
// ../common/src/
|
|
8073
|
-
|
|
8074
|
-
|
|
8075
|
-
var sdkUserAgentHostToken = singleton("SdkUserAgentHostToken");
|
|
8076
|
-
function userAgentPatchKey(userAgent) {
|
|
8077
|
-
return Symbol.for(`@uipath/common/sdk-user-agent/${userAgent}`);
|
|
8078
|
-
}
|
|
8079
|
-
function splitUserAgentTokens(value) {
|
|
8080
|
-
return value?.trim().split(/\s+/).filter(Boolean) ?? [];
|
|
8081
|
-
}
|
|
8082
|
-
function appendUserAgentToken(value, userAgent) {
|
|
8083
|
-
const tokens = splitUserAgentTokens(value);
|
|
8084
|
-
const seen = new Set(tokens);
|
|
8085
|
-
for (const token of splitUserAgentTokens(userAgent)) {
|
|
8086
|
-
if (!seen.has(token)) {
|
|
8087
|
-
tokens.push(token);
|
|
8088
|
-
seen.add(token);
|
|
8089
|
-
}
|
|
8090
|
-
}
|
|
8091
|
-
return tokens.join(" ");
|
|
8092
|
-
}
|
|
8093
|
-
function getEffectiveUserAgent(userAgent) {
|
|
8094
|
-
return appendUserAgentToken(sdkUserAgentHostToken.get(), userAgent);
|
|
8095
|
-
}
|
|
8096
|
-
function getHeaderName(headers, headerName) {
|
|
8097
|
-
return Object.keys(headers).find((key) => key.toLowerCase() === headerName.toLowerCase());
|
|
8098
|
-
}
|
|
8099
|
-
function getSdkUserAgentToken(pkg) {
|
|
8100
|
-
const packageName = pkg.name.replace(/^@uipath\//, "");
|
|
8101
|
-
return getEffectiveUserAgent(`${packageName}/${pkg.version}`);
|
|
8102
|
-
}
|
|
8103
|
-
function addSdkUserAgentHeader(headers, userAgent) {
|
|
8104
|
-
const result = { ...headers ?? {} };
|
|
8105
|
-
const headerName = getHeaderName(result, USER_AGENT_HEADER);
|
|
8106
|
-
result[headerName ?? USER_AGENT_HEADER] = appendUserAgentToken(headerName ? result[headerName] : undefined, getEffectiveUserAgent(userAgent));
|
|
8107
|
-
return result;
|
|
8108
|
-
}
|
|
8109
|
-
function asHeaderRecord(headers) {
|
|
8110
|
-
return typeof headers === "object" && headers !== null ? { ...headers } : {};
|
|
8111
|
-
}
|
|
8112
|
-
function withForwardedHeadersInitOverride(initOverrides, forward) {
|
|
8113
|
-
return async (requestContext) => {
|
|
8114
|
-
const initWithHeaders = {
|
|
8115
|
-
...requestContext.init,
|
|
8116
|
-
headers: forward(asHeaderRecord(requestContext.init.headers))
|
|
8117
|
-
};
|
|
8118
|
-
const override = typeof initOverrides === "function" ? await initOverrides({
|
|
8119
|
-
...requestContext,
|
|
8120
|
-
init: initWithHeaders
|
|
8121
|
-
}) : initOverrides;
|
|
8122
|
-
return {
|
|
8123
|
-
...override ?? {},
|
|
8124
|
-
headers: forward(asHeaderRecord(override?.headers ?? initWithHeaders.headers))
|
|
8125
|
-
};
|
|
8126
|
-
};
|
|
8127
|
-
}
|
|
8128
|
-
function installRequestHeaderForwarding(BaseApiClass, patchKey, forward) {
|
|
8129
|
-
const prototype = BaseApiClass.prototype;
|
|
8130
|
-
if (prototype[patchKey]) {
|
|
8131
|
-
return;
|
|
8132
|
-
}
|
|
8133
|
-
if (typeof prototype.request !== "function") {
|
|
8134
|
-
throw new Error("Generated BaseAPI request function not found.");
|
|
8135
|
-
}
|
|
8136
|
-
const originalRequest = prototype.request;
|
|
8137
|
-
prototype.request = function requestWithForwardedHeaders(context, initOverrides) {
|
|
8138
|
-
return originalRequest.call(this, context, withForwardedHeadersInitOverride(initOverrides, forward));
|
|
8139
|
-
};
|
|
8140
|
-
Object.defineProperty(prototype, patchKey, {
|
|
8141
|
-
value: true
|
|
8142
|
-
});
|
|
8143
|
-
}
|
|
8144
|
-
function installSdkUserAgentHeader(BaseApiClass, userAgent) {
|
|
8145
|
-
installRequestHeaderForwarding(BaseApiClass, userAgentPatchKey(userAgent), (headers) => addSdkUserAgentHeader(headers, userAgent));
|
|
6356
|
+
// ../common/src/shell-quote.ts
|
|
6357
|
+
function quoteForShell(value) {
|
|
6358
|
+
return `'${value.replace(/'/g, "'\\''")}'`;
|
|
8146
6359
|
}
|
|
8147
6360
|
// ../common/src/solution-project-types.ts
|
|
8148
6361
|
var LIBRARY_NOT_A_PROJECT = "A library cannot be a project inside a solution — it is a reusable .nupkg that other projects consume as a NuGet dependency, not a deployable unit. Build and publish it on its own ('uip rpa pack <project-dir> <output-path>', then 'uip or libraries upload --file <nupkg-path>'), and reference it from a project's dependencies. To make the published library part of this solution, add it as a resource instead: 'uip solution resources add --source remote --kind Library --name <library-name>'.";
|
|
@@ -8154,6 +6367,6 @@ function unsupportedSolutionProjectType(projectType) {
|
|
|
8154
6367
|
}
|
|
8155
6368
|
// ../common/src/tool-provider.ts
|
|
8156
6369
|
var factorySlot = singleton("PackagerFactoryProvider");
|
|
8157
|
-
export { catchError, describeConnectivityError, extractErrorDetails, extractErrorMessage, getOutputSink, logger, CommandDimensions, ShipDimensions, telemetry, carriedErrorCode, RESULTS, EXIT_CODES, ConfigurationError, isConfigurationError, OutputFormatter, InvalidArgumentError, Command, Option, processContext, requireConfirmation, isGuid, canPrompt, registerPackageMetadataOptions, mapPackageMetadataOptions, getSdkUserAgentToken, addSdkUserAgentHeader, installSdkUserAgentHeader, unsupportedSolutionProjectType, trackShipSucceeded
|
|
6370
|
+
export { catchError, describeConnectivityError, extractErrorDetails, extractErrorMessage, getOutputSink, logger, CommandDimensions, ShipDimensions, telemetry, carriedErrorCode, RESULTS, EXIT_CODES, pascalCaseDataKeys, ConfigurationError, isConfigurationError, OutputFormatter, InvalidArgumentError, Command, Option, processContext, requireConfirmation, isGuid, canPrompt, mimeTypeForFileName, registerPackageMetadataOptions, mapPackageMetadataOptions, getSdkUserAgentToken, addSdkUserAgentHeader, installSdkUserAgentHeader, quoteForShell, unsupportedSolutionProjectType, trackShipSucceeded };
|
|
8158
6371
|
|
|
8159
|
-
//# debugId=
|
|
6372
|
+
//# debugId=9AF913DF9FDCBBFE64756E2164756E21
|