@camstack/addon-tailscale 1.2.90 → 1.2.92

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.
@@ -24,7 +24,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
24
24
  enumerable: true
25
25
  }) : target, mod));
26
26
  //#endregion
27
- const require_dist = require("../dist-DvJMHeGc.js");
27
+ const require_dist = require("../dist-CQfYIy9j.js");
28
28
  let node_child_process = require("node:child_process");
29
29
  let node_util = require("node:util");
30
30
  let node_fs = require("node:fs");
@@ -1,4 +1,4 @@
1
- import { a as EventCategory, i as BaseAddon, n as networkAccessCapability, r as BOOT_RECOVERY_BACKOFF_MS, t as meshNetworkCapability } from "../dist-CUQ2MTx9.mjs";
1
+ import { a as EventCategory, i as BaseAddon, n as networkAccessCapability, r as BOOT_RECOVERY_BACKOFF_MS, t as meshNetworkCapability } from "../dist-Cv5sAvrW.mjs";
2
2
  import { execFile, spawn } from "node:child_process";
3
3
  import { promisify } from "node:util";
4
4
  import * as fs from "node:fs";
@@ -1,4 +1,4 @@
1
- //#region ../types/dist/event-category-CnLqLOKs.mjs
1
+ //#region ../types/dist/event-category-DAXzJeTX.mjs
2
2
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
3
3
  EventCategory["SystemBoot"] = "system.boot";
4
4
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -590,7 +590,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
590
590
  * issue. Payload `PipelineAnalyticsPlateGalleryChangedPayload`.
591
591
  */
592
592
  EventCategory["PipelineAnalyticsPlateGalleryChanged"] = "pipeline-analytics.plate-gallery-changed";
593
- EventCategory["FrigateLiveEvent"] = "frigate.live-event";
594
593
  EventCategory["CameraStreamsProfileSlotsChanged"] = "camera-streams.onProfileSlotsChanged";
595
594
  /**
596
595
  * Stream-broker health watchdog. Per-broker (deviceId/profile) emission.
@@ -12540,7 +12539,7 @@ DeviceType.Camera;
12540
12539
  var SourceInfoSchema = object({
12541
12540
  /** Live dispatch key — mutable when the source system allows rename. */
12542
12541
  id: string(),
12543
- /** Source system tag — e.g. 'homeassistant' | 'reolink' | 'frigate'. */
12542
+ /** Source system tag — e.g. 'homeassistant' | 'reolink' | 'onvif'. */
12544
12543
  system: string(),
12545
12544
  /** Immutable upstream identifier when available (HA `unique_id`, … ).
12546
12545
  * Used to detect rename when `id` changes. */
@@ -13027,7 +13026,7 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
13027
13026
  * - `device-management.router.ts` (deleted in Phase 2)
13028
13027
  * - `device-ops.router.ts` (compat layer — deleted; device-provider ops absorbed here)
13029
13028
  *
13030
- * All device provider addons (rtsp, onvif, frigate, …) are hub-local: they may
13029
+ * All device provider addons (rtsp, onvif, …) are hub-local: they may
13031
13030
  * fork into separate processes but never run on remote cluster agents. Therefore:
13032
13031
  * - No nodeId routing needed — this is a pure hub singleton.
13033
13032
  * - The hub's DeviceRegistry is the single source of truth for all live devices.
