@camstack/addon-ai 0.4.93 → 0.4.96
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/addon.js +242 -18
- package/dist/addon.mjs +242 -18
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -12,7 +12,7 @@ let _camstack_system_addon_utils = require("@camstack/system/addon-utils");
|
|
|
12
12
|
let node_fs_promises = require("node:fs/promises");
|
|
13
13
|
node_fs_promises = require_chunk.__toESM(node_fs_promises);
|
|
14
14
|
let node_child_process = require("node:child_process");
|
|
15
|
-
//#region ../types/dist/event-category-
|
|
15
|
+
//#region ../types/dist/event-category-DAXzJeTX.mjs
|
|
16
16
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
17
17
|
EventCategory["SystemBoot"] = "system.boot";
|
|
18
18
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -604,7 +604,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
604
604
|
* issue. Payload `PipelineAnalyticsPlateGalleryChangedPayload`.
|
|
605
605
|
*/
|
|
606
606
|
EventCategory["PipelineAnalyticsPlateGalleryChanged"] = "pipeline-analytics.plate-gallery-changed";
|
|
607
|
-
EventCategory["FrigateLiveEvent"] = "frigate.live-event";
|
|
608
607
|
EventCategory["CameraStreamsProfileSlotsChanged"] = "camera-streams.onProfileSlotsChanged";
|
|
609
608
|
/**
|
|
610
609
|
* Stream-broker health watchdog. Per-broker (deviceId/profile) emission.
|
|
@@ -12726,7 +12725,7 @@ DeviceType.Camera;
|
|
|
12726
12725
|
var SourceInfoSchema = object({
|
|
12727
12726
|
/** Live dispatch key — mutable when the source system allows rename. */
|
|
12728
12727
|
id: string(),
|
|
12729
|
-
/** Source system tag — e.g. 'homeassistant' | 'reolink' | '
|
|
12728
|
+
/** Source system tag — e.g. 'homeassistant' | 'reolink' | 'onvif'. */
|
|
12730
12729
|
system: string(),
|
|
12731
12730
|
/** Immutable upstream identifier when available (HA `unique_id`, … ).
|
|
12732
12731
|
* Used to detect rename when `id` changes. */
|
|
@@ -13213,7 +13212,7 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
|
|
|
13213
13212
|
* - `device-management.router.ts` (deleted in Phase 2)
|
|
13214
13213
|
* - `device-ops.router.ts` (compat layer — deleted; device-provider ops absorbed here)
|
|
13215
13214
|
*
|
|
13216
|
-
* All device provider addons (rtsp, onvif,
|
|
13215
|
+
* All device provider addons (rtsp, onvif, …) are hub-local: they may
|
|
13217
13216
|
* fork into separate processes but never run on remote cluster agents. Therefore:
|
|
13218
13217
|
* - No nodeId routing needed — this is a pure hub singleton.
|
|
13219
13218
|
* - The hub's DeviceRegistry is the single source of truth for all live devices.
|
|
@@ -17317,7 +17316,7 @@ var NcRuleInputSchema = object({
|
|
|
17317
17316
|
* The measured seven-person arrival on device 590 spans 110 s with every
|
|
17318
17317
|
* internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
|
|
17319
17318
|
* idle cutoff holds it as one and ends it when the arrival actually ends.
|
|
17320
|
-
* 30 is
|
|
17319
|
+
* 30 s is a widely shipped value for the same decision.
|
|
17321
17320
|
*
|
|
17322
17321
|
* ### What it replaces
|
|
17323
17322
|
*
|
|
@@ -19359,6 +19358,13 @@ var ZoneCrossingSchema = object({
|
|
|
19359
19358
|
/** Zone display name at crossing time (falls back to the id). */
|
|
19360
19359
|
zoneName: string().optional()
|
|
19361
19360
|
});
|
|
19361
|
+
/** One zone a box was stamped with, and how much of the BOX fell inside it. */
|
|
19362
|
+
var ZoneOverlapSchema = object({
|
|
19363
|
+
zoneId: string(),
|
|
19364
|
+
zoneName: string().optional(),
|
|
19365
|
+
/** Percentage of the BOX area inside the zone, 0–100. */
|
|
19366
|
+
overlapPct: number$1()
|
|
19367
|
+
});
|
|
19362
19368
|
var ObjectEventSchema = object({
|
|
19363
19369
|
...BaseEventFields,
|
|
19364
19370
|
kind: literal("object"),
|
|
@@ -19383,6 +19389,35 @@ var ObjectEventSchema = object({
|
|
|
19383
19389
|
bbox: BoundingBoxSchema.optional(),
|
|
19384
19390
|
/** Heavy JSON — omitted in slim projection. */
|
|
19385
19391
|
zones: array(string()).readonly().optional(),
|
|
19392
|
+
/**
|
|
19393
|
+
* How far inside each stamped zone the box actually was, as a percentage of
|
|
19394
|
+
* the BOX area.
|
|
19395
|
+
*
|
|
19396
|
+
* Membership alone cannot express "at least a third of it inside", which is
|
|
19397
|
+
* the bar an operator argues with — and the number already existed: the
|
|
19398
|
+
* engine computed it, the pipeline logged it, and then discarded it. It
|
|
19399
|
+
* matters most on the events that carry no track, where a rule has nothing
|
|
19400
|
+
* else to judge by.
|
|
19401
|
+
*/
|
|
19402
|
+
zoneOverlaps: array(ZoneOverlapSchema).readonly().optional(),
|
|
19403
|
+
/**
|
|
19404
|
+
* Present when this event describes a detection the TRACKER refused, so it
|
|
19405
|
+
* has no track and never will.
|
|
19406
|
+
*
|
|
19407
|
+
* A zone-scoped immediate rule asks "is there an animal in the flowerbed
|
|
19408
|
+
* NOW?"; tracking answers a different question ("is this the same subject as
|
|
19409
|
+
* before?") whose confirmation threshold presumes continuity. On 2026-09-09 a
|
|
19410
|
+
* dog at 0.7729, 100% inside a watched zone, was refused three times in six
|
|
19411
|
+
* seconds with three different candidate ids — seven analysed frames in the
|
|
19412
|
+
* window, the subject in a handful of them, metres apart — and produced no
|
|
19413
|
+
* event at all.
|
|
19414
|
+
*
|
|
19415
|
+
* It is NAMED rather than merely implied by a missing `trackId`: an event
|
|
19416
|
+
* with no track and no reason is indistinguishable from a track whose media
|
|
19417
|
+
* went missing, and a consumer that asks this one for a best shot or a
|
|
19418
|
+
* history is asking for something that never existed.
|
|
19419
|
+
*/
|
|
19420
|
+
spawnRefused: string().optional(),
|
|
19386
19421
|
/** Omitted in slim projection. */
|
|
19387
19422
|
state: TrackStateSchema.optional(),
|
|
19388
19423
|
/**
|
|
@@ -19809,7 +19844,17 @@ var EventDensityBucketSchema = object({
|
|
|
19809
19844
|
bucketStart: number$1(),
|
|
19810
19845
|
motion: number$1().int(),
|
|
19811
19846
|
object: number$1().int(),
|
|
19812
|
-
audio: number$1().int()
|
|
19847
|
+
audio: number$1().int(),
|
|
19848
|
+
/**
|
|
19849
|
+
* Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
|
|
19850
|
+
* as opposed to `audio`, which is their COUNT (D431).
|
|
19851
|
+
*
|
|
19852
|
+
* ABSENT when the bucket holds no audio event. Absence means "nothing was
|
|
19853
|
+
* measured", which is not the same claim as silence, and a lane that cannot
|
|
19854
|
+
* tell them apart paints a quiet hour at full scale — which is exactly what
|
|
19855
|
+
* the count-on-a-level-meter did.
|
|
19856
|
+
*/
|
|
19857
|
+
audioDbfs: number$1().optional()
|
|
19813
19858
|
});
|
|
19814
19859
|
/**
|
|
19815
19860
|
* One camera's row in a `getEventDensityBatch` answer.
|
|
@@ -20456,6 +20501,60 @@ var NativeCropResultSchema = object({
|
|
|
20456
20501
|
*/
|
|
20457
20502
|
tier: _enum(["native", "ram-fullframe"]).optional()
|
|
20458
20503
|
});
|
|
20504
|
+
/**
|
|
20505
|
+
* What a PARKED frame is for — the `kind` half of the `(deviceId, trackId,
|
|
20506
|
+
* kind)` key ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
|
|
20507
|
+
*
|
|
20508
|
+
* - `keyFrame` — the track's clean best FULL frame at native width (capped by
|
|
20509
|
+
* the caller's `maxWidth`). What `keyFrame` + `keyFrameSmall` are written
|
|
20510
|
+
* from, and what the detail plane's full-frame rung cuts from.
|
|
20511
|
+
* - `thumbnail` — the best-shot subject slab: the caller's 16:9 central-square
|
|
20512
|
+
* window, cut by the runner at uncapped native resolution.
|
|
20513
|
+
*
|
|
20514
|
+
* The runner never interprets `trackId`; it is an opaque key the hub owns.
|
|
20515
|
+
*/
|
|
20516
|
+
var ParkedFrameKindSchema = _enum(["keyFrame", "thumbnail"]);
|
|
20517
|
+
/**
|
|
20518
|
+
* Why a park did NOT happen. Every one is logged on the runner with
|
|
20519
|
+
* `tags: { deviceId }` and the handle's measured age, because a handle already
|
|
20520
|
+
* gone at park time IS the defect the 150–500 ms window exists to prevent —
|
|
20521
|
+
* never a reason to retry in a loop.
|
|
20522
|
+
*
|
|
20523
|
+
* - `handle-gone` — the native surface no longer resolves this handle (never
|
|
20524
|
+
* registered, past the lease bound, or the worker released it). `detail`
|
|
20525
|
+
* carries the runner's own miss reason.
|
|
20526
|
+
* - `encode-failed` — pixels resolved and the JPEG encode threw.
|
|
20527
|
+
*/
|
|
20528
|
+
var ParkRefusalSchema = _enum(["handle-gone", "encode-failed"]);
|
|
20529
|
+
/** Answer to `parkTrackFrame` — a discriminated union, so "not parked" always names why. */
|
|
20530
|
+
var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
|
|
20531
|
+
parked: literal(true),
|
|
20532
|
+
/** The node holding the parcel — what a later retrieval must be pinned to. */
|
|
20533
|
+
nodeId: string(),
|
|
20534
|
+
width: number$1().int().positive(),
|
|
20535
|
+
height: number$1().int().positive(),
|
|
20536
|
+
/** JPEG bytes the parcel costs on the node. */
|
|
20537
|
+
bytes: number$1().int().nonnegative(),
|
|
20538
|
+
/** Whether this park replaced a parcel already held for the key. */
|
|
20539
|
+
replaced: boolean()
|
|
20540
|
+
}), object({
|
|
20541
|
+
parked: literal(false),
|
|
20542
|
+
nodeId: string(),
|
|
20543
|
+
reason: ParkRefusalSchema,
|
|
20544
|
+
/** Age of the handle at the park, on the runner's clock; null if unknown. */
|
|
20545
|
+
handleAgeMs: number$1().nullable(),
|
|
20546
|
+
detail: string().optional()
|
|
20547
|
+
})]);
|
|
20548
|
+
/** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
|
|
20549
|
+
var ParkedTrackFrameSchema = object({
|
|
20550
|
+
jpeg: string(),
|
|
20551
|
+
width: number$1().int().positive(),
|
|
20552
|
+
height: number$1().int().positive(),
|
|
20553
|
+
/** The frame instant the parcel shows (the caller's clock, echoed back). */
|
|
20554
|
+
timestamp: number$1(),
|
|
20555
|
+
/** When the node stored it (the node's clock). */
|
|
20556
|
+
parkedAt: number$1()
|
|
20557
|
+
});
|
|
20459
20558
|
/** Parent detection context passed to `runDetailSubtree` — the crop's
|
|
20460
20559
|
* originating detection, in FRAME-space coordinates. Reuses
|
|
20461
20560
|
* `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
|
|
@@ -20845,7 +20944,7 @@ var RunnerCameraConfigSchema = object({
|
|
|
20845
20944
|
* - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
|
|
20846
20945
|
* analyzer providers) running on decoded frames in this runner.
|
|
20847
20946
|
* - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
|
|
20848
|
-
* analytics
|
|
20947
|
+
* analytics). The provider emits ProviderMotion
|
|
20849
20948
|
* events; the orchestrator forwards to `reportMotion`.
|
|
20850
20949
|
*/
|
|
20851
20950
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
@@ -21087,7 +21186,26 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
21087
21186
|
className: string(),
|
|
21088
21187
|
/** Camera the pixels came from. Diagnostics + log tags ONLY — never routing. */
|
|
21089
21188
|
sourceDeviceId: number$1()
|
|
21090
|
-
}), RunStatelessStepResultSchema, { kind: "mutation" })
|
|
21189
|
+
}), RunStatelessStepResultSchema, { kind: "mutation" }), method(object({
|
|
21190
|
+
deviceId: number$1(),
|
|
21191
|
+
/** Opaque to the runner — the hub's track id. */
|
|
21192
|
+
trackId: string(),
|
|
21193
|
+
kind: ParkedFrameKindSchema,
|
|
21194
|
+
handle: FrameHandleSchema,
|
|
21195
|
+
/** Normalized [0,1] window to cut. `{0,0,1,1}` for a full frame. */
|
|
21196
|
+
bbox: NativeCropBboxSchema,
|
|
21197
|
+
/** Width cap for a full-frame park (the `keyFrame` native cap). */
|
|
21198
|
+
maxWidth: number$1().int().positive().optional(),
|
|
21199
|
+
/** The frame instant (caller's clock) — orders parks for one key. */
|
|
21200
|
+
timestamp: number$1()
|
|
21201
|
+
}), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
|
|
21202
|
+
deviceId: number$1(),
|
|
21203
|
+
trackId: string(),
|
|
21204
|
+
kind: ParkedFrameKindSchema
|
|
21205
|
+
}), ParkedTrackFrameSchema.nullable()), method(object({
|
|
21206
|
+
deviceId: number$1(),
|
|
21207
|
+
trackId: string()
|
|
21208
|
+
}), object({ released: number$1().int().nonnegative() }), { kind: "mutation" });
|
|
21091
21209
|
var CameraPipelineConfigSchema = object({
|
|
21092
21210
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
21093
21211
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -24016,7 +24134,7 @@ DeviceType.Button, method(object({ deviceId: number$1().int().nonnegative() }),
|
|
|
24016
24134
|
*
|
|
24017
24135
|
* Implementations:
|
|
24018
24136
|
* - Each camera-providing addon registers this cap natively per
|
|
24019
|
-
* device (Reolink, Hikvision, RTSP,
|
|
24137
|
+
* device (Reolink, Hikvision, RTSP, ONVIF self).
|
|
24020
24138
|
* - Returns a snapshot from the persisted device config blob — no
|
|
24021
24139
|
* extra round-trip to the camera, no probing.
|
|
24022
24140
|
* - The cap is admin-only (`auth: 'admin'`) — credentials must not
|
|
@@ -25402,7 +25520,7 @@ var AvailableIntegrationTypeSchema = object({
|
|
|
25402
25520
|
* Which integration-marker cap the addon declared, so the wizard can
|
|
25403
25521
|
* branch on CAP — never on addon name. `device-adoption` integrations
|
|
25404
25522
|
* (Home Assistant, …) route through the broker step (Approach A);
|
|
25405
|
-
* `device-provider` integrations (Reolink/
|
|
25523
|
+
* `device-provider` integrations (Reolink/ONVIF) keep the
|
|
25406
25524
|
* legacy config → discovery flow.
|
|
25407
25525
|
*/
|
|
25408
25526
|
kind: _enum(["device-adoption", "device-provider"]),
|
|
@@ -27903,7 +28021,23 @@ var RecordingRangeSchema = object({
|
|
|
27903
28021
|
});
|
|
27904
28022
|
var RecordingAvailabilitySchema = object({
|
|
27905
28023
|
deviceId: number$1(),
|
|
27906
|
-
ranges: array(RecordingRangeSchema)
|
|
28024
|
+
ranges: array(RecordingRangeSchema),
|
|
28025
|
+
/**
|
|
28026
|
+
* Every profile this camera has footage in — not only the one `ranges`
|
|
28027
|
+
* describes (D433).
|
|
28028
|
+
*
|
|
28029
|
+
* `ranges` answers for ONE profile by design: the timeline is a single bar,
|
|
28030
|
+
* and enumerating all of them triples the directory reads for a bar that
|
|
28031
|
+
* would look identical. But the answer used to say nothing about that, so a
|
|
28032
|
+
* caller asking "what can I export?" read the single preferred profile as
|
|
28033
|
+
* the only one that exists — on this deployment every camera records `high`
|
|
28034
|
+
* AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
|
|
28035
|
+
* UI could not see it.
|
|
28036
|
+
*
|
|
28037
|
+
* Cheap: it is the same shallow directory read the profile CHOICE already
|
|
28038
|
+
* makes. Ask for a specific profile's ranges with the `profile` input.
|
|
28039
|
+
*/
|
|
28040
|
+
profilesWithFootage: array(string())
|
|
27907
28041
|
});
|
|
27908
28042
|
var RecordingDaysSchema = object({
|
|
27909
28043
|
deviceId: number$1(),
|
|
@@ -27929,7 +28063,11 @@ var RecordingDaysSchema = object({
|
|
|
27929
28063
|
var RecordingAvailabilityForDeviceSchema = object({
|
|
27930
28064
|
deviceId: number$1(),
|
|
27931
28065
|
read: _enum(["read", "unreadable"]),
|
|
27932
|
-
ranges: array(RecordingRangeSchema).readonly()
|
|
28066
|
+
ranges: array(RecordingRangeSchema).readonly(),
|
|
28067
|
+
/** Same field, same meaning, as the singular answer (D433). A row that
|
|
28068
|
+
* dropped it would tell a grid caller the archive holds one profile.
|
|
28069
|
+
* Empty on an `'unreadable'` row: nobody looked. */
|
|
28070
|
+
profilesWithFootage: array(string()).readonly()
|
|
27933
28071
|
});
|
|
27934
28072
|
/**
|
|
27935
28073
|
* One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
|
|
@@ -27959,13 +28097,31 @@ var RecordingManifestSchema = object({
|
|
|
27959
28097
|
*/
|
|
27960
28098
|
playbackEndpoints: array(string())
|
|
27961
28099
|
});
|
|
27962
|
-
/**
|
|
27963
|
-
*
|
|
28100
|
+
/**
|
|
28101
|
+
* Recording storage usage for one camera — what the ARCHIVE holds for it,
|
|
28102
|
+
* across every profile and every resolvable location on this node.
|
|
28103
|
+
*
|
|
28104
|
+
* ## Archive vs residency, which is the whole point of this shape (D418)
|
|
28105
|
+
*
|
|
28106
|
+
* `usedBytes` / `oldestMs` / `segments` are the durable hour ledger's numbers:
|
|
28107
|
+
* the same quantity `RecordingLocationUsage.usedBytes` reports for the volume
|
|
28108
|
+
* this camera writes to, so the two can be added up and compared.
|
|
28109
|
+
*
|
|
28110
|
+
* They were not always. Until D418 this row came from the recorder's in-RAM
|
|
28111
|
+
* `RecordingIndex`, which since D287 holds only the live tail plus the hours
|
|
28112
|
+
* somebody hydrated — so a hub with 1.9 TB and 3.3 days of footage reported
|
|
28113
|
+
* 60.5 GB and "oldest: three hours ago" on the same page as the volume row
|
|
28114
|
+
* that said otherwise, and two people read it as retention eating recent
|
|
28115
|
+
* footage. Residency is still reported, under `residentBytes` /
|
|
28116
|
+
* `residentOldestMs`, which answer a different question and say so.
|
|
28117
|
+
*/
|
|
27964
28118
|
var RecordingDeviceUsageSchema = object({
|
|
27965
28119
|
deviceId: number$1(),
|
|
28120
|
+
/** Bytes the ARCHIVE holds for this camera on this node's resolvable
|
|
28121
|
+
* recordings locations. */
|
|
27966
28122
|
usedBytes: number$1(),
|
|
27967
28123
|
/**
|
|
27968
|
-
* Start of this camera's OLDEST
|
|
28124
|
+
* Start of this camera's OLDEST ARCHIVED segment, across every profile and
|
|
27969
28125
|
* location — the "Oldest footage" column in Recordings → Storage, and the
|
|
27970
28126
|
* only honest answer to "is retention actually holding?" per camera.
|
|
27971
28127
|
*
|
|
@@ -27975,7 +28131,24 @@ var RecordingDeviceUsageSchema = object({
|
|
|
27975
28131
|
* (types) and the addon ship on different trains, and the addon is usually
|
|
27976
28132
|
* the later of the two.
|
|
27977
28133
|
*/
|
|
27978
|
-
oldestMs: number$1().nullable().optional()
|
|
28134
|
+
oldestMs: number$1().nullable().optional(),
|
|
28135
|
+
/** Segments the archive holds for this camera — the "M" beside `usedBytes`.
|
|
28136
|
+
* OPTIONAL for the same train-skew reason as `oldestMs`. */
|
|
28137
|
+
segments: number$1().optional(),
|
|
28138
|
+
/**
|
|
28139
|
+
* RESIDENCY, not the archive: bytes the recorder process currently holds in
|
|
28140
|
+
* its RAM index — the live tail plus the hours a reader hydrated.
|
|
28141
|
+
*
|
|
28142
|
+
* It answers "what can be served without touching the disk", never "how much
|
|
28143
|
+
* footage this camera has". A UI that renders it must label it as such, and
|
|
28144
|
+
* must never total it as storage. OPTIONAL: a recorder predating D418 omits
|
|
28145
|
+
* it, and so does a node whose ledger could not answer.
|
|
28146
|
+
*/
|
|
28147
|
+
residentBytes: number$1().optional(),
|
|
28148
|
+
/** The residency counterpart of `oldestMs` — the oldest segment currently in
|
|
28149
|
+
* RAM, which on a healthy recorder is minutes ago and means nothing about
|
|
28150
|
+
* retention. `null` = nothing resident. */
|
|
28151
|
+
residentOldestMs: number$1().nullable().optional()
|
|
27979
28152
|
});
|
|
27980
28153
|
/** Recording storage usage + capacity for one storage location. */
|
|
27981
28154
|
var RecordingLocationUsageSchema = object({
|
|
@@ -28013,6 +28186,17 @@ var RecordingStorageUsageSchema = object({
|
|
|
28013
28186
|
totalUsedBytes: number$1(),
|
|
28014
28187
|
devices: array(RecordingDeviceUsageSchema),
|
|
28015
28188
|
/**
|
|
28189
|
+
* WHERE `devices[]` came from, so an empty table is never mistaken for empty
|
|
28190
|
+
* disks (D418).
|
|
28191
|
+
*
|
|
28192
|
+
* `archive` = the durable hour ledger answered. `unavailable` = this node
|
|
28193
|
+
* declared no ledger and the recorder REFUSED rather than answering the
|
|
28194
|
+
* question with the resident index (D295 rule 3) — the rows are UNKNOWN, not
|
|
28195
|
+
* zero, and a UI must say so. OPTIONAL: a recorder predating D418 omits it,
|
|
28196
|
+
* and its rows are residency.
|
|
28197
|
+
*/
|
|
28198
|
+
devicesRead: _enum(["archive", "unavailable"]).optional(),
|
|
28199
|
+
/**
|
|
28016
28200
|
* Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
|
|
28017
28201
|
* of the payload without it: the hub serves this method through a BAKED
|
|
28018
28202
|
* router, so a hub whose framework train predates a change to this array
|
|
@@ -28173,7 +28357,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
|
|
|
28173
28357
|
method(object({
|
|
28174
28358
|
deviceId: number$1(),
|
|
28175
28359
|
fromMs: number$1(),
|
|
28176
|
-
toMs: number$1()
|
|
28360
|
+
toMs: number$1(),
|
|
28361
|
+
/**
|
|
28362
|
+
* Answer for THIS profile instead of the preferred one (D433). Absent
|
|
28363
|
+
* keeps the timeline's behaviour — one bar, one profile, one set of
|
|
28364
|
+
* reads. `profilesWithFootage` on the answer says what may be asked
|
|
28365
|
+
* for.
|
|
28366
|
+
*/
|
|
28367
|
+
profile: string().optional()
|
|
28177
28368
|
}), RecordingAvailabilitySchema, {
|
|
28178
28369
|
kind: "query",
|
|
28179
28370
|
auth: "protected"
|
|
@@ -34400,6 +34591,24 @@ Object.freeze({
|
|
|
34400
34591
|
addonId: null,
|
|
34401
34592
|
access: "view"
|
|
34402
34593
|
},
|
|
34594
|
+
"pipelineRunner.getParkedTrackFrame": {
|
|
34595
|
+
capName: "pipeline-runner",
|
|
34596
|
+
capScope: "system",
|
|
34597
|
+
addonId: null,
|
|
34598
|
+
access: "view"
|
|
34599
|
+
},
|
|
34600
|
+
"pipelineRunner.parkTrackFrame": {
|
|
34601
|
+
capName: "pipeline-runner",
|
|
34602
|
+
capScope: "system",
|
|
34603
|
+
addonId: null,
|
|
34604
|
+
access: "create"
|
|
34605
|
+
},
|
|
34606
|
+
"pipelineRunner.releaseParkedTrackFrames": {
|
|
34607
|
+
capName: "pipeline-runner",
|
|
34608
|
+
capScope: "system",
|
|
34609
|
+
addonId: null,
|
|
34610
|
+
access: "create"
|
|
34611
|
+
},
|
|
34403
34612
|
"pipelineRunner.reportMotion": {
|
|
34404
34613
|
capName: "pipeline-runner",
|
|
34405
34614
|
capScope: "system",
|
|
@@ -37677,6 +37886,21 @@ Object.freeze({
|
|
|
37677
37886
|
form: "single",
|
|
37678
37887
|
optional: false
|
|
37679
37888
|
}],
|
|
37889
|
+
"pipelineRunner.getParkedTrackFrame": [{
|
|
37890
|
+
name: "deviceId",
|
|
37891
|
+
form: "single",
|
|
37892
|
+
optional: false
|
|
37893
|
+
}],
|
|
37894
|
+
"pipelineRunner.parkTrackFrame": [{
|
|
37895
|
+
name: "deviceId",
|
|
37896
|
+
form: "single",
|
|
37897
|
+
optional: false
|
|
37898
|
+
}],
|
|
37899
|
+
"pipelineRunner.releaseParkedTrackFrames": [{
|
|
37900
|
+
name: "deviceId",
|
|
37901
|
+
form: "single",
|
|
37902
|
+
optional: false
|
|
37903
|
+
}],
|
|
37680
37904
|
"pipelineRunner.reportMotion": [{
|
|
37681
37905
|
name: "deviceId",
|
|
37682
37906
|
form: "single",
|
|
@@ -38368,7 +38592,7 @@ var PreviewTextField = string().max(200);
|
|
|
38368
38592
|
* Whether the notification's preview is a STILL or a short animation.
|
|
38369
38593
|
*
|
|
38370
38594
|
* The operator's ask, verbatim: *"inviato come gif o video (come per le altre
|
|
38371
|
-
* rule)"* —
|
|
38595
|
+
* rule)"* — the other rules already offer an animated preview, and a ten-hour
|
|
38372
38596
|
* night reads better as three seconds of motion than as one frame of it. Both
|
|
38373
38597
|
* modes get the SAME treatment (blurred frame, large centred title); `'gif'`
|
|
38374
38598
|
* simply applies it to a dozen frames sampled across the render and assembles
|
package/dist/addon.mjs
CHANGED
|
@@ -39,7 +39,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
39
39
|
}) : target, mod));
|
|
40
40
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
41
41
|
//#endregion
|
|
42
|
-
//#region ../types/dist/event-category-
|
|
42
|
+
//#region ../types/dist/event-category-DAXzJeTX.mjs
|
|
43
43
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
44
44
|
EventCategory["SystemBoot"] = "system.boot";
|
|
45
45
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -631,7 +631,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
631
631
|
* issue. Payload `PipelineAnalyticsPlateGalleryChangedPayload`.
|
|
632
632
|
*/
|
|
633
633
|
EventCategory["PipelineAnalyticsPlateGalleryChanged"] = "pipeline-analytics.plate-gallery-changed";
|
|
634
|
-
EventCategory["FrigateLiveEvent"] = "frigate.live-event";
|
|
635
634
|
EventCategory["CameraStreamsProfileSlotsChanged"] = "camera-streams.onProfileSlotsChanged";
|
|
636
635
|
/**
|
|
637
636
|
* Stream-broker health watchdog. Per-broker (deviceId/profile) emission.
|
|
@@ -12753,7 +12752,7 @@ DeviceType.Camera;
|
|
|
12753
12752
|
var SourceInfoSchema = object({
|
|
12754
12753
|
/** Live dispatch key — mutable when the source system allows rename. */
|
|
12755
12754
|
id: string(),
|
|
12756
|
-
/** Source system tag — e.g. 'homeassistant' | 'reolink' | '
|
|
12755
|
+
/** Source system tag — e.g. 'homeassistant' | 'reolink' | 'onvif'. */
|
|
12757
12756
|
system: string(),
|
|
12758
12757
|
/** Immutable upstream identifier when available (HA `unique_id`, … ).
|
|
12759
12758
|
* Used to detect rename when `id` changes. */
|
|
@@ -13240,7 +13239,7 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
|
|
|
13240
13239
|
* - `device-management.router.ts` (deleted in Phase 2)
|
|
13241
13240
|
* - `device-ops.router.ts` (compat layer — deleted; device-provider ops absorbed here)
|
|
13242
13241
|
*
|
|
13243
|
-
* All device provider addons (rtsp, onvif,
|
|
13242
|
+
* All device provider addons (rtsp, onvif, …) are hub-local: they may
|
|
13244
13243
|
* fork into separate processes but never run on remote cluster agents. Therefore:
|
|
13245
13244
|
* - No nodeId routing needed — this is a pure hub singleton.
|
|
13246
13245
|
* - The hub's DeviceRegistry is the single source of truth for all live devices.
|
|
@@ -17344,7 +17343,7 @@ var NcRuleInputSchema = object({
|
|
|
17344
17343
|
* The measured seven-person arrival on device 590 spans 110 s with every
|
|
17345
17344
|
* internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
|
|
17346
17345
|
* idle cutoff holds it as one and ends it when the arrival actually ends.
|
|
17347
|
-
* 30 is
|
|
17346
|
+
* 30 s is a widely shipped value for the same decision.
|
|
17348
17347
|
*
|
|
17349
17348
|
* ### What it replaces
|
|
17350
17349
|
*
|
|
@@ -19386,6 +19385,13 @@ var ZoneCrossingSchema = object({
|
|
|
19386
19385
|
/** Zone display name at crossing time (falls back to the id). */
|
|
19387
19386
|
zoneName: string().optional()
|
|
19388
19387
|
});
|
|
19388
|
+
/** One zone a box was stamped with, and how much of the BOX fell inside it. */
|
|
19389
|
+
var ZoneOverlapSchema = object({
|
|
19390
|
+
zoneId: string(),
|
|
19391
|
+
zoneName: string().optional(),
|
|
19392
|
+
/** Percentage of the BOX area inside the zone, 0–100. */
|
|
19393
|
+
overlapPct: number$1()
|
|
19394
|
+
});
|
|
19389
19395
|
var ObjectEventSchema = object({
|
|
19390
19396
|
...BaseEventFields,
|
|
19391
19397
|
kind: literal("object"),
|
|
@@ -19410,6 +19416,35 @@ var ObjectEventSchema = object({
|
|
|
19410
19416
|
bbox: BoundingBoxSchema.optional(),
|
|
19411
19417
|
/** Heavy JSON — omitted in slim projection. */
|
|
19412
19418
|
zones: array(string()).readonly().optional(),
|
|
19419
|
+
/**
|
|
19420
|
+
* How far inside each stamped zone the box actually was, as a percentage of
|
|
19421
|
+
* the BOX area.
|
|
19422
|
+
*
|
|
19423
|
+
* Membership alone cannot express "at least a third of it inside", which is
|
|
19424
|
+
* the bar an operator argues with — and the number already existed: the
|
|
19425
|
+
* engine computed it, the pipeline logged it, and then discarded it. It
|
|
19426
|
+
* matters most on the events that carry no track, where a rule has nothing
|
|
19427
|
+
* else to judge by.
|
|
19428
|
+
*/
|
|
19429
|
+
zoneOverlaps: array(ZoneOverlapSchema).readonly().optional(),
|
|
19430
|
+
/**
|
|
19431
|
+
* Present when this event describes a detection the TRACKER refused, so it
|
|
19432
|
+
* has no track and never will.
|
|
19433
|
+
*
|
|
19434
|
+
* A zone-scoped immediate rule asks "is there an animal in the flowerbed
|
|
19435
|
+
* NOW?"; tracking answers a different question ("is this the same subject as
|
|
19436
|
+
* before?") whose confirmation threshold presumes continuity. On 2026-09-09 a
|
|
19437
|
+
* dog at 0.7729, 100% inside a watched zone, was refused three times in six
|
|
19438
|
+
* seconds with three different candidate ids — seven analysed frames in the
|
|
19439
|
+
* window, the subject in a handful of them, metres apart — and produced no
|
|
19440
|
+
* event at all.
|
|
19441
|
+
*
|
|
19442
|
+
* It is NAMED rather than merely implied by a missing `trackId`: an event
|
|
19443
|
+
* with no track and no reason is indistinguishable from a track whose media
|
|
19444
|
+
* went missing, and a consumer that asks this one for a best shot or a
|
|
19445
|
+
* history is asking for something that never existed.
|
|
19446
|
+
*/
|
|
19447
|
+
spawnRefused: string().optional(),
|
|
19413
19448
|
/** Omitted in slim projection. */
|
|
19414
19449
|
state: TrackStateSchema.optional(),
|
|
19415
19450
|
/**
|
|
@@ -19836,7 +19871,17 @@ var EventDensityBucketSchema = object({
|
|
|
19836
19871
|
bucketStart: number$1(),
|
|
19837
19872
|
motion: number$1().int(),
|
|
19838
19873
|
object: number$1().int(),
|
|
19839
|
-
audio: number$1().int()
|
|
19874
|
+
audio: number$1().int(),
|
|
19875
|
+
/**
|
|
19876
|
+
* Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
|
|
19877
|
+
* as opposed to `audio`, which is their COUNT (D431).
|
|
19878
|
+
*
|
|
19879
|
+
* ABSENT when the bucket holds no audio event. Absence means "nothing was
|
|
19880
|
+
* measured", which is not the same claim as silence, and a lane that cannot
|
|
19881
|
+
* tell them apart paints a quiet hour at full scale — which is exactly what
|
|
19882
|
+
* the count-on-a-level-meter did.
|
|
19883
|
+
*/
|
|
19884
|
+
audioDbfs: number$1().optional()
|
|
19840
19885
|
});
|
|
19841
19886
|
/**
|
|
19842
19887
|
* One camera's row in a `getEventDensityBatch` answer.
|
|
@@ -20483,6 +20528,60 @@ var NativeCropResultSchema = object({
|
|
|
20483
20528
|
*/
|
|
20484
20529
|
tier: _enum(["native", "ram-fullframe"]).optional()
|
|
20485
20530
|
});
|
|
20531
|
+
/**
|
|
20532
|
+
* What a PARKED frame is for — the `kind` half of the `(deviceId, trackId,
|
|
20533
|
+
* kind)` key ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
|
|
20534
|
+
*
|
|
20535
|
+
* - `keyFrame` — the track's clean best FULL frame at native width (capped by
|
|
20536
|
+
* the caller's `maxWidth`). What `keyFrame` + `keyFrameSmall` are written
|
|
20537
|
+
* from, and what the detail plane's full-frame rung cuts from.
|
|
20538
|
+
* - `thumbnail` — the best-shot subject slab: the caller's 16:9 central-square
|
|
20539
|
+
* window, cut by the runner at uncapped native resolution.
|
|
20540
|
+
*
|
|
20541
|
+
* The runner never interprets `trackId`; it is an opaque key the hub owns.
|
|
20542
|
+
*/
|
|
20543
|
+
var ParkedFrameKindSchema = _enum(["keyFrame", "thumbnail"]);
|
|
20544
|
+
/**
|
|
20545
|
+
* Why a park did NOT happen. Every one is logged on the runner with
|
|
20546
|
+
* `tags: { deviceId }` and the handle's measured age, because a handle already
|
|
20547
|
+
* gone at park time IS the defect the 150–500 ms window exists to prevent —
|
|
20548
|
+
* never a reason to retry in a loop.
|
|
20549
|
+
*
|
|
20550
|
+
* - `handle-gone` — the native surface no longer resolves this handle (never
|
|
20551
|
+
* registered, past the lease bound, or the worker released it). `detail`
|
|
20552
|
+
* carries the runner's own miss reason.
|
|
20553
|
+
* - `encode-failed` — pixels resolved and the JPEG encode threw.
|
|
20554
|
+
*/
|
|
20555
|
+
var ParkRefusalSchema = _enum(["handle-gone", "encode-failed"]);
|
|
20556
|
+
/** Answer to `parkTrackFrame` — a discriminated union, so "not parked" always names why. */
|
|
20557
|
+
var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
|
|
20558
|
+
parked: literal(true),
|
|
20559
|
+
/** The node holding the parcel — what a later retrieval must be pinned to. */
|
|
20560
|
+
nodeId: string(),
|
|
20561
|
+
width: number$1().int().positive(),
|
|
20562
|
+
height: number$1().int().positive(),
|
|
20563
|
+
/** JPEG bytes the parcel costs on the node. */
|
|
20564
|
+
bytes: number$1().int().nonnegative(),
|
|
20565
|
+
/** Whether this park replaced a parcel already held for the key. */
|
|
20566
|
+
replaced: boolean()
|
|
20567
|
+
}), object({
|
|
20568
|
+
parked: literal(false),
|
|
20569
|
+
nodeId: string(),
|
|
20570
|
+
reason: ParkRefusalSchema,
|
|
20571
|
+
/** Age of the handle at the park, on the runner's clock; null if unknown. */
|
|
20572
|
+
handleAgeMs: number$1().nullable(),
|
|
20573
|
+
detail: string().optional()
|
|
20574
|
+
})]);
|
|
20575
|
+
/** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
|
|
20576
|
+
var ParkedTrackFrameSchema = object({
|
|
20577
|
+
jpeg: string(),
|
|
20578
|
+
width: number$1().int().positive(),
|
|
20579
|
+
height: number$1().int().positive(),
|
|
20580
|
+
/** The frame instant the parcel shows (the caller's clock, echoed back). */
|
|
20581
|
+
timestamp: number$1(),
|
|
20582
|
+
/** When the node stored it (the node's clock). */
|
|
20583
|
+
parkedAt: number$1()
|
|
20584
|
+
});
|
|
20486
20585
|
/** Parent detection context passed to `runDetailSubtree` — the crop's
|
|
20487
20586
|
* originating detection, in FRAME-space coordinates. Reuses
|
|
20488
20587
|
* `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
|
|
@@ -20872,7 +20971,7 @@ var RunnerCameraConfigSchema = object({
|
|
|
20872
20971
|
* - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
|
|
20873
20972
|
* analyzer providers) running on decoded frames in this runner.
|
|
20874
20973
|
* - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
|
|
20875
|
-
* analytics
|
|
20974
|
+
* analytics). The provider emits ProviderMotion
|
|
20876
20975
|
* events; the orchestrator forwards to `reportMotion`.
|
|
20877
20976
|
*/
|
|
20878
20977
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
@@ -21114,7 +21213,26 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
21114
21213
|
className: string(),
|
|
21115
21214
|
/** Camera the pixels came from. Diagnostics + log tags ONLY — never routing. */
|
|
21116
21215
|
sourceDeviceId: number$1()
|
|
21117
|
-
}), RunStatelessStepResultSchema, { kind: "mutation" })
|
|
21216
|
+
}), RunStatelessStepResultSchema, { kind: "mutation" }), method(object({
|
|
21217
|
+
deviceId: number$1(),
|
|
21218
|
+
/** Opaque to the runner — the hub's track id. */
|
|
21219
|
+
trackId: string(),
|
|
21220
|
+
kind: ParkedFrameKindSchema,
|
|
21221
|
+
handle: FrameHandleSchema,
|
|
21222
|
+
/** Normalized [0,1] window to cut. `{0,0,1,1}` for a full frame. */
|
|
21223
|
+
bbox: NativeCropBboxSchema,
|
|
21224
|
+
/** Width cap for a full-frame park (the `keyFrame` native cap). */
|
|
21225
|
+
maxWidth: number$1().int().positive().optional(),
|
|
21226
|
+
/** The frame instant (caller's clock) — orders parks for one key. */
|
|
21227
|
+
timestamp: number$1()
|
|
21228
|
+
}), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
|
|
21229
|
+
deviceId: number$1(),
|
|
21230
|
+
trackId: string(),
|
|
21231
|
+
kind: ParkedFrameKindSchema
|
|
21232
|
+
}), ParkedTrackFrameSchema.nullable()), method(object({
|
|
21233
|
+
deviceId: number$1(),
|
|
21234
|
+
trackId: string()
|
|
21235
|
+
}), object({ released: number$1().int().nonnegative() }), { kind: "mutation" });
|
|
21118
21236
|
var CameraPipelineConfigSchema = object({
|
|
21119
21237
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
21120
21238
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -24043,7 +24161,7 @@ DeviceType.Button, method(object({ deviceId: number$1().int().nonnegative() }),
|
|
|
24043
24161
|
*
|
|
24044
24162
|
* Implementations:
|
|
24045
24163
|
* - Each camera-providing addon registers this cap natively per
|
|
24046
|
-
* device (Reolink, Hikvision, RTSP,
|
|
24164
|
+
* device (Reolink, Hikvision, RTSP, ONVIF self).
|
|
24047
24165
|
* - Returns a snapshot from the persisted device config blob — no
|
|
24048
24166
|
* extra round-trip to the camera, no probing.
|
|
24049
24167
|
* - The cap is admin-only (`auth: 'admin'`) — credentials must not
|
|
@@ -25429,7 +25547,7 @@ var AvailableIntegrationTypeSchema = object({
|
|
|
25429
25547
|
* Which integration-marker cap the addon declared, so the wizard can
|
|
25430
25548
|
* branch on CAP — never on addon name. `device-adoption` integrations
|
|
25431
25549
|
* (Home Assistant, …) route through the broker step (Approach A);
|
|
25432
|
-
* `device-provider` integrations (Reolink/
|
|
25550
|
+
* `device-provider` integrations (Reolink/ONVIF) keep the
|
|
25433
25551
|
* legacy config → discovery flow.
|
|
25434
25552
|
*/
|
|
25435
25553
|
kind: _enum(["device-adoption", "device-provider"]),
|
|
@@ -27930,7 +28048,23 @@ var RecordingRangeSchema = object({
|
|
|
27930
28048
|
});
|
|
27931
28049
|
var RecordingAvailabilitySchema = object({
|
|
27932
28050
|
deviceId: number$1(),
|
|
27933
|
-
ranges: array(RecordingRangeSchema)
|
|
28051
|
+
ranges: array(RecordingRangeSchema),
|
|
28052
|
+
/**
|
|
28053
|
+
* Every profile this camera has footage in — not only the one `ranges`
|
|
28054
|
+
* describes (D433).
|
|
28055
|
+
*
|
|
28056
|
+
* `ranges` answers for ONE profile by design: the timeline is a single bar,
|
|
28057
|
+
* and enumerating all of them triples the directory reads for a bar that
|
|
28058
|
+
* would look identical. But the answer used to say nothing about that, so a
|
|
28059
|
+
* caller asking "what can I export?" read the single preferred profile as
|
|
28060
|
+
* the only one that exists — on this deployment every camera records `high`
|
|
28061
|
+
* AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
|
|
28062
|
+
* UI could not see it.
|
|
28063
|
+
*
|
|
28064
|
+
* Cheap: it is the same shallow directory read the profile CHOICE already
|
|
28065
|
+
* makes. Ask for a specific profile's ranges with the `profile` input.
|
|
28066
|
+
*/
|
|
28067
|
+
profilesWithFootage: array(string())
|
|
27934
28068
|
});
|
|
27935
28069
|
var RecordingDaysSchema = object({
|
|
27936
28070
|
deviceId: number$1(),
|
|
@@ -27956,7 +28090,11 @@ var RecordingDaysSchema = object({
|
|
|
27956
28090
|
var RecordingAvailabilityForDeviceSchema = object({
|
|
27957
28091
|
deviceId: number$1(),
|
|
27958
28092
|
read: _enum(["read", "unreadable"]),
|
|
27959
|
-
ranges: array(RecordingRangeSchema).readonly()
|
|
28093
|
+
ranges: array(RecordingRangeSchema).readonly(),
|
|
28094
|
+
/** Same field, same meaning, as the singular answer (D433). A row that
|
|
28095
|
+
* dropped it would tell a grid caller the archive holds one profile.
|
|
28096
|
+
* Empty on an `'unreadable'` row: nobody looked. */
|
|
28097
|
+
profilesWithFootage: array(string()).readonly()
|
|
27960
28098
|
});
|
|
27961
28099
|
/**
|
|
27962
28100
|
* One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
|
|
@@ -27986,13 +28124,31 @@ var RecordingManifestSchema = object({
|
|
|
27986
28124
|
*/
|
|
27987
28125
|
playbackEndpoints: array(string())
|
|
27988
28126
|
});
|
|
27989
|
-
/**
|
|
27990
|
-
*
|
|
28127
|
+
/**
|
|
28128
|
+
* Recording storage usage for one camera — what the ARCHIVE holds for it,
|
|
28129
|
+
* across every profile and every resolvable location on this node.
|
|
28130
|
+
*
|
|
28131
|
+
* ## Archive vs residency, which is the whole point of this shape (D418)
|
|
28132
|
+
*
|
|
28133
|
+
* `usedBytes` / `oldestMs` / `segments` are the durable hour ledger's numbers:
|
|
28134
|
+
* the same quantity `RecordingLocationUsage.usedBytes` reports for the volume
|
|
28135
|
+
* this camera writes to, so the two can be added up and compared.
|
|
28136
|
+
*
|
|
28137
|
+
* They were not always. Until D418 this row came from the recorder's in-RAM
|
|
28138
|
+
* `RecordingIndex`, which since D287 holds only the live tail plus the hours
|
|
28139
|
+
* somebody hydrated — so a hub with 1.9 TB and 3.3 days of footage reported
|
|
28140
|
+
* 60.5 GB and "oldest: three hours ago" on the same page as the volume row
|
|
28141
|
+
* that said otherwise, and two people read it as retention eating recent
|
|
28142
|
+
* footage. Residency is still reported, under `residentBytes` /
|
|
28143
|
+
* `residentOldestMs`, which answer a different question and say so.
|
|
28144
|
+
*/
|
|
27991
28145
|
var RecordingDeviceUsageSchema = object({
|
|
27992
28146
|
deviceId: number$1(),
|
|
28147
|
+
/** Bytes the ARCHIVE holds for this camera on this node's resolvable
|
|
28148
|
+
* recordings locations. */
|
|
27993
28149
|
usedBytes: number$1(),
|
|
27994
28150
|
/**
|
|
27995
|
-
* Start of this camera's OLDEST
|
|
28151
|
+
* Start of this camera's OLDEST ARCHIVED segment, across every profile and
|
|
27996
28152
|
* location — the "Oldest footage" column in Recordings → Storage, and the
|
|
27997
28153
|
* only honest answer to "is retention actually holding?" per camera.
|
|
27998
28154
|
*
|
|
@@ -28002,7 +28158,24 @@ var RecordingDeviceUsageSchema = object({
|
|
|
28002
28158
|
* (types) and the addon ship on different trains, and the addon is usually
|
|
28003
28159
|
* the later of the two.
|
|
28004
28160
|
*/
|
|
28005
|
-
oldestMs: number$1().nullable().optional()
|
|
28161
|
+
oldestMs: number$1().nullable().optional(),
|
|
28162
|
+
/** Segments the archive holds for this camera — the "M" beside `usedBytes`.
|
|
28163
|
+
* OPTIONAL for the same train-skew reason as `oldestMs`. */
|
|
28164
|
+
segments: number$1().optional(),
|
|
28165
|
+
/**
|
|
28166
|
+
* RESIDENCY, not the archive: bytes the recorder process currently holds in
|
|
28167
|
+
* its RAM index — the live tail plus the hours a reader hydrated.
|
|
28168
|
+
*
|
|
28169
|
+
* It answers "what can be served without touching the disk", never "how much
|
|
28170
|
+
* footage this camera has". A UI that renders it must label it as such, and
|
|
28171
|
+
* must never total it as storage. OPTIONAL: a recorder predating D418 omits
|
|
28172
|
+
* it, and so does a node whose ledger could not answer.
|
|
28173
|
+
*/
|
|
28174
|
+
residentBytes: number$1().optional(),
|
|
28175
|
+
/** The residency counterpart of `oldestMs` — the oldest segment currently in
|
|
28176
|
+
* RAM, which on a healthy recorder is minutes ago and means nothing about
|
|
28177
|
+
* retention. `null` = nothing resident. */
|
|
28178
|
+
residentOldestMs: number$1().nullable().optional()
|
|
28006
28179
|
});
|
|
28007
28180
|
/** Recording storage usage + capacity for one storage location. */
|
|
28008
28181
|
var RecordingLocationUsageSchema = object({
|
|
@@ -28040,6 +28213,17 @@ var RecordingStorageUsageSchema = object({
|
|
|
28040
28213
|
totalUsedBytes: number$1(),
|
|
28041
28214
|
devices: array(RecordingDeviceUsageSchema),
|
|
28042
28215
|
/**
|
|
28216
|
+
* WHERE `devices[]` came from, so an empty table is never mistaken for empty
|
|
28217
|
+
* disks (D418).
|
|
28218
|
+
*
|
|
28219
|
+
* `archive` = the durable hour ledger answered. `unavailable` = this node
|
|
28220
|
+
* declared no ledger and the recorder REFUSED rather than answering the
|
|
28221
|
+
* question with the resident index (D295 rule 3) — the rows are UNKNOWN, not
|
|
28222
|
+
* zero, and a UI must say so. OPTIONAL: a recorder predating D418 omits it,
|
|
28223
|
+
* and its rows are residency.
|
|
28224
|
+
*/
|
|
28225
|
+
devicesRead: _enum(["archive", "unavailable"]).optional(),
|
|
28226
|
+
/**
|
|
28043
28227
|
* Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
|
|
28044
28228
|
* of the payload without it: the hub serves this method through a BAKED
|
|
28045
28229
|
* router, so a hub whose framework train predates a change to this array
|
|
@@ -28200,7 +28384,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
|
|
|
28200
28384
|
method(object({
|
|
28201
28385
|
deviceId: number$1(),
|
|
28202
28386
|
fromMs: number$1(),
|
|
28203
|
-
toMs: number$1()
|
|
28387
|
+
toMs: number$1(),
|
|
28388
|
+
/**
|
|
28389
|
+
* Answer for THIS profile instead of the preferred one (D433). Absent
|
|
28390
|
+
* keeps the timeline's behaviour — one bar, one profile, one set of
|
|
28391
|
+
* reads. `profilesWithFootage` on the answer says what may be asked
|
|
28392
|
+
* for.
|
|
28393
|
+
*/
|
|
28394
|
+
profile: string().optional()
|
|
28204
28395
|
}), RecordingAvailabilitySchema, {
|
|
28205
28396
|
kind: "query",
|
|
28206
28397
|
auth: "protected"
|
|
@@ -34427,6 +34618,24 @@ Object.freeze({
|
|
|
34427
34618
|
addonId: null,
|
|
34428
34619
|
access: "view"
|
|
34429
34620
|
},
|
|
34621
|
+
"pipelineRunner.getParkedTrackFrame": {
|
|
34622
|
+
capName: "pipeline-runner",
|
|
34623
|
+
capScope: "system",
|
|
34624
|
+
addonId: null,
|
|
34625
|
+
access: "view"
|
|
34626
|
+
},
|
|
34627
|
+
"pipelineRunner.parkTrackFrame": {
|
|
34628
|
+
capName: "pipeline-runner",
|
|
34629
|
+
capScope: "system",
|
|
34630
|
+
addonId: null,
|
|
34631
|
+
access: "create"
|
|
34632
|
+
},
|
|
34633
|
+
"pipelineRunner.releaseParkedTrackFrames": {
|
|
34634
|
+
capName: "pipeline-runner",
|
|
34635
|
+
capScope: "system",
|
|
34636
|
+
addonId: null,
|
|
34637
|
+
access: "create"
|
|
34638
|
+
},
|
|
34430
34639
|
"pipelineRunner.reportMotion": {
|
|
34431
34640
|
capName: "pipeline-runner",
|
|
34432
34641
|
capScope: "system",
|
|
@@ -37704,6 +37913,21 @@ Object.freeze({
|
|
|
37704
37913
|
form: "single",
|
|
37705
37914
|
optional: false
|
|
37706
37915
|
}],
|
|
37916
|
+
"pipelineRunner.getParkedTrackFrame": [{
|
|
37917
|
+
name: "deviceId",
|
|
37918
|
+
form: "single",
|
|
37919
|
+
optional: false
|
|
37920
|
+
}],
|
|
37921
|
+
"pipelineRunner.parkTrackFrame": [{
|
|
37922
|
+
name: "deviceId",
|
|
37923
|
+
form: "single",
|
|
37924
|
+
optional: false
|
|
37925
|
+
}],
|
|
37926
|
+
"pipelineRunner.releaseParkedTrackFrames": [{
|
|
37927
|
+
name: "deviceId",
|
|
37928
|
+
form: "single",
|
|
37929
|
+
optional: false
|
|
37930
|
+
}],
|
|
37707
37931
|
"pipelineRunner.reportMotion": [{
|
|
37708
37932
|
name: "deviceId",
|
|
37709
37933
|
form: "single",
|
|
@@ -38395,7 +38619,7 @@ var PreviewTextField = string().max(200);
|
|
|
38395
38619
|
* Whether the notification's preview is a STILL or a short animation.
|
|
38396
38620
|
*
|
|
38397
38621
|
* The operator's ask, verbatim: *"inviato come gif o video (come per le altre
|
|
38398
|
-
* rule)"* —
|
|
38622
|
+
* rule)"* — the other rules already offer an animated preview, and a ten-hour
|
|
38399
38623
|
* night reads better as three seconds of motion than as one frame of it. Both
|
|
38400
38624
|
* modes get the SAME treatment (blurred frame, large centred title); `'gif'`
|
|
38401
38625
|
* simply applies it to a dozen frames sampled across the render and assembles
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-ai",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.96",
|
|
4
4
|
"description": "AI addon for CamStack — the `llm` collection provider (cloud, LAN, and camstack-managed local llama.cpp profiles) plus the per-node `llm-runtime` managed executor.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|