@camstack/addon-pipeline 1.2.214 → 1.2.217
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-BwNEV8Wl.mjs} +1 -1
- package/dist/{default-detection-model-f0PImZnh.js → default-detection-model-DzzuINe-.js} +1 -1
- package/dist/detection-pipeline/index.js +6 -7
- package/dist/detection-pipeline/index.mjs +5 -6
- package/dist/{dist-DoHcimdu.js → dist-D7hxiBnC.js} +237 -16
- package/dist/{dist-DttqKvsQ.mjs → dist-DgeXZfwn.mjs} +237 -16
- package/dist/{lazy-sharp-BeeQGCUu.js → lazy-sharp-BSkbiuz5.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-C9GcBrwk.mjs} +1 -1
- package/dist/{node-6uF72wri.js → node-DDhmPcOx.js} +1 -1
- package/dist/pipeline-runner/index.js +541 -26
- package/dist/pipeline-runner/index.mjs +539 -24
- package/dist/{process-memory-CddpCDWL.mjs → process-memory-Dw3CGS3D.mjs} +1 -1
- package/dist/{process-memory-BRdyl5fE.js → process-memory-ENqmiiis.js} +1 -1
- package/dist/recorder/index.js +158 -47
- package/dist/recorder/index.mjs +158 -47
- package/dist/{segment-demux-js-CsFtPVzH.mjs → segment-demux-js-BGbKlotF.mjs} +1 -1
- package/dist/{segment-demux-js-CkJPdyDH.js → segment-demux-js-sLs8mbZQ.js} +1 -1
- package/dist/session-decode/decode-worker-child.js +61 -180
- package/dist/session-decode/decode-worker-child.mjs +60 -179
- package/dist/stream-broker/_stub.js +2 -2
- package/dist/stream-broker/{_virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-CbBa4iV-.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-BULotDCb.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-CagSUJH7.mjs → hostInit-_RQxF72h.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-BWO2WNjw.js → worker-protocol-DGql9R4g.js} +1 -1
- package/dist/{worker-protocol-BKwkLZWT.mjs → worker-protocol-SzmaLNnP.mjs} +1 -1
- package/package.json +1 -1
- package/dist/event-loop-stall-monitor-DXLNBMkY.mjs +0 -138
- package/dist/event-loop-stall-monitor-DaUBcb13.js +0 -149
- 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
|
/**
|
|
@@ -22873,6 +22908,60 @@ var NativeCropResultSchema = object({
|
|
|
22873
22908
|
*/
|
|
22874
22909
|
tier: _enum(["native", "ram-fullframe"]).optional()
|
|
22875
22910
|
});
|
|
22911
|
+
/**
|
|
22912
|
+
* What a PARKED frame is for — the `kind` half of the `(deviceId, trackId,
|
|
22913
|
+
* kind)` key ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
|
|
22914
|
+
*
|
|
22915
|
+
* - `keyFrame` — the track's clean best FULL frame at native width (capped by
|
|
22916
|
+
* the caller's `maxWidth`). What `keyFrame` + `keyFrameSmall` are written
|
|
22917
|
+
* from, and what the detail plane's full-frame rung cuts from.
|
|
22918
|
+
* - `thumbnail` — the best-shot subject slab: the caller's 16:9 central-square
|
|
22919
|
+
* window, cut by the runner at uncapped native resolution.
|
|
22920
|
+
*
|
|
22921
|
+
* The runner never interprets `trackId`; it is an opaque key the hub owns.
|
|
22922
|
+
*/
|
|
22923
|
+
var ParkedFrameKindSchema = _enum(["keyFrame", "thumbnail"]);
|
|
22924
|
+
/**
|
|
22925
|
+
* Why a park did NOT happen. Every one is logged on the runner with
|
|
22926
|
+
* `tags: { deviceId }` and the handle's measured age, because a handle already
|
|
22927
|
+
* gone at park time IS the defect the 150–500 ms window exists to prevent —
|
|
22928
|
+
* never a reason to retry in a loop.
|
|
22929
|
+
*
|
|
22930
|
+
* - `handle-gone` — the native surface no longer resolves this handle (never
|
|
22931
|
+
* registered, past the lease bound, or the worker released it). `detail`
|
|
22932
|
+
* carries the runner's own miss reason.
|
|
22933
|
+
* - `encode-failed` — pixels resolved and the JPEG encode threw.
|
|
22934
|
+
*/
|
|
22935
|
+
var ParkRefusalSchema = _enum(["handle-gone", "encode-failed"]);
|
|
22936
|
+
/** Answer to `parkTrackFrame` — a discriminated union, so "not parked" always names why. */
|
|
22937
|
+
var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
|
|
22938
|
+
parked: literal(true),
|
|
22939
|
+
/** The node holding the parcel — what a later retrieval must be pinned to. */
|
|
22940
|
+
nodeId: string(),
|
|
22941
|
+
width: number().int().positive(),
|
|
22942
|
+
height: number().int().positive(),
|
|
22943
|
+
/** JPEG bytes the parcel costs on the node. */
|
|
22944
|
+
bytes: number().int().nonnegative(),
|
|
22945
|
+
/** Whether this park replaced a parcel already held for the key. */
|
|
22946
|
+
replaced: boolean()
|
|
22947
|
+
}), object({
|
|
22948
|
+
parked: literal(false),
|
|
22949
|
+
nodeId: string(),
|
|
22950
|
+
reason: ParkRefusalSchema,
|
|
22951
|
+
/** Age of the handle at the park, on the runner's clock; null if unknown. */
|
|
22952
|
+
handleAgeMs: number().nullable(),
|
|
22953
|
+
detail: string().optional()
|
|
22954
|
+
})]);
|
|
22955
|
+
/** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
|
|
22956
|
+
var ParkedTrackFrameSchema = object({
|
|
22957
|
+
jpeg: string(),
|
|
22958
|
+
width: number().int().positive(),
|
|
22959
|
+
height: number().int().positive(),
|
|
22960
|
+
/** The frame instant the parcel shows (the caller's clock, echoed back). */
|
|
22961
|
+
timestamp: number(),
|
|
22962
|
+
/** When the node stored it (the node's clock). */
|
|
22963
|
+
parkedAt: number()
|
|
22964
|
+
});
|
|
22876
22965
|
/** Parent detection context passed to `runDetailSubtree` — the crop's
|
|
22877
22966
|
* originating detection, in FRAME-space coordinates. Reuses
|
|
22878
22967
|
* `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
|
|
@@ -23262,7 +23351,7 @@ var RunnerCameraConfigSchema = object({
|
|
|
23262
23351
|
* - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
|
|
23263
23352
|
* analyzer providers) running on decoded frames in this runner.
|
|
23264
23353
|
* - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
|
|
23265
|
-
* analytics
|
|
23354
|
+
* analytics). The provider emits ProviderMotion
|
|
23266
23355
|
* events; the orchestrator forwards to `reportMotion`.
|
|
23267
23356
|
*/
|
|
23268
23357
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
@@ -23644,7 +23733,60 @@ var pipelineRunnerCapability = {
|
|
|
23644
23733
|
className: string(),
|
|
23645
23734
|
/** Camera the pixels came from. Diagnostics + log tags ONLY — never routing. */
|
|
23646
23735
|
sourceDeviceId: number()
|
|
23647
|
-
}), RunStatelessStepResultSchema, { kind: "mutation" })
|
|
23736
|
+
}), RunStatelessStepResultSchema, { kind: "mutation" }),
|
|
23737
|
+
/**
|
|
23738
|
+
* PARK a frame for a track at the instant it is judged to matter
|
|
23739
|
+
* ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
|
|
23740
|
+
*
|
|
23741
|
+
* The hub's `BestDetectionTracker` — the single "best per track" policy —
|
|
23742
|
+
* concludes a frame is a track's best and calls this on the node that
|
|
23743
|
+
* owns `handle` (`nodePin(handle.nodeId)`), while the handle is young. The
|
|
23744
|
+
* runner cuts `bbox` from the native surface it already holds (a full
|
|
23745
|
+
* frame for `keyFrame`, the caller's subject window for `thumbnail`),
|
|
23746
|
+
* encodes ONE JPEG, and keeps it under `(deviceId, trackId, kind)`. Every
|
|
23747
|
+
* later consumer retrieves by that key (`getParkedTrackFrame`) — a lookup
|
|
23748
|
+
* that cannot miss on age. D52 holds: the rectangle is cut by the runner,
|
|
23749
|
+
* never a pre-cut tile the caller decided. D9/D18 hold: one compressed
|
|
23750
|
+
* encode at a decision point, never a stream.
|
|
23751
|
+
*
|
|
23752
|
+
* Idempotent per `(trackId, kind)`: a later park replaces (the ranking is
|
|
23753
|
+
* the hub's; this adds no second opinion), an out-of-order older instant
|
|
23754
|
+
* is ignored. Bounded per device and per node on the runner
|
|
23755
|
+
* (`parked-frame-store.ts`), oldest-first eviction, never a refusal for
|
|
23756
|
+
* space. A refusal names its reason and is logged on the runner with the
|
|
23757
|
+
* handle's measured age — it is never retried into a loop.
|
|
23758
|
+
*/
|
|
23759
|
+
parkTrackFrame: method(object({
|
|
23760
|
+
deviceId: number(),
|
|
23761
|
+
/** Opaque to the runner — the hub's track id. */
|
|
23762
|
+
trackId: string(),
|
|
23763
|
+
kind: ParkedFrameKindSchema,
|
|
23764
|
+
handle: FrameHandleSchema,
|
|
23765
|
+
/** Normalized [0,1] window to cut. `{0,0,1,1}` for a full frame. */
|
|
23766
|
+
bbox: NativeCropBboxSchema,
|
|
23767
|
+
/** Width cap for a full-frame park (the `keyFrame` native cap). */
|
|
23768
|
+
maxWidth: number().int().positive().optional(),
|
|
23769
|
+
/** The frame instant (caller's clock) — orders parks for one key. */
|
|
23770
|
+
timestamp: number()
|
|
23771
|
+
}), ParkTrackFrameResultSchema, { kind: "mutation" }),
|
|
23772
|
+
/**
|
|
23773
|
+
* Retrieve a parked parcel by `(deviceId, trackId, kind)`. Pinned to the
|
|
23774
|
+
* node that answered the park (`ParkTrackFrameResult.nodeId`). `null` means
|
|
23775
|
+
* nothing was parked under that key on this node — never "too old".
|
|
23776
|
+
*/
|
|
23777
|
+
getParkedTrackFrame: method(object({
|
|
23778
|
+
deviceId: number(),
|
|
23779
|
+
trackId: string(),
|
|
23780
|
+
kind: ParkedFrameKindSchema
|
|
23781
|
+
}), ParkedTrackFrameSchema.nullable()),
|
|
23782
|
+
/**
|
|
23783
|
+
* Drop every parcel of a track — the hub closed it. Idempotent. A track
|
|
23784
|
+
* whose release is lost ages out on the runner under a hard ceiling.
|
|
23785
|
+
*/
|
|
23786
|
+
releaseParkedTrackFrames: method(object({
|
|
23787
|
+
deviceId: number(),
|
|
23788
|
+
trackId: string()
|
|
23789
|
+
}), object({ released: number().int().nonnegative() }), { kind: "mutation" })
|
|
23648
23790
|
}
|
|
23649
23791
|
};
|
|
23650
23792
|
var CameraPipelineConfigSchema = object({
|
|
@@ -26706,8 +26848,8 @@ onStatusChanged: { data: object({
|
|
|
26706
26848
|
/**
|
|
26707
26849
|
* Runtime-state slice — every provider that registers this cap
|
|
26708
26850
|
* stores the same shape under `device.runtimeState[battery]`.
|
|
26709
|
-
* Cross-provider uniformity: a Reolink Argus, a
|
|
26710
|
-
*
|
|
26851
|
+
* Cross-provider uniformity: a Reolink Argus, a sensor proxy,
|
|
26852
|
+
* an ONVIF battery cam all read/write the same keys.
|
|
26711
26853
|
* Consumers (BatteryBadge, snapshot wrapper sleep gate) read once
|
|
26712
26854
|
* via `device.runtimeState.getCapState('battery')` regardless of
|
|
26713
26855
|
* the underlying driver.
|
|
@@ -26764,7 +26906,7 @@ DeviceType.Button, method(object({ deviceId: number().int().nonnegative() }), _v
|
|
|
26764
26906
|
*
|
|
26765
26907
|
* Implementations:
|
|
26766
26908
|
* - Each camera-providing addon registers this cap natively per
|
|
26767
|
-
* device (Reolink, Hikvision, RTSP,
|
|
26909
|
+
* device (Reolink, Hikvision, RTSP, ONVIF self).
|
|
26768
26910
|
* - Returns a snapshot from the persisted device config blob — no
|
|
26769
26911
|
* extra round-trip to the camera, no probing.
|
|
26770
26912
|
* - The cap is admin-only (`auth: 'admin'`) — credentials must not
|
|
@@ -28150,7 +28292,7 @@ var AvailableIntegrationTypeSchema = object({
|
|
|
28150
28292
|
* Which integration-marker cap the addon declared, so the wizard can
|
|
28151
28293
|
* branch on CAP — never on addon name. `device-adoption` integrations
|
|
28152
28294
|
* (Home Assistant, …) route through the broker step (Approach A);
|
|
28153
|
-
* `device-provider` integrations (Reolink/
|
|
28295
|
+
* `device-provider` integrations (Reolink/ONVIF) keep the
|
|
28154
28296
|
* legacy config → discovery flow.
|
|
28155
28297
|
*/
|
|
28156
28298
|
kind: _enum(["device-adoption", "device-provider"]),
|
|
@@ -30707,13 +30849,31 @@ var RecordingManifestSchema = object({
|
|
|
30707
30849
|
*/
|
|
30708
30850
|
playbackEndpoints: array(string())
|
|
30709
30851
|
});
|
|
30710
|
-
/**
|
|
30711
|
-
*
|
|
30852
|
+
/**
|
|
30853
|
+
* Recording storage usage for one camera — what the ARCHIVE holds for it,
|
|
30854
|
+
* across every profile and every resolvable location on this node.
|
|
30855
|
+
*
|
|
30856
|
+
* ## Archive vs residency, which is the whole point of this shape (D418)
|
|
30857
|
+
*
|
|
30858
|
+
* `usedBytes` / `oldestMs` / `segments` are the durable hour ledger's numbers:
|
|
30859
|
+
* the same quantity `RecordingLocationUsage.usedBytes` reports for the volume
|
|
30860
|
+
* this camera writes to, so the two can be added up and compared.
|
|
30861
|
+
*
|
|
30862
|
+
* They were not always. Until D418 this row came from the recorder's in-RAM
|
|
30863
|
+
* `RecordingIndex`, which since D287 holds only the live tail plus the hours
|
|
30864
|
+
* somebody hydrated — so a hub with 1.9 TB and 3.3 days of footage reported
|
|
30865
|
+
* 60.5 GB and "oldest: three hours ago" on the same page as the volume row
|
|
30866
|
+
* that said otherwise, and two people read it as retention eating recent
|
|
30867
|
+
* footage. Residency is still reported, under `residentBytes` /
|
|
30868
|
+
* `residentOldestMs`, which answer a different question and say so.
|
|
30869
|
+
*/
|
|
30712
30870
|
var RecordingDeviceUsageSchema = object({
|
|
30713
30871
|
deviceId: number(),
|
|
30872
|
+
/** Bytes the ARCHIVE holds for this camera on this node's resolvable
|
|
30873
|
+
* recordings locations. */
|
|
30714
30874
|
usedBytes: number(),
|
|
30715
30875
|
/**
|
|
30716
|
-
* Start of this camera's OLDEST
|
|
30876
|
+
* Start of this camera's OLDEST ARCHIVED segment, across every profile and
|
|
30717
30877
|
* location — the "Oldest footage" column in Recordings → Storage, and the
|
|
30718
30878
|
* only honest answer to "is retention actually holding?" per camera.
|
|
30719
30879
|
*
|
|
@@ -30723,7 +30883,24 @@ var RecordingDeviceUsageSchema = object({
|
|
|
30723
30883
|
* (types) and the addon ship on different trains, and the addon is usually
|
|
30724
30884
|
* the later of the two.
|
|
30725
30885
|
*/
|
|
30726
|
-
oldestMs: number().nullable().optional()
|
|
30886
|
+
oldestMs: number().nullable().optional(),
|
|
30887
|
+
/** Segments the archive holds for this camera — the "M" beside `usedBytes`.
|
|
30888
|
+
* OPTIONAL for the same train-skew reason as `oldestMs`. */
|
|
30889
|
+
segments: number().optional(),
|
|
30890
|
+
/**
|
|
30891
|
+
* RESIDENCY, not the archive: bytes the recorder process currently holds in
|
|
30892
|
+
* its RAM index — the live tail plus the hours a reader hydrated.
|
|
30893
|
+
*
|
|
30894
|
+
* It answers "what can be served without touching the disk", never "how much
|
|
30895
|
+
* footage this camera has". A UI that renders it must label it as such, and
|
|
30896
|
+
* must never total it as storage. OPTIONAL: a recorder predating D418 omits
|
|
30897
|
+
* it, and so does a node whose ledger could not answer.
|
|
30898
|
+
*/
|
|
30899
|
+
residentBytes: number().optional(),
|
|
30900
|
+
/** The residency counterpart of `oldestMs` — the oldest segment currently in
|
|
30901
|
+
* RAM, which on a healthy recorder is minutes ago and means nothing about
|
|
30902
|
+
* retention. `null` = nothing resident. */
|
|
30903
|
+
residentOldestMs: number().nullable().optional()
|
|
30727
30904
|
});
|
|
30728
30905
|
/** Recording storage usage + capacity for one storage location. */
|
|
30729
30906
|
var RecordingLocationUsageSchema = object({
|
|
@@ -30761,6 +30938,17 @@ var RecordingStorageUsageSchema = object({
|
|
|
30761
30938
|
totalUsedBytes: number(),
|
|
30762
30939
|
devices: array(RecordingDeviceUsageSchema),
|
|
30763
30940
|
/**
|
|
30941
|
+
* WHERE `devices[]` came from, so an empty table is never mistaken for empty
|
|
30942
|
+
* disks (D418).
|
|
30943
|
+
*
|
|
30944
|
+
* `archive` = the durable hour ledger answered. `unavailable` = this node
|
|
30945
|
+
* declared no ledger and the recorder REFUSED rather than answering the
|
|
30946
|
+
* question with the resident index (D295 rule 3) — the rows are UNKNOWN, not
|
|
30947
|
+
* zero, and a UI must say so. OPTIONAL: a recorder predating D418 omits it,
|
|
30948
|
+
* and its rows are residency.
|
|
30949
|
+
*/
|
|
30950
|
+
devicesRead: _enum(["archive", "unavailable"]).optional(),
|
|
30951
|
+
/**
|
|
30764
30952
|
* Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
|
|
30765
30953
|
* of the payload without it: the hub serves this method through a BAKED
|
|
30766
30954
|
* router, so a hub whose framework train predates a change to this array
|
|
@@ -37562,6 +37750,24 @@ Object.freeze({
|
|
|
37562
37750
|
addonId: null,
|
|
37563
37751
|
access: "view"
|
|
37564
37752
|
},
|
|
37753
|
+
"pipelineRunner.getParkedTrackFrame": {
|
|
37754
|
+
capName: "pipeline-runner",
|
|
37755
|
+
capScope: "system",
|
|
37756
|
+
addonId: null,
|
|
37757
|
+
access: "view"
|
|
37758
|
+
},
|
|
37759
|
+
"pipelineRunner.parkTrackFrame": {
|
|
37760
|
+
capName: "pipeline-runner",
|
|
37761
|
+
capScope: "system",
|
|
37762
|
+
addonId: null,
|
|
37763
|
+
access: "create"
|
|
37764
|
+
},
|
|
37765
|
+
"pipelineRunner.releaseParkedTrackFrames": {
|
|
37766
|
+
capName: "pipeline-runner",
|
|
37767
|
+
capScope: "system",
|
|
37768
|
+
addonId: null,
|
|
37769
|
+
access: "create"
|
|
37770
|
+
},
|
|
37565
37771
|
"pipelineRunner.reportMotion": {
|
|
37566
37772
|
capName: "pipeline-runner",
|
|
37567
37773
|
capScope: "system",
|
|
@@ -40839,6 +41045,21 @@ Object.freeze({
|
|
|
40839
41045
|
form: "single",
|
|
40840
41046
|
optional: false
|
|
40841
41047
|
}],
|
|
41048
|
+
"pipelineRunner.getParkedTrackFrame": [{
|
|
41049
|
+
name: "deviceId",
|
|
41050
|
+
form: "single",
|
|
41051
|
+
optional: false
|
|
41052
|
+
}],
|
|
41053
|
+
"pipelineRunner.parkTrackFrame": [{
|
|
41054
|
+
name: "deviceId",
|
|
41055
|
+
form: "single",
|
|
41056
|
+
optional: false
|
|
41057
|
+
}],
|
|
41058
|
+
"pipelineRunner.releaseParkedTrackFrames": [{
|
|
41059
|
+
name: "deviceId",
|
|
41060
|
+
form: "single",
|
|
41061
|
+
optional: false
|
|
41062
|
+
}],
|
|
40842
41063
|
"pipelineRunner.reportMotion": [{
|
|
40843
41064
|
name: "deviceId",
|
|
40844
41065
|
form: "single",
|
|
@@ -41580,7 +41801,7 @@ var PreviewTextField = string().max(200);
|
|
|
41580
41801
|
* Whether the notification's preview is a STILL or a short animation.
|
|
41581
41802
|
*
|
|
41582
41803
|
* The operator's ask, verbatim: *"inviato come gif o video (come per le altre
|
|
41583
|
-
* rule)"* —
|
|
41804
|
+
* rule)"* — the other rules already offer an animated preview, and a ten-hour
|
|
41584
41805
|
* night reads better as three seconds of motion than as one frame of it. Both
|
|
41585
41806
|
* modes get the SAME treatment (blurred frame, large centred title); `'gif'`
|
|
41586
41807
|
* 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-D7hxiBnC.js");
|
|
6
|
+
const require_lazy_sharp = require("../lazy-sharp-BSkbiuz5.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-DgeXZfwn.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-DgeXZfwn.mjs";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
import { realpathSync } from "node:fs";
|
|
4
4
|
import path from "node:path";
|