@camstack/addon-benchmark 1.2.204 → 1.2.205
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/_stub.js +47 -43
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_benchmark_page-DppMdPQJ.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_benchmark_page-B60KjO0s.mjs} +3 -3
- package/dist/{hostInit-BaED4i07.mjs → hostInit-Fmwjedtg.mjs} +2 -2
- package/dist/remoteEntry.js +1 -1
- package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_benchmark_page__remoteEntry_js-D9FMKdJg.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_benchmark_page__remoteEntry_js-z4fW1IVB.mjs} +1 -1
- package/package.json +1 -1
package/dist/_stub.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./virtualExposes-erbhyesj.mjs";
|
|
2
|
-
import "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_benchmark_page__remoteEntry_js-
|
|
2
|
+
import "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_benchmark_page__remoteEntry_js-z4fW1IVB.mjs";
|
|
3
3
|
import { _ as e, b as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, p as d, r as f, t as p, u as m, v as h } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react__loadShare__.js-BLRSn-wJ.mjs";
|
|
4
4
|
import { a as g, c as _, f as v, g as y, h as b, i as x, l as S, m as C, n as w, o as T, p as E, r as ee, s as te, t as ne, u as re } from "./responsive-ak9Arv2u.mjs";
|
|
5
5
|
import { d as ie, l as D, u as ae } from "./scene-monitor-copy-BdmTLKH7.mjs";
|
|
@@ -19333,26 +19333,30 @@ var Bb = (e) => [
|
|
|
19333
19333
|
}
|
|
19334
19334
|
];
|
|
19335
19335
|
function Vb({ trpc: e }) {
|
|
19336
|
-
let [t, r] = a("hub"), [i, o] = a(null), s = Ib(() => e.pipelineOrchestrator.getNodeBenchmarkStatus.query(), 3e3, [e]), c = s.data?.run ?? null, u = c !== null && Fb.has(c.state), d =
|
|
19336
|
+
let [t, r] = a("hub"), [i, o] = a(null), s = Ib(() => e.pipelineOrchestrator.getNodeBenchmarkStatus.query(), 3e3, [e]), c = s.data?.run ?? null, u = c !== null && Fb.has(c.state), d = u && s.data !== null ? s.data.modeNodeId ?? c?.nodeId ?? null : null;
|
|
19337
19337
|
m(() => {
|
|
19338
|
-
d
|
|
19339
|
-
}, [d
|
|
19340
|
-
let f =
|
|
19338
|
+
d !== null && t !== d && (r(d), o(null));
|
|
19339
|
+
}, [d, t]);
|
|
19340
|
+
let f = Ib(() => e.pipelineOrchestrator.getNodeBenchmarkCandidates.query({ nodeId: t }), 6e4, [e, t]);
|
|
19341
|
+
m(() => {
|
|
19342
|
+
f.data !== null && f.data.nodeId === t && o((e) => e?.nodeId === t ? e : Sb(f.data));
|
|
19343
|
+
}, [f.data, t]);
|
|
19344
|
+
let p = l(() => i === null ? null : Ob(i), [i]), h = Ib(async () => p?.kind === "plan" && !u ? e.pipelineOrchestrator.getNodeBenchmarkPreflight.query(p.plan) : null, 15e3, [
|
|
19341
19345
|
e,
|
|
19342
|
-
|
|
19346
|
+
p?.kind === "plan" ? JSON.stringify(p.plan) : null,
|
|
19343
19347
|
u
|
|
19344
|
-
]),
|
|
19348
|
+
]), g = Ib(() => e.pipelineOrchestrator.listNodeBenchmarkResults.query({ nodeId: t }), u ? 1e4 : 6e4, [
|
|
19345
19349
|
e,
|
|
19346
19350
|
t,
|
|
19347
19351
|
c?.state
|
|
19348
|
-
]),
|
|
19349
|
-
e.pipelineOrchestrator.deleteNodeBenchmarkResult.mutate({ id: t }).then(() =>
|
|
19350
|
-
}, [e,
|
|
19351
|
-
if (
|
|
19352
|
-
let t = await e.pipelineOrchestrator.startNodeBenchmark.mutate(
|
|
19352
|
+
]), _ = n((t) => {
|
|
19353
|
+
e.pipelineOrchestrator.deleteNodeBenchmarkResult.mutate({ id: t }).then(() => g.refresh());
|
|
19354
|
+
}, [e, g]), v = async () => {
|
|
19355
|
+
if (p?.kind !== "plan") throw Error(p?.why ?? "No plan yet");
|
|
19356
|
+
let t = await e.pipelineOrchestrator.startNodeBenchmark.mutate(p.plan);
|
|
19353
19357
|
if (t.kind === "refused") throw Error(t.preflight.refusals.map((e) => e.detail).join(" "));
|
|
19354
19358
|
s.refresh();
|
|
19355
|
-
},
|
|
19359
|
+
}, y = h.data, b = f.data?.steps ?? [], x = i !== null && !u;
|
|
19356
19360
|
return /* @__PURE__ */ L("div", {
|
|
19357
19361
|
className: "space-y-3",
|
|
19358
19362
|
children: [
|
|
@@ -19361,9 +19365,9 @@ function Vb({ trpc: e }) {
|
|
|
19361
19365
|
title: "Node",
|
|
19362
19366
|
icon: at,
|
|
19363
19367
|
actions: /* @__PURE__ */ I(fb, {
|
|
19364
|
-
selectedNodeId: t,
|
|
19368
|
+
selectedNodeId: d ?? t,
|
|
19365
19369
|
onSelect: (e) => {
|
|
19366
|
-
r(e), o(null);
|
|
19370
|
+
u || (r(e), o(null));
|
|
19367
19371
|
},
|
|
19368
19372
|
alwaysShow: !0
|
|
19369
19373
|
}),
|
|
@@ -19371,25 +19375,25 @@ function Vb({ trpc: e }) {
|
|
|
19371
19375
|
className: `${ne} space-y-1 text-xs`,
|
|
19372
19376
|
children: [
|
|
19373
19377
|
/* @__PURE__ */ I("p", { children: "One node at a time. While it runs, the node takes no detection: its cameras move to the other nodes and come back — pins included — when it ends, also after a crash or a hub restart." }),
|
|
19374
|
-
|
|
19378
|
+
y != null && /* @__PURE__ */ L("p", {
|
|
19375
19379
|
className: "text-[10px] text-foreground-subtle",
|
|
19376
19380
|
children: [
|
|
19377
19381
|
"Cluster now: ",
|
|
19378
|
-
|
|
19382
|
+
y.headroom.sessionsNow,
|
|
19379
19383
|
" parallel session(s); the other nodes can carry",
|
|
19380
19384
|
" ",
|
|
19381
|
-
|
|
19385
|
+
y.headroom.otherNodesCapacitySessions ?? "an unknown number of",
|
|
19382
19386
|
"."
|
|
19383
19387
|
]
|
|
19384
19388
|
}),
|
|
19385
|
-
|
|
19389
|
+
f.error !== null && /* @__PURE__ */ I("p", {
|
|
19386
19390
|
className: "text-danger",
|
|
19387
|
-
children:
|
|
19391
|
+
children: f.error
|
|
19388
19392
|
})
|
|
19389
19393
|
]
|
|
19390
19394
|
})
|
|
19391
19395
|
}),
|
|
19392
|
-
c !== null && /* @__PURE__ */ I(Vo, {
|
|
19396
|
+
c !== null && (!u || c.nodeId === t) && /* @__PURE__ */ I(Vo, {
|
|
19393
19397
|
headingId: "nb-run",
|
|
19394
19398
|
title: u ? "Running" : "Last run",
|
|
19395
19399
|
icon: Te,
|
|
@@ -19428,7 +19432,7 @@ function Vb({ trpc: e }) {
|
|
|
19428
19432
|
icon: bt,
|
|
19429
19433
|
children: /* @__PURE__ */ I("div", {
|
|
19430
19434
|
className: ne,
|
|
19431
|
-
children:
|
|
19435
|
+
children: f.data === null || i === null ? /* @__PURE__ */ L("p", {
|
|
19432
19436
|
className: S,
|
|
19433
19437
|
children: [
|
|
19434
19438
|
"Reading ",
|
|
@@ -19436,10 +19440,10 @@ function Vb({ trpc: e }) {
|
|
|
19436
19440
|
"…"
|
|
19437
19441
|
]
|
|
19438
19442
|
}) : /* @__PURE__ */ L(R, { children: [/* @__PURE__ */ I(Rb, {
|
|
19439
|
-
candidates:
|
|
19443
|
+
candidates: f.data,
|
|
19440
19444
|
draft: i,
|
|
19441
19445
|
onChange: o,
|
|
19442
|
-
disabled: !
|
|
19446
|
+
disabled: !x
|
|
19443
19447
|
}), /* @__PURE__ */ L("p", {
|
|
19444
19448
|
className: `${S} pt-2`,
|
|
19445
19449
|
children: [
|
|
@@ -19464,28 +19468,28 @@ function Vb({ trpc: e }) {
|
|
|
19464
19468
|
className: "flex items-center gap-2",
|
|
19465
19469
|
children: [/* @__PURE__ */ I(oo, {
|
|
19466
19470
|
checked: i.phases.includes("device"),
|
|
19467
|
-
disabled: !
|
|
19471
|
+
disabled: !x,
|
|
19468
19472
|
onChange: () => o(Eb(i, "device"))
|
|
19469
19473
|
}), "Device capacity (detector only)"]
|
|
19470
19474
|
}), /* @__PURE__ */ L("label", {
|
|
19471
19475
|
className: "flex items-center gap-2",
|
|
19472
19476
|
children: [/* @__PURE__ */ I(oo, {
|
|
19473
19477
|
checked: i.phases.includes("pipeline"),
|
|
19474
|
-
disabled: !
|
|
19478
|
+
disabled: !x,
|
|
19475
19479
|
onChange: () => o(Eb(i, "pipeline"))
|
|
19476
19480
|
}), "Pipeline load (detector + the steps below)"]
|
|
19477
19481
|
})]
|
|
19478
19482
|
}),
|
|
19479
19483
|
i.phases.includes("pipeline") && /* @__PURE__ */ L("div", {
|
|
19480
19484
|
className: "flex flex-wrap gap-3 text-xs",
|
|
19481
|
-
children: [
|
|
19485
|
+
children: [b.length === 0 && /* @__PURE__ */ I("span", {
|
|
19482
19486
|
className: "text-[10px] text-foreground-subtle",
|
|
19483
19487
|
children: "The node's catalog offers no detail step."
|
|
19484
|
-
}),
|
|
19488
|
+
}), b.map((e) => /* @__PURE__ */ L("label", {
|
|
19485
19489
|
className: "flex items-center gap-1",
|
|
19486
19490
|
children: [/* @__PURE__ */ I(oo, {
|
|
19487
19491
|
checked: i.steps.includes(e.id),
|
|
19488
|
-
disabled: !
|
|
19492
|
+
disabled: !x,
|
|
19489
19493
|
onChange: () => o(Db(i, e.id))
|
|
19490
19494
|
}), e.name]
|
|
19491
19495
|
}, e.id))]
|
|
@@ -19498,7 +19502,7 @@ function Vb({ trpc: e }) {
|
|
|
19498
19502
|
value: i.fpsPerStream,
|
|
19499
19503
|
min: 1,
|
|
19500
19504
|
max: 30,
|
|
19501
|
-
disabled: !
|
|
19505
|
+
disabled: !x,
|
|
19502
19506
|
onChange: (e) => o({
|
|
19503
19507
|
...i,
|
|
19504
19508
|
fpsPerStream: e
|
|
@@ -19509,7 +19513,7 @@ function Vb({ trpc: e }) {
|
|
|
19509
19513
|
value: i.budgetMinutes,
|
|
19510
19514
|
min: 10,
|
|
19511
19515
|
max: 120,
|
|
19512
|
-
disabled: !
|
|
19516
|
+
disabled: !x,
|
|
19513
19517
|
onChange: (e) => o({
|
|
19514
19518
|
...i,
|
|
19515
19519
|
budgetMinutes: e
|
|
@@ -19519,18 +19523,18 @@ function Vb({ trpc: e }) {
|
|
|
19519
19523
|
className: "flex items-center gap-2",
|
|
19520
19524
|
children: [/* @__PURE__ */ I(oo, {
|
|
19521
19525
|
checked: i.keepDownloadedModels,
|
|
19522
|
-
disabled: !
|
|
19526
|
+
disabled: !x,
|
|
19523
19527
|
onChange: () => o({
|
|
19524
19528
|
...i,
|
|
19525
19529
|
keepDownloadedModels: !i.keepDownloadedModels
|
|
19526
19530
|
})
|
|
19527
19531
|
}), "Keep downloaded models"]
|
|
19528
19532
|
}),
|
|
19529
|
-
|
|
19533
|
+
y?.refusals.some((e) => e.overridable) === !0 && /* @__PURE__ */ L("label", {
|
|
19530
19534
|
className: "flex items-center gap-2 text-warning",
|
|
19531
19535
|
children: [/* @__PURE__ */ I(oo, {
|
|
19532
19536
|
checked: i.acceptInsufficientHeadroom,
|
|
19533
|
-
disabled: !
|
|
19537
|
+
disabled: !x,
|
|
19534
19538
|
onChange: () => o({
|
|
19535
19539
|
...i,
|
|
19536
19540
|
acceptInsufficientHeadroom: !i.acceptInsufficientHeadroom
|
|
@@ -19540,10 +19544,10 @@ function Vb({ trpc: e }) {
|
|
|
19540
19544
|
]
|
|
19541
19545
|
})
|
|
19542
19546
|
] }),
|
|
19543
|
-
|
|
19544
|
-
|
|
19547
|
+
y != null && !u && /* @__PURE__ */ I(zb, { preflight: y }),
|
|
19548
|
+
p?.kind === "incomplete" && /* @__PURE__ */ I("p", {
|
|
19545
19549
|
className: "text-[10px] text-foreground-subtle",
|
|
19546
|
-
children:
|
|
19550
|
+
children: p.why
|
|
19547
19551
|
}),
|
|
19548
19552
|
/* @__PURE__ */ I("div", {
|
|
19549
19553
|
className: "flex justify-end",
|
|
@@ -19551,12 +19555,12 @@ function Vb({ trpc: e }) {
|
|
|
19551
19555
|
label: "Start benchmark",
|
|
19552
19556
|
icon: Zt,
|
|
19553
19557
|
title: `Benchmark ${t}?`,
|
|
19554
|
-
description:
|
|
19558
|
+
description: y ? /* @__PURE__ */ I(zb, { preflight: y }) : "Reading the preflight…",
|
|
19555
19559
|
confirmLabel: "Start",
|
|
19556
19560
|
confirmVariant: "primary",
|
|
19557
19561
|
triggerVariant: "primary",
|
|
19558
|
-
disabled: u ||
|
|
19559
|
-
action:
|
|
19562
|
+
disabled: u || y == null || !y.canStart,
|
|
19563
|
+
action: v
|
|
19560
19564
|
})
|
|
19561
19565
|
})
|
|
19562
19566
|
]
|
|
@@ -19566,13 +19570,13 @@ function Vb({ trpc: e }) {
|
|
|
19566
19570
|
headingId: "nb-results",
|
|
19567
19571
|
title: `Results — ${t}`,
|
|
19568
19572
|
icon: bt,
|
|
19569
|
-
children:
|
|
19573
|
+
children: g.data === null || g.data.length === 0 ? /* @__PURE__ */ I(na, {
|
|
19570
19574
|
icon: bt,
|
|
19571
19575
|
title: "No results for this node yet",
|
|
19572
19576
|
description: "Auto tune and the automatic shares use the latency table for it until it is benchmarked."
|
|
19573
19577
|
}) : /* @__PURE__ */ I(zo, {
|
|
19574
|
-
columns: Bb(
|
|
19575
|
-
rows:
|
|
19578
|
+
columns: Bb(_),
|
|
19579
|
+
rows: g.data.map((e) => Pb(e)),
|
|
19576
19580
|
rowKey: (e) => e.id,
|
|
19577
19581
|
minWidthPx: 900
|
|
19578
19582
|
})
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_benchmark_page__remoteEntry_js-
|
|
1
|
+
import "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_benchmark_page__remoteEntry_js-z4fW1IVB.mjs";
|
|
2
2
|
//#region \0virtual:mf-localSharedImportMap:__mfe_internal__addon_benchmark_page
|
|
3
3
|
var e = {
|
|
4
4
|
"@camstack/sdk": {
|
|
@@ -18,7 +18,7 @@ var e = {
|
|
|
18
18
|
},
|
|
19
19
|
"@camstack/types": {
|
|
20
20
|
name: "@camstack/types",
|
|
21
|
-
version: "1.2.
|
|
21
|
+
version: "1.2.339",
|
|
22
22
|
scope: ["default"],
|
|
23
23
|
loaded: !1,
|
|
24
24
|
from: "addon_benchmark_page",
|
|
@@ -33,7 +33,7 @@ var e = {
|
|
|
33
33
|
},
|
|
34
34
|
"@camstack/ui-library": {
|
|
35
35
|
name: "@camstack/ui-library",
|
|
36
|
-
version: "1.2.
|
|
36
|
+
version: "1.2.259",
|
|
37
37
|
scope: ["default"],
|
|
38
38
|
loaded: !1,
|
|
39
39
|
from: "addon_benchmark_page",
|
|
@@ -36,7 +36,7 @@ async function r() {
|
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
"@camstack/types": {
|
|
39
|
-
version: "1.2.
|
|
39
|
+
version: "1.2.339",
|
|
40
40
|
scope: "default",
|
|
41
41
|
shareConfig: {
|
|
42
42
|
singleton: !0,
|
|
@@ -81,7 +81,7 @@ async function r() {
|
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
83
|
"@camstack/ui-library": {
|
|
84
|
-
version: "1.2.
|
|
84
|
+
version: "1.2.259",
|
|
85
85
|
scope: "default",
|
|
86
86
|
shareConfig: {
|
|
87
87
|
singleton: !0,
|
package/dist/remoteEntry.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_benchmark_page__remoteEntry_js-
|
|
1
|
+
import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_benchmark_page__remoteEntry_js-z4fW1IVB.mjs";
|
|
2
2
|
export { t as get, e as init };
|
|
@@ -2753,7 +2753,7 @@ async function rr(e) {
|
|
|
2753
2753
|
}
|
|
2754
2754
|
}
|
|
2755
2755
|
async function ir() {
|
|
2756
|
-
return tr ||= rr(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_benchmark_page-
|
|
2756
|
+
return tr ||= rr(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_benchmark_page-B60KjO0s.mjs")).catch((e) => {
|
|
2757
2757
|
throw tr = void 0, e;
|
|
2758
2758
|
}), tr;
|
|
2759
2759
|
}
|
package/package.json
CHANGED