@@ -17054,7 +17053,7 @@ var NcRuleInputSchema = object({
17054
17053
  * The measured seven-person arrival on device 590 spans 110 s with every
17055
17054
  * internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
17056
17055
  * idle cutoff holds it as one and ends it when the arrival actually ends.
17057
- * 30 is Frigate's shipped value for the same decision.
17056
+ * 30 s is a widely shipped value for the same decision.
17058
17057
  *
17059
17058
  * ### What it replaces
17060
17059
  *
@@ -19096,6 +19095,13 @@ var ZoneCrossingSchema = object({
19096
19095
  /** Zone display name at crossing time (falls back to the id). */
19097
19096
  zoneName: string().optional()
19098
19097
  });
19098
+ /** One zone a box was stamped with, and how much of the BOX fell inside it. */
19099
+ var ZoneOverlapSchema = object({
19100
+ zoneId: string(),
19101
+ zoneName: string().optional(),
19102
+ /** Percentage of the BOX area inside the zone, 0–100. */
19103
+ overlapPct: number()
19104
+ });
19099
19105
  var ObjectEventSchema = object({
19100
19106
  ...BaseEventFields,
19101
19107
  kind: literal("object"),
@@ -19120,6 +19126,35 @@ var ObjectEventSchema = object({
19120
19126
  bbox: BoundingBoxSchema.optional(),
19121
19127
  /** Heavy JSON — omitted in slim projection. */
19122
19128
  zones: array(string()).readonly().optional(),
19129
+ /**
19130
+ * How far inside each stamped zone the box actually was, as a percentage of
19131
+ * the BOX area.
19132
+ *
19133
+ * Membership alone cannot express "at least a third of it inside", which is
19134
+ * the bar an operator argues with — and the number already existed: the
19135
+ * engine computed it, the pipeline logged it, and then discarded it. It
19136
+ * matters most on the events that carry no track, where a rule has nothing
19137
+ * else to judge by.
19138
+ */
19139
+ zoneOverlaps: array(ZoneOverlapSchema).readonly().optional(),
19140
+ /**
19141
+ * Present when this event describes a detection the TRACKER refused, so it
19142
+ * has no track and never will.
19143
+ *
19144
+ * A zone-scoped immediate rule asks "is there an animal in the flowerbed
19145
+ * NOW?"; tracking answers a different question ("is this the same subject as
19146
+ * before?") whose confirmation threshold presumes continuity. On 2026-09-09 a
19147
+ * dog at 0.7729, 100% inside a watched zone, was refused three times in six
19148
+ * seconds with three different candidate ids — seven analysed frames in the
19149
+ * window, the subject in a handful of them, metres apart — and produced no
19150
+ * event at all.
19151
+ *
19152
+ * It is NAMED rather than merely implied by a missing `trackId`: an event
19153
+ * with no track and no reason is indistinguishable from a track whose media
19154
+ * went missing, and a consumer that asks this one for a best shot or a
19155
+ * history is asking for something that never existed.
19156
+ */
19157
+ spawnRefused: string().optional(),
19123
19158
  /** Omitted in slim projection. */
19124
19159
  state: TrackStateSchema.optional(),
19125
19160
  /**
@@ -20193,6 +20228,60 @@ var NativeCropResultSchema = object({
20193
20228
  */
20194
20229
  tier: _enum(["native", "ram-fullframe"]).optional()
20195
20230
  });
20231
+ /**
20232
+ * What a PARKED frame is for — the `kind` half of the `(deviceId, trackId,
20233
+ * kind)` key ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
20234
+ *
20235
+ * - `keyFrame` — the track's clean best FULL frame at native width (capped by
20236
+ * the caller's `maxWidth`). What `keyFrame` + `keyFrameSmall` are written
20237
+ * from, and what the detail plane's full-frame rung cuts from.
20238
+ * - `thumbnail` — the best-shot subject slab: the caller's 16:9 central-square
20239
+ * window, cut by the runner at uncapped native resolution.
20240
+ *
20241
+ * The runner never interprets `trackId`; it is an opaque key the hub owns.
20242
+ */
20243
+ var ParkedFrameKindSchema = _enum(["keyFrame", "thumbnail"]);
20244
+ /**
20245
+ * Why a park did NOT happen. Every one is logged on the runner with
20246
+ * `tags: { deviceId }` and the handle's measured age, because a handle already
20247
+ * gone at park time IS the defect the 150–500 ms window exists to prevent —
20248
+ * never a reason to retry in a loop.
20249
+ *
20250
+ * - `handle-gone` — the native surface no longer resolves this handle (never
20251
+ * registered, past the lease bound, or the worker released it). `detail`
20252
+ * carries the runner's own miss reason.
20253
+ * - `encode-failed` — pixels resolved and the JPEG encode threw.
20254
+ */
20255
+ var ParkRefusalSchema = _enum(["handle-gone", "encode-failed"]);
20256
+ /** Answer to `parkTrackFrame` — a discriminated union, so "not parked" always names why. */
20257
+ var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
20258
+ parked: literal(true),
20259
+ /** The node holding the parcel — what a later retrieval must be pinned to. */
20260
+ nodeId: string(),
20261
+ width: number().int().positive(),
20262
+ height: number().int().positive(),
20263
+ /** JPEG bytes the parcel costs on the node. */
20264
+ bytes: number().int().nonnegative(),
20265
+ /** Whether this park replaced a parcel already held for the key. */
20266
+ replaced: boolean()
20267
+ }), object({
20268
+ parked: literal(false),
20269
+ nodeId: string(),
20270
+ reason: ParkRefusalSchema,
20271
+ /** Age of the handle at the park, on the runner's clock; null if unknown. */
20272
+ handleAgeMs: number().nullable(),
20273
+ detail: string().optional()
20274
+ })]);
20275
+ /** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
20276
+ var ParkedTrackFrameSchema = object({
20277
+ jpeg: string(),
20278
+ width: number().int().positive(),
20279
+ height: number().int().positive(),
20280
+ /** The frame instant the parcel shows (the caller's clock, echoed back). */
20281
+ timestamp: number(),
20282
+ /** When the node stored it (the node's clock). */
20283
+ parkedAt: number()
20284
+ });
20196
20285
  /** Parent detection context passed to `runDetailSubtree` — the crop's
20197
20286
  * originating detection, in FRAME-space coordinates. Reuses
20198
20287
  * `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
@@ -20582,7 +20671,7 @@ var RunnerCameraConfigSchema = object({
20582
20671
  * - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
20583
20672
  * analyzer providers) running on decoded frames in this runner.
20584
20673
  * - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
20585
- * analytics, Frigate motion). The provider emits ProviderMotion
20674
+ * analytics). The provider emits ProviderMotion
20586
20675
  * events; the orchestrator forwards to `reportMotion`.
20587
20676
  */
