@milaboratories/pl-middle-layer 1.37.99 → 1.37.100
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/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +88 -81
- package/dist/index.mjs.map +1 -1
- package/dist/pool/driver.d.ts +1 -1
- package/dist/pool/driver.d.ts.map +1 -1
- package/package.json +12 -12
- package/src/pool/driver.ts +17 -2
package/dist/index.mjs
CHANGED
|
@@ -136,7 +136,7 @@ async function kr(s) {
|
|
|
136
136
|
}), t = await re.promises.stat(s.components.model.file, { bigint: !0 });
|
|
137
137
|
return (e.mtimeNs > t.mtimeNs ? e.mtimeNs : t.mtimeNs).toString();
|
|
138
138
|
}
|
|
139
|
-
class
|
|
139
|
+
class Kl {
|
|
140
140
|
constructor(e, t, r) {
|
|
141
141
|
this.v2Provider = e, this.registries = t, this.http = r;
|
|
142
142
|
}
|
|
@@ -299,13 +299,13 @@ class oi {
|
|
|
299
299
|
return this.registries.set(e, r), r;
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
|
-
const
|
|
302
|
+
const Hl = {
|
|
303
303
|
type: "remote-v2",
|
|
304
304
|
url: "https://blocks.pl-open.science/"
|
|
305
|
-
},
|
|
305
|
+
}, Wl = {
|
|
306
306
|
type: "remote-v1",
|
|
307
307
|
url: "https://block.registry.platforma.bio/releases"
|
|
308
|
-
},
|
|
308
|
+
}, zl = {
|
|
309
309
|
type: "remote-v1",
|
|
310
310
|
url: "https://block.registry.platforma.bio/dev"
|
|
311
311
|
}, ii = {
|
|
@@ -567,10 +567,10 @@ function Fn(s, e) {
|
|
|
567
567
|
};
|
|
568
568
|
return r(e, In);
|
|
569
569
|
}
|
|
570
|
-
const Oi = { name: "TengoTemplateGet", version: "1" }, Ii = "registry", Fi = "templateURI", Ti = "template",
|
|
570
|
+
const Oi = { name: "TengoTemplateGet", version: "1" }, Ii = "registry", Fi = "templateURI", Ti = "template", Xl = { name: "TengoTemplatePack", version: "1" }, Yl = {
|
|
571
571
|
name: "TengoTemplatePackConvert",
|
|
572
572
|
version: "1"
|
|
573
|
-
},
|
|
573
|
+
}, Ql = "templatePack", Zl = "template";
|
|
574
574
|
async function Tn(s) {
|
|
575
575
|
switch (s.type) {
|
|
576
576
|
case "from-file":
|
|
@@ -5232,8 +5232,15 @@ function cr(s) {
|
|
|
5232
5232
|
}
|
|
5233
5233
|
return t;
|
|
5234
5234
|
}
|
|
5235
|
+
function Vc(s) {
|
|
5236
|
+
return "partitionFilters" in s ? s : {
|
|
5237
|
+
...s,
|
|
5238
|
+
partitionFilters: s.filters,
|
|
5239
|
+
filters: []
|
|
5240
|
+
};
|
|
5241
|
+
}
|
|
5235
5242
|
const Te = (s, e) => typeof e == "bigint" ? e.toString() : e;
|
|
5236
|
-
class
|
|
5243
|
+
class Uc {
|
|
5237
5244
|
constructor(e, t, r, n) {
|
|
5238
5245
|
R(this, "pFrame");
|
|
5239
5246
|
R(this, "abortController", new AbortController());
|
|
@@ -5288,7 +5295,7 @@ class Vc {
|
|
|
5288
5295
|
this.pFrame.dispose();
|
|
5289
5296
|
}
|
|
5290
5297
|
}
|
|
5291
|
-
class
|
|
5298
|
+
class Jc {
|
|
5292
5299
|
constructor(e, t) {
|
|
5293
5300
|
this.pTable = e, this.abortController = t;
|
|
5294
5301
|
}
|
|
@@ -5314,10 +5321,10 @@ class Dr {
|
|
|
5314
5321
|
createNewResource(o) {
|
|
5315
5322
|
return ne().logPFrameRequests && t.info(
|
|
5316
5323
|
`PFrame creation (pFrameHandle = ${this.calculateParamsKey(o)}): ${JSON.stringify(o, Te)}`
|
|
5317
|
-
), new
|
|
5324
|
+
), new Uc(this.blobDriver, this.logger, this.spillPath, o);
|
|
5318
5325
|
}
|
|
5319
5326
|
calculateParamsKey(o) {
|
|
5320
|
-
return
|
|
5327
|
+
return Gc(o);
|
|
5321
5328
|
}
|
|
5322
5329
|
}(this.blobDriver, this.logger, this.spillPath), this.pTables = new class extends tn {
|
|
5323
5330
|
constructor(o) {
|
|
@@ -5330,7 +5337,7 @@ class Dr {
|
|
|
5330
5337
|
);
|
|
5331
5338
|
const l = this.pFrames.getByKey(i), c = new AbortController(), a = l.pFrame.createTable({
|
|
5332
5339
|
src: Be(o.def.src),
|
|
5333
|
-
filters: cr(o.def.filters)
|
|
5340
|
+
filters: cr([...o.def.partitionFilters, ...o.def.filters])
|
|
5334
5341
|
});
|
|
5335
5342
|
let u = a;
|
|
5336
5343
|
if (o.def.sorting.length > 0)
|
|
@@ -5339,10 +5346,10 @@ class Dr {
|
|
|
5339
5346
|
} finally {
|
|
5340
5347
|
a.dispose();
|
|
5341
5348
|
}
|
|
5342
|
-
return new
|
|
5349
|
+
return new Jc(u, c);
|
|
5343
5350
|
}
|
|
5344
5351
|
calculateParamsKey(o) {
|
|
5345
|
-
return
|
|
5352
|
+
return Mc(o);
|
|
5346
5353
|
}
|
|
5347
5354
|
}(this.pFrames);
|
|
5348
5355
|
}
|
|
@@ -5366,13 +5373,13 @@ class Dr {
|
|
|
5366
5373
|
return t.addOnDestroy(n.unref), n.key;
|
|
5367
5374
|
}
|
|
5368
5375
|
createPTable(e, t) {
|
|
5369
|
-
const r = this.createPFrame(oo(
|
|
5376
|
+
const r = Vc(e), n = this.createPFrame(oo(r.src), t), o = lr(r, (l) => l.id), i = this.pTables.acquire({ def: o, pFrameHandle: n });
|
|
5370
5377
|
return ne().logPFrameRequests && this.logger.info(
|
|
5371
|
-
`Create PTable call (pFrameHandle = ${
|
|
5372
|
-
lr(
|
|
5378
|
+
`Create PTable call (pFrameHandle = ${n}; pTableHandle = ${JSON.stringify(i)}): ${JSON.stringify(
|
|
5379
|
+
lr(r, (l) => l.spec),
|
|
5373
5380
|
Te
|
|
5374
5381
|
)}`
|
|
5375
|
-
), t.addOnDestroy(
|
|
5382
|
+
), t.addOnDestroy(i.unref), i.key;
|
|
5376
5383
|
}
|
|
5377
5384
|
//
|
|
5378
5385
|
// PFrame istance methods
|
|
@@ -5510,11 +5517,11 @@ function Be(s) {
|
|
|
5510
5517
|
Y(s);
|
|
5511
5518
|
}
|
|
5512
5519
|
}
|
|
5513
|
-
function
|
|
5520
|
+
function Mc(s) {
|
|
5514
5521
|
const e = Ce("sha256");
|
|
5515
5522
|
return e.update(ee(s)), e.digest().toString("hex");
|
|
5516
5523
|
}
|
|
5517
|
-
function
|
|
5524
|
+
function Gc(s) {
|
|
5518
5525
|
const e = [...s].map(
|
|
5519
5526
|
(r) => he(r, (n) => {
|
|
5520
5527
|
let o;
|
|
@@ -5560,7 +5567,7 @@ function Mc(s) {
|
|
|
5560
5567
|
const t = Ce("sha256");
|
|
5561
5568
|
return t.update(ee(e)), t.digest().toString("hex");
|
|
5562
5569
|
}
|
|
5563
|
-
async function
|
|
5570
|
+
async function _c(s, e, t) {
|
|
5564
5571
|
const r = {
|
|
5565
5572
|
...qn,
|
|
5566
5573
|
...Kn(e),
|
|
@@ -5607,7 +5614,7 @@ async function Gc(s, e, t) {
|
|
|
5607
5614
|
pFrameDriver: h
|
|
5608
5615
|
};
|
|
5609
5616
|
}
|
|
5610
|
-
class
|
|
5617
|
+
class qc {
|
|
5611
5618
|
constructor(e) {
|
|
5612
5619
|
R(this, "enrichmentTargetsCache", new fn({
|
|
5613
5620
|
max: 256,
|
|
@@ -5733,7 +5740,7 @@ class Yn {
|
|
|
5733
5740
|
return S.lock(F), S.setField(P, F), await S.commit(), await F.globalId;
|
|
5734
5741
|
} else
|
|
5735
5742
|
return B.value;
|
|
5736
|
-
}), i = n.logger, l = await
|
|
5743
|
+
}), i = n.logger, l = await _c(e, t, n), c = new ao(e.httpDispatcher), a = new oi(c), u = new Bi(
|
|
5737
5744
|
a,
|
|
5738
5745
|
l.signer,
|
|
5739
5746
|
c
|
|
@@ -5758,7 +5765,7 @@ class Yn {
|
|
|
5758
5765
|
preferredUpdateChannel: n.preferredUpdateChannel
|
|
5759
5766
|
}),
|
|
5760
5767
|
quickJs: p,
|
|
5761
|
-
projectHelper: new
|
|
5768
|
+
projectHelper: new qc(p)
|
|
5762
5769
|
}, v = new Ao([]), h = await mi(e, o, v, f);
|
|
5763
5770
|
return new Yn(
|
|
5764
5771
|
f,
|
|
@@ -5772,41 +5779,41 @@ class Yn {
|
|
|
5772
5779
|
);
|
|
5773
5780
|
}
|
|
5774
5781
|
}
|
|
5775
|
-
async function
|
|
5782
|
+
async function Kc(s, e) {
|
|
5776
5783
|
return await Pe(s.pingCheckDurationMs, s.maxPingsPerSecond, async () => {
|
|
5777
5784
|
const r = await new dn(e).ping();
|
|
5778
5785
|
return JSON.stringify(r).slice(0, s.bodyLimit) + "...";
|
|
5779
5786
|
});
|
|
5780
5787
|
}
|
|
5781
|
-
async function
|
|
5788
|
+
async function Hc(s, e) {
|
|
5782
5789
|
return await Pe(
|
|
5783
5790
|
s.blockRegistryDurationMs,
|
|
5784
5791
|
s.maxRegistryChecksPerSecond,
|
|
5785
5792
|
async () => await He(new URL(s.blockOverviewPath, s.blockRegistryUrl), s, e)
|
|
5786
5793
|
);
|
|
5787
5794
|
}
|
|
5788
|
-
async function
|
|
5795
|
+
async function Wc(s, e) {
|
|
5789
5796
|
return await Pe(
|
|
5790
5797
|
s.blockRegistryDurationMs,
|
|
5791
5798
|
s.maxRegistryChecksPerSecond,
|
|
5792
5799
|
async () => await He(new URL(s.blockOverviewPath, s.blockGARegistryUrl), s, e)
|
|
5793
5800
|
);
|
|
5794
5801
|
}
|
|
5795
|
-
async function
|
|
5802
|
+
async function zc(s, e) {
|
|
5796
5803
|
return await Pe(
|
|
5797
5804
|
s.blockRegistryDurationMs,
|
|
5798
5805
|
s.maxRegistryChecksPerSecond,
|
|
5799
5806
|
async () => await He(new URL(s.blockUiPath, s.blockRegistryUrl), s, e)
|
|
5800
5807
|
);
|
|
5801
5808
|
}
|
|
5802
|
-
async function
|
|
5809
|
+
async function Xc(s, e) {
|
|
5803
5810
|
return await Pe(
|
|
5804
5811
|
s.blockRegistryDurationMs,
|
|
5805
5812
|
s.maxRegistryChecksPerSecond,
|
|
5806
5813
|
async () => await He(new URL(s.blockUiPath, s.blockGARegistryUrl), s, e)
|
|
5807
5814
|
);
|
|
5808
5815
|
}
|
|
5809
|
-
async function
|
|
5816
|
+
async function Yc(s, e) {
|
|
5810
5817
|
return await Pe(
|
|
5811
5818
|
s.autoUpdateCdnDurationMs,
|
|
5812
5819
|
s.maxAutoUpdateCdnChecksPerSecond,
|
|
@@ -5848,7 +5855,7 @@ function rn(s) {
|
|
|
5848
5855
|
return Date.now() - s;
|
|
5849
5856
|
}
|
|
5850
5857
|
function we(s) {
|
|
5851
|
-
const e = s.filter((i) => i.response.ok), t = s.length - e.length, { mean: r, median: n } =
|
|
5858
|
+
const e = s.filter((i) => i.response.ok), t = s.length - e.length, { mean: r, median: n } = Qc(s), o = `
|
|
5852
5859
|
total: ${s.length};
|
|
5853
5860
|
successes: ${e.length};
|
|
5854
5861
|
errors: ${t};
|
|
@@ -5860,7 +5867,7 @@ function we(s) {
|
|
|
5860
5867
|
details: o
|
|
5861
5868
|
};
|
|
5862
5869
|
}
|
|
5863
|
-
function
|
|
5870
|
+
function Qc(s) {
|
|
5864
5871
|
const e = s.map((n) => n.elapsedMs).sort(), t = e.reduce((n, o) => n + o) / e.length;
|
|
5865
5872
|
let r;
|
|
5866
5873
|
if (e.length > 0) {
|
|
@@ -5869,15 +5876,15 @@ function Yc(s) {
|
|
|
5869
5876
|
}
|
|
5870
5877
|
return { mean: t, median: r };
|
|
5871
5878
|
}
|
|
5872
|
-
async function
|
|
5879
|
+
async function Zc(s, e, t) {
|
|
5873
5880
|
try {
|
|
5874
|
-
const r = await
|
|
5881
|
+
const r = await el(s, e, t);
|
|
5875
5882
|
return r !== `Hello, ${t}` ? { status: "failed", message: `Template uploading failed: expected: ${t}, got: ${r}` } : { status: "ok", message: `Template uploading succeeded: ${r}` };
|
|
5876
5883
|
} catch (r) {
|
|
5877
5884
|
return { status: "failed", message: `Template uploading failed: error occurred: ${r}` };
|
|
5878
5885
|
}
|
|
5879
5886
|
}
|
|
5880
|
-
async function
|
|
5887
|
+
async function el(s, e, t) {
|
|
5881
5888
|
var n;
|
|
5882
5889
|
const r = await Oe(
|
|
5883
5890
|
e,
|
|
@@ -5894,15 +5901,15 @@ async function Zc(s, e, t) {
|
|
|
5894
5901
|
r != null && await Ie(e, Object.values(r));
|
|
5895
5902
|
}
|
|
5896
5903
|
}
|
|
5897
|
-
async function
|
|
5904
|
+
async function tl(s, e, t, r, n, o) {
|
|
5898
5905
|
try {
|
|
5899
|
-
const i = await
|
|
5906
|
+
const i = await rl(s, e, t, r, n, o);
|
|
5900
5907
|
return i.type.name !== "Blob" ? { status: "failed", message: `File uploading failed: ${i.type.name}` } : { status: "ok", message: `File uploading succeeded: ${i.type.name}` };
|
|
5901
5908
|
} catch (i) {
|
|
5902
5909
|
return { status: "failed", message: `File uploading failed: error occurred: ${i}` };
|
|
5903
5910
|
}
|
|
5904
5911
|
}
|
|
5905
|
-
async function
|
|
5912
|
+
async function rl(s, e, t, r, n, o) {
|
|
5906
5913
|
var c;
|
|
5907
5914
|
const i = await t.getLocalFileHandle(o), l = await Oe(
|
|
5908
5915
|
n,
|
|
@@ -5936,15 +5943,15 @@ async function tl(s, e, t, r, n, o) {
|
|
|
5936
5943
|
await Ie(n, Object.values(l));
|
|
5937
5944
|
}
|
|
5938
5945
|
}
|
|
5939
|
-
async function
|
|
5946
|
+
async function sl(s, e, t, r, n, o, i) {
|
|
5940
5947
|
try {
|
|
5941
|
-
const l = await
|
|
5948
|
+
const l = await nl(s, e, t, r, n, o);
|
|
5942
5949
|
return l !== i ? { status: "failed", message: `File downloading failed: expected: ${i}, got: ${l}` } : { status: "ok", message: `File downloading succeeded: ${l}` };
|
|
5943
5950
|
} catch (l) {
|
|
5944
5951
|
return { status: "failed", message: `File downloading failed: error occurred: ${l}` };
|
|
5945
5952
|
}
|
|
5946
5953
|
}
|
|
5947
|
-
async function
|
|
5954
|
+
async function nl(s, e, t, r, n, o) {
|
|
5948
5955
|
var c;
|
|
5949
5956
|
const i = await t.getLocalFileHandle(o), l = await Oe(
|
|
5950
5957
|
e,
|
|
@@ -5974,16 +5981,16 @@ async function sl(s, e, t, r, n, o) {
|
|
|
5974
5981
|
await Ie(e, Object.values(l));
|
|
5975
5982
|
}
|
|
5976
5983
|
}
|
|
5977
|
-
async function
|
|
5984
|
+
async function ol(s) {
|
|
5978
5985
|
try {
|
|
5979
|
-
const e = await
|
|
5986
|
+
const e = await il(s);
|
|
5980
5987
|
return e !== `Hello from go binary
|
|
5981
5988
|
` ? { status: "failed", message: `Software check failed: got: ${e}` } : { status: "ok", message: `Software check succeeded: ${e}` };
|
|
5982
5989
|
} catch (e) {
|
|
5983
5990
|
return { status: "failed", message: `Software check failed: error occurred: ${e}` };
|
|
5984
5991
|
}
|
|
5985
5992
|
}
|
|
5986
|
-
async function
|
|
5993
|
+
async function il(s) {
|
|
5987
5994
|
var t;
|
|
5988
5995
|
const e = await Oe(
|
|
5989
5996
|
s,
|
|
@@ -5998,16 +6005,16 @@ async function ol(s) {
|
|
|
5998
6005
|
await Ie(s, Object.values(e));
|
|
5999
6006
|
}
|
|
6000
6007
|
}
|
|
6001
|
-
async function
|
|
6008
|
+
async function al(s, e) {
|
|
6002
6009
|
try {
|
|
6003
|
-
const t = await
|
|
6010
|
+
const t = await cl(s, e);
|
|
6004
6011
|
return t !== `Hello, ${e}!
|
|
6005
6012
|
` ? { status: "failed", message: `Python software check failed: got: ${t}` } : { status: "ok", message: `Python software check succeeded: ${t}` };
|
|
6006
6013
|
} catch (t) {
|
|
6007
6014
|
return { status: "failed", message: `Python software check failed: error occurred: ${t}` };
|
|
6008
6015
|
}
|
|
6009
6016
|
}
|
|
6010
|
-
async function
|
|
6017
|
+
async function cl(s, e) {
|
|
6011
6018
|
var r;
|
|
6012
6019
|
const t = await Oe(
|
|
6013
6020
|
s,
|
|
@@ -6022,12 +6029,12 @@ async function al(s, e) {
|
|
|
6022
6029
|
await Ie(s, Object.values(t));
|
|
6023
6030
|
}
|
|
6024
6031
|
}
|
|
6025
|
-
async function
|
|
6032
|
+
async function ll(s, e, t, r) {
|
|
6026
6033
|
var n, o;
|
|
6027
6034
|
try {
|
|
6028
6035
|
const i = await t.getStorageList(), l = {};
|
|
6029
6036
|
for (const c of i) {
|
|
6030
|
-
const a = await
|
|
6037
|
+
const a = await ul(t, c, r.nFilesToCheck, r.minFileSize, r.maxFileSize, r.minLsRequests);
|
|
6031
6038
|
if (a.file === void 0) {
|
|
6032
6039
|
l[c.name] = {
|
|
6033
6040
|
status: "warn",
|
|
@@ -6061,7 +6068,7 @@ async function cl(s, e, t, r) {
|
|
|
6061
6068
|
return { unknown: { status: "failed", message: `Download from every storage failed: error occurred: ${i}` } };
|
|
6062
6069
|
}
|
|
6063
6070
|
}
|
|
6064
|
-
async function
|
|
6071
|
+
async function ul(s, e, t, r, n, o) {
|
|
6065
6072
|
const i = Qn(s, e, "", 0);
|
|
6066
6073
|
let l, c = 0, a = 0;
|
|
6067
6074
|
for await (const { file: u, nLsRequests: d } of i) {
|
|
@@ -6086,11 +6093,11 @@ async function* Qn(s, e, t, r) {
|
|
|
6086
6093
|
for await (const i of Qn(s, e, o.fullPath, r))
|
|
6087
6094
|
r = Math.max(i.nLsRequests, r), yield i;
|
|
6088
6095
|
}
|
|
6089
|
-
async function
|
|
6096
|
+
async function dl() {
|
|
6090
6097
|
const s = q.join(kn.tmpdir(), `check-network-big-temp-${Date.now()}.bin`), e = 20 * 1024 * 1024, t = Lo(e);
|
|
6091
6098
|
return await rt.appendFile(s, t), { filePath: s };
|
|
6092
6099
|
}
|
|
6093
|
-
async function
|
|
6100
|
+
async function pl() {
|
|
6094
6101
|
const s = q.join(kn.tmpdir(), `check-network-temp-${Date.now()}.txt`), e = "Hello, world! " + (/* @__PURE__ */ new Date()).toISOString();
|
|
6095
6102
|
return await rt.writeFile(s, e), { filePath: s, fileContent: e };
|
|
6096
6103
|
}
|
|
@@ -6129,9 +6136,9 @@ async function Ie(s, e) {
|
|
|
6129
6136
|
await t.commit();
|
|
6130
6137
|
});
|
|
6131
6138
|
}
|
|
6132
|
-
async function
|
|
6139
|
+
async function eu(s, e, t, r = {}) {
|
|
6133
6140
|
const n = [];
|
|
6134
|
-
|
|
6141
|
+
gl.forEach((o) => {
|
|
6135
6142
|
Xo(o).subscribe((l) => {
|
|
6136
6143
|
var u, d;
|
|
6137
6144
|
const c = (/* @__PURE__ */ new Date()).toISOString(), a = { ...l };
|
|
@@ -6155,19 +6162,19 @@ async function Zl(s, e, t, r = {}) {
|
|
|
6155
6162
|
lsDriver: d,
|
|
6156
6163
|
httpClient: p,
|
|
6157
6164
|
ops: f
|
|
6158
|
-
} = await
|
|
6159
|
-
plPings: await
|
|
6160
|
-
blockRegistryOverviewChecks: await
|
|
6161
|
-
blockGARegistryOverviewChecks: await
|
|
6162
|
-
blockRegistryUiChecks: await
|
|
6163
|
-
blockGARegistryUiChecks: await
|
|
6164
|
-
autoUpdateCdnChecks: await
|
|
6165
|
-
uploadTemplateCheck: await
|
|
6166
|
-
uploadFileCheck: await
|
|
6167
|
-
downloadFileCheck: await
|
|
6168
|
-
softwareCheck: await
|
|
6169
|
-
pythonSoftwareCheck: await
|
|
6170
|
-
storageToDownloadReport: await
|
|
6165
|
+
} = await fl(s, e, t, r), { filePath: v, fileContent: h } = await pl(), { filePath: S } = await dl(), P = {
|
|
6166
|
+
plPings: await Kc(f, i),
|
|
6167
|
+
blockRegistryOverviewChecks: await Hc(f, p),
|
|
6168
|
+
blockGARegistryOverviewChecks: await Wc(f, p),
|
|
6169
|
+
blockRegistryUiChecks: await zc(f, p),
|
|
6170
|
+
blockGARegistryUiChecks: await Xc(f, p),
|
|
6171
|
+
autoUpdateCdnChecks: await Yc(f, p),
|
|
6172
|
+
uploadTemplateCheck: await Zc(o, l, "Jack"),
|
|
6173
|
+
uploadFileCheck: await tl(o, c, d, u, l, S),
|
|
6174
|
+
downloadFileCheck: await sl(o, l, d, u, a, v, h),
|
|
6175
|
+
softwareCheck: await ol(l),
|
|
6176
|
+
pythonSoftwareCheck: await al(l, "Jack"),
|
|
6177
|
+
storageToDownloadReport: await ll(
|
|
6171
6178
|
o,
|
|
6172
6179
|
l,
|
|
6173
6180
|
d,
|
|
@@ -6180,12 +6187,12 @@ async function Zl(s, e, t, r = {}) {
|
|
|
6180
6187
|
}
|
|
6181
6188
|
)
|
|
6182
6189
|
};
|
|
6183
|
-
return
|
|
6190
|
+
return hl(P, s, f, n);
|
|
6184
6191
|
} catch (o) {
|
|
6185
6192
|
return `Unhandled error while checking the network: ${o}`;
|
|
6186
6193
|
}
|
|
6187
6194
|
}
|
|
6188
|
-
async function
|
|
6195
|
+
async function fl(s, e, t, r = {}) {
|
|
6189
6196
|
const n = {
|
|
6190
6197
|
pingCheckDurationMs: 1e4,
|
|
6191
6198
|
pingTimeoutMs: 3e3,
|
|
@@ -6238,7 +6245,7 @@ async function pl(s, e, t, r = {}) {
|
|
|
6238
6245
|
}
|
|
6239
6246
|
};
|
|
6240
6247
|
}
|
|
6241
|
-
function
|
|
6248
|
+
function hl(s, e, t, r) {
|
|
6242
6249
|
const n = s.plPings.filter((S) => S.response.ok), o = s.plPings.filter((S) => !S.response.ok), i = [
|
|
6243
6250
|
...new Set(n.map((S) => JSON.stringify(S.response.value)))
|
|
6244
6251
|
], l = (S) => S ? "OK" : "FAILED", c = (S) => S.status === "ok" ? "OK" : S.status === "warn" ? "WARN" : "FAILED", a = we(s.plPings), u = we(s.blockRegistryOverviewChecks), d = we(s.blockGARegistryOverviewChecks), p = we(s.blockRegistryUiChecks), f = we(s.blockGARegistryUiChecks), v = we(s.autoUpdateCdnChecks), h = Object.entries(s.storageToDownloadReport).map(([S, P]) => `${c(P)} ${S} storage check`).join(`
|
|
@@ -6310,7 +6317,7 @@ ${r.join(`
|
|
|
6310
6317
|
`)}
|
|
6311
6318
|
`;
|
|
6312
6319
|
}
|
|
6313
|
-
const
|
|
6320
|
+
const gl = [
|
|
6314
6321
|
"undici:request:create",
|
|
6315
6322
|
// When a new request is created
|
|
6316
6323
|
"undici:request:bodySent",
|
|
@@ -6349,8 +6356,8 @@ const hl = [
|
|
|
6349
6356
|
// When a dispatcher retries a request
|
|
6350
6357
|
];
|
|
6351
6358
|
export {
|
|
6352
|
-
|
|
6353
|
-
|
|
6359
|
+
Kl as BlockPackRegistry,
|
|
6360
|
+
Hl as CentralBlockRegistry,
|
|
6354
6361
|
Kn as DefaultDriverKitOpsPaths,
|
|
6355
6362
|
qn as DefaultDriverKitOpsSettings,
|
|
6356
6363
|
ic as DefaultMiddleLayerOpsPaths,
|
|
@@ -6363,19 +6370,19 @@ export {
|
|
|
6363
6370
|
Ii as TengoTemplateGetRegistry,
|
|
6364
6371
|
Ti as TengoTemplateGetTemplate,
|
|
6365
6372
|
Fi as TengoTemplateGetTemplateURI,
|
|
6366
|
-
|
|
6367
|
-
|
|
6368
|
-
|
|
6369
|
-
|
|
6370
|
-
|
|
6371
|
-
|
|
6373
|
+
Xl as TengoTemplatePack,
|
|
6374
|
+
Yl as TengoTemplatePackConvert,
|
|
6375
|
+
Zl as TengoTemplatePackConvertTemplate,
|
|
6376
|
+
Ql as TengoTemplatePackConvertTemplatePack,
|
|
6377
|
+
zl as V1CentralDevSnapshotRegistry,
|
|
6378
|
+
Wl as V1CentralRegistry,
|
|
6372
6379
|
oi as V2RegistryProvider,
|
|
6373
|
-
|
|
6380
|
+
eu as checkNetwork,
|
|
6374
6381
|
Cr as createRenderTemplate,
|
|
6375
6382
|
Cn as getDevV1PacketMtime,
|
|
6376
6383
|
kr as getDevV2PacketMtime,
|
|
6377
|
-
|
|
6378
|
-
|
|
6384
|
+
_c as initDriverKit,
|
|
6385
|
+
fl as initNetworkCheck,
|
|
6379
6386
|
at as loadTemplate,
|
|
6380
6387
|
Tn as prepareTemplateSpec
|
|
6381
6388
|
};
|