@camstack/addon-pipeline 1.2.215 → 1.2.218
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/{default-detection-model-C2vYSX3O.mjs → default-detection-model-AJyhoTLF.mjs} +1 -1
- package/dist/{default-detection-model-f0PImZnh.js → default-detection-model-Bf45EQ98.js} +1 -1
- package/dist/detection-pipeline/index.js +5 -5
- package/dist/detection-pipeline/index.mjs +4 -4
- package/dist/{dist-DoHcimdu.js → dist-BbvtiBNc.js} +278 -20
- package/dist/{dist-DttqKvsQ.mjs → dist-Dl6GntEh.mjs} +278 -20
- package/dist/{lazy-sharp-BeeQGCUu.js → lazy-sharp-L9Lcr62v.js} +1 -1
- package/dist/motion-wasm/index.js +2 -2
- package/dist/motion-wasm/index.mjs +1 -1
- package/dist/{node-NtM7__8q.mjs → node-CEyw52D2.mjs} +1 -1
- package/dist/{node-6uF72wri.js → node-CbCVHEvJ.js} +1 -1
- package/dist/pipeline-runner/index.js +546 -25
- package/dist/pipeline-runner/index.mjs +545 -24
- package/dist/{process-memory-BRdyl5fE.js → process-memory-DBxdiCSF.js} +1 -1
- package/dist/{process-memory-CddpCDWL.mjs → process-memory-Du00R6-e.mjs} +1 -1
- package/dist/recorder/index.js +238 -52
- package/dist/recorder/index.mjs +238 -52
- package/dist/{segment-demux-js-CsFtPVzH.mjs → segment-demux-js-B278aBtB.mjs} +1 -1
- package/dist/{segment-demux-js-CkJPdyDH.js → segment-demux-js-D7bjzY8M.js} +1 -1
- package/dist/session-decode/decode-worker-child.js +58 -45
- package/dist/session-decode/decode-worker-child.mjs +57 -44
- package/dist/stream-broker/_stub.js +2 -2
- package/dist/stream-broker/{_virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-ZIja2AOe.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-BnmbfnAd.mjs} +3 -3
- package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-yJ2CyixO.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-Uxkwkgy5.mjs → _virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-DICVQkNi.mjs} +1 -1
- 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-DpatMS4g.mjs → hostInit-MIKQqs86.mjs} +3 -3
- package/dist/stream-broker/index.js +20 -21
- package/dist/stream-broker/index.mjs +20 -21
- package/dist/stream-broker/remoteEntry.js +1 -1
- package/dist/{worker-protocol-BKwkLZWT.mjs → worker-protocol-BEbD5adq.mjs} +1 -1
- package/dist/{worker-protocol-BWO2WNjw.js → worker-protocol-C4rh5uiS.js} +1 -1
- package/package.json +1 -1
- 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
- package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-0MF-KL1v.mjs +0 -26
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createHash } from "node:crypto";
|
|
2
|
-
//#region ../types/dist/event-category-
|
|
2
|
+
//#region ../types/dist/event-category-DAXzJeTX.mjs
|
|
3
3
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4
4
|
EventCategory["SystemBoot"] = "system.boot";
|
|
5
5
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -591,7 +591,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
591
591
|
* issue. Payload `PipelineAnalyticsPlateGalleryChangedPayload`.
|
|
592
592
|
*/
|
|
593
593
|
EventCategory["PipelineAnalyticsPlateGalleryChanged"] = "pipeline-analytics.plate-gallery-changed";
|
|
594
|
-
EventCategory["FrigateLiveEvent"] = "frigate.live-event";
|
|
595
594
|
EventCategory["CameraStreamsProfileSlotsChanged"] = "camera-streams.onProfileSlotsChanged";
|
|
596
595
|
/**
|
|
597
596
|
* Stream-broker health watchdog. Per-broker (deviceId/profile) emission.
|
|
@@ -14656,7 +14655,7 @@ var detectionPipelineCapability = {
|
|
|
14656
14655
|
var SourceInfoSchema = object({
|
|
14657
14656
|
/** Live dispatch key — mutable when the source system allows rename. */
|
|
14658
14657
|
id: string(),
|
|
14659
|
-
/** Source system tag — e.g. 'homeassistant' | 'reolink' | '
|
|
14658
|
+
/** Source system tag — e.g. 'homeassistant' | 'reolink' | 'onvif'. */
|
|
14660
14659
|
system: string(),
|
|
14661
14660
|
/** Immutable upstream identifier when available (HA `unique_id`, … ).
|
|
14662
14661
|
* Used to detect rename when `id` changes. */
|
|
@@ -15143,7 +15142,7 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
|
|
|
15143
15142
|
* - `device-management.router.ts` (deleted in Phase 2)
|
|
15144
15143
|
* - `device-ops.router.ts` (compat layer — deleted; device-provider ops absorbed here)
|
|
15145
15144
|
*
|
|
15146
|
-
* All device provider addons (rtsp, onvif,
|
|
15145
|
+
* All device provider addons (rtsp, onvif, …) are hub-local: they may
|
|
15147
15146
|
* fork into separate processes but never run on remote cluster agents. Therefore:
|
|
15148
15147
|
* - No nodeId routing needed — this is a pure hub singleton.
|
|
15149
15148
|
* - The hub's DeviceRegistry is the single source of truth for all live devices.
|
|
@@ -19550,7 +19549,7 @@ var NcRuleInputSchema = object({
|
|
|
19550
19549
|
* The measured seven-person arrival on device 590 spans 110 s with every
|
|
19551
19550
|
* internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
|
|
19552
19551
|
* idle cutoff holds it as one and ends it when the arrival actually ends.
|
|
19553
|
-
* 30 is
|
|
19552
|
+
* 30 s is a widely shipped value for the same decision.
|
|
19554
19553
|
*
|
|
19555
19554
|
* ### What it replaces
|
|
19556
19555
|
*
|
|
@@ -21776,6 +21775,13 @@ var ZoneCrossingSchema = object({
|
|
|
21776
21775
|
/** Zone display name at crossing time (falls back to the id). */
|
|
21777
21776
|
zoneName: string().optional()
|
|
21778
21777
|
});
|
|
21778
|
+
/** One zone a box was stamped with, and how much of the BOX fell inside it. */
|
|
21779
|
+
var ZoneOverlapSchema = object({
|
|
21780
|
+
zoneId: string(),
|
|
21781
|
+
zoneName: string().optional(),
|
|
21782
|
+
/** Percentage of the BOX area inside the zone, 0–100. */
|
|
21783
|
+
overlapPct: number()
|
|
21784
|
+
});
|
|
21779
21785
|
var ObjectEventSchema = object({
|
|
21780
21786
|
...BaseEventFields,
|
|
21781
21787
|
kind: literal("object"),
|
|
@@ -21800,6 +21806,35 @@ var ObjectEventSchema = object({
|
|
|
21800
21806
|
bbox: BoundingBoxSchema.optional(),
|
|
21801
21807
|
/** Heavy JSON — omitted in slim projection. */
|
|
21802
21808
|
zones: array(string()).readonly().optional(),
|
|
21809
|
+
/**
|
|
21810
|
+
* How far inside each stamped zone the box actually was, as a percentage of
|
|
21811
|
+
* the BOX area.
|
|
21812
|
+
*
|
|
21813
|
+
* Membership alone cannot express "at least a third of it inside", which is
|
|
21814
|
+
* the bar an operator argues with — and the number already existed: the
|
|
21815
|
+
* engine computed it, the pipeline logged it, and then discarded it. It
|
|
21816
|
+
* matters most on the events that carry no track, where a rule has nothing
|
|
21817
|
+
* else to judge by.
|
|
21818
|
+
*/
|
|
21819
|
+
zoneOverlaps: array(ZoneOverlapSchema).readonly().optional(),
|
|
21820
|
+
/**
|
|
21821
|
+
* Present when this event describes a detection the TRACKER refused, so it
|
|
21822
|
+
* has no track and never will.
|
|
21823
|
+
*
|
|
21824
|
+
* A zone-scoped immediate rule asks "is there an animal in the flowerbed
|
|
21825
|
+
* NOW?"; tracking answers a different question ("is this the same subject as
|
|
21826
|
+
* before?") whose confirmation threshold presumes continuity. On 2026-09-09 a
|
|
21827
|
+
* dog at 0.7729, 100% inside a watched zone, was refused three times in six
|
|
21828
|
+
* seconds with three different candidate ids — seven analysed frames in the
|
|
21829
|
+
* window, the subject in a handful of them, metres apart — and produced no
|
|
21830
|
+
* event at all.
|
|
21831
|
+
*
|
|
21832
|
+
* It is NAMED rather than merely implied by a missing `trackId`: an event
|
|
21833
|
+
* with no track and no reason is indistinguishable from a track whose media
|
|
21834
|
+
* went missing, and a consumer that asks this one for a best shot or a
|
|
21835
|
+
* history is asking for something that never existed.
|
|
21836
|
+
*/
|
|
21837
|
+
spawnRefused: string().optional(),
|
|
21803
21838
|
/** Omitted in slim projection. */
|
|
21804
21839
|
state: TrackStateSchema.optional(),
|
|
21805
21840
|
/**
|
|
@@ -22226,7 +22261,17 @@ var EventDensityBucketSchema = object({
|
|
|
22226
22261
|
bucketStart: number(),
|
|
22227
22262
|
motion: number().int(),
|
|
22228
22263
|
object: number().int(),
|
|
22229
|
-
audio: number().int()
|
|
22264
|
+
audio: number().int(),
|
|
22265
|
+
/**
|
|
22266
|
+
* Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
|
|
22267
|
+
* as opposed to `audio`, which is their COUNT (D431).
|
|
22268
|
+
*
|
|
22269
|
+
* ABSENT when the bucket holds no audio event. Absence means "nothing was
|
|
22270
|
+
* measured", which is not the same claim as silence, and a lane that cannot
|
|
22271
|
+
* tell them apart paints a quiet hour at full scale — which is exactly what
|
|
22272
|
+
* the count-on-a-level-meter did.
|
|
22273
|
+
*/
|
|
22274
|
+
audioDbfs: number().optional()
|
|
22230
22275
|
});
|
|
22231
22276
|
/**
|
|
22232
22277
|
* One camera's row in a `getEventDensityBatch` answer.
|
|
@@ -22873,6 +22918,60 @@ var NativeCropResultSchema = object({
|
|
|
22873
22918
|
*/
|
|
22874
22919
|
tier: _enum(["native", "ram-fullframe"]).optional()
|
|
22875
22920
|
});
|
|
22921
|
+
/**
|
|
22922
|
+
* What a PARKED frame is for — the `kind` half of the `(deviceId, trackId,
|
|
22923
|
+
* kind)` key ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
|
|
22924
|
+
*
|
|
22925
|
+
* - `keyFrame` — the track's clean best FULL frame at native width (capped by
|
|
22926
|
+
* the caller's `maxWidth`). What `keyFrame` + `keyFrameSmall` are written
|
|
22927
|
+
* from, and what the detail plane's full-frame rung cuts from.
|
|
22928
|
+
* - `thumbnail` — the best-shot subject slab: the caller's 16:9 central-square
|
|
22929
|
+
* window, cut by the runner at uncapped native resolution.
|
|
22930
|
+
*
|
|
22931
|
+
* The runner never interprets `trackId`; it is an opaque key the hub owns.
|
|
22932
|
+
*/
|
|
22933
|
+
var ParkedFrameKindSchema = _enum(["keyFrame", "thumbnail"]);
|
|
22934
|
+
/**
|
|
22935
|
+
* Why a park did NOT happen. Every one is logged on the runner with
|
|
22936
|
+
* `tags: { deviceId }` and the handle's measured age, because a handle already
|
|
22937
|
+
* gone at park time IS the defect the 150–500 ms window exists to prevent —
|
|
22938
|
+
* never a reason to retry in a loop.
|
|
22939
|
+
*
|
|
22940
|
+
* - `handle-gone` — the native surface no longer resolves this handle (never
|
|
22941
|
+
* registered, past the lease bound, or the worker released it). `detail`
|
|
22942
|
+
* carries the runner's own miss reason.
|
|
22943
|
+
* - `encode-failed` — pixels resolved and the JPEG encode threw.
|
|
22944
|
+
*/
|
|
22945
|
+
var ParkRefusalSchema = _enum(["handle-gone", "encode-failed"]);
|
|
22946
|
+
/** Answer to `parkTrackFrame` — a discriminated union, so "not parked" always names why. */
|
|
22947
|
+
var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
|
|
22948
|
+
parked: literal(true),
|
|
22949
|
+
/** The node holding the parcel — what a later retrieval must be pinned to. */
|
|
22950
|
+
nodeId: string(),
|
|
22951
|
+
width: number().int().positive(),
|
|
22952
|
+
height: number().int().positive(),
|
|
22953
|
+
/** JPEG bytes the parcel costs on the node. */
|
|
22954
|
+
bytes: number().int().nonnegative(),
|
|
22955
|
+
/** Whether this park replaced a parcel already held for the key. */
|
|
22956
|
+
replaced: boolean()
|
|
22957
|
+
}), object({
|
|
22958
|
+
parked: literal(false),
|
|
22959
|
+
nodeId: string(),
|
|
22960
|
+
reason: ParkRefusalSchema,
|
|
22961
|
+
/** Age of the handle at the park, on the runner's clock; null if unknown. */
|
|
22962
|
+
handleAgeMs: number().nullable(),
|
|
22963
|
+
detail: string().optional()
|
|
22964
|
+
})]);
|
|
22965
|
+
/** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
|
|
22966
|
+
var ParkedTrackFrameSchema = object({
|
|
22967
|
+
jpeg: string(),
|
|
22968
|
+
width: number().int().positive(),
|
|
22969
|
+
height: number().int().positive(),
|
|
22970
|
+
/** The frame instant the parcel shows (the caller's clock, echoed back). */
|
|
22971
|
+
timestamp: number(),
|
|
22972
|
+
/** When the node stored it (the node's clock). */
|
|
22973
|
+
parkedAt: number()
|
|
22974
|
+
});
|
|
22876
22975
|
/** Parent detection context passed to `runDetailSubtree` — the crop's
|
|
22877
22976
|
* originating detection, in FRAME-space coordinates. Reuses
|
|
22878
22977
|
* `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
|
|
@@ -23262,7 +23361,7 @@ var RunnerCameraConfigSchema = object({
|
|
|
23262
23361
|
* - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
|
|
23263
23362
|
* analyzer providers) running on decoded frames in this runner.
|
|
23264
23363
|
* - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
|
|
23265
|
-
* analytics
|
|
23364
|
+
* analytics). The provider emits ProviderMotion
|
|
23266
23365
|
* events; the orchestrator forwards to `reportMotion`.
|
|
23267
23366
|
*/
|
|
23268
23367
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
@@ -23644,7 +23743,60 @@ var pipelineRunnerCapability = {
|
|
|
23644
23743
|
className: string(),
|
|
23645
23744
|
/** Camera the pixels came from. Diagnostics + log tags ONLY — never routing. */
|
|
23646
23745
|
sourceDeviceId: number()
|
|
23647
|
-
}), RunStatelessStepResultSchema, { kind: "mutation" })
|
|
23746
|
+
}), RunStatelessStepResultSchema, { kind: "mutation" }),
|
|
23747
|
+
/**
|
|
23748
|
+
* PARK a frame for a track at the instant it is judged to matter
|
|
23749
|
+
* ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
|
|
23750
|
+
*
|
|
23751
|
+
* The hub's `BestDetectionTracker` — the single "best per track" policy —
|
|
23752
|
+
* concludes a frame is a track's best and calls this on the node that
|
|
23753
|
+
* owns `handle` (`nodePin(handle.nodeId)`), while the handle is young. The
|
|
23754
|
+
* runner cuts `bbox` from the native surface it already holds (a full
|
|
23755
|
+
* frame for `keyFrame`, the caller's subject window for `thumbnail`),
|
|
23756
|
+
* encodes ONE JPEG, and keeps it under `(deviceId, trackId, kind)`. Every
|
|
23757
|
+
* later consumer retrieves by that key (`getParkedTrackFrame`) — a lookup
|
|
23758
|
+
* that cannot miss on age. D52 holds: the rectangle is cut by the runner,
|
|
23759
|
+
* never a pre-cut tile the caller decided. D9/D18 hold: one compressed
|
|
23760
|
+
* encode at a decision point, never a stream.
|
|
23761
|
+
*
|
|
23762
|
+
* Idempotent per `(trackId, kind)`: a later park replaces (the ranking is
|
|
23763
|
+
* the hub's; this adds no second opinion), an out-of-order older instant
|
|
23764
|
+
* is ignored. Bounded per device and per node on the runner
|
|
23765
|
+
* (`parked-frame-store.ts`), oldest-first eviction, never a refusal for
|
|
23766
|
+
* space. A refusal names its reason and is logged on the runner with the
|
|
23767
|
+
* handle's measured age — it is never retried into a loop.
|
|
23768
|
+
*/
|
|
23769
|
+
parkTrackFrame: method(object({
|
|
23770
|
+
deviceId: number(),
|
|
23771
|
+
/** Opaque to the runner — the hub's track id. */
|
|
23772
|
+
trackId: string(),
|
|
23773
|
+
kind: ParkedFrameKindSchema,
|
|
23774
|
+
handle: FrameHandleSchema,
|
|
23775
|
+
/** Normalized [0,1] window to cut. `{0,0,1,1}` for a full frame. */
|
|
23776
|
+
bbox: NativeCropBboxSchema,
|
|
23777
|
+
/** Width cap for a full-frame park (the `keyFrame` native cap). */
|
|
23778
|
+
maxWidth: number().int().positive().optional(),
|
|
23779
|
+
/** The frame instant (caller's clock) — orders parks for one key. */
|
|
23780
|
+
timestamp: number()
|
|
23781
|
+
}), ParkTrackFrameResultSchema, { kind: "mutation" }),
|
|
23782
|
+
/**
|
|
23783
|
+
* Retrieve a parked parcel by `(deviceId, trackId, kind)`. Pinned to the
|
|
23784
|
+
* node that answered the park (`ParkTrackFrameResult.nodeId`). `null` means
|
|
23785
|
+
* nothing was parked under that key on this node — never "too old".
|
|
23786
|
+
*/
|
|
23787
|
+
getParkedTrackFrame: method(object({
|
|
23788
|
+
deviceId: number(),
|
|
23789
|
+
trackId: string(),
|
|
23790
|
+
kind: ParkedFrameKindSchema
|
|
23791
|
+
}), ParkedTrackFrameSchema.nullable()),
|
|
23792
|
+
/**
|
|
23793
|
+
* Drop every parcel of a track — the hub closed it. Idempotent. A track
|
|
23794
|
+
* whose release is lost ages out on the runner under a hard ceiling.
|
|
23795
|
+
*/
|
|
23796
|
+
releaseParkedTrackFrames: method(object({
|
|
23797
|
+
deviceId: number(),
|
|
23798
|
+
trackId: string()
|
|
23799
|
+
}), object({ released: number().int().nonnegative() }), { kind: "mutation" })
|
|
23648
23800
|
}
|
|
23649
23801
|
};
|
|
23650
23802
|
var CameraPipelineConfigSchema = object({
|
|
@@ -26706,8 +26858,8 @@ onStatusChanged: { data: object({
|
|
|
26706
26858
|
/**
|
|
26707
26859
|
* Runtime-state slice — every provider that registers this cap
|
|
26708
26860
|
* stores the same shape under `device.runtimeState[battery]`.
|
|
26709
|
-
* Cross-provider uniformity: a Reolink Argus, a
|
|
26710
|
-
*
|
|
26861
|
+
* Cross-provider uniformity: a Reolink Argus, a sensor proxy,
|
|
26862
|
+
* an ONVIF battery cam all read/write the same keys.
|
|
26711
26863
|
* Consumers (BatteryBadge, snapshot wrapper sleep gate) read once
|
|
26712
26864
|
* via `device.runtimeState.getCapState('battery')` regardless of
|
|
26713
26865
|
* the underlying driver.
|
|
@@ -26764,7 +26916,7 @@ DeviceType.Button, method(object({ deviceId: number().int().nonnegative() }), _v
|
|
|
26764
26916
|
*
|
|
26765
26917
|
* Implementations:
|
|
26766
26918
|
* - Each camera-providing addon registers this cap natively per
|
|
26767
|
-
* device (Reolink, Hikvision, RTSP,
|
|
26919
|
+
* device (Reolink, Hikvision, RTSP, ONVIF self).
|
|
26768
26920
|
* - Returns a snapshot from the persisted device config blob — no
|
|
26769
26921
|
* extra round-trip to the camera, no probing.
|
|
26770
26922
|
* - The cap is admin-only (`auth: 'admin'`) — credentials must not
|
|
@@ -28150,7 +28302,7 @@ var AvailableIntegrationTypeSchema = object({
|
|
|
28150
28302
|
* Which integration-marker cap the addon declared, so the wizard can
|
|
28151
28303
|
* branch on CAP — never on addon name. `device-adoption` integrations
|
|
28152
28304
|
* (Home Assistant, …) route through the broker step (Approach A);
|
|
28153
|
-
* `device-provider` integrations (Reolink/
|
|
28305
|
+
* `device-provider` integrations (Reolink/ONVIF) keep the
|
|
28154
28306
|
* legacy config → discovery flow.
|
|
28155
28307
|
*/
|
|
28156
28308
|
kind: _enum(["device-adoption", "device-provider"]),
|
|
@@ -30651,7 +30803,23 @@ var RecordingRangeSchema = object({
|
|
|
30651
30803
|
});
|
|
30652
30804
|
var RecordingAvailabilitySchema = object({
|
|
30653
30805
|
deviceId: number(),
|
|
30654
|
-
ranges: array(RecordingRangeSchema)
|
|
30806
|
+
ranges: array(RecordingRangeSchema),
|
|
30807
|
+
/**
|
|
30808
|
+
* Every profile this camera has footage in — not only the one `ranges`
|
|
30809
|
+
* describes (D433).
|
|
30810
|
+
*
|
|
30811
|
+
* `ranges` answers for ONE profile by design: the timeline is a single bar,
|
|
30812
|
+
* and enumerating all of them triples the directory reads for a bar that
|
|
30813
|
+
* would look identical. But the answer used to say nothing about that, so a
|
|
30814
|
+
* caller asking "what can I export?" read the single preferred profile as
|
|
30815
|
+
* the only one that exists — on this deployment every camera records `high`
|
|
30816
|
+
* AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
|
|
30817
|
+
* UI could not see it.
|
|
30818
|
+
*
|
|
30819
|
+
* Cheap: it is the same shallow directory read the profile CHOICE already
|
|
30820
|
+
* makes. Ask for a specific profile's ranges with the `profile` input.
|
|
30821
|
+
*/
|
|
30822
|
+
profilesWithFootage: array(string())
|
|
30655
30823
|
});
|
|
30656
30824
|
var RecordingDaysSchema = object({
|
|
30657
30825
|
deviceId: number(),
|
|
@@ -30677,7 +30845,11 @@ var RecordingDaysSchema = object({
|
|
|
30677
30845
|
var RecordingAvailabilityForDeviceSchema = object({
|
|
30678
30846
|
deviceId: number(),
|
|
30679
30847
|
read: _enum(["read", "unreadable"]),
|
|
30680
|
-
ranges: array(RecordingRangeSchema).readonly()
|
|
30848
|
+
ranges: array(RecordingRangeSchema).readonly(),
|
|
30849
|
+
/** Same field, same meaning, as the singular answer (D433). A row that
|
|
30850
|
+
* dropped it would tell a grid caller the archive holds one profile.
|
|
30851
|
+
* Empty on an `'unreadable'` row: nobody looked. */
|
|
30852
|
+
profilesWithFootage: array(string()).readonly()
|
|
30681
30853
|
});
|
|
30682
30854
|
/**
|
|
30683
30855
|
* One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
|
|
@@ -30707,13 +30879,31 @@ var RecordingManifestSchema = object({
|
|
|
30707
30879
|
*/
|
|
30708
30880
|
playbackEndpoints: array(string())
|
|
30709
30881
|
});
|
|
30710
|
-
/**
|
|
30711
|
-
*
|
|
30882
|
+
/**
|
|
30883
|
+
* Recording storage usage for one camera — what the ARCHIVE holds for it,
|
|
30884
|
+
* across every profile and every resolvable location on this node.
|
|
30885
|
+
*
|
|
30886
|
+
* ## Archive vs residency, which is the whole point of this shape (D418)
|
|
30887
|
+
*
|
|
30888
|
+
* `usedBytes` / `oldestMs` / `segments` are the durable hour ledger's numbers:
|
|
30889
|
+
* the same quantity `RecordingLocationUsage.usedBytes` reports for the volume
|
|
30890
|
+
* this camera writes to, so the two can be added up and compared.
|
|
30891
|
+
*
|
|
30892
|
+
* They were not always. Until D418 this row came from the recorder's in-RAM
|
|
30893
|
+
* `RecordingIndex`, which since D287 holds only the live tail plus the hours
|
|
30894
|
+
* somebody hydrated — so a hub with 1.9 TB and 3.3 days of footage reported
|
|
30895
|
+
* 60.5 GB and "oldest: three hours ago" on the same page as the volume row
|
|
30896
|
+
* that said otherwise, and two people read it as retention eating recent
|
|
30897
|
+
* footage. Residency is still reported, under `residentBytes` /
|
|
30898
|
+
* `residentOldestMs`, which answer a different question and say so.
|
|
30899
|
+
*/
|
|
30712
30900
|
var RecordingDeviceUsageSchema = object({
|
|
30713
30901
|
deviceId: number(),
|
|
30902
|
+
/** Bytes the ARCHIVE holds for this camera on this node's resolvable
|
|
30903
|
+
* recordings locations. */
|
|
30714
30904
|
usedBytes: number(),
|
|
30715
30905
|
/**
|
|
30716
|
-
* Start of this camera's OLDEST
|
|
30906
|
+
* Start of this camera's OLDEST ARCHIVED segment, across every profile and
|
|
30717
30907
|
* location — the "Oldest footage" column in Recordings → Storage, and the
|
|
30718
30908
|
* only honest answer to "is retention actually holding?" per camera.
|
|
30719
30909
|
*
|
|
@@ -30723,7 +30913,24 @@ var RecordingDeviceUsageSchema = object({
|
|
|
30723
30913
|
* (types) and the addon ship on different trains, and the addon is usually
|
|
30724
30914
|
* the later of the two.
|
|
30725
30915
|
*/
|
|
30726
|
-
oldestMs: number().nullable().optional()
|
|
30916
|
+
oldestMs: number().nullable().optional(),
|
|
30917
|
+
/** Segments the archive holds for this camera — the "M" beside `usedBytes`.
|
|
30918
|
+
* OPTIONAL for the same train-skew reason as `oldestMs`. */
|
|
30919
|
+
segments: number().optional(),
|
|
30920
|
+
/**
|
|
30921
|
+
* RESIDENCY, not the archive: bytes the recorder process currently holds in
|
|
30922
|
+
* its RAM index — the live tail plus the hours a reader hydrated.
|
|
30923
|
+
*
|
|
30924
|
+
* It answers "what can be served without touching the disk", never "how much
|
|
30925
|
+
* footage this camera has". A UI that renders it must label it as such, and
|
|
30926
|
+
* must never total it as storage. OPTIONAL: a recorder predating D418 omits
|
|
30927
|
+
* it, and so does a node whose ledger could not answer.
|
|
30928
|
+
*/
|
|
30929
|
+
residentBytes: number().optional(),
|
|
30930
|
+
/** The residency counterpart of `oldestMs` — the oldest segment currently in
|
|
30931
|
+
* RAM, which on a healthy recorder is minutes ago and means nothing about
|
|
30932
|
+
* retention. `null` = nothing resident. */
|
|
30933
|
+
residentOldestMs: number().nullable().optional()
|
|
30727
30934
|
});
|
|
30728
30935
|
/** Recording storage usage + capacity for one storage location. */
|
|
30729
30936
|
var RecordingLocationUsageSchema = object({
|
|
@@ -30761,6 +30968,17 @@ var RecordingStorageUsageSchema = object({
|
|
|
30761
30968
|
totalUsedBytes: number(),
|
|
30762
30969
|
devices: array(RecordingDeviceUsageSchema),
|
|
30763
30970
|
/**
|
|
30971
|
+
* WHERE `devices[]` came from, so an empty table is never mistaken for empty
|
|
30972
|
+
* disks (D418).
|
|
30973
|
+
*
|
|
30974
|
+
* `archive` = the durable hour ledger answered. `unavailable` = this node
|
|
30975
|
+
* declared no ledger and the recorder REFUSED rather than answering the
|
|
30976
|
+
* question with the resident index (D295 rule 3) — the rows are UNKNOWN, not
|
|
30977
|
+
* zero, and a UI must say so. OPTIONAL: a recorder predating D418 omits it,
|
|
30978
|
+
* and its rows are residency.
|
|
30979
|
+
*/
|
|
30980
|
+
devicesRead: _enum(["archive", "unavailable"]).optional(),
|
|
30981
|
+
/**
|
|
30764
30982
|
* Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
|
|
30765
30983
|
* of the payload without it: the hub serves this method through a BAKED
|
|
30766
30984
|
* router, so a hub whose framework train predates a change to this array
|
|
@@ -30931,7 +31149,14 @@ var recordingCapability = {
|
|
|
30931
31149
|
getAvailability: method(object({
|
|
30932
31150
|
deviceId: number(),
|
|
30933
31151
|
fromMs: number(),
|
|
30934
|
-
toMs: number()
|
|
31152
|
+
toMs: number(),
|
|
31153
|
+
/**
|
|
31154
|
+
* Answer for THIS profile instead of the preferred one (D433). Absent
|
|
31155
|
+
* keeps the timeline's behaviour — one bar, one profile, one set of
|
|
31156
|
+
* reads. `profilesWithFootage` on the answer says what may be asked
|
|
31157
|
+
* for.
|
|
31158
|
+
*/
|
|
31159
|
+
profile: string().optional()
|
|
30935
31160
|
}), RecordingAvailabilitySchema, {
|
|
30936
31161
|
kind: "query",
|
|
30937
31162
|
auth: "protected"
|
|
@@ -37562,6 +37787,24 @@ Object.freeze({
|
|
|
37562
37787
|
addonId: null,
|
|
37563
37788
|
access: "view"
|
|
37564
37789
|
},
|
|
37790
|
+
"pipelineRunner.getParkedTrackFrame": {
|
|
37791
|
+
capName: "pipeline-runner",
|
|
37792
|
+
capScope: "system",
|
|
37793
|
+
addonId: null,
|
|
37794
|
+
access: "view"
|
|
37795
|
+
},
|
|
37796
|
+
"pipelineRunner.parkTrackFrame": {
|
|
37797
|
+
capName: "pipeline-runner",
|
|
37798
|
+
capScope: "system",
|
|
37799
|
+
addonId: null,
|
|
37800
|
+
access: "create"
|
|
37801
|
+
},
|
|
37802
|
+
"pipelineRunner.releaseParkedTrackFrames": {
|
|
37803
|
+
capName: "pipeline-runner",
|
|
37804
|
+
capScope: "system",
|
|
37805
|
+
addonId: null,
|
|
37806
|
+
access: "create"
|
|
37807
|
+
},
|
|
37565
37808
|
"pipelineRunner.reportMotion": {
|
|
37566
37809
|
capName: "pipeline-runner",
|
|
37567
37810
|
capScope: "system",
|
|
@@ -40839,6 +41082,21 @@ Object.freeze({
|
|
|
40839
41082
|
form: "single",
|
|
40840
41083
|
optional: false
|
|
40841
41084
|
}],
|
|
41085
|
+
"pipelineRunner.getParkedTrackFrame": [{
|
|
41086
|
+
name: "deviceId",
|
|
41087
|
+
form: "single",
|
|
41088
|
+
optional: false
|
|
41089
|
+
}],
|
|
41090
|
+
"pipelineRunner.parkTrackFrame": [{
|
|
41091
|
+
name: "deviceId",
|
|
41092
|
+
form: "single",
|
|
41093
|
+
optional: false
|
|
41094
|
+
}],
|
|
41095
|
+
"pipelineRunner.releaseParkedTrackFrames": [{
|
|
41096
|
+
name: "deviceId",
|
|
41097
|
+
form: "single",
|
|
41098
|
+
optional: false
|
|
41099
|
+
}],
|
|
40842
41100
|
"pipelineRunner.reportMotion": [{
|
|
40843
41101
|
name: "deviceId",
|
|
40844
41102
|
form: "single",
|
|
@@ -41580,7 +41838,7 @@ var PreviewTextField = string().max(200);
|
|
|
41580
41838
|
* Whether the notification's preview is a STILL or a short animation.
|
|
41581
41839
|
*
|
|
41582
41840
|
* The operator's ask, verbatim: *"inviato come gif o video (come per le altre
|
|
41583
|
-
* rule)"* —
|
|
41841
|
+
* rule)"* — the other rules already offer an animated preview, and a ten-hour
|
|
41584
41842
|
* night reads better as three seconds of motion than as one frame of it. Both
|
|
41585
41843
|
* modes get the SAME treatment (blurred frame, large centred title); `'gif'`
|
|
41586
41844
|
* simply applies it to a dozen frames sampled across the render and assembles
|
|
@@ -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-BbvtiBNc.js");
|
|
6
|
+
const require_lazy_sharp = require("../lazy-sharp-L9Lcr62v.js");
|
|
7
7
|
let node_fs = require("node:fs");
|
|
8
8
|
let node_path = require("node:path");
|
|
9
9
|
//#region src/motion-wasm/region-grouping.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Jt as hydrateSchema, Kt as DeviceType, Ut as BaseAddon, X as evaluateZoneRules, ft as motionDetectionCapability } from "../dist-
|
|
1
|
+
import { Jt as hydrateSchema, Kt as DeviceType, Ut as BaseAddon, X as evaluateZoneRules, ft as motionDetectionCapability } from "../dist-Dl6GntEh.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 { It as errMsg, Rt as Fmp4BoxSplitter, Vt as isSoftwareDecode, zt as buildFfmpegArgs } from "./dist-
|
|
1
|
+
import { It as errMsg, Rt as Fmp4BoxSplitter, Vt as isSoftwareDecode, zt as buildFfmpegArgs } from "./dist-Dl6GntEh.mjs";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
import { realpathSync } from "node:fs";
|
|
4
4
|
import path from "node:path";
|