20588
20677
  motionSources: MotionSourcesSchema.default(["analyzer"]),
@@ -20824,7 +20913,26 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
20824
20913
  className: string(),
20825
20914
  /** Camera the pixels came from. Diagnostics + log tags ONLY — never routing. */
20826
20915
  sourceDeviceId: number()
20827
- }), RunStatelessStepResultSchema, { kind: "mutation" });
20916
+ }), RunStatelessStepResultSchema, { kind: "mutation" }), method(object({
20917
+ deviceId: number(),
20918
+ /** Opaque to the runner — the hub's track id. */
20919
+ trackId: string(),
20920
+ kind: ParkedFrameKindSchema,
20921
+ handle: FrameHandleSchema,
20922
+ /** Normalized [0,1] window to cut. `{0,0,1,1}` for a full frame. */
20923
+ bbox: NativeCropBboxSchema,
20924
+ /** Width cap for a full-frame park (the `keyFrame` native cap). */
20925
+ maxWidth: number().int().positive().optional(),
20926
+ /** The frame instant (caller's clock) — orders parks for one key. */
20927
+ timestamp: number()
20928
+ }), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
20929
+ deviceId: number(),
20930
+ trackId: string(),
20931
+ kind: ParkedFrameKindSchema
20932
+ }), ParkedTrackFrameSchema.nullable()), method(object({
20933
+ deviceId: number(),
20934
+ trackId: string()
20935
+ }), object({ released: number().int().nonnegative() }), { kind: "mutation" });
20828
20936
  var CameraPipelineConfigSchema = object({
20829
20937
  engine: PipelineEngineChoiceSchema.optional(),
20830
20938
  steps: array(PipelineStepInputSchema).readonly(),
@@ -23753,7 +23861,7 @@ DeviceType.Button, method(object({ deviceId: number().int().nonnegative() }), _v
23753
23861
  *
23754
23862
  * Implementations:
23755
23863
  * - Each camera-providing addon registers this cap natively per
23756
- * device (Reolink, Hikvision, RTSP, Frigate, ONVIF self).
23864
+ * device (Reolink, Hikvision, RTSP, ONVIF self).
23757
23865
  * - Returns a snapshot from the persisted device config blob — no
23758
23866
  * extra round-trip to the camera, no probing.
23759
23867
  * - The cap is admin-only (`auth: 'admin'`) — credentials must not
@@ -25139,7 +25247,7 @@ var AvailableIntegrationTypeSchema = object({
25139
25247
  * Which integration-marker cap the addon declared, so the wizard can
25140
25248
  * branch on CAP — never on addon name. `device-adoption` integrations
25141
25249
  * (Home Assistant, …) route through the broker step (Approach A);
25142
- * `device-provider` integrations (Reolink/Frigate/ONVIF) keep the
25250
+ * `device-provider` integrations (Reolink/ONVIF) keep the
25143
25251
  * legacy config → discovery flow.
25144
25252
  */
25145
25253
  kind: _enum(["device-adoption", "device-provider"]),
@@ -27757,13 +27865,31 @@ var RecordingManifestSchema = object({
27757
27865
  */
27758
27866
  playbackEndpoints: array(string())
27759
27867
  });
27760
- /** Recording storage usage for one camera (bytes on disk across all its
27761
- * profiles/subtrees/locations on this node). */
27868
+ /**
27869
+ * Recording storage usage for one camera — what the ARCHIVE holds for it,
27870
+ * across every profile and every resolvable location on this node.
27871
+ *
27872
+ * ## Archive vs residency, which is the whole point of this shape (D418)
27873
+ *
27874
+ * `usedBytes` / `oldestMs` / `segments` are the durable hour ledger's numbers:
27875
+ * the same quantity `RecordingLocationUsage.usedBytes` reports for the volume
27876
+ * this camera writes to, so the two can be added up and compared.
27877
+ *
27878
+ * They were not always. Until D418 this row came from the recorder's in-RAM
27879
+ * `RecordingIndex`, which since D287 holds only the live tail plus the hours
27880
+ * somebody hydrated — so a hub with 1.9 TB and 3.3 days of footage reported
27881
+ * 60.5 GB and "oldest: three hours ago" on the same page as the volume row
27882
+ * that said otherwise, and two people read it as retention eating recent
27883
+ * footage. Residency is still reported, under `residentBytes` /
27884
+ * `residentOldestMs`, which answer a different question and say so.
27885
+ */
27762
27886
  var RecordingDeviceUsageSchema = object({
27763
27887
  deviceId: number(),
27888
+ /** Bytes the ARCHIVE holds for this camera on this node's resolvable
27889
+ * recordings locations. */
27764
27890
  usedBytes: number(),
27765
27891
  /**
27766
- * Start of this camera's OLDEST indexed segment, across every profile and
27892
+ * Start of this camera's OLDEST ARCHIVED segment, across every profile and
27767
27893
  * location — the "Oldest footage" column in Recordings → Storage, and the
27768
27894
  * only honest answer to "is retention actually holding?" per camera.
27769
27895
  *
@@ -27773,7 +27899,24 @@ var RecordingDeviceUsageSchema = object({
27773
27899
  * (types) and the addon ship on different trains, and the addon is usually
27774
27900
  * the later of the two.
27775
27901
  */
27776
- oldestMs: number().nullable().optional()
27902
+ oldestMs: number().nullable().optional(),
27903
+ /** Segments the archive holds for this camera — the "M" beside `usedBytes`.
27904
+ * OPTIONAL for the same train-skew reason as `oldestMs`. */
27905
+ segments: number().optional(),
27906
+ /**
27907
+ * RESIDENCY, not the archive: bytes the recorder process currently holds in
27908
+ * its RAM index — the live tail plus the hours a reader hydrated.
27909
+ *
27910
+ * It answers "what can be served without touching the disk", never "how much
27911
+ * footage this camera has". A UI that renders it must label it as such, and
27912
+ * must never total it as storage. OPTIONAL: a recorder predating D418 omits
27913
+ * it, and so does a node whose ledger could not answer.
27914
+ */
27915
+ residentBytes: number().optional(),
27916
+ /** The residency counterpart of `oldestMs` — the oldest segment currently in
27917
+ * RAM, which on a healthy recorder is minutes ago and means nothing about
27918
+ * retention. `null` = nothing resident. */
27919
+ residentOldestMs: number().nullable().optional()
27777
27920
  });
27778
27921
  /** Recording storage usage + capacity for one storage location. */
27779
27922
  var RecordingLocationUsageSchema = object({
@@ -27811,6 +27954,17 @@ var RecordingStorageUsageSchema = object({
27811
27954
  totalUsedBytes: number(),
27812
27955
  devices: array(RecordingDeviceUsageSchema),
27813
27956
  /**
27957
+ * WHERE `devices[]` came from, so an empty table is never mistaken for empty
27958
+ * disks (D418).
27959
+ *
27960
+ * `archive` = the durable hour ledger answered. `unavailable` = this node
27961
+ * declared no ledger and the recorder REFUSED rather than answering the
27962
+ * question with the resident index (D295 rule 3) — the rows are UNKNOWN, not
27963
+ * zero, and a UI must say so. OPTIONAL: a recorder predating D418 omits it,
27964
+ * and its rows are residency.
27965
+ */
27966
+ devicesRead: _enum(["archive", "unavailable"]).optional(),
27967
+ /**
27814
27968
  * Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
27815
27969
  * of the payload without it: the hub serves this method through a BAKED
27816
27970
  * router, so a hub whose framework train predates a change to this array
@@ -34198,6 +34352,24 @@ Object.freeze({
34198
34352
  addonId: null,
34199
34353
  access: "view"
34200
34354
  },
34355
+ "pipelineRunner.getParkedTrackFrame": {
34356
+ capName: "pipeline-runner",
34357
+ capScope: "system",
34358
+ addonId: null,
34359
+ access: "view"
34360
+ },
34361
+ "pipelineRunner.parkTrackFrame": {
34362
+ capName: "pipeline-runner",
34363
+ capScope: "system",
34364
+ addonId: null,
34365
+ access: "create"
34366
+ },
34367
+ "pipelineRunner.releaseParkedTrackFrames": {
34368
+ capName: "pipeline-runner",
34369
+ capScope: "system",
34370
+ addonId: null,
34371
+ access: "create"
34372
+ },
34201
34373
  "pipelineRunner.reportMotion": {
34202
34374
  capName: "pipeline-runner",
34203
34375
  capScope: "system",
@@ -37475,6 +37647,21 @@ Object.freeze({
37475
37647
  form: "single",
37476
37648
  optional: false
37477
37649
  }],
37650
+ "pipelineRunner.getParkedTrackFrame": [{
37651
+ name: "deviceId",
37652
+ form: "single",
37653
+ optional: false
37654
+ }],
37655
+ "pipelineRunner.parkTrackFrame": [{
37656
+ name: "deviceId",
37657
+ form: "single",
37658
+ optional: false
37659
+ }],
37660
+ "pipelineRunner.releaseParkedTrackFrames": [{
37661
+ name: "deviceId",
37662
+ form: "single",
37663
+ optional: false
37664
+ }],
37478
37665
  "pipelineRunner.reportMotion": [{
37479
37666
  name: "deviceId",
37480
37667
  form: "single",
@@ -38166,7 +38353,7 @@ var PreviewTextField = string().max(200);
38166
38353
  * Whether the notification's preview is a STILL or a short animation.
38167
38354
  *
38168
38355
  * The operator's ask, verbatim: *"inviato come gif o video (come per le altre
38169
- * rule)"* — his Scrypted advanced-notifier has a `gifRule`, and a ten-hour
38356
+ * rule)"* — the other rules already offer an animated preview, and a ten-hour
38170
38357
  * night reads better as three seconds of motion than as one frame of it. Both
38171
38358
  * modes get the SAME treatment (blurred frame, large centred title); `'gif'`
38172
38359
  * simply applies it to a dozen frames sampled across the render and assembles
@@ -1,4 +1,4 @@
1
- //#region ../types/dist/event-category-CnLqLOKs.mjs
1
+ //#region ../types/dist/event-category-DAXzJeTX.mjs
2
2
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
3
3
  EventCategory["SystemBoot"] = "system.boot";
4
4
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -590,7 +590,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
590
590
  * issue. Payload `PipelineAnalyticsPlateGalleryChangedPayload`.
591
591
  */
592
592
  EventCategory["PipelineAnalyticsPlateGalleryChanged"] = "pipeline-analytics.plate-gallery-changed";
593
- EventCategory["FrigateLiveEvent"] = "frigate.live-event";
594
593
  EventCategory["CameraStreamsProfileSlotsChanged"] = "camera-streams.onProfileSlotsChanged";
595
594
  /**
596
595
  * Stream-broker health watchdog. Per-broker (deviceId/profile) emission.
@@ -12540,7 +12539,7 @@ DeviceType.Camera;
12540
12539
  var SourceInfoSchema = object({
12541
12540
  /** Live dispatch key — mutable when the source system allows rename. */
12542
12541
  id: string(),
12543
- /** Source system tag — e.g. 'homeassistant' | 'reolink' | 'frigate'. */
12542
+ /** Source system tag — e.g. 'homeassistant' | 'reolink' | 'onvif'. */
12544
12543
  system: string(),
12545
12544
  /** Immutable upstream identifier when available (HA `unique_id`, … ).
12546
12545
  * Used to detect rename when `id` changes. */
@@ -13027,7 +13026,7 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
13027
13026
  * - `device-management.router.ts` (deleted in Phase 2)
13028
13027
  * - `device-ops.router.ts` (compat layer — deleted; device-provider ops absorbed here)
13029
13028
  *
13030
- * All device provider addons (rtsp, onvif, frigate, …) are hub-local: they may
13029
+ * All device provider addons (rtsp, onvif, …) are hub-local: they may
13031
13030
  * fork into separate processes but never run on remote cluster agents. Therefore:
13032
13031
  * - No nodeId routing needed — this is a pure hub singleton.
13033
13032
  * - The hub's DeviceRegistry is the single source of truth for all live devices.
@@ -17054,7 +17053,7 @@ var NcRuleInputSchema = object({
17054
17053
  * The measured seven-person arrival on device 590 spans 110 s with every
17055
17054
  * internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
17056
17055
  * idle cutoff holds it as one and ends it when the arrival actually ends.
17057
- * 30 is Frigate's shipped value for the same decision.
17056
+ * 30 s is a widely shipped value for the same decision.
17058
17057
  *
17059
17058
  * ### What it replaces
17060
17059
  *
@@ -19096,6 +19095,13 @@ var ZoneCrossingSchema = object({
19096
19095
  /** Zone display name at crossing time (falls back to the id). */
19097
19096
  zoneName: string().optional()
19098
19097
  });
19098
+ /** One zone a box was stamped with, and how much of the BOX fell inside it. */
19099
+ var ZoneOverlapSchema = object({
19100
+ zoneId: string(),
19101
+ zoneName: string().optional(),
19102
+ /** Percentage of the BOX area inside the zone, 0–100. */
19103
+ overlapPct: number()
19104
+ });
19099
19105
  var ObjectEventSchema = object({
19100
19106
  ...BaseEventFields,
19101
19107
  kind: literal("object"),
@@ -19120,6 +19126,35 @@ var ObjectEventSchema = object({
19120
19126
  bbox: BoundingBoxSchema.optional(),
19121
19127
  /** Heavy JSON — omitted in slim projection. */
19122
19128
  zones: array(string()).readonly().optional(),
19129
+ /**
19130
+ * How far inside each stamped zone the box actually was, as a percentage of
19131
+ * the BOX area.
19132
+ *
19133
+ * Membership alone cannot express "at least a third of it inside", which is
19134
+ * the bar an operator argues with — and the number already existed: the
19135
+ * engine computed it, the pipeline logged it, and then discarded it. It
19136
+ * matters most on the events that carry no track, where a rule has nothing
19137
+ * else to judge by.
19138
+ */
19139
+ zoneOverlaps: array(ZoneOverlapSchema).readonly().optional(),
19140
+ /**
19141
+ * Present when this event describes a detection the TRACKER refused, so it
19142
+ * has no track and never will.
19143
+ *
19144
+ * A zone-scoped immediate rule asks "is there an animal in the flowerbed
19145
+ * NOW?"; tracking answers a different question ("is this the same subject as
19146
+ * before?") whose confirmation threshold presumes continuity. On 2026-09-09 a
19147
+ * dog at 0.7729, 100% inside a watched zone, was refused three times in six
19148
+ * seconds with three different candidate ids — seven analysed frames in the
19149
+ * window, the subject in a handful of them, metres apart — and produced no
19150
+ * event at all.
19151
+ *
19152
+ * It is NAMED rather than merely implied by a missing `trackId`: an event
19153
+ * with no track and no reason is indistinguishable from a track whose media
19154
+ * went missing, and a consumer that asks this one for a best shot or a
19155
+ * history is asking for something that never existed.
19156
+ */
19157
+ spawnRefused: string().optional(),
19123
19158
  /** Omitted in slim projection. */
19124
19159
  state: TrackStateSchema.optional(),
19125
19160
  /**
@@ -20193,6 +20228,60 @@ var NativeCropResultSchema = object({
20193
20228
  */
20194
20229
  tier: _enum(["native", "ram-fullframe"]).optional()
20195
20230
  });
20231
+ /**
20232
+ * What a PARKED frame is for — the `kind` half of the `(deviceId, trackId,
20233
+ * kind)` key ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
20234
+ *
20235
+ * - `keyFrame` — the track's clean best FULL frame at native width (capped by
20236
+ * the caller's `maxWidth`). What `keyFrame` + `keyFrameSmall` are written
20237
+ * from, and what the detail plane's full-frame rung cuts from.
20238
+ * - `thumbnail` — the best-shot subject slab: the caller's 16:9 central-square
20239
+ * window, cut by the runner at uncapped native resolution.
20240
+ *
20241
+ * The runner never interprets `trackId`; it is an opaque key the hub owns.
20242
+ */
20243
+ var ParkedFrameKindSchema = _enum(["keyFrame", "thumbnail"]);
20244
+ /**
20245
+ * Why a park did NOT happen. Every one is logged on the runner with
20246
+ * `tags: { deviceId }` and the handle's measured age, because a handle already
20247
+ * gone at park time IS the defect the 150–500 ms window exists to prevent —
20248
+ * never a reason to retry in a loop.
20249
+ *
20250
+ * - `handle-gone` — the native surface no longer resolves this handle (never
20251
+ * registered, past the lease bound, or the worker released it). `detail`
20252
+ * carries the runner's own miss reason.
20253
+ * - `encode-failed` — pixels resolved and the JPEG encode threw.
20254
+ */
20255
+ var ParkRefusalSchema = _enum(["handle-gone", "encode-failed"]);
20256
+ /** Answer to `parkTrackFrame` — a discriminated union, so "not parked" always names why. */
20257
+ var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
20258
+ parked: literal(true),
20259
+ /** The node holding the parcel — what a later retrieval must be pinned to. */
20260
+ nodeId: string(),
20261
+ width: number().int().positive(),
20262
+ height: number().int().positive(),
20263
+ /** JPEG bytes the parcel costs on the node. */
20264
+ bytes: number().int().nonnegative(),
20265
+ /** Whether this park replaced a parcel already held for the key. */
20266
+ replaced: boolean()
20267
+ }), object({
20268
+ parked: literal(false),
20269
+ nodeId: string(),
20270
+ reason: ParkRefusalSchema,
20271
+ /** Age of the handle at the park, on the runner's clock; null if unknown. */
20272
+ handleAgeMs: number().nullable(),
20273
+ detail: string().optional()
20274
+ })]);
20275
+ /** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
20276
+ var ParkedTrackFrameSchema = object({
20277
+ jpeg: string(),
20278
+ width: number().int().positive(),
20279
+ height: number().int().positive(),
20280
+ /** The frame instant the parcel shows (the caller's clock, echoed back). */
20281
+ timestamp: number(),
20282
+ /** When the node stored it (the node's clock). */
20283
+ parkedAt: number()
20284
+ });
20196
20285
  /** Parent detection context passed to `runDetailSubtree` — the crop's
20197
20286
  * originating detection, in FRAME-space coordinates. Reuses
20198
20287
  * `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
@@ -20582,7 +20671,7 @@ var RunnerCameraConfigSchema = object({
20582
20671
  * - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
20583
20672
  * analyzer providers) running on decoded frames in this runner.
20584
20673
  * - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
20585
- * analytics, Frigate motion). The provider emits ProviderMotion
20674
+ * analytics). The provider emits ProviderMotion
20586
20675
  * events; the orchestrator forwards to `reportMotion`.
20587
20676
  */
20588
20677
  motionSources: MotionSourcesSchema.default(["analyzer"]),
@@ -20824,7 +20913,26 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
20824
20913
  className: string(),
20825
20914
  /** Camera the pixels came from. Diagnostics + log tags ONLY — never routing. */
20826
20915
  sourceDeviceId: number()
20827
- }), RunStatelessStepResultSchema, { kind: "mutation" });
20916
+ }), RunStatelessStepResultSchema, { kind: "mutation" }), method(object({
20917
+ deviceId: number(),
20918
+ /** Opaque to the runner — the hub's track id. */
20919
+ trackId: string(),
20920
+ kind: ParkedFrameKindSchema,
20921
+ handle: FrameHandleSchema,
20922
+ /** Normalized [0,1] window to cut. `{0,0,1,1}` for a full frame. */
20923
+ bbox: NativeCropBboxSchema,
20924
+ /** Width cap for a full-frame park (the `keyFrame` native cap). */
20925
+ maxWidth: number().int().positive().optional(),
20926
+ /** The frame instant (caller's clock) — orders parks for one key. */
20927
+ timestamp: number()
20928
+ }), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
20929
+ deviceId: number(),
20930
+ trackId: string(),
20931
+ kind: ParkedFrameKindSchema
20932
+ }), ParkedTrackFrameSchema.nullable()), method(object({
20933
+ deviceId: number(),
20934
+ trackId: string()
20935
+ }), object({ released: number().int().nonnegative() }), { kind: "mutation" });
20828
20936
  var CameraPipelineConfigSchema = object({
20829
20937
  engine: PipelineEngineChoiceSchema.optional(),
20830
20938
  steps: array(PipelineStepInputSchema).readonly(),
@@ -23753,7 +23861,7 @@ DeviceType.Button, method(object({ deviceId: number().int().nonnegative() }), _v
23753
23861
  *
23754
23862
  * Implementations:
23755
23863
  * - Each camera-providing addon registers this cap natively per
23756
- * device (Reolink, Hikvision, RTSP, Frigate, ONVIF self).
23864
+ * device (Reolink, Hikvision, RTSP, ONVIF self).
23757
23865
  * - Returns a snapshot from the persisted device config blob — no
23758
23866
  * extra round-trip to the camera, no probing.
23759
23867
  * - The cap is admin-only (`auth: 'admin'`) — credentials must not
@@ -25139,7 +25247,7 @@ var AvailableIntegrationTypeSchema = object({
25139
25247
  * Which integration-marker cap the addon declared, so the wizard can
25140
25248
  * branch on CAP — never on addon name. `device-adoption` integrations
25141
25249
  * (Home Assistant, …) route through the broker step (Approach A);
25142
- * `device-provider` integrations (Reolink/Frigate/ONVIF) keep the
25250
+ * `device-provider` integrations (Reolink/ONVIF) keep the
25143
25251
  * legacy config → discovery flow.
25144
25252
  */
25145
25253
  kind: _enum(["device-adoption", "device-provider"]),
@@ -27757,13 +27865,31 @@ var RecordingManifestSchema = object({
27757
27865
  */
27758
27866
  playbackEndpoints: array(string())
27759
27867
  });
27760
- /** Recording storage usage for one camera (bytes on disk across all its
27761
- * profiles/subtrees/locations on this node). */
27868
+ /**
27869
+ * Recording storage usage for one camera — what the ARCHIVE holds for it,
27870
+ * across every profile and every resolvable location on this node.
27871
+ *
27872
+ * ## Archive vs residency, which is the whole point of this shape (D418)
27873
+ *
27874
+ * `usedBytes` / `oldestMs` / `segments` are the durable hour ledger's numbers:
27875
+ * the same quantity `RecordingLocationUsage.usedBytes` reports for the volume
27876
+ * this camera writes to, so the two can be added up and compared.
27877
+ *
27878
+ * They were not always. Until D418 this row came from the recorder's in-RAM
27879
+ * `RecordingIndex`, which since D287 holds only the live tail plus the hours
27880
+ * somebody hydrated — so a hub with 1.9 TB and 3.3 days of footage reported
27881
+ * 60.5 GB and "oldest: three hours ago" on the same page as the volume row
27882
+ * that said otherwise, and two people read it as retention eating recent
27883
+ * footage. Residency is still reported, under `residentBytes` /
27884
+ * `residentOldestMs`, which answer a different question and say so.
27885
+ */
27762
27886
  var RecordingDeviceUsageSchema = object({
27763
27887
  deviceId: number(),
27888
+ /** Bytes the ARCHIVE holds for this camera on this node's resolvable
27889
+ * recordings locations. */
27764
27890
  usedBytes: number(),
27765
27891
  /**
27766
- * Start of this camera's OLDEST indexed segment, across every profile and
27892
+ * Start of this camera's OLDEST ARCHIVED segment, across every profile and
27767
27893
  * location — the "Oldest footage" column in Recordings → Storage, and the
27768
27894
  * only honest answer to "is retention actually holding?" per camera.
27769
27895
  *
@@ -27773,7 +27899,24 @@ var RecordingDeviceUsageSchema = object({
27773
27899
  * (types) and the addon ship on different trains, and the addon is usually
27774
27900
  * the later of the two.
27775
27901
  */
27776
- oldestMs: number().nullable().optional()
27902
+ oldestMs: number().nullable().optional(),
27903
+ /** Segments the archive holds for this camera — the "M" beside `usedBytes`.
27904
+ * OPTIONAL for the same train-skew reason as `oldestMs`. */
27905
+ segments: number().optional(),
27906
+ /**
27907
+ * RESIDENCY, not the archive: bytes the recorder process currently holds in
27908
+ * its RAM index — the live tail plus the hours a reader hydrated.
27909
+ *
27910
+ * It answers "what can be served without touching the disk", never "how much
27911
+ * footage this camera has". A UI that renders it must label it as such, and
27912
+ * must never total it as storage. OPTIONAL: a recorder predating D418 omits
27913
+ * it, and so does a node whose ledger could not answer.
27914
+ */
27915
+ residentBytes: number().optional(),
27916
+ /** The residency counterpart of `oldestMs` — the oldest segment currently in
27917
+ * RAM, which on a healthy recorder is minutes ago and means nothing about
27918
+ * retention. `null` = nothing resident. */
27919
+ residentOldestMs: number().nullable().optional()
27777
27920
  });
27778
27921
  /** Recording storage usage + capacity for one storage location. */
27779
27922
  var RecordingLocationUsageSchema = object({
@@ -27811,6 +27954,17 @@ var RecordingStorageUsageSchema = object({
27811
27954
  totalUsedBytes: number(),
27812
27955
  devices: array(RecordingDeviceUsageSchema),
27813
27956
  /**
27957
+ * WHERE `devices[]` came from, so an empty table is never mistaken for empty
27958
+ * disks (D418).
27959
+ *
27960
+ * `archive` = the durable hour ledger answered. `unavailable` = this node
27961
+ * declared no ledger and the recorder REFUSED rather than answering the
27962
+ * question with the resident index (D295 rule 3) — the rows are UNKNOWN, not
27963
+ * zero, and a UI must say so. OPTIONAL: a recorder predating D418 omits it,
27964
+ * and its rows are residency.
27965
+ */
27966
+ devicesRead: _enum(["archive", "unavailable"]).optional(),
27967
+ /**
27814
27968
  * Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
27815
27969
  * of the payload without it: the hub serves this method through a BAKED
27816
27970
  * router, so a hub whose framework train predates a change to this array
@@ -34198,6 +34352,24 @@ Object.freeze({
34198
34352
  addonId: null,
34199
34353
  access: "view"
34200
34354
  },
34355
+ "pipelineRunner.getParkedTrackFrame": {
34356
+ capName: "pipeline-runner",
34357
+ capScope: "system",
34358
+ addonId: null,
34359
+ access: "view"
34360
+ },
34361
+ "pipelineRunner.parkTrackFrame": {
34362
+ capName: "pipeline-runner",
34363
+ capScope: "system",
34364
+ addonId: null,
34365
+ access: "create"
34366
+ },
34367
+ "pipelineRunner.releaseParkedTrackFrames": {
34368
+ capName: "pipeline-runner",
34369
+ capScope: "system",
34370
+ addonId: null,
34371
+ access: "create"
34372
+ },
34201
34373
  "pipelineRunner.reportMotion": {
34202
34374
  capName: "pipeline-runner",
34203
34375
  capScope: "system",
@@ -37475,6 +37647,21 @@ Object.freeze({
37475
37647
  form: "single",
37476
37648
  optional: false
37477
37649
  }],
37650
+ "pipelineRunner.getParkedTrackFrame": [{
37651
+ name: "deviceId",
37652
+ form: "single",
37653
+ optional: false
37654
+ }],
37655
+ "pipelineRunner.parkTrackFrame": [{
37656
+ name: "deviceId",
37657
+ form: "single",
37658
+ optional: false
37659
+ }],
37660
+ "pipelineRunner.releaseParkedTrackFrames": [{
37661
+ name: "deviceId",
37662
+ form: "single",
37663
+ optional: false
37664
+ }],
37478
37665
  "pipelineRunner.reportMotion": [{
37479
37666
  name: "deviceId",
37480
37667
  form: "single",
@@ -38166,7 +38353,7 @@ var PreviewTextField = string().max(200);
38166
38353
  * Whether the notification's preview is a STILL or a short animation.
38167
38354
  *
38168
38355
  * The operator's ask, verbatim: *"inviato come gif o video (come per le altre
38169
- * rule)"* — his Scrypted advanced-notifier has a `gifRule`, and a ten-hour
38356
+ * rule)"* — the other rules already offer an animated preview, and a ten-hour
38170
38357
  * night reads better as three seconds of motion than as one frame of it. Both
38171
38358
  * modes get the SAME treatment (blurred frame, large centred title); `'gif'`
38172
38359
  * simply applies it to a dozen frames sampled across the render and assembles
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_dist = require("../dist-DvJMHeGc.js");
5
+ const require_dist = require("../dist-CQfYIy9j.js");
6
6
  let node_crypto = require("node:crypto");
7
7
  let node_child_process = require("node:child_process");
8
8
  //#region src/ingress/tailscale-cli.ts
@@ -1,4 +1,4 @@
1
- import { a as EventCategory, i as BaseAddon, n as networkAccessCapability } from "../dist-CUQ2MTx9.mjs";
1
+ import { a as EventCategory, i as BaseAddon, n as networkAccessCapability } from "../dist-Cv5sAvrW.mjs";
2
2
  import { randomUUID } from "node:crypto";
3
3
  import { execFile } from "node:child_process";
4
4
  import { promisify } from "node:util";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-tailscale",
3
- "version": "1.2.90",
3
+ "version": "1.2.92",
4
4
  "description": "Tailscale bundle for CamStack — joins the host to a tailnet (client) and exposes the hub via Serve/Funnel (ingress). Multi-entry npm package shipping 2 addons under a single bundle.",
5
5
  "keywords": [
6
6
  "camstack",