@camstack/addon-pipeline 1.2.617 → 1.2.619
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/audio-analyzer/index.js +3 -3
- package/dist/audio-analyzer/index.mjs +3 -3
- package/dist/{custom-model-catalog-Yu1sxc4A.js → custom-model-catalog-Cn0kRD3w.js} +2 -2
- package/dist/{custom-model-catalog-BT8HKaes.mjs → custom-model-catalog-CtwTRnkw.mjs} +2 -2
- package/dist/detection-pipeline/index.js +153 -6
- package/dist/detection-pipeline/index.mjs +153 -6
- package/dist/{dist-CGDR6bSg.js → dist-CKI0TPq_.js} +151 -83
- package/dist/{dist-OImyOnr3.mjs → dist-L2gIYUSW.mjs} +151 -83
- package/dist/{model-catalogs-Cj101H8x.mjs → model-catalogs-BEL5IntY.mjs} +1 -1
- package/dist/{model-catalogs-DV562sqJ.js → model-catalogs-CvjhHSYH.js} +1 -1
- package/dist/motion-wasm/index.js +1 -1
- package/dist/motion-wasm/index.mjs +1 -1
- package/dist/{node-DciF_ZRl.mjs → node-BTcllpO8.mjs} +1 -1
- package/dist/{node-CSFdbFlw.js → node-Cl9jPP-W.js} +1 -1
- package/dist/pipeline-runner/index.js +52 -20
- package/dist/pipeline-runner/index.mjs +52 -20
- package/dist/{process-memory-DjIov9TF.mjs → process-memory-BZysh_Ow.mjs} +1 -1
- package/dist/{process-memory-CJEkTpRM.js → process-memory-oCLpTRfC.js} +1 -1
- package/dist/recorder/index.js +2 -72
- package/dist/recorder/index.mjs +2 -72
- package/dist/{segment-demux-js-BsqG99U7.js → segment-demux-js-BYhSnRdH.js} +1 -1
- package/dist/{segment-demux-js-B5PU-E-G.mjs → segment-demux-js-CRLu3mac.mjs} +1 -1
- package/dist/stream-broker/_stub.js +2 -2
- package/dist/stream-broker/{_virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-BVGTBmAI.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-CUjRbxP-.mjs} +3 -3
- package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BaoBRCJs.mjs +26 -0
- package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-BRT-stIJ.mjs +26 -0
- package/dist/stream-broker/demux-worker-child.js +1 -1
- package/dist/stream-broker/demux-worker-child.mjs +1 -1
- package/dist/stream-broker/{hostInit-CMCfVKgd.mjs → hostInit-DXO96V0R.mjs} +3 -3
- package/dist/stream-broker/index.js +3 -3
- package/dist/stream-broker/index.mjs +3 -3
- package/dist/stream-broker/remoteEntry.js +1 -1
- package/package.json +1 -1
- package/python/inference_pool.py +2 -0
- package/python/pool_platform.py +35 -0
- package/python/test_pool_platform.py +48 -0
- package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BubwMH51.mjs +0 -26
- package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-TnEvW5tZ.mjs +0 -26
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_dist = require("../dist-
|
|
5
|
+
const require_dist = require("../dist-CKI0TPq_.js");
|
|
6
6
|
const require_lazy_sharp = require("../lazy-sharp-BuwKlQLR.js");
|
|
7
7
|
let node_fs = require("node:fs");
|
|
8
8
|
let node_path = require("node:path");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ct as evaluateZoneRules, Gt as motionDetectionCapability, Kn as hydrateSchema, Pn as BaseAddon, jn as DeviceType } from "../dist-
|
|
1
|
+
import { Ct as evaluateZoneRules, Gt as motionDetectionCapability, Kn as hydrateSchema, Pn as BaseAddon, jn as DeviceType } from "../dist-L2gIYUSW.mjs";
|
|
2
2
|
import { t as getSharp } from "../lazy-sharp-DXsqwpph.mjs";
|
|
3
3
|
import { readFileSync } from "node:fs";
|
|
4
4
|
import { join } from "node:path";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { En as buildFfmpegArgs, Mn as errMsg, Tn as Fmp4BoxSplitter, kn as isSoftwareDecode } from "./dist-
|
|
1
|
+
import { En as buildFfmpegArgs, Mn as errMsg, Tn as Fmp4BoxSplitter, kn as isSoftwareDecode } from "./dist-L2gIYUSW.mjs";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
import { realpathSync } from "node:fs";
|
|
4
4
|
import path from "node:path";
|
|
@@ -3,9 +3,9 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../chunk-emK7D4bc.js");
|
|
6
|
-
const require_dist = require("../dist-
|
|
7
|
-
const require_node = require("../node-
|
|
8
|
-
const require_custom_model_catalog = require("../custom-model-catalog-
|
|
6
|
+
const require_dist = require("../dist-CKI0TPq_.js");
|
|
7
|
+
const require_node = require("../node-Cl9jPP-W.js");
|
|
8
|
+
const require_custom_model_catalog = require("../custom-model-catalog-Cn0kRD3w.js");
|
|
9
9
|
const require_hub_hostname = require("../hub-hostname-DAJXlOgV.js");
|
|
10
10
|
const require_lazy_sharp = require("../lazy-sharp-BuwKlQLR.js");
|
|
11
11
|
const require_restream_intent = require("../restream-intent-7uDNqMKs.js");
|
|
@@ -6073,10 +6073,15 @@ var PipelineTimingSampler = class {
|
|
|
6073
6073
|
belowFloor = new BelowFloorAccumulator();
|
|
6074
6074
|
reportTimer = null;
|
|
6075
6075
|
log = null;
|
|
6076
|
+
electedDeviceKey = null;
|
|
6076
6077
|
runtimeInfo = {};
|
|
6077
6078
|
setLogger(logger) {
|
|
6078
6079
|
this.log = logger;
|
|
6079
6080
|
}
|
|
6081
|
+
/** Who answers "which device serves this camera" for the per-camera line. */
|
|
6082
|
+
setElectedDeviceKeyResolver(resolver) {
|
|
6083
|
+
this.electedDeviceKey = resolver;
|
|
6084
|
+
}
|
|
6080
6085
|
start() {
|
|
6081
6086
|
if (this.reportTimer) return;
|
|
6082
6087
|
this.reportTimer = setInterval(() => this.report(), REPORT_INTERVAL_MS);
|
|
@@ -6194,6 +6199,7 @@ var PipelineTimingSampler = class {
|
|
|
6194
6199
|
detections: totalDet,
|
|
6195
6200
|
belowFloor: this.belowFloor.drain(deviceId),
|
|
6196
6201
|
dropped,
|
|
6202
|
+
deviceKey: this.electedDeviceKey?.(deviceId) ?? null,
|
|
6197
6203
|
pipelineRuntime: rt.pipelineRuntime ?? null,
|
|
6198
6204
|
pipelineModels: rt.pipelineModels ?? null
|
|
6199
6205
|
}
|
|
@@ -8105,6 +8111,40 @@ function isUsable(bbox) {
|
|
|
8105
8111
|
return bbox.width > 0 && bbox.height > 0;
|
|
8106
8112
|
}
|
|
8107
8113
|
//#endregion
|
|
8114
|
+
//#region src/pipeline-runner/local-resident-engines.ts
|
|
8115
|
+
var NO_LOCAL_EXECUTOR = "no pipeline-executor provider in this process";
|
|
8116
|
+
/**
|
|
8117
|
+
* The provider is the co-tenant's own object, in this process; the guard
|
|
8118
|
+
* checks the one method this read calls (the type boundary of an
|
|
8119
|
+
* untyped registry lookup).
|
|
8120
|
+
*/
|
|
8121
|
+
function isLocalEngineLister(value) {
|
|
8122
|
+
return typeof value === "object" && value !== null && "listLoadedEngines" in value && typeof value.listLoadedEngines === "function";
|
|
8123
|
+
}
|
|
8124
|
+
async function readLocalResidentEngines(capabilities) {
|
|
8125
|
+
const provider = capabilities?.get("pipeline-executor");
|
|
8126
|
+
if (!isLocalEngineLister(provider)) return {
|
|
8127
|
+
kind: "failed",
|
|
8128
|
+
error: NO_LOCAL_EXECUTOR
|
|
8129
|
+
};
|
|
8130
|
+
try {
|
|
8131
|
+
return {
|
|
8132
|
+
kind: "read",
|
|
8133
|
+
engines: (await provider.listLoadedEngines()).map((r) => ({
|
|
8134
|
+
backend: r.engine.backend,
|
|
8135
|
+
...r.engine.device !== void 0 ? { device: r.engine.device } : {},
|
|
8136
|
+
kind: r.kind,
|
|
8137
|
+
modelsLoaded: r.modelsLoaded
|
|
8138
|
+
}))
|
|
8139
|
+
};
|
|
8140
|
+
} catch (err) {
|
|
8141
|
+
return {
|
|
8142
|
+
kind: "failed",
|
|
8143
|
+
error: require_dist.errMsg(err)
|
|
8144
|
+
};
|
|
8145
|
+
}
|
|
8146
|
+
}
|
|
8147
|
+
//#endregion
|
|
8108
8148
|
//#region src/pipeline-runner/runtime-labels.ts
|
|
8109
8149
|
/**
|
|
8110
8150
|
* `null` means the read FAILED; `[]` means nothing is resident. Both omit the
|
|
@@ -8295,8 +8335,8 @@ var TILE_CUT_DROP_LOG_INTERVAL_MS = 6e4;
|
|
|
8295
8335
|
* operator re-selects one or lazy provisioning completes — not per frame.
|
|
8296
8336
|
*/
|
|
8297
8337
|
var RUNTIME_INFO_REFRESH_MS = 3e5;
|
|
8298
|
-
/** Sentinel for "no
|
|
8299
|
-
var
|
|
8338
|
+
/** Sentinel for "no context yet" so it is one transition, not a per-refresh line. */
|
|
8339
|
+
var NO_CONTEXT_FAILURE = "no addon context";
|
|
8300
8340
|
/** How often a camera reports parcels that left without a release (D422). */
|
|
8301
8341
|
var PARKED_EVICTION_LOG_INTERVAL_MS = 6e4;
|
|
8302
8342
|
/**
|
|
@@ -9082,6 +9122,7 @@ var PipelineRunnerAddon = class PipelineRunnerAddon extends require_dist.BaseAdd
|
|
|
9082
9122
|
workerFootprintMb: decodeWorkerFootprintMb(this.nativeLease.current())
|
|
9083
9123
|
});
|
|
9084
9124
|
this.runner.timingSampler.setLogger(this.ctx.logger.child("timing"));
|
|
9125
|
+
this.runner.timingSampler.setElectedDeviceKeyResolver((deviceId) => this.attached.get(deviceId)?.config?.deviceKey ?? null);
|
|
9085
9126
|
this.refreshRuntimeInfo();
|
|
9086
9127
|
this.runtimeInfoTimer = setInterval(() => void this.refreshRuntimeInfo(), RUNTIME_INFO_REFRESH_MS);
|
|
9087
9128
|
this.runtimeInfoTimer.unref?.();
|
|
@@ -10759,24 +10800,15 @@ var PipelineRunnerAddon = class PipelineRunnerAddon extends require_dist.BaseAdd
|
|
|
10759
10800
|
* field in the line is the signal, and the hub writes `info`.
|
|
10760
10801
|
*/
|
|
10761
10802
|
async refreshRuntimeInfo() {
|
|
10762
|
-
const
|
|
10803
|
+
const ctx = this.ctxIfReady;
|
|
10763
10804
|
const sampler = this.runner?.timingSampler;
|
|
10764
|
-
if (!
|
|
10765
|
-
this.noteRuntimeInfoFailure(
|
|
10805
|
+
if (!ctx || sampler === void 0 || sampler === null) {
|
|
10806
|
+
this.noteRuntimeInfoFailure(NO_CONTEXT_FAILURE);
|
|
10766
10807
|
return;
|
|
10767
10808
|
}
|
|
10768
|
-
|
|
10769
|
-
|
|
10770
|
-
|
|
10771
|
-
engines = (await api.pipelineExecutor.listLoadedEngines.query()).map((r) => ({
|
|
10772
|
-
backend: r.engine.backend,
|
|
10773
|
-
...r.engine.device !== void 0 ? { device: r.engine.device } : {},
|
|
10774
|
-
kind: r.kind,
|
|
10775
|
-
modelsLoaded: r.modelsLoaded
|
|
10776
|
-
}));
|
|
10777
|
-
} catch (err) {
|
|
10778
|
-
failure = require_dist.errMsg(err);
|
|
10779
|
-
}
|
|
10809
|
+
const read = await readLocalResidentEngines(ctx.capabilities);
|
|
10810
|
+
const engines = read.kind === "read" ? read.engines : null;
|
|
10811
|
+
const failure = read.kind === "failed" ? read.error : null;
|
|
10780
10812
|
this.noteRuntimeInfoFailure(failure);
|
|
10781
10813
|
sampler.runtimeInfo = {
|
|
10782
10814
|
...sampler.runtimeInfo,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as NativeLeaseAdmissionSchema, Bn as createEvent, Dt as failureContributionCapability, E as FailureCounters, Ft as linkedStepOf, Hn as defineCustomActions, It as loadContributionCapability, M as NodeBenchRunnerInputSchema, Mn as errMsg, P as PIPELINE_RAMP, Pn as BaseAddon, Qn as nodePin, Qt as pipelineRunnerCapability, Rn as MODEL_FORMATS, V as ROOT_SUPPLIABLE_STEP_IDS, Vn as customAction, Xt as pickNativeLeaseOverride, Y as allowedSuppliedEffect, Yt as pickDetailCropConvention, _ as DEFAULT_DETAIL_CROP_CONVENTION, a as BackgroundRunRegistry, ar as boolean, cn as resolveModelBoundSetting, cr as literal, dn as resolveRootSupply, fn as rootSuppliesOf, gt as deriveRootFaceRefineRect, hr as EventCategory, ir as array, j as NativeLeaseSettingsSchema, lr as number, m as CROP_SUPPLY_SOURCES, mt as deriveDetailCropRect, nt as buildBenchStepTree, pr as string, rr as _enum, rt as cameraOwnsMotionViaSensor, sr as lazy, ur as object, x as DEVICE_RAMP, y as DEFAULT_NATIVE_LEASE_SETTINGS } from "../dist-
|
|
2
|
-
import { i as NO_COST_CLAIM, t as ChildCostRegistry } from "../node-
|
|
3
|
-
import { a as stepsForElectedPool, b as getStepDefinition, d as rootObjectGate, f as localFrameRegistry, h as resolveFrameViewGeometry, i as placeDetailStep, l as resolveDefaultDetectionModel, m as createSessionDecodeCoordinator, p as isSessionDecodeReadGone, s as resolveDeviceEngine, t as CustomModelCatalog, u as macroGateVerdict, y as getStep } from "../custom-model-catalog-
|
|
1
|
+
import { A as NativeLeaseAdmissionSchema, Bn as createEvent, Dt as failureContributionCapability, E as FailureCounters, Ft as linkedStepOf, Hn as defineCustomActions, It as loadContributionCapability, M as NodeBenchRunnerInputSchema, Mn as errMsg, P as PIPELINE_RAMP, Pn as BaseAddon, Qn as nodePin, Qt as pipelineRunnerCapability, Rn as MODEL_FORMATS, V as ROOT_SUPPLIABLE_STEP_IDS, Vn as customAction, Xt as pickNativeLeaseOverride, Y as allowedSuppliedEffect, Yt as pickDetailCropConvention, _ as DEFAULT_DETAIL_CROP_CONVENTION, a as BackgroundRunRegistry, ar as boolean, cn as resolveModelBoundSetting, cr as literal, dn as resolveRootSupply, fn as rootSuppliesOf, gt as deriveRootFaceRefineRect, hr as EventCategory, ir as array, j as NativeLeaseSettingsSchema, lr as number, m as CROP_SUPPLY_SOURCES, mt as deriveDetailCropRect, nt as buildBenchStepTree, pr as string, rr as _enum, rt as cameraOwnsMotionViaSensor, sr as lazy, ur as object, x as DEVICE_RAMP, y as DEFAULT_NATIVE_LEASE_SETTINGS } from "../dist-L2gIYUSW.mjs";
|
|
2
|
+
import { i as NO_COST_CLAIM, t as ChildCostRegistry } from "../node-BTcllpO8.mjs";
|
|
3
|
+
import { a as stepsForElectedPool, b as getStepDefinition, d as rootObjectGate, f as localFrameRegistry, h as resolveFrameViewGeometry, i as placeDetailStep, l as resolveDefaultDetectionModel, m as createSessionDecodeCoordinator, p as isSessionDecodeReadGone, s as resolveDeviceEngine, t as CustomModelCatalog, u as macroGateVerdict, y as getStep } from "../custom-model-catalog-CtwTRnkw.mjs";
|
|
4
4
|
import { t as resolveHubHostname } from "../hub-hostname-cCknRYKj.mjs";
|
|
5
5
|
import { t as getSharp } from "../lazy-sharp-DXsqwpph.mjs";
|
|
6
6
|
import { c as withDetectionIntent, o as preRollRequestOf, t as DETECTION_PRE_ROLL_REQUEST_MS } from "../restream-intent-DyGmLAU9.mjs";
|
|
@@ -6065,10 +6065,15 @@ var PipelineTimingSampler = class {
|
|
|
6065
6065
|
belowFloor = new BelowFloorAccumulator();
|
|
6066
6066
|
reportTimer = null;
|
|
6067
6067
|
log = null;
|
|
6068
|
+
electedDeviceKey = null;
|
|
6068
6069
|
runtimeInfo = {};
|
|
6069
6070
|
setLogger(logger) {
|
|
6070
6071
|
this.log = logger;
|
|
6071
6072
|
}
|
|
6073
|
+
/** Who answers "which device serves this camera" for the per-camera line. */
|
|
6074
|
+
setElectedDeviceKeyResolver(resolver) {
|
|
6075
|
+
this.electedDeviceKey = resolver;
|
|
6076
|
+
}
|
|
6072
6077
|
start() {
|
|
6073
6078
|
if (this.reportTimer) return;
|
|
6074
6079
|
this.reportTimer = setInterval(() => this.report(), REPORT_INTERVAL_MS);
|
|
@@ -6186,6 +6191,7 @@ var PipelineTimingSampler = class {
|
|
|
6186
6191
|
detections: totalDet,
|
|
6187
6192
|
belowFloor: this.belowFloor.drain(deviceId),
|
|
6188
6193
|
dropped,
|
|
6194
|
+
deviceKey: this.electedDeviceKey?.(deviceId) ?? null,
|
|
6189
6195
|
pipelineRuntime: rt.pipelineRuntime ?? null,
|
|
6190
6196
|
pipelineModels: rt.pipelineModels ?? null
|
|
6191
6197
|
}
|
|
@@ -8097,6 +8103,40 @@ function isUsable(bbox) {
|
|
|
8097
8103
|
return bbox.width > 0 && bbox.height > 0;
|
|
8098
8104
|
}
|
|
8099
8105
|
//#endregion
|
|
8106
|
+
//#region src/pipeline-runner/local-resident-engines.ts
|
|
8107
|
+
var NO_LOCAL_EXECUTOR = "no pipeline-executor provider in this process";
|
|
8108
|
+
/**
|
|
8109
|
+
* The provider is the co-tenant's own object, in this process; the guard
|
|
8110
|
+
* checks the one method this read calls (the type boundary of an
|
|
8111
|
+
* untyped registry lookup).
|
|
8112
|
+
*/
|
|
8113
|
+
function isLocalEngineLister(value) {
|
|
8114
|
+
return typeof value === "object" && value !== null && "listLoadedEngines" in value && typeof value.listLoadedEngines === "function";
|
|
8115
|
+
}
|
|
8116
|
+
async function readLocalResidentEngines(capabilities) {
|
|
8117
|
+
const provider = capabilities?.get("pipeline-executor");
|
|
8118
|
+
if (!isLocalEngineLister(provider)) return {
|
|
8119
|
+
kind: "failed",
|
|
8120
|
+
error: NO_LOCAL_EXECUTOR
|
|
8121
|
+
};
|
|
8122
|
+
try {
|
|
8123
|
+
return {
|
|
8124
|
+
kind: "read",
|
|
8125
|
+
engines: (await provider.listLoadedEngines()).map((r) => ({
|
|
8126
|
+
backend: r.engine.backend,
|
|
8127
|
+
...r.engine.device !== void 0 ? { device: r.engine.device } : {},
|
|
8128
|
+
kind: r.kind,
|
|
8129
|
+
modelsLoaded: r.modelsLoaded
|
|
8130
|
+
}))
|
|
8131
|
+
};
|
|
8132
|
+
} catch (err) {
|
|
8133
|
+
return {
|
|
8134
|
+
kind: "failed",
|
|
8135
|
+
error: errMsg(err)
|
|
8136
|
+
};
|
|
8137
|
+
}
|
|
8138
|
+
}
|
|
8139
|
+
//#endregion
|
|
8100
8140
|
//#region src/pipeline-runner/runtime-labels.ts
|
|
8101
8141
|
/**
|
|
8102
8142
|
* `null` means the read FAILED; `[]` means nothing is resident. Both omit the
|
|
@@ -8287,8 +8327,8 @@ var TILE_CUT_DROP_LOG_INTERVAL_MS = 6e4;
|
|
|
8287
8327
|
* operator re-selects one or lazy provisioning completes — not per frame.
|
|
8288
8328
|
*/
|
|
8289
8329
|
var RUNTIME_INFO_REFRESH_MS = 3e5;
|
|
8290
|
-
/** Sentinel for "no
|
|
8291
|
-
var
|
|
8330
|
+
/** Sentinel for "no context yet" so it is one transition, not a per-refresh line. */
|
|
8331
|
+
var NO_CONTEXT_FAILURE = "no addon context";
|
|
8292
8332
|
/** How often a camera reports parcels that left without a release (D422). */
|
|
8293
8333
|
var PARKED_EVICTION_LOG_INTERVAL_MS = 6e4;
|
|
8294
8334
|
/**
|
|
@@ -9074,6 +9114,7 @@ var PipelineRunnerAddon = class PipelineRunnerAddon extends BaseAddon {
|
|
|
9074
9114
|
workerFootprintMb: decodeWorkerFootprintMb(this.nativeLease.current())
|
|
9075
9115
|
});
|
|
9076
9116
|
this.runner.timingSampler.setLogger(this.ctx.logger.child("timing"));
|
|
9117
|
+
this.runner.timingSampler.setElectedDeviceKeyResolver((deviceId) => this.attached.get(deviceId)?.config?.deviceKey ?? null);
|
|
9077
9118
|
this.refreshRuntimeInfo();
|
|
9078
9119
|
this.runtimeInfoTimer = setInterval(() => void this.refreshRuntimeInfo(), RUNTIME_INFO_REFRESH_MS);
|
|
9079
9120
|
this.runtimeInfoTimer.unref?.();
|
|
@@ -10751,24 +10792,15 @@ var PipelineRunnerAddon = class PipelineRunnerAddon extends BaseAddon {
|
|
|
10751
10792
|
* field in the line is the signal, and the hub writes `info`.
|
|
10752
10793
|
*/
|
|
10753
10794
|
async refreshRuntimeInfo() {
|
|
10754
|
-
const
|
|
10795
|
+
const ctx = this.ctxIfReady;
|
|
10755
10796
|
const sampler = this.runner?.timingSampler;
|
|
10756
|
-
if (!
|
|
10757
|
-
this.noteRuntimeInfoFailure(
|
|
10797
|
+
if (!ctx || sampler === void 0 || sampler === null) {
|
|
10798
|
+
this.noteRuntimeInfoFailure(NO_CONTEXT_FAILURE);
|
|
10758
10799
|
return;
|
|
10759
10800
|
}
|
|
10760
|
-
|
|
10761
|
-
|
|
10762
|
-
|
|
10763
|
-
engines = (await api.pipelineExecutor.listLoadedEngines.query()).map((r) => ({
|
|
10764
|
-
backend: r.engine.backend,
|
|
10765
|
-
...r.engine.device !== void 0 ? { device: r.engine.device } : {},
|
|
10766
|
-
kind: r.kind,
|
|
10767
|
-
modelsLoaded: r.modelsLoaded
|
|
10768
|
-
}));
|
|
10769
|
-
} catch (err) {
|
|
10770
|
-
failure = errMsg(err);
|
|
10771
|
-
}
|
|
10801
|
+
const read = await readLocalResidentEngines(ctx.capabilities);
|
|
10802
|
+
const engines = read.kind === "read" ? read.engines : null;
|
|
10803
|
+
const failure = read.kind === "failed" ? read.error : null;
|
|
10772
10804
|
this.noteRuntimeInfoFailure(failure);
|
|
10773
10805
|
sampler.runtimeInfo = {
|
|
10774
10806
|
...sampler.runtimeInfo,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-emK7D4bc.js");
|
|
2
|
-
const require_dist = require("./dist-
|
|
2
|
+
const require_dist = require("./dist-CKI0TPq_.js");
|
|
3
3
|
let node_fs = require("node:fs");
|
|
4
4
|
node_fs = require_chunk.__toESM(node_fs);
|
|
5
5
|
let node_child_process = require("node:child_process");
|
package/dist/recorder/index.js
CHANGED
|
@@ -3,8 +3,8 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../chunk-emK7D4bc.js");
|
|
6
|
-
const require_dist = require("../dist-
|
|
7
|
-
const require_node = require("../node-
|
|
6
|
+
const require_dist = require("../dist-CKI0TPq_.js");
|
|
7
|
+
const require_node = require("../node-Cl9jPP-W.js");
|
|
8
8
|
const require_hub_hostname = require("../hub-hostname-DAJXlOgV.js");
|
|
9
9
|
const require_restream_intent = require("../restream-intent-7uDNqMKs.js");
|
|
10
10
|
let node_crypto = require("node:crypto");
|
|
@@ -6864,24 +6864,6 @@ Object.freeze({
|
|
|
6864
6864
|
"path": "powerState",
|
|
6865
6865
|
"valueType": "string"
|
|
6866
6866
|
},
|
|
6867
|
-
{
|
|
6868
|
-
"path": "saltLevel",
|
|
6869
|
-
"valueType": "enum",
|
|
6870
|
-
"enumValues": [
|
|
6871
|
-
"ok",
|
|
6872
|
-
"low",
|
|
6873
|
-
"empty"
|
|
6874
|
-
]
|
|
6875
|
-
},
|
|
6876
|
-
{
|
|
6877
|
-
"path": "rinseAidLevel",
|
|
6878
|
-
"valueType": "enum",
|
|
6879
|
-
"enumValues": [
|
|
6880
|
-
"ok",
|
|
6881
|
-
"low",
|
|
6882
|
-
"empty"
|
|
6883
|
-
]
|
|
6884
|
-
},
|
|
6885
6867
|
{
|
|
6886
6868
|
"path": "filterCleaningDue",
|
|
6887
6869
|
"valueType": "boolean"
|
|
@@ -7907,58 +7889,6 @@ Object.freeze({
|
|
|
7907
7889
|
"path": "fanSpeed",
|
|
7908
7890
|
"valueType": "string"
|
|
7909
7891
|
},
|
|
7910
|
-
{
|
|
7911
|
-
"path": "cleanWater.level",
|
|
7912
|
-
"valueType": "number"
|
|
7913
|
-
},
|
|
7914
|
-
{
|
|
7915
|
-
"path": "cleanWater.status",
|
|
7916
|
-
"valueType": "enum",
|
|
7917
|
-
"enumValues": [
|
|
7918
|
-
"ok",
|
|
7919
|
-
"low",
|
|
7920
|
-
"full"
|
|
7921
|
-
]
|
|
7922
|
-
},
|
|
7923
|
-
{
|
|
7924
|
-
"path": "dirtyWater.level",
|
|
7925
|
-
"valueType": "number"
|
|
7926
|
-
},
|
|
7927
|
-
{
|
|
7928
|
-
"path": "dirtyWater.status",
|
|
7929
|
-
"valueType": "enum",
|
|
7930
|
-
"enumValues": [
|
|
7931
|
-
"ok",
|
|
7932
|
-
"low",
|
|
7933
|
-
"full"
|
|
7934
|
-
]
|
|
7935
|
-
},
|
|
7936
|
-
{
|
|
7937
|
-
"path": "detergent.level",
|
|
7938
|
-
"valueType": "number"
|
|
7939
|
-
},
|
|
7940
|
-
{
|
|
7941
|
-
"path": "detergent.status",
|
|
7942
|
-
"valueType": "enum",
|
|
7943
|
-
"enumValues": [
|
|
7944
|
-
"ok",
|
|
7945
|
-
"low",
|
|
7946
|
-
"full"
|
|
7947
|
-
]
|
|
7948
|
-
},
|
|
7949
|
-
{
|
|
7950
|
-
"path": "dustBin.level",
|
|
7951
|
-
"valueType": "number"
|
|
7952
|
-
},
|
|
7953
|
-
{
|
|
7954
|
-
"path": "dustBin.status",
|
|
7955
|
-
"valueType": "enum",
|
|
7956
|
-
"enumValues": [
|
|
7957
|
-
"ok",
|
|
7958
|
-
"low",
|
|
7959
|
-
"full"
|
|
7960
|
-
]
|
|
7961
|
-
},
|
|
7962
7892
|
{
|
|
7963
7893
|
"path": "progressPercent",
|
|
7964
7894
|
"valueType": "number"
|
package/dist/recorder/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { An as DeviceFeature, B as RECORDING_SOURCE_CAMSTACK_ADDON, Bt as mayWriteToLocation, C as EVENT_PAD_MS, Dn as evaluateSensorEdge, Et as exportSubjectOf, G as VIDEOCLIPS_MAX_OFFER_BYTES, H as RecordingConfigSchema, Hn as defineCustomActions, Ht as migrateLegacyDeviceSignalConfig, It as loadContributionCapability, K as VISIT_MERGE_GAP_MS, Kn as hydrateSchema, Mn as errMsg$1, N as OpsLogEntrySchema, Nt as isFirstLevelMacroClass, Pn as BaseAddon, Qn as nodePin, R as RECORDING_EXPORT_MAX_READ_BYTES, S as EVENT_OWNER_TYPES, T as ExportRecordSchema, Tt as evictionPolicyOfLocation, U as RecordingSignalStatusSchema, Un as defineRecordKinds, Ut as modeMayWrite, Vn as customAction, Vt as memoizePinnedFfmpeg, Z as armRemovalReconcile, _n as storageOccupancyCapability, an as resolveCreateExportSubject, ar as boolean, at as clipExportFailure, dr as preprocess, en as recordingArchiveCapability, er as selectAssignedProfileSlots, fr as record, gn as storageEvictableCapability, hr as EventCategory, ht as deriveRecordingMode, ir as array, jn as DeviceType, kt as gbToBytes, lr as number, mn as startMoverUnderClearance, nn as recordingExportCapability, nr as userError, o as BatteryStatusSchema, ot as clipExportFailureOf, pr as string, pt as deriveBatteryPresence, rn as recordingSignalCapability, rr as _enum, s as CLIP_BROKER_PACED_RATES, sn as resolveLocationMode, tn as recordingCapability, tr as sleep$1, tt as batteryCapability, un as resolveRecordingProfiles, ur as object, v as DEFAULT_EVENTS_BAND_BUFFER_SEC, vt as deviceRemovalHookCapability, wt as evictionPolicyForMode, xn as videoclipsCapability, yn as stripRetiredBandPreBufferSec, z as RECORDING_SOURCE_CAMSTACK, zt as mayReadLocation } from "../dist-
|
|
2
|
-
import { i as NO_COST_CLAIM, o as physicalRootOf, t as ChildCostRegistry } from "../node-
|
|
1
|
+
import { An as DeviceFeature, B as RECORDING_SOURCE_CAMSTACK_ADDON, Bt as mayWriteToLocation, C as EVENT_PAD_MS, Dn as evaluateSensorEdge, Et as exportSubjectOf, G as VIDEOCLIPS_MAX_OFFER_BYTES, H as RecordingConfigSchema, Hn as defineCustomActions, Ht as migrateLegacyDeviceSignalConfig, It as loadContributionCapability, K as VISIT_MERGE_GAP_MS, Kn as hydrateSchema, Mn as errMsg$1, N as OpsLogEntrySchema, Nt as isFirstLevelMacroClass, Pn as BaseAddon, Qn as nodePin, R as RECORDING_EXPORT_MAX_READ_BYTES, S as EVENT_OWNER_TYPES, T as ExportRecordSchema, Tt as evictionPolicyOfLocation, U as RecordingSignalStatusSchema, Un as defineRecordKinds, Ut as modeMayWrite, Vn as customAction, Vt as memoizePinnedFfmpeg, Z as armRemovalReconcile, _n as storageOccupancyCapability, an as resolveCreateExportSubject, ar as boolean, at as clipExportFailure, dr as preprocess, en as recordingArchiveCapability, er as selectAssignedProfileSlots, fr as record, gn as storageEvictableCapability, hr as EventCategory, ht as deriveRecordingMode, ir as array, jn as DeviceType, kt as gbToBytes, lr as number, mn as startMoverUnderClearance, nn as recordingExportCapability, nr as userError, o as BatteryStatusSchema, ot as clipExportFailureOf, pr as string, pt as deriveBatteryPresence, rn as recordingSignalCapability, rr as _enum, s as CLIP_BROKER_PACED_RATES, sn as resolveLocationMode, tn as recordingCapability, tr as sleep$1, tt as batteryCapability, un as resolveRecordingProfiles, ur as object, v as DEFAULT_EVENTS_BAND_BUFFER_SEC, vt as deviceRemovalHookCapability, wt as evictionPolicyForMode, xn as videoclipsCapability, yn as stripRetiredBandPreBufferSec, z as RECORDING_SOURCE_CAMSTACK, zt as mayReadLocation } from "../dist-L2gIYUSW.mjs";
|
|
2
|
+
import { i as NO_COST_CLAIM, o as physicalRootOf, t as ChildCostRegistry } from "../node-BTcllpO8.mjs";
|
|
3
3
|
import { t as resolveHubHostname } from "../hub-hostname-cCknRYKj.mjs";
|
|
4
4
|
import { d as PREBUFFER_MAX_MS, l as withRecordingIntent, r as RECORDING_PRE_ROLL_REQUEST_MS } from "../restream-intent-DyGmLAU9.mjs";
|
|
5
5
|
import { randomUUID } from "node:crypto";
|
|
@@ -6856,24 +6856,6 @@ Object.freeze({
|
|
|
6856
6856
|
"path": "powerState",
|
|
6857
6857
|
"valueType": "string"
|
|
6858
6858
|
},
|
|
6859
|
-
{
|
|
6860
|
-
"path": "saltLevel",
|
|
6861
|
-
"valueType": "enum",
|
|
6862
|
-
"enumValues": [
|
|
6863
|
-
"ok",
|
|
6864
|
-
"low",
|
|
6865
|
-
"empty"
|
|
6866
|
-
]
|
|
6867
|
-
},
|
|
6868
|
-
{
|
|
6869
|
-
"path": "rinseAidLevel",
|
|
6870
|
-
"valueType": "enum",
|
|
6871
|
-
"enumValues": [
|
|
6872
|
-
"ok",
|
|
6873
|
-
"low",
|
|
6874
|
-
"empty"
|
|
6875
|
-
]
|
|
6876
|
-
},
|
|
6877
6859
|
{
|
|
6878
6860
|
"path": "filterCleaningDue",
|
|
6879
6861
|
"valueType": "boolean"
|
|
@@ -7899,58 +7881,6 @@ Object.freeze({
|
|
|
7899
7881
|
"path": "fanSpeed",
|
|
7900
7882
|
"valueType": "string"
|
|
7901
7883
|
},
|
|
7902
|
-
{
|
|
7903
|
-
"path": "cleanWater.level",
|
|
7904
|
-
"valueType": "number"
|
|
7905
|
-
},
|
|
7906
|
-
{
|
|
7907
|
-
"path": "cleanWater.status",
|
|
7908
|
-
"valueType": "enum",
|
|
7909
|
-
"enumValues": [
|
|
7910
|
-
"ok",
|
|
7911
|
-
"low",
|
|
7912
|
-
"full"
|
|
7913
|
-
]
|
|
7914
|
-
},
|
|
7915
|
-
{
|
|
7916
|
-
"path": "dirtyWater.level",
|
|
7917
|
-
"valueType": "number"
|
|
7918
|
-
},
|
|
7919
|
-
{
|
|
7920
|
-
"path": "dirtyWater.status",
|
|
7921
|
-
"valueType": "enum",
|
|
7922
|
-
"enumValues": [
|
|
7923
|
-
"ok",
|
|
7924
|
-
"low",
|
|
7925
|
-
"full"
|
|
7926
|
-
]
|
|
7927
|
-
},
|
|
7928
|
-
{
|
|
7929
|
-
"path": "detergent.level",
|
|
7930
|
-
"valueType": "number"
|
|
7931
|
-
},
|
|
7932
|
-
{
|
|
7933
|
-
"path": "detergent.status",
|
|
7934
|
-
"valueType": "enum",
|
|
7935
|
-
"enumValues": [
|
|
7936
|
-
"ok",
|
|
7937
|
-
"low",
|
|
7938
|
-
"full"
|
|
7939
|
-
]
|
|
7940
|
-
},
|
|
7941
|
-
{
|
|
7942
|
-
"path": "dustBin.level",
|
|
7943
|
-
"valueType": "number"
|
|
7944
|
-
},
|
|
7945
|
-
{
|
|
7946
|
-
"path": "dustBin.status",
|
|
7947
|
-
"valueType": "enum",
|
|
7948
|
-
"enumValues": [
|
|
7949
|
-
"ok",
|
|
7950
|
-
"low",
|
|
7951
|
-
"full"
|
|
7952
|
-
]
|
|
7953
|
-
},
|
|
7954
7884
|
{
|
|
7955
7885
|
"path": "progressPercent",
|
|
7956
7886
|
"valueType": "number"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-emK7D4bc.js");
|
|
2
|
-
const require_dist = require("./dist-
|
|
2
|
+
const require_dist = require("./dist-CKI0TPq_.js");
|
|
3
3
|
let node_child_process = require("node:child_process");
|
|
4
4
|
//#region src/stream-broker/recorded/avcc-annexb.ts
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as __toESM, t as __commonJSMin } from "./chunk-DnnnRqeS.mjs";
|
|
2
|
-
import { Mn as errMsg } from "./dist-
|
|
2
|
+
import { Mn as errMsg } from "./dist-L2gIYUSW.mjs";
|
|
3
3
|
import { spawn } from "node:child_process";
|
|
4
4
|
//#region src/stream-broker/recorded/avcc-annexb.ts
|
|
5
5
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, f as r, i, l as a, m as o, n as s, o as c, p as l, r as u, s as d, t as f, u as p } from "./_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-
|
|
1
|
+
import { a as e, c as t, d as n, f as r, i, l as a, m as o, n as s, o as c, p as l, r as u, s as d, t as f, u as p } from "./_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-BRT-stIJ.mjs";
|
|
2
2
|
import { a as m, i as h, n as g, o as _, r as v, t as y } from "./_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare__react__loadShare__.js-C9j-2lBe.mjs";
|
|
3
3
|
import { n as b, r as x, t as S } from "./_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-XO0-Pyu6.mjs";
|
|
4
|
-
import { t as C } from "./_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-
|
|
4
|
+
import { t as C } from "./_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BaoBRCJs.mjs";
|
|
5
5
|
import { n as w, t as T } from "./_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-BO7TIbJV.mjs";
|
|
6
6
|
//#region ../../node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.js
|
|
7
7
|
var E = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), D = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), O = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), k = (e) => {
|
|
@@ -3,7 +3,7 @@ import "./dist-CYZr2fwk.mjs";
|
|
|
3
3
|
var e = {
|
|
4
4
|
"@camstack/sdk": {
|
|
5
5
|
name: "@camstack/sdk",
|
|
6
|
-
version: "1.2.
|
|
6
|
+
version: "1.2.150",
|
|
7
7
|
scope: ["default"],
|
|
8
8
|
loaded: !1,
|
|
9
9
|
from: "addon_stream_broker_widgets",
|
|
@@ -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.401",
|
|
22
22
|
scope: ["default"],
|
|
23
23
|
loaded: !1,
|
|
24
24
|
from: "addon_stream_broker_widgets",
|
|
@@ -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.317",
|
|
37
37
|
scope: ["default"],
|
|
38
38
|
loaded: !1,
|
|
39
39
|
from: "addon_stream_broker_widgets",
|