@camstack/addon-pipeline 1.2.189 → 1.2.190
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 +2 -2
- package/dist/audio-analyzer/index.mjs +2 -2
- package/dist/detection-pipeline/index.js +5 -5
- package/dist/detection-pipeline/index.mjs +4 -4
- package/dist/{dist-CKr6Q6Qu.js → dist-C31OZkZP.js} +41 -1
- package/dist/{dist-CxYG8IUX.mjs → dist-CZkzc0WB.mjs} +41 -1
- package/dist/{lazy-sharp-D-HdRPo5.js → lazy-sharp-DhHuLuQf.js} +1 -1
- package/dist/{local-frame-registry-DP5yyEWE.mjs → local-frame-registry-B8_L3v0O.mjs} +1 -1
- package/dist/{local-frame-registry-B4Bd4tnU.js → local-frame-registry-CkIaPLcW.js} +1 -1
- package/dist/motion-wasm/index.js +2 -2
- package/dist/motion-wasm/index.mjs +1 -1
- package/dist/{node-CmRTB9W4.js → node-CIpenwbm.js} +1 -1
- package/dist/{node-DhccO0of.mjs → node-kSXNMrbg.mjs} +1 -1
- package/dist/pipeline-runner/index.js +64 -34
- package/dist/pipeline-runner/index.mjs +63 -33
- package/dist/{process-memory-BW7XFoPY.js → process-memory-BQTHtzan.js} +1 -1
- package/dist/{process-memory-L6mHI28P.mjs → process-memory-CphvVq1H.mjs} +1 -1
- package/dist/recorder/index.js +2 -2
- package/dist/recorder/index.mjs +2 -2
- package/dist/{segment-demux-js-D2zZJQU4.mjs → segment-demux-js-AELUnBau.mjs} +1 -1
- package/dist/{segment-demux-js-BTSHcSwg.js → segment-demux-js-CYjZAotp.js} +1 -1
- package/dist/session-decode/decode-worker-child.js +2 -2
- package/dist/session-decode/decode-worker-child.mjs +1 -1
- package/dist/stream-broker/_stub.js +2 -2
- package/dist/stream-broker/{_virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-BttlkJ1n.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-BA9MaopY.mjs} +3 -3
- package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-CDtnQr69.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-BOR2heMq.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-BlXTzO4s.mjs → hostInit-0htGr-yV.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/dist/{worker-protocol-C8ZBUm08.js → worker-protocol-BSgTKhW7.js} +1 -1
- package/dist/{worker-protocol-Br-omhiX.mjs → worker-protocol-Bcy8Ti5P.mjs} +1 -1
- package/package.json +1 -1
- package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BFlcZNb6.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-ZzdpzejS.mjs +0 -26
- package/python/__pycache__/inference_pool.cpython-312.pyc +0 -0
- package/python/__pycache__/inference_pool.cpython-313.pyc +0 -0
- package/python/__pycache__/inference_pool.cpython-314.pyc +0 -0
- package/python/__pycache__/test_inference_pool_backpressure.cpython-312-pytest-9.1.1.pyc +0 -0
- package/python/__pycache__/test_inference_pool_backpressure.cpython-312.pyc +0 -0
- package/python/__pycache__/test_inference_pool_backpressure.cpython-314.pyc +0 -0
- package/python/__pycache__/test_inference_pool_coreml_cache.cpython-312-pytest-9.1.1.pyc +0 -0
- package/python/__pycache__/test_inference_pool_coreml_cache.cpython-312.pyc +0 -0
- package/python/__pycache__/test_inference_pool_coreml_cache.cpython-314.pyc +0 -0
- package/python/__pycache__/test_inference_pool_deadline.cpython-314.pyc +0 -0
- package/python/__pycache__/test_inference_pool_device_selection.cpython-312-pytest-9.1.1.pyc +0 -0
- package/python/__pycache__/test_inference_pool_device_selection.cpython-312.pyc +0 -0
- package/python/__pycache__/test_inference_pool_device_selection.cpython-314.pyc +0 -0
- package/python/__pycache__/test_inference_pool_layout.cpython-312-pytest-9.1.1.pyc +0 -0
- package/python/__pycache__/test_inference_pool_layout.cpython-314.pyc +0 -0
- package/python/__pycache__/test_inference_pool_memstats.cpython-312-pytest-9.1.1.pyc +0 -0
- package/python/__pycache__/test_inference_pool_memstats.cpython-312.pyc +0 -0
- package/python/__pycache__/test_inference_pool_memstats.cpython-314.pyc +0 -0
- package/python/__pycache__/test_inference_pool_ov_ppp.cpython-312-pytest-9.1.1.pyc +0 -0
- package/python/__pycache__/test_inference_pool_ov_ppp.cpython-312.pyc +0 -0
- package/python/__pycache__/test_inference_pool_ov_ppp.cpython-314.pyc +0 -0
- package/python/__pycache__/test_inference_pool_preprocess.cpython-312-pytest-9.1.1.pyc +0 -0
- package/python/__pycache__/test_inference_pool_preprocess.cpython-314.pyc +0 -0
- package/python/__pycache__/test_inference_pool_reconfigure.cpython-314.pyc +0 -0
- package/python/__pycache__/test_inference_pool_static_batch.cpython-312-pytest-9.1.1.pyc +0 -0
- package/python/__pycache__/test_inference_pool_static_batch.cpython-312.pyc +0 -0
- package/python/__pycache__/test_inference_pool_static_batch.cpython-314.pyc +0 -0
- package/python/__pycache__/yamnet_audio.cpython-314.pyc +0 -0
- package/python/postprocessors/__pycache__/__init__.cpython-312.pyc +0 -0
- package/python/postprocessors/__pycache__/__init__.cpython-313.pyc +0 -0
- package/python/postprocessors/__pycache__/__init__.cpython-314.pyc +0 -0
- package/python/postprocessors/__pycache__/_safety.cpython-313.pyc +0 -0
- package/python/postprocessors/__pycache__/arcface.cpython-312.pyc +0 -0
- package/python/postprocessors/__pycache__/arcface.cpython-313.pyc +0 -0
- package/python/postprocessors/__pycache__/arcface.cpython-314.pyc +0 -0
- package/python/postprocessors/__pycache__/clip.cpython-312.pyc +0 -0
- package/python/postprocessors/__pycache__/clip.cpython-313.pyc +0 -0
- package/python/postprocessors/__pycache__/clip.cpython-314.pyc +0 -0
- package/python/postprocessors/__pycache__/ctc.cpython-312.pyc +0 -0
- package/python/postprocessors/__pycache__/ctc.cpython-313.pyc +0 -0
- package/python/postprocessors/__pycache__/ctc.cpython-314.pyc +0 -0
- package/python/postprocessors/__pycache__/plate_slots.cpython-312.pyc +0 -0
- package/python/postprocessors/__pycache__/plate_slots.cpython-314.pyc +0 -0
- package/python/postprocessors/__pycache__/rfdetr.cpython-312.pyc +0 -0
- package/python/postprocessors/__pycache__/rfdetr.cpython-314.pyc +0 -0
- package/python/postprocessors/__pycache__/saliency.cpython-312.pyc +0 -0
- package/python/postprocessors/__pycache__/saliency.cpython-313.pyc +0 -0
- package/python/postprocessors/__pycache__/saliency.cpython-314.pyc +0 -0
- package/python/postprocessors/__pycache__/scrfd.cpython-312.pyc +0 -0
- package/python/postprocessors/__pycache__/scrfd.cpython-313.pyc +0 -0
- package/python/postprocessors/__pycache__/scrfd.cpython-314.pyc +0 -0
- package/python/postprocessors/__pycache__/softmax.cpython-312.pyc +0 -0
- package/python/postprocessors/__pycache__/softmax.cpython-313.pyc +0 -0
- package/python/postprocessors/__pycache__/softmax.cpython-314.pyc +0 -0
- package/python/postprocessors/__pycache__/ssd.cpython-312.pyc +0 -0
- package/python/postprocessors/__pycache__/ssd.cpython-313.pyc +0 -0
- package/python/postprocessors/__pycache__/ssd.cpython-314.pyc +0 -0
- package/python/postprocessors/__pycache__/test_clip.cpython-312-pytest-9.1.1.pyc +0 -0
- package/python/postprocessors/__pycache__/test_clip.cpython-313-pytest-9.1.1.pyc +0 -0
- package/python/postprocessors/__pycache__/test_ctc.cpython-312-pytest-9.1.1.pyc +0 -0
- package/python/postprocessors/__pycache__/test_ctc.cpython-312.pyc +0 -0
- package/python/postprocessors/__pycache__/test_ctc.cpython-313-pytest-9.1.1.pyc +0 -0
- package/python/postprocessors/__pycache__/test_ctc.cpython-313.pyc +0 -0
- package/python/postprocessors/__pycache__/test_ctc.cpython-314.pyc +0 -0
- package/python/postprocessors/__pycache__/test_plate_slots.cpython-312-pytest-9.1.1.pyc +0 -0
- package/python/postprocessors/__pycache__/test_rfdetr.cpython-312-pytest-9.1.1.pyc +0 -0
- package/python/postprocessors/__pycache__/test_rfdetr.cpython-314.pyc +0 -0
- package/python/postprocessors/__pycache__/test_saliency.cpython-312-pytest-9.1.1.pyc +0 -0
- package/python/postprocessors/__pycache__/test_saliency.cpython-313-pytest-9.1.1.pyc +0 -0
- package/python/postprocessors/__pycache__/test_saliency.cpython-314.pyc +0 -0
- package/python/postprocessors/__pycache__/test_softmax.cpython-312-pytest-9.1.1.pyc +0 -0
- package/python/postprocessors/__pycache__/test_softmax.cpython-314.pyc +0 -0
- package/python/postprocessors/__pycache__/test_yolo_nms.cpython-312-pytest-9.1.1.pyc +0 -0
- package/python/postprocessors/__pycache__/test_yolo_nms.cpython-314.pyc +0 -0
- package/python/postprocessors/__pycache__/test_yolo_nms.cpython-39.pyc +0 -0
- package/python/postprocessors/__pycache__/test_yolonas.cpython-312-pytest-9.1.1.pyc +0 -0
- package/python/postprocessors/__pycache__/yamnet.cpython-312.pyc +0 -0
- package/python/postprocessors/__pycache__/yamnet.cpython-313.pyc +0 -0
- package/python/postprocessors/__pycache__/yamnet.cpython-314.pyc +0 -0
- package/python/postprocessors/__pycache__/yolo.cpython-312.pyc +0 -0
- package/python/postprocessors/__pycache__/yolo.cpython-313.pyc +0 -0
- package/python/postprocessors/__pycache__/yolo.cpython-314.pyc +0 -0
- package/python/postprocessors/__pycache__/yolo.cpython-39.pyc +0 -0
- package/python/postprocessors/__pycache__/yolo_seg.cpython-312.pyc +0 -0
- package/python/postprocessors/__pycache__/yolo_seg.cpython-313.pyc +0 -0
- package/python/postprocessors/__pycache__/yolo_seg.cpython-314.pyc +0 -0
- package/python/postprocessors/__pycache__/yolonas.cpython-312.pyc +0 -0
- package/python/postprocessors/__pycache__/yolonas.cpython-314.pyc +0 -0
|
@@ -2,8 +2,8 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_dist = require("../dist-
|
|
6
|
-
const require_process_memory = require("../process-memory-
|
|
5
|
+
const require_dist = require("../dist-C31OZkZP.js");
|
|
6
|
+
const require_process_memory = require("../process-memory-BQTHtzan.js");
|
|
7
7
|
let node_fs = require("node:fs");
|
|
8
8
|
node_fs = require_dist.__toESM(node_fs);
|
|
9
9
|
let node_path = require("node:path");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as __require } from "../chunk-DnnnRqeS.mjs";
|
|
2
|
-
import { A as audioAnalysisCapability, It as hydrateSchema, S as PoolMemoryWatchdog, _t as resolvePoolMemoryPolicy, j as audioAnalyzerCapability, jt as BaseAddon, n as AUDIO_BACKEND_CHOICES, nt as mapAudioLabelToMacro, s as DEFAULT_AUDIO_ANALYZER_CONFIG, v as HF_BASE_URL, wt as errMsg } from "../dist-
|
|
3
|
-
import { n as pickNodePlatformArch, t as readProcessMemory } from "../process-memory-
|
|
2
|
+
import { A as audioAnalysisCapability, It as hydrateSchema, S as PoolMemoryWatchdog, _t as resolvePoolMemoryPolicy, j as audioAnalyzerCapability, jt as BaseAddon, n as AUDIO_BACKEND_CHOICES, nt as mapAudioLabelToMacro, s as DEFAULT_AUDIO_ANALYZER_CONFIG, v as HF_BASE_URL, wt as errMsg } from "../dist-CZkzc0WB.mjs";
|
|
3
|
+
import { n as pickNodePlatformArch, t as readProcessMemory } from "../process-memory-CphvVq1H.mjs";
|
|
4
4
|
import * as fs from "node:fs";
|
|
5
5
|
import * as path$1 from "node:path";
|
|
6
6
|
import { downloadFile } from "@camstack/system/addon-utils";
|
|
@@ -2,12 +2,12 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_dist = require("../dist-
|
|
6
|
-
const require_node = require("../node-
|
|
7
|
-
const require_local_frame_registry = require("../local-frame-registry-
|
|
8
|
-
const require_lazy_sharp = require("../lazy-sharp-
|
|
5
|
+
const require_dist = require("../dist-C31OZkZP.js");
|
|
6
|
+
const require_node = require("../node-CIpenwbm.js");
|
|
7
|
+
const require_local_frame_registry = require("../local-frame-registry-CkIaPLcW.js");
|
|
8
|
+
const require_lazy_sharp = require("../lazy-sharp-DhHuLuQf.js");
|
|
9
9
|
const require_event_loop_stall_monitor = require("../event-loop-stall-monitor-DaUBcb13.js");
|
|
10
|
-
const require_process_memory = require("../process-memory-
|
|
10
|
+
const require_process_memory = require("../process-memory-BQTHtzan.js");
|
|
11
11
|
let node_fs = require("node:fs");
|
|
12
12
|
node_fs = require_dist.__toESM(node_fs);
|
|
13
13
|
let node_path = require("node:path");
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { n as __require } from "../chunk-DnnnRqeS.mjs";
|
|
2
|
-
import { Bt as nodePin, Ft as createEvent, It as hydrateSchema, Kt as array, O as YAMNET_TO_MACRO, Q as inferModelProvider, Qt as object, S as PoolMemoryWatchdog, St as supportedRuntimes$1, Vt as parseJsonUnknown, W as detectionPipelineCapability, Wt as sleep, Y as evaluateZoneRules, _t as resolvePoolMemoryPolicy, at as overlayClusterStepSettings, c as DEFAULT_CLUSTER_STEP_MODELS, ct as pickClusterStepSettings, dt as pipelineExecutorCapability, en as string, et as loadContributionCapability, ht as resolveClusterStepModelId, jt as BaseAddon, l as DEFAULT_CLUSTER_STEP_SETTINGS, m as DEVICE_BACKEND_TO_FORMAT, nn as EventCategory, q as enumerateInferenceDevices, st as pickClusterStepModels, t as APPLE_SA_TO_MACRO, tn as union, wt as errMsg, yt as runtimeDevices$1, z as defaultDeviceFor$1 } from "../dist-
|
|
3
|
-
import { a as readProcessCost } from "../node-
|
|
4
|
-
import { a as getDefaultModelForFormat, c as getStepDefinition, i as ALL_STEPS, l as resolveModelForFormat, o as getDefaultModelForFormatFromDef, r as ALL_PIPELINE_STEPS, s as getStep, t as localFrameRegistry, u as landmarkPrecisionVerdict } from "../local-frame-registry-
|
|
2
|
+
import { Bt as nodePin, Ft as createEvent, It as hydrateSchema, Kt as array, O as YAMNET_TO_MACRO, Q as inferModelProvider, Qt as object, S as PoolMemoryWatchdog, St as supportedRuntimes$1, Vt as parseJsonUnknown, W as detectionPipelineCapability, Wt as sleep, Y as evaluateZoneRules, _t as resolvePoolMemoryPolicy, at as overlayClusterStepSettings, c as DEFAULT_CLUSTER_STEP_MODELS, ct as pickClusterStepSettings, dt as pipelineExecutorCapability, en as string, et as loadContributionCapability, ht as resolveClusterStepModelId, jt as BaseAddon, l as DEFAULT_CLUSTER_STEP_SETTINGS, m as DEVICE_BACKEND_TO_FORMAT, nn as EventCategory, q as enumerateInferenceDevices, st as pickClusterStepModels, t as APPLE_SA_TO_MACRO, tn as union, wt as errMsg, yt as runtimeDevices$1, z as defaultDeviceFor$1 } from "../dist-CZkzc0WB.mjs";
|
|
3
|
+
import { a as readProcessCost } from "../node-kSXNMrbg.mjs";
|
|
4
|
+
import { a as getDefaultModelForFormat, c as getStepDefinition, i as ALL_STEPS, l as resolveModelForFormat, o as getDefaultModelForFormatFromDef, r as ALL_PIPELINE_STEPS, s as getStep, t as localFrameRegistry, u as landmarkPrecisionVerdict } from "../local-frame-registry-B8_L3v0O.mjs";
|
|
5
5
|
import { t as getSharp } from "../lazy-sharp-DXsqwpph.mjs";
|
|
6
6
|
import { n as startEventLoopStallMonitor } from "../event-loop-stall-monitor-DXLNBMkY.mjs";
|
|
7
|
-
import { n as pickNodePlatformArch, t as readProcessMemory } from "../process-memory-
|
|
7
|
+
import { n as pickNodePlatformArch, t as readProcessMemory } from "../process-memory-CphvVq1H.mjs";
|
|
8
8
|
import * as fs from "node:fs";
|
|
9
9
|
import * as path$1 from "node:path";
|
|
10
10
|
import { dirname, join } from "node:path";
|
|
@@ -22,7 +22,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
22
22
|
}) : target, mod));
|
|
23
23
|
//#endregion
|
|
24
24
|
let node_crypto = require("node:crypto");
|
|
25
|
-
//#region ../types/dist/event-category-
|
|
25
|
+
//#region ../types/dist/event-category-zAv7pMUz.mjs
|
|
26
26
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
27
27
|
EventCategory["SystemBoot"] = "system.boot";
|
|
28
28
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -394,6 +394,13 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
394
394
|
*/
|
|
395
395
|
EventCategory["BatteryOnStatusChanged"] = "battery.onStatusChanged";
|
|
396
396
|
/**
|
|
397
|
+
* Cap event fired by every device that registers the `network-link`
|
|
398
|
+
* capability. Mirrors the cap definition's `onStatusChanged`. Carries
|
|
399
|
+
* `{ deviceId, status: NetworkLinkStatus }` — a link switch or a signal
|
|
400
|
+
* reading that moved.
|
|
401
|
+
*/
|
|
402
|
+
EventCategory["NetworkLinkOnStatusChanged"] = "network-link.onStatusChanged";
|
|
403
|
+
/**
|
|
397
404
|
* Emitted by the battery cap provider WHEN `wakeForStream` enters the
|
|
398
405
|
* "wake in progress" window — between the Baichuan wake-up issue and
|
|
399
406
|
* the camera's first dialed-back RTP packet. The stream-broker
|
|
@@ -26013,6 +26020,39 @@ onStatusChanged: { data: object({
|
|
|
26013
26020
|
* whether persisting is worth a SQLite commit. */
|
|
26014
26021
|
volatileStateFields: ["lastUpdated"]
|
|
26015
26022
|
};
|
|
26023
|
+
/**
|
|
26024
|
+
* Network-link snapshot. Same shape for every provider (a Reolink wifi
|
|
26025
|
+
* camera, a Home Assistant device with a signal-strength sensor, a Tapo
|
|
26026
|
+
* plug): one slice under `device.runtimeState['network-link']`, one badge,
|
|
26027
|
+
* one Home Assistant projection.
|
|
26028
|
+
*/
|
|
26029
|
+
var NetworkLinkStatusSchema = object({
|
|
26030
|
+
/** The link the device is on. `'unknown'` = not read yet, not "no link". */
|
|
26031
|
+
type: _enum([
|
|
26032
|
+
"wifi",
|
|
26033
|
+
"ethernet",
|
|
26034
|
+
"cellular",
|
|
26035
|
+
"unknown"
|
|
26036
|
+
]),
|
|
26037
|
+
/**
|
|
26038
|
+
* Link quality, 0..100 inclusive, normalised by the provider from whatever
|
|
26039
|
+
* the firmware reports (bars, RSSI, a vendor scale). **`null` means NOT
|
|
26040
|
+
* KNOWN or NOT APPLICABLE** — a wired link has no signal, and a wireless
|
|
26041
|
+
* one whose reading has not landed must not be drawn at 0 %. Consumers
|
|
26042
|
+
* SKIP a null rather than coerce it.
|
|
26043
|
+
*/
|
|
26044
|
+
signalPercent: number().min(0).max(100).nullable(),
|
|
26045
|
+
/** Raw received signal strength in dBm, when the firmware reports one. */
|
|
26046
|
+
rssiDbm: number().optional(),
|
|
26047
|
+
/** Network name of a wireless link, when the firmware reports it. */
|
|
26048
|
+
ssid: string().optional(),
|
|
26049
|
+
/** Ms epoch of the last observation. Lets consumers reason about freshness. */
|
|
26050
|
+
lastUpdated: number()
|
|
26051
|
+
});
|
|
26052
|
+
DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.Light, DeviceType.Lock, DeviceType.Siren, object({
|
|
26053
|
+
deviceId: number(),
|
|
26054
|
+
status: NetworkLinkStatusSchema
|
|
26055
|
+
});
|
|
26016
26056
|
object({
|
|
26017
26057
|
on: boolean(),
|
|
26018
26058
|
/** Ms epoch of the last transition. 0 if never observed. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createHash } from "node:crypto";
|
|
2
|
-
//#region ../types/dist/event-category-
|
|
2
|
+
//#region ../types/dist/event-category-zAv7pMUz.mjs
|
|
3
3
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4
4
|
EventCategory["SystemBoot"] = "system.boot";
|
|
5
5
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -371,6 +371,13 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
371
371
|
*/
|
|
372
372
|
EventCategory["BatteryOnStatusChanged"] = "battery.onStatusChanged";
|
|
373
373
|
/**
|
|
374
|
+
* Cap event fired by every device that registers the `network-link`
|
|
375
|
+
* capability. Mirrors the cap definition's `onStatusChanged`. Carries
|
|
376
|
+
* `{ deviceId, status: NetworkLinkStatus }` — a link switch or a signal
|
|
377
|
+
* reading that moved.
|
|
378
|
+
*/
|
|
379
|
+
EventCategory["NetworkLinkOnStatusChanged"] = "network-link.onStatusChanged";
|
|
380
|
+
/**
|
|
374
381
|
* Emitted by the battery cap provider WHEN `wakeForStream` enters the
|
|
375
382
|
* "wake in progress" window — between the Baichuan wake-up issue and
|
|
376
383
|
* the camera's first dialed-back RTP packet. The stream-broker
|
|
@@ -25990,6 +25997,39 @@ onStatusChanged: { data: object({
|
|
|
25990
25997
|
* whether persisting is worth a SQLite commit. */
|
|
25991
25998
|
volatileStateFields: ["lastUpdated"]
|
|
25992
25999
|
};
|
|
26000
|
+
/**
|
|
26001
|
+
* Network-link snapshot. Same shape for every provider (a Reolink wifi
|
|
26002
|
+
* camera, a Home Assistant device with a signal-strength sensor, a Tapo
|
|
26003
|
+
* plug): one slice under `device.runtimeState['network-link']`, one badge,
|
|
26004
|
+
* one Home Assistant projection.
|
|
26005
|
+
*/
|
|
26006
|
+
var NetworkLinkStatusSchema = object({
|
|
26007
|
+
/** The link the device is on. `'unknown'` = not read yet, not "no link". */
|
|
26008
|
+
type: _enum([
|
|
26009
|
+
"wifi",
|
|
26010
|
+
"ethernet",
|
|
26011
|
+
"cellular",
|
|
26012
|
+
"unknown"
|
|
26013
|
+
]),
|
|
26014
|
+
/**
|
|
26015
|
+
* Link quality, 0..100 inclusive, normalised by the provider from whatever
|
|
26016
|
+
* the firmware reports (bars, RSSI, a vendor scale). **`null` means NOT
|
|
26017
|
+
* KNOWN or NOT APPLICABLE** — a wired link has no signal, and a wireless
|
|
26018
|
+
* one whose reading has not landed must not be drawn at 0 %. Consumers
|
|
26019
|
+
* SKIP a null rather than coerce it.
|
|
26020
|
+
*/
|
|
26021
|
+
signalPercent: number().min(0).max(100).nullable(),
|
|
26022
|
+
/** Raw received signal strength in dBm, when the firmware reports one. */
|
|
26023
|
+
rssiDbm: number().optional(),
|
|
26024
|
+
/** Network name of a wireless link, when the firmware reports it. */
|
|
26025
|
+
ssid: string().optional(),
|
|
26026
|
+
/** Ms epoch of the last observation. Lets consumers reason about freshness. */
|
|
26027
|
+
lastUpdated: number()
|
|
26028
|
+
});
|
|
26029
|
+
DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.Light, DeviceType.Lock, DeviceType.Siren, object({
|
|
26030
|
+
deviceId: number(),
|
|
26031
|
+
status: NetworkLinkStatusSchema
|
|
26032
|
+
});
|
|
25993
26033
|
object({
|
|
25994
26034
|
on: boolean(),
|
|
25995
26035
|
/** Ms epoch of the last transition. 0 if never observed. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as audioKindId, Z as hfModelUrl, a as COCO_80_LABELS, o as COCO_TO_MACRO, r as AUDIO_MACRO_LABELS } from "./dist-
|
|
1
|
+
import { M as audioKindId, Z as hfModelUrl, a as COCO_80_LABELS, o as COCO_TO_MACRO, r as AUDIO_MACRO_LABELS } from "./dist-CZkzc0WB.mjs";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
//#region src/detection-pipeline/registry/model-catalogs.ts
|
|
4
4
|
var HF_REPO = "camstack/camstack-models";
|
|
@@ -2,8 +2,8 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_dist = require("../dist-
|
|
6
|
-
const require_lazy_sharp = require("../lazy-sharp-
|
|
5
|
+
const require_dist = require("../dist-C31OZkZP.js");
|
|
6
|
+
const require_lazy_sharp = require("../lazy-sharp-DhHuLuQf.js");
|
|
7
7
|
let node_fs = require("node:fs");
|
|
8
8
|
let node_path = require("node:path");
|
|
9
9
|
//#region src/motion-wasm/wasm-motion-detector.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { It as hydrateSchema, Pt as DeviceType, Y as evaluateZoneRules, it as motionDetectionCapability, jt as BaseAddon } from "../dist-
|
|
1
|
+
import { It as hydrateSchema, Pt as DeviceType, Y as evaluateZoneRules, it as motionDetectionCapability, jt as BaseAddon } from "../dist-CZkzc0WB.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 { Dt as buildFfmpegArgs, Et as Fmp4BoxSplitter, kt as isSoftwareDecode, wt as errMsg } from "./dist-
|
|
1
|
+
import { Dt as buildFfmpegArgs, Et as Fmp4BoxSplitter, kt as isSoftwareDecode, wt as errMsg } from "./dist-CZkzc0WB.mjs";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
import "node:fs";
|
|
4
4
|
import "node:path";
|
|
@@ -2,12 +2,12 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_dist = require("../dist-
|
|
6
|
-
const require_node = require("../node-
|
|
7
|
-
const require_local_frame_registry = require("../local-frame-registry-
|
|
8
|
-
const require_worker_protocol = require("../worker-protocol-
|
|
5
|
+
const require_dist = require("../dist-C31OZkZP.js");
|
|
6
|
+
const require_node = require("../node-CIpenwbm.js");
|
|
7
|
+
const require_local_frame_registry = require("../local-frame-registry-CkIaPLcW.js");
|
|
8
|
+
const require_worker_protocol = require("../worker-protocol-BSgTKhW7.js");
|
|
9
9
|
const require_hub_hostname = require("../hub-hostname-DAJXlOgV.js");
|
|
10
|
-
const require_lazy_sharp = require("../lazy-sharp-
|
|
10
|
+
const require_lazy_sharp = require("../lazy-sharp-DhHuLuQf.js");
|
|
11
11
|
const require_restream_intent = require("../restream-intent-Cv9x3jmu.js");
|
|
12
12
|
const require_event_loop_stall_monitor = require("../event-loop-stall-monitor-DaUBcb13.js");
|
|
13
13
|
const require_remote_restream = require("../remote-restream-CO36Sr30.js");
|
|
@@ -928,6 +928,55 @@ function cropRgb(frame, bbox, maxWidth) {
|
|
|
928
928
|
};
|
|
929
929
|
}
|
|
930
930
|
//#endregion
|
|
931
|
+
//#region src/pipeline-runner/frame-cutter-binding.ts
|
|
932
|
+
/** The per-frame binding key — the same identity the retention handle carries. */
|
|
933
|
+
function frameCutterKey(handle) {
|
|
934
|
+
return `${handle.shmId}#${handle.slot}#${handle.seq}`;
|
|
935
|
+
}
|
|
936
|
+
var FrameCutterBinding = class {
|
|
937
|
+
max;
|
|
938
|
+
map = /* @__PURE__ */ new Map();
|
|
939
|
+
constructor(max) {
|
|
940
|
+
this.max = max;
|
|
941
|
+
}
|
|
942
|
+
/** Bind at delivery. Re-binding the same handle replaces without stranding the first. */
|
|
943
|
+
bind(handle, cutter) {
|
|
944
|
+
const key = frameCutterKey(handle);
|
|
945
|
+
this.map.delete(key);
|
|
946
|
+
this.map.set(key, cutter);
|
|
947
|
+
while (this.map.size > this.max) {
|
|
948
|
+
const oldest = this.map.keys().next().value;
|
|
949
|
+
if (oldest === void 0) break;
|
|
950
|
+
const stale = this.map.get(oldest);
|
|
951
|
+
this.map.delete(oldest);
|
|
952
|
+
release(stale);
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
/** Consume the binding for a frame whose result arrived. `undefined` when already ended. */
|
|
956
|
+
take(handle) {
|
|
957
|
+
const key = frameCutterKey(handle);
|
|
958
|
+
const cutter = this.map.get(key);
|
|
959
|
+
this.map.delete(key);
|
|
960
|
+
return cutter;
|
|
961
|
+
}
|
|
962
|
+
/**
|
|
963
|
+
* End the hold of a frame the runner let go without a result. A no-op for a
|
|
964
|
+
* frame whose result already consumed the binding, so the two paths cannot
|
|
965
|
+
* double-release.
|
|
966
|
+
*/
|
|
967
|
+
drop(handle) {
|
|
968
|
+
release(this.take(handle));
|
|
969
|
+
}
|
|
970
|
+
get size() {
|
|
971
|
+
return this.map.size;
|
|
972
|
+
}
|
|
973
|
+
};
|
|
974
|
+
function release(cutter) {
|
|
975
|
+
try {
|
|
976
|
+
cutter?.release();
|
|
977
|
+
} catch {}
|
|
978
|
+
}
|
|
979
|
+
//#endregion
|
|
931
980
|
//#region src/session-decode/session-decode-coordinator.ts
|
|
932
981
|
/** How long to wait after `kill()` before escalating to `kill('SIGKILL')`. */
|
|
933
982
|
var SIGKILL_FALLBACK_MS = 1e3;
|
|
@@ -5237,10 +5286,6 @@ var PACKAGE_ZONE_UNION_TTL_MS = 6e4;
|
|
|
5237
5286
|
var MAX_BOUND_FRAME_CUTTERS = 256;
|
|
5238
5287
|
/** How often a camera reports its undispatched cuts. */
|
|
5239
5288
|
var TILE_CUT_DROP_LOG_INTERVAL_MS = 6e4;
|
|
5240
|
-
/** The per-frame binding key — the same identity the retention handle carries. */
|
|
5241
|
-
function frameCutterKey(handle) {
|
|
5242
|
-
return `${handle.shmId}#${handle.slot}#${handle.seq}`;
|
|
5243
|
-
}
|
|
5244
5289
|
var DEFAULT_CONFIG = {
|
|
5245
5290
|
maxQueueDepth: 30,
|
|
5246
5291
|
maxConcurrentInferences: 16,
|
|
@@ -5593,16 +5638,11 @@ var PipelineRunnerAddon = class PipelineRunnerAddon extends require_dist.BaseAdd
|
|
|
5593
5638
|
*/
|
|
5594
5639
|
nativeCropRegistry = new NativeCropRegistry();
|
|
5595
5640
|
/**
|
|
5596
|
-
* Per-frame cutter bindings —
|
|
5597
|
-
*
|
|
5598
|
-
*
|
|
5599
|
-
* Deliberately NOT `nativeCropRegistry`. That one is a node-wide LRU capped
|
|
5600
|
-
* at 256 and shared by every camera to serve LATE cross-process crops; on the
|
|
5601
|
-
* live hub it sits pinned at its cap, so an entry's lifetime depends on how
|
|
5602
|
-
* busy the OTHER cameras are. Ending a frame's hold is a per-frame lifecycle
|
|
5603
|
-
* event and cannot be allowed to depend on that.
|
|
5641
|
+
* Per-frame cutter bindings — the requester that can cut a frame's subject
|
|
5642
|
+
* tiles and end its hold, ended by its result, by a drop, or by the bound.
|
|
5643
|
+
* See `frame-cutter-binding.ts` for why this is not `nativeCropRegistry`.
|
|
5604
5644
|
*/
|
|
5605
|
-
frameCutters =
|
|
5645
|
+
frameCutters = new FrameCutterBinding(MAX_BOUND_FRAME_CUTTERS);
|
|
5606
5646
|
/** Per-camera tally of cuts that could not be dispatched, and why. */
|
|
5607
5647
|
tileCutDrops = /* @__PURE__ */ new Map();
|
|
5608
5648
|
tileCutDropLoggedAt = /* @__PURE__ */ new Map();
|
|
@@ -5829,7 +5869,10 @@ var PipelineRunnerAddon = class PipelineRunnerAddon extends require_dist.BaseAdd
|
|
|
5829
5869
|
processFrame: (deviceId, frame, handle) => this.runInference(deviceId, frame, handle),
|
|
5830
5870
|
analyzeMotion: (deviceId, frame, handle) => this.runMotionAnalysis(deviceId, frame, handle),
|
|
5831
5871
|
releaseFrameRef: (ref, reason) => require_local_frame_registry.localFrameRegistry.release(ref, reason),
|
|
5832
|
-
releaseRetention: (handle, reason) =>
|
|
5872
|
+
releaseRetention: (handle, reason) => {
|
|
5873
|
+
this.retention?.release(handle, reason);
|
|
5874
|
+
this.frameCutters.drop(handle);
|
|
5875
|
+
},
|
|
5833
5876
|
hydrateRetainedFrame: (handle) => this.retainedFrames?.ensureContent(handle) ?? Promise.resolve(null),
|
|
5834
5877
|
onPhaseChanged: (deviceId, phase, meta) => this.handlePhaseChanged(deviceId, phase, meta),
|
|
5835
5878
|
logger: this.ctx.logger,
|
|
@@ -6813,9 +6856,7 @@ var PipelineRunnerAddon = class PipelineRunnerAddon extends require_dist.BaseAdd
|
|
|
6813
6856
|
*/
|
|
6814
6857
|
dispatchSubjectTiles(result, handle) {
|
|
6815
6858
|
if (!handle) return "handleless";
|
|
6816
|
-
const
|
|
6817
|
-
const cutter = this.frameCutters.get(key);
|
|
6818
|
-
this.frameCutters.delete(key);
|
|
6859
|
+
const cutter = this.frameCutters.take(handle);
|
|
6819
6860
|
if (!cutter) return "unbound";
|
|
6820
6861
|
const boxes = planTileCuts(result.detections ?? [], {
|
|
6821
6862
|
width: result.width,
|
|
@@ -6839,18 +6880,7 @@ var PipelineRunnerAddon = class PipelineRunnerAddon extends require_dist.BaseAdd
|
|
|
6839
6880
|
* runner stopped answering" rather than "the runner forgot".
|
|
6840
6881
|
*/
|
|
6841
6882
|
bindFrameCutter(handle, cutter) {
|
|
6842
|
-
|
|
6843
|
-
this.frameCutters.delete(key);
|
|
6844
|
-
this.frameCutters.set(key, cutter);
|
|
6845
|
-
while (this.frameCutters.size > MAX_BOUND_FRAME_CUTTERS) {
|
|
6846
|
-
const oldest = this.frameCutters.keys().next().value;
|
|
6847
|
-
if (oldest === void 0) break;
|
|
6848
|
-
const stale = this.frameCutters.get(oldest);
|
|
6849
|
-
this.frameCutters.delete(oldest);
|
|
6850
|
-
try {
|
|
6851
|
-
stale?.release();
|
|
6852
|
-
} catch {}
|
|
6853
|
-
}
|
|
6883
|
+
this.frameCutters.bind(handle, cutter);
|
|
6854
6884
|
}
|
|
6855
6885
|
/**
|
|
6856
6886
|
* The native-lease half of {@link getNativeCrop}, extracted so the DETAIL path
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { B as defineCustomActions, Bt as nodePin, Ft as createEvent, Gt as _enum, H as deriveDetailCropRect, Kt as array, L as customAction, Qt as object, X as failureContributionCapability, Xt as literal, Yt as lazy, Zt as number, _ as FailureCounters, en as string, et as loadContributionCapability, ft as pipelineRunnerCapability, jt as BaseAddon, lt as pickDetailCropConvention, m as DEVICE_BACKEND_TO_FORMAT, nn as EventCategory, p as DEFAULT_NATIVE_LEASE_SETTINGS, qt as boolean, u as DEFAULT_DETAIL_CROP_CONVENTION, ut as pickNativeLeaseOverride, wt as errMsg } from "../dist-
|
|
2
|
-
import { i as NO_COST_CLAIM, t as ChildCostRegistry } from "../node-
|
|
3
|
-
import { c as getStepDefinition, n as resolveFrameViewGeometry, t as localFrameRegistry } from "../local-frame-registry-
|
|
4
|
-
import { a as nativeLeaseSettingEnv, t as isWorkerReply } from "../worker-protocol-
|
|
1
|
+
import { B as defineCustomActions, Bt as nodePin, Ft as createEvent, Gt as _enum, H as deriveDetailCropRect, Kt as array, L as customAction, Qt as object, X as failureContributionCapability, Xt as literal, Yt as lazy, Zt as number, _ as FailureCounters, en as string, et as loadContributionCapability, ft as pipelineRunnerCapability, jt as BaseAddon, lt as pickDetailCropConvention, m as DEVICE_BACKEND_TO_FORMAT, nn as EventCategory, p as DEFAULT_NATIVE_LEASE_SETTINGS, qt as boolean, u as DEFAULT_DETAIL_CROP_CONVENTION, ut as pickNativeLeaseOverride, wt as errMsg } from "../dist-CZkzc0WB.mjs";
|
|
2
|
+
import { i as NO_COST_CLAIM, t as ChildCostRegistry } from "../node-kSXNMrbg.mjs";
|
|
3
|
+
import { c as getStepDefinition, n as resolveFrameViewGeometry, t as localFrameRegistry } from "../local-frame-registry-B8_L3v0O.mjs";
|
|
4
|
+
import { a as nativeLeaseSettingEnv, t as isWorkerReply } from "../worker-protocol-Bcy8Ti5P.mjs";
|
|
5
5
|
import { t as resolveHubHostname } from "../hub-hostname-cCknRYKj.mjs";
|
|
6
6
|
import { t as getSharp } from "../lazy-sharp-DXsqwpph.mjs";
|
|
7
7
|
import { n as withDetectionIntent } from "../restream-intent-B4BXZra7.mjs";
|
|
@@ -922,6 +922,55 @@ function cropRgb(frame, bbox, maxWidth) {
|
|
|
922
922
|
};
|
|
923
923
|
}
|
|
924
924
|
//#endregion
|
|
925
|
+
//#region src/pipeline-runner/frame-cutter-binding.ts
|
|
926
|
+
/** The per-frame binding key — the same identity the retention handle carries. */
|
|
927
|
+
function frameCutterKey(handle) {
|
|
928
|
+
return `${handle.shmId}#${handle.slot}#${handle.seq}`;
|
|
929
|
+
}
|
|
930
|
+
var FrameCutterBinding = class {
|
|
931
|
+
max;
|
|
932
|
+
map = /* @__PURE__ */ new Map();
|
|
933
|
+
constructor(max) {
|
|
934
|
+
this.max = max;
|
|
935
|
+
}
|
|
936
|
+
/** Bind at delivery. Re-binding the same handle replaces without stranding the first. */
|
|
937
|
+
bind(handle, cutter) {
|
|
938
|
+
const key = frameCutterKey(handle);
|
|
939
|
+
this.map.delete(key);
|
|
940
|
+
this.map.set(key, cutter);
|
|
941
|
+
while (this.map.size > this.max) {
|
|
942
|
+
const oldest = this.map.keys().next().value;
|
|
943
|
+
if (oldest === void 0) break;
|
|
944
|
+
const stale = this.map.get(oldest);
|
|
945
|
+
this.map.delete(oldest);
|
|
946
|
+
release(stale);
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
/** Consume the binding for a frame whose result arrived. `undefined` when already ended. */
|
|
950
|
+
take(handle) {
|
|
951
|
+
const key = frameCutterKey(handle);
|
|
952
|
+
const cutter = this.map.get(key);
|
|
953
|
+
this.map.delete(key);
|
|
954
|
+
return cutter;
|
|
955
|
+
}
|
|
956
|
+
/**
|
|
957
|
+
* End the hold of a frame the runner let go without a result. A no-op for a
|
|
958
|
+
* frame whose result already consumed the binding, so the two paths cannot
|
|
959
|
+
* double-release.
|
|
960
|
+
*/
|
|
961
|
+
drop(handle) {
|
|
962
|
+
release(this.take(handle));
|
|
963
|
+
}
|
|
964
|
+
get size() {
|
|
965
|
+
return this.map.size;
|
|
966
|
+
}
|
|
967
|
+
};
|
|
968
|
+
function release(cutter) {
|
|
969
|
+
try {
|
|
970
|
+
cutter?.release();
|
|
971
|
+
} catch {}
|
|
972
|
+
}
|
|
973
|
+
//#endregion
|
|
925
974
|
//#region src/session-decode/session-decode-coordinator.ts
|
|
926
975
|
/** How long to wait after `kill()` before escalating to `kill('SIGKILL')`. */
|
|
927
976
|
var SIGKILL_FALLBACK_MS = 1e3;
|
|
@@ -5230,10 +5279,6 @@ var PACKAGE_ZONE_UNION_TTL_MS = 6e4;
|
|
|
5230
5279
|
var MAX_BOUND_FRAME_CUTTERS = 256;
|
|
5231
5280
|
/** How often a camera reports its undispatched cuts. */
|
|
5232
5281
|
var TILE_CUT_DROP_LOG_INTERVAL_MS = 6e4;
|
|
5233
|
-
/** The per-frame binding key — the same identity the retention handle carries. */
|
|
5234
|
-
function frameCutterKey(handle) {
|
|
5235
|
-
return `${handle.shmId}#${handle.slot}#${handle.seq}`;
|
|
5236
|
-
}
|
|
5237
5282
|
var DEFAULT_CONFIG = {
|
|
5238
5283
|
maxQueueDepth: 30,
|
|
5239
5284
|
maxConcurrentInferences: 16,
|
|
@@ -5586,16 +5631,11 @@ var PipelineRunnerAddon = class PipelineRunnerAddon extends BaseAddon {
|
|
|
5586
5631
|
*/
|
|
5587
5632
|
nativeCropRegistry = new NativeCropRegistry();
|
|
5588
5633
|
/**
|
|
5589
|
-
* Per-frame cutter bindings —
|
|
5590
|
-
*
|
|
5591
|
-
*
|
|
5592
|
-
* Deliberately NOT `nativeCropRegistry`. That one is a node-wide LRU capped
|
|
5593
|
-
* at 256 and shared by every camera to serve LATE cross-process crops; on the
|
|
5594
|
-
* live hub it sits pinned at its cap, so an entry's lifetime depends on how
|
|
5595
|
-
* busy the OTHER cameras are. Ending a frame's hold is a per-frame lifecycle
|
|
5596
|
-
* event and cannot be allowed to depend on that.
|
|
5634
|
+
* Per-frame cutter bindings — the requester that can cut a frame's subject
|
|
5635
|
+
* tiles and end its hold, ended by its result, by a drop, or by the bound.
|
|
5636
|
+
* See `frame-cutter-binding.ts` for why this is not `nativeCropRegistry`.
|
|
5597
5637
|
*/
|
|
5598
|
-
frameCutters =
|
|
5638
|
+
frameCutters = new FrameCutterBinding(MAX_BOUND_FRAME_CUTTERS);
|
|
5599
5639
|
/** Per-camera tally of cuts that could not be dispatched, and why. */
|
|
5600
5640
|
tileCutDrops = /* @__PURE__ */ new Map();
|
|
5601
5641
|
tileCutDropLoggedAt = /* @__PURE__ */ new Map();
|
|
@@ -5822,7 +5862,10 @@ var PipelineRunnerAddon = class PipelineRunnerAddon extends BaseAddon {
|
|
|
5822
5862
|
processFrame: (deviceId, frame, handle) => this.runInference(deviceId, frame, handle),
|
|
5823
5863
|
analyzeMotion: (deviceId, frame, handle) => this.runMotionAnalysis(deviceId, frame, handle),
|
|
5824
5864
|
releaseFrameRef: (ref, reason) => localFrameRegistry.release(ref, reason),
|
|
5825
|
-
releaseRetention: (handle, reason) =>
|
|
5865
|
+
releaseRetention: (handle, reason) => {
|
|
5866
|
+
this.retention?.release(handle, reason);
|
|
5867
|
+
this.frameCutters.drop(handle);
|
|
5868
|
+
},
|
|
5826
5869
|
hydrateRetainedFrame: (handle) => this.retainedFrames?.ensureContent(handle) ?? Promise.resolve(null),
|
|
5827
5870
|
onPhaseChanged: (deviceId, phase, meta) => this.handlePhaseChanged(deviceId, phase, meta),
|
|
5828
5871
|
logger: this.ctx.logger,
|
|
@@ -6806,9 +6849,7 @@ var PipelineRunnerAddon = class PipelineRunnerAddon extends BaseAddon {
|
|
|
6806
6849
|
*/
|
|
6807
6850
|
dispatchSubjectTiles(result, handle) {
|
|
6808
6851
|
if (!handle) return "handleless";
|
|
6809
|
-
const
|
|
6810
|
-
const cutter = this.frameCutters.get(key);
|
|
6811
|
-
this.frameCutters.delete(key);
|
|
6852
|
+
const cutter = this.frameCutters.take(handle);
|
|
6812
6853
|
if (!cutter) return "unbound";
|
|
6813
6854
|
const boxes = planTileCuts(result.detections ?? [], {
|
|
6814
6855
|
width: result.width,
|
|
@@ -6832,18 +6873,7 @@ var PipelineRunnerAddon = class PipelineRunnerAddon extends BaseAddon {
|
|
|
6832
6873
|
* runner stopped answering" rather than "the runner forgot".
|
|
6833
6874
|
*/
|
|
6834
6875
|
bindFrameCutter(handle, cutter) {
|
|
6835
|
-
|
|
6836
|
-
this.frameCutters.delete(key);
|
|
6837
|
-
this.frameCutters.set(key, cutter);
|
|
6838
|
-
while (this.frameCutters.size > MAX_BOUND_FRAME_CUTTERS) {
|
|
6839
|
-
const oldest = this.frameCutters.keys().next().value;
|
|
6840
|
-
if (oldest === void 0) break;
|
|
6841
|
-
const stale = this.frameCutters.get(oldest);
|
|
6842
|
-
this.frameCutters.delete(oldest);
|
|
6843
|
-
try {
|
|
6844
|
-
stale?.release();
|
|
6845
|
-
} catch {}
|
|
6846
|
-
}
|
|
6876
|
+
this.frameCutters.bind(handle, cutter);
|
|
6847
6877
|
}
|
|
6848
6878
|
/**
|
|
6849
6879
|
* The native-lease half of {@link getNativeCrop}, extracted so the DETAIL path
|
package/dist/recorder/index.js
CHANGED
|
@@ -2,8 +2,8 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_dist = require("../dist-
|
|
6
|
-
const require_node = require("../node-
|
|
5
|
+
const require_dist = require("../dist-C31OZkZP.js");
|
|
6
|
+
const require_node = require("../node-CIpenwbm.js");
|
|
7
7
|
const require_hub_hostname = require("../hub-hostname-DAJXlOgV.js");
|
|
8
8
|
const require_restream_intent = require("../restream-intent-Cv9x3jmu.js");
|
|
9
9
|
const require_event_loop_stall_monitor = require("../event-loop-stall-monitor-DaUBcb13.js");
|
package/dist/recorder/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as isFirstLevelMacroClass, $t as record, B as defineCustomActions, Bt as nodePin, E as RecordingConfigSchema, Gt as _enum, It as hydrateSchema, J as evaluateSensorEdge, Kt as array, L as customAction, N as batteryCapability, Nt as DeviceFeature, Pt as DeviceType, Qt as object, T as RECORDING_EXPORT_MAX_READ_BYTES, U as deriveRecordingMode, Ut as selectAssignedProfileSlots, V as deriveBatteryPresence, Wt as sleep$1, Zt as number, bt as storageEvictableCapability, d as DEFAULT_EVENTS_BAND_BUFFER_SEC, en as string, et as loadContributionCapability, g as ExportRecordSchema, i as BatteryStatusSchema, jt as BaseAddon, mt as recordingExportCapability, nn as EventCategory, pt as recordingCapability, qt as boolean, vt as resolveRecordingProfiles, wt as errMsg, x as OpsLogEntrySchema } from "../dist-
|
|
2
|
-
import { i as NO_COST_CLAIM, t as ChildCostRegistry } from "../node-
|
|
1
|
+
import { $ as isFirstLevelMacroClass, $t as record, B as defineCustomActions, Bt as nodePin, E as RecordingConfigSchema, Gt as _enum, It as hydrateSchema, J as evaluateSensorEdge, Kt as array, L as customAction, N as batteryCapability, Nt as DeviceFeature, Pt as DeviceType, Qt as object, T as RECORDING_EXPORT_MAX_READ_BYTES, U as deriveRecordingMode, Ut as selectAssignedProfileSlots, V as deriveBatteryPresence, Wt as sleep$1, Zt as number, bt as storageEvictableCapability, d as DEFAULT_EVENTS_BAND_BUFFER_SEC, en as string, et as loadContributionCapability, g as ExportRecordSchema, i as BatteryStatusSchema, jt as BaseAddon, mt as recordingExportCapability, nn as EventCategory, pt as recordingCapability, qt as boolean, vt as resolveRecordingProfiles, wt as errMsg, x as OpsLogEntrySchema } from "../dist-CZkzc0WB.mjs";
|
|
2
|
+
import { i as NO_COST_CLAIM, t as ChildCostRegistry } from "../node-kSXNMrbg.mjs";
|
|
3
3
|
import { t as resolveHubHostname } from "../hub-hostname-cCknRYKj.mjs";
|
|
4
4
|
import { r as withRecordingIntent } from "../restream-intent-B4BXZra7.mjs";
|
|
5
5
|
import { n as startEventLoopStallMonitor } from "../event-loop-stall-monitor-DXLNBMkY.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as __toESM, t as __commonJSMin } from "./chunk-DnnnRqeS.mjs";
|
|
2
|
-
import { wt as errMsg } from "./dist-
|
|
2
|
+
import { wt as errMsg } from "./dist-CZkzc0WB.mjs";
|
|
3
3
|
import { spawn } from "node:child_process";
|
|
4
4
|
//#region ../../node_modules/mp4box/dist/mp4box.all.js
|
|
5
5
|
var require_mp4box_all = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_dist = require("./dist-
|
|
1
|
+
const require_dist = require("./dist-C31OZkZP.js");
|
|
2
2
|
let node_child_process = require("node:child_process");
|
|
3
3
|
//#region ../../node_modules/mp4box/dist/mp4box.all.js
|
|
4
4
|
var require_mp4box_all = /* @__PURE__ */ require_dist.__commonJSMin(((exports) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_worker_protocol = require("../worker-protocol-
|
|
3
|
-
const require_lazy_sharp = require("../lazy-sharp-
|
|
2
|
+
const require_worker_protocol = require("../worker-protocol-BSgTKhW7.js");
|
|
3
|
+
const require_lazy_sharp = require("../lazy-sharp-DhHuLuQf.js");
|
|
4
4
|
//#region src/session-decode/color-conversion.ts
|
|
5
5
|
/**
|
|
6
6
|
* Explicit YUV→RGB colorspace/range resolution for the session-decode worker.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as formatNativeLeaseKnobs, n as isWorkerRequest, o as resolveNativeLeaseKnobs, r as logLevelForLine } from "../worker-protocol-
|
|
1
|
+
import { i as formatNativeLeaseKnobs, n as isWorkerRequest, o as resolveNativeLeaseKnobs, r as logLevelForLine } from "../worker-protocol-Bcy8Ti5P.mjs";
|
|
2
2
|
import { n as setSharpWarnSink, r as hostExternalEntryUrls, t as getSharp } from "../lazy-sharp-DXsqwpph.mjs";
|
|
3
3
|
//#region src/session-decode/color-conversion.ts
|
|
4
4
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, p as c, r as l, s as u, t as d, u as f } 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, n as o, o as s, p as c, r as l, s as u, t as d, u as f } from "./_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-BOR2heMq.mjs";
|
|
2
2
|
import { a as p, i as m, n as h, o as g, r as _, t as v } from "./_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare__react__loadShare__.js-C9j-2lBe.mjs";
|
|
3
3
|
import { n as y, r as b, t as x } 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 S } from "./_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-
|
|
4
|
+
import { t as S } from "./_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-CDtnQr69.mjs";
|
|
5
5
|
import { n as C, t as w } 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.js
|
|
7
7
|
var T = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), E = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), D = (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.73",
|
|
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.153",
|
|
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.120",
|
|
37
37
|
scope: ["default"],
|
|
38
38
|
loaded: !1,
|
|
39
39
|
from: "addon_stream_broker_widgets",
|