@camstack/addon-pipeline 1.2.315 → 1.2.316

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.
Files changed (32) hide show
  1. package/dist/audio-analyzer/index.js +2 -2
  2. package/dist/audio-analyzer/index.mjs +2 -2
  3. package/dist/{default-detection-model-BTlf5MpT.mjs → default-detection-model-Ct7dlbBe.mjs} +1 -1
  4. package/dist/{default-detection-model-CteW4o8U.js → default-detection-model-DD9hOZ4u.js} +1 -1
  5. package/dist/detection-pipeline/index.js +4 -4
  6. package/dist/detection-pipeline/index.mjs +4 -4
  7. package/dist/{dist-sCjZdzKn.js → dist-BB9ZzZuv.js} +168 -89
  8. package/dist/{dist-C8W_MWSz.mjs → dist-D1CYfnNk.mjs} +168 -89
  9. package/dist/motion-wasm/index.js +1 -1
  10. package/dist/motion-wasm/index.mjs +1 -1
  11. package/dist/{node-CnLKPz1A.mjs → node-CQWOX--t.mjs} +1 -1
  12. package/dist/{node-D4xdwpPU.js → node-bfUE4LH0.js} +1 -1
  13. package/dist/pipeline-runner/index.js +3 -3
  14. package/dist/pipeline-runner/index.mjs +3 -3
  15. package/dist/{process-memory-DqTBUteS.mjs → process-memory-Dh7ICwL3.mjs} +1 -1
  16. package/dist/{process-memory-CMnhjGyE.js → process-memory-MNz63KR5.js} +1 -1
  17. package/dist/recorder/index.js +108 -108
  18. package/dist/recorder/index.mjs +108 -108
  19. package/dist/{segment-demux-js-CCSsDyMw.mjs → segment-demux-js-Be5IUrly.mjs} +1 -1
  20. package/dist/{segment-demux-js-DGpdNqsG.js → segment-demux-js-CFIkvV42.js} +1 -1
  21. package/dist/stream-broker/_stub.js +2 -2
  22. package/dist/stream-broker/{_virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-BOKNSh-e.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-Cjam0v1J.mjs} +2 -2
  23. package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-D6PDbSB9.mjs +26 -0
  24. package/dist/stream-broker/{_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-DddXyc17.mjs → _virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-DHNf76xj.mjs} +1 -1
  25. package/dist/stream-broker/demux-worker-child.js +1 -1
  26. package/dist/stream-broker/demux-worker-child.mjs +1 -1
  27. package/dist/stream-broker/{hostInit-BkvtmJ2D.mjs → hostInit-CEJvMnrH.mjs} +2 -2
  28. package/dist/stream-broker/index.js +6 -6
  29. package/dist/stream-broker/index.mjs +6 -6
  30. package/dist/stream-broker/remoteEntry.js +1 -1
  31. package/package.json +1 -1
  32. package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BTvQXobK.mjs +0 -26
@@ -7693,7 +7693,7 @@ function errMsg(err) {
7693
7693
  return String(err);
7694
7694
  }
7695
7695
  //#endregion
7696
- //#region ../types/dist/composition-43aqsZQj.mjs
7696
+ //#region ../types/dist/composition-D7ULvLdD.mjs
7697
7697
  var AUDIO_ENCODER_BY_CODEC = {
7698
7698
  opus: "libopus",
7699
7699
  aac: "aac",
@@ -8454,20 +8454,20 @@ function portable(target) {
8454
8454
  }
8455
8455
  portable("linux64"), portable("linuxarm64"), portable("macarm64"), portable("mac64");
8456
8456
  /**
8457
- * LA tabella "quale booleano di questo tipo di device conta come ALTO", e il
8458
- * valutatore puro del suo FRONTE.
8457
+ * THE table "which boolean of this device type counts as HIGH", and the
8458
+ * pure evaluator of its EDGE.
8459
8459
  *
8460
- * UNA tabella per tutti quelli che chiedono "questo device è ALTO?": il
8461
- * trigger `RecordingTriggers.sensorDeviceIds` del recorder, i marker dei
8462
- * sensori della post-analysis, il bridge camera-sensors dell'orchestratore e
8463
- * le sorgenti di un campanello composto (`doorbellFeatureSources`, D671).
8464
- * Una seconda copia divergerebbe alla prima cap aggiunta, e il sintomo — "il
8465
- * sensore fa suonare il campanello ma non registra" — è esattamente D62.
8460
+ * ONE table for everyone who asks "is this device HIGH?": the
8461
+ * recorder's `RecordingTriggers.sensorDeviceIds` trigger, the post-analysis
8462
+ * sensor markers, the orchestrator's camera-sensors bridge and
8463
+ * the sources of a composite doorbell (`doorbellFeatureSources`, D671).
8464
+ * A second copy would diverge at the first cap added, and the symptom — "the
8465
+ * sensor rings the doorbell but does not record" — is exactly D62.
8466
8466
  *
8467
- * ⚠ NON è `DEVICE_STATE_READERS` (`catalogs/device-state-vocabulary.ts`), e le
8468
- * due non vanno unificate: quella risponde a "qual è la PAROLA di stato per una
8469
- * regola" (e include `presence`, `cover`, `alarm-panel`), questa a "qual è il
8470
- * booleano il cui FRONTE conta". Vocabolari deliberatamente diversi.
8467
+ * ⚠ NOT `DEVICE_STATE_READERS` (`catalogs/device-state-vocabulary.ts`), and the
8468
+ * two must not be unified: that one answers "what is the state WORD for a
8469
+ * rule" (and includes `presence`, `cover`, `alarm-panel`), this one "which
8470
+ * boolean's EDGE counts". Deliberately different vocabularies.
8471
8471
  */
8472
8472
  /**
8473
8473
  * Known binary / switch source caps → the boolean slice field whose
@@ -8559,17 +8559,17 @@ function evaluateSensorLevelEdge(input) {
8559
8559
  };
8560
8560
  }
8561
8561
  /**
8562
- * IL fronte. Puro: nessun orologio proprio, nessuna memoria — il chiamante
8563
- * porta `prior`, `nowMs` e il proprio `startedAtMs`.
8562
+ * THE edge. Pure: no clock of its own, no memory — the caller
8563
+ * brings `prior`, `nowMs` and its own `startedAtMs`.
8564
8564
  *
8565
- * Il caso della PRIMA slice già attiva è trattato esplicitamente e vale come
8566
- * fronte solo se il timestamp UPSTREAM della transizione è posteriore a
8567
- * `startedAtMs` **e** entro `firstSightingFreshnessMs`. Entrambe le metà
8568
- * servono: la sola freschezza scatterebbe su un'idratazione al boot di uno
8569
- * stato flippato pochi secondi prima del riavvio, e il solo "dopo che abbiamo
8570
- * iniziato" scatterebbe, su un processo di lunga vita, per una sorgente
8571
- * adottata oggi il cui stato è cambiato ieri. Il caso ambiguo ERRA VERSO IL
8572
- * SILENZIO e lo dichiara (`baseline-seeded-stale-active`).
8565
+ * The case of the FIRST slice already active is treated explicitly and counts as an
8566
+ * edge only if the UPSTREAM timestamp of the transition is later than
8567
+ * `startedAtMs` **and** within `firstSightingFreshnessMs`. Both halves
8568
+ * are needed: freshness alone would fire on a boot-time hydration of a
8569
+ * state flipped a few seconds before the restart, and "after we started"
8570
+ * alone would fire, on a long-lived process, for a source
8571
+ * adopted today whose state changed yesterday. The ambiguous case ERRS TOWARD
8572
+ * SILENCE and declares it (`baseline-seeded-stale-active`).
8573
8573
  */
8574
8574
  function evaluateSensorEdge(input) {
8575
8575
  const value = sliceActiveValue(input.capName, input.slice);
@@ -10537,22 +10537,22 @@ var CLASS_MAP_MACRO_TARGETS = [
10537
10537
  "package"
10538
10538
  ];
10539
10539
  /**
10540
- * Le macro classi di PRIMO LIVELLO: quelle che un object detector emette e che
10541
- * un operatore può selezionare.
10540
+ * The FIRST-LEVEL macro classes: those an object detector emits and that
10541
+ * an operator can select.
10542
10542
  *
10543
- * Sono le tre offerte dallo step `object-detection`
10543
+ * They are the three offered by the `object-detection` step
10544
10544
  * (`addon-pipeline/src/detection-pipeline/registry/step-definitions.ts`,
10545
- * `enabledMacroClasses`). `package` sta in {@link CLASS_MAP_MACRO_TARGETS} e in
10546
- * `MACRO_LABELS` — è una macro vera — ma NON qui: appartiene allo step
10547
- * `package-detection`, la cui abilitazione è guidata dalle zone, e offrire la
10548
- * stessa parola due volte ha già fatto accendere a un operatore il proxy COCO
10545
+ * `enabledMacroClasses`). `package` is in {@link CLASS_MAP_MACRO_TARGETS} and in
10546
+ * `MACRO_LABELS` — it is a true macro — but NOT here: it belongs to the step
10547
+ * `package-detection`, whose enablement is driven by zones, and offering the
10548
+ * same word twice has already made an operator turn on the COCO proxy
10549
10549
  * (suitcase/backpack/handbag) lasciando spento il detector dedicato.
10550
10550
  *
10551
- * UNA lista. Prima di oggi le stesse tre erano scritte a mano nell'offerta
10552
- * dello step e una seconda volta come union `FirstLevelMacro`
10553
- * (`types/detection.ts`); una terza copia per il trigger di registrazione
10554
- * (`RecordingTriggers.objectClasses`) avrebbe reso invisibile la divergenza
10555
- * successiva.
10551
+ * ONE list. Before today the same three were hand-written in the step's offer
10552
+ * and a second time as the union `FirstLevelMacro`
10553
+ * (`types/detection.ts`); a third copy for the recording trigger
10554
+ * (`RecordingTriggers.objectClasses`) would have made the later divergence
10555
+ * invisible.
10556
10556
  */
10557
10557
  var FIRST_LEVEL_MACRO_CLASSES = [
10558
10558
  "person",
@@ -10560,8 +10560,8 @@ var FIRST_LEVEL_MACRO_CLASSES = [
10560
10560
  "animal"
10561
10561
  ];
10562
10562
  /**
10563
- * True quando `value` è una macro di primo livello. Type guard, non cast: un
10564
- * `className` che arriva dal bus è una stringa qualunque finché non passa di
10563
+ * True when `value` is a first-level macro. Type guard, not cast: a
10564
+ * `className` coming from the bus is any string until it passes through
10565
10565
  * qui.
10566
10566
  */
10567
10567
  function isFirstLevelMacroClass(value) {
@@ -10643,17 +10643,17 @@ var RecordingStorageModeSchema = _enum([
10643
10643
  "on-device-decision"
10644
10644
  ]);
10645
10645
  /**
10646
- * Le macro classi che possono aprire una finestra di registrazione — le stesse
10647
- * tre offerte dallo step `object-detection`, da UNA lista
10646
+ * The macro classes that can open a recording window — the same
10647
+ * three offered by the `object-detection` step, from ONE list
10648
10648
  * ({@link FIRST_LEVEL_MACRO_CLASSES}).
10649
10649
  */
10650
10650
  var RecordingObjectTriggerClassSchema = _enum(FIRST_LEVEL_MACRO_CLASSES);
10651
10651
  /**
10652
- * True quando `values` non ripete un elemento.
10652
+ * True when `values` does not repeat an element.
10653
10653
  *
10654
- * Un duplicato non è innocuo: ogni voce di `objectClasses` / `sensorDeviceIds`
10655
- * diventa una SORGENTE in `bandTriggerSources`, e la stessa sorgente due volte
10656
- * conterebbe due volte le sue finestre in `segmentMissedByMs`.
10654
+ * A duplicate is not harmless: every entry of `objectClasses` / `sensorDeviceIds`
10655
+ * becomes a SOURCE in `bandTriggerSources`, and the same source twice
10656
+ * would count its windows twice in `segmentMissedByMs`.
10657
10657
  */
10658
10658
  var noDuplicates = (values) => new Set(values).size === values.length;
10659
10659
  /** Which detectors trigger an `events`-mode band. */
@@ -10661,34 +10661,34 @@ var RecordingTriggersSchema = object({
10661
10661
  motion: boolean().optional(),
10662
10662
  audioThresholdDbfs: number().optional(),
10663
10663
  /**
10664
- * Le macro classi la cui detection apre una finestra. ASSENTE = la sorgente
10665
- * non è ascoltata; un array VUOTO è rifiutato, perché "banda events, trigger
10666
- * object acceso, nessuna classe" è la stessa forma "abilitata e non registra
10667
- * nulla, per sempre" contro cui è scritto `eventsBandCanEverDemand`.
10664
+ * The macro classes whose detection opens a window. ABSENT = the source
10665
+ * is not listened to; an EMPTY array is rejected, because "events band, object
10666
+ * trigger on, no class" is the same shape "enabled and records
10667
+ * nothing, forever" that `eventsBandCanEverDemand` is written against.
10668
10668
  *
10669
- * Il segnale letto è GIÀ FILTRATO: solo detection `source: 'pipeline'`, cioè
10670
- * quelle che hanno attraversato `enabledMacroClasses`, i
10671
- * `minConfidence<Macro>` e il full-frame guard. L'AI a bordo camera
10672
- * (`source: 'onboard'`) non attraversa nessuno di quei gate e NON apre
10673
- * finestre — vedi `recorder/object-trigger.ts`.
10669
+ * The signal read is ALREADY FILTERED: only `source: 'pipeline'` detections, i.e.
10670
+ * those that went through `enabledMacroClasses`, the
10671
+ * `minConfidence<Macro>` and the full-frame guard. The camera's onboard AI
10672
+ * (`source: 'onboard'`) goes through none of those gates and does NOT open
10673
+ * windows — see `recorder/object-trigger.ts`.
10674
10674
  */
10675
10675
  objectClasses: array(RecordingObjectTriggerClassSchema).min(1).refine(noDuplicates, { message: "objectClasses must not repeat a class" }).optional(),
10676
10676
  /**
10677
- * I device LINKED il cui FRONTE ALTO apre una finestra. Assente = la sorgente
10678
- * non è ascoltata; un array vuoto è rifiutato per la stessa ragione di
10677
+ * The LINKED devices whose RISING EDGE opens a window. Absent = the source
10678
+ * is not listened to; an empty array is rejected for the same reason as
10679
10679
  * `objectClasses`.
10680
10680
  *
10681
- * Sono id di device SORGENTE, non camere: la banda li nomina, quindi il
10682
- * percorso caldo (`DeviceStateChanged`, a ritmo di bus su tutta la flotta)
10683
- * non fa RPC. L'OFFERTA da cui l'operatore li sceglie è un'altra domanda, e
10684
- * si risolve con `deviceManager.getLinkedDevices` + `getBindingsBatch` per
10685
- * device (D12) — mai un elenco globale di cap.
10681
+ * These are SOURCE device ids, not cameras: the band names them, so the
10682
+ * hot path (`DeviceStateChanged`, at bus rate across the whole fleet)
10683
+ * does no RPC. The OFFER from which the operator picks them is another question, and
10684
+ * is resolved with `deviceManager.getLinkedDevices` + `getBindingsBatch` per
10685
+ * device (D12) — never a global list of caps.
10686
10686
  *
10687
- * Cosa vuol dire "alto" dipende dal TIPO di device e non è deciso qui:
10688
- * `SOURCE_CAP_ACTIVE_FIELD` (`catalogs/sensor-active-state.ts`) è LA tabella,
10689
- * la stessa del campanello composto (D671). Ed è il FRONTE, non
10690
- * il livello: un contatto trovato già aperto al riavvio del runner non fa
10691
- * registrare.
10687
+ * What "high" means depends on the device TYPE and is not decided here:
10688
+ * `SOURCE_CAP_ACTIVE_FIELD` (`catalogs/sensor-active-state.ts`) is THE table,
10689
+ * the same one as the composite doorbell (D671). And it is the EDGE, not
10690
+ * the level: a contact found already open at runner restart does not
10691
+ * record.
10692
10692
  */
10693
10693
  sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
10694
10694
  });
@@ -12068,7 +12068,7 @@ var DecoderSessionConfigSchema = object({
12068
12068
  * - **VALUE** — at which level, for which scope, until when. That stays ONE
12069
12069
  * thing: the logging settings document on the `system` cap. Two authorities
12070
12070
  * over the values is the exact defect
12071
- * `docs/design/plans/2026-08-26-logging-per-componente.md` was written to
12071
+ * `docs/design/plans/2026-08-26-per-component-logging.md` was written to
12072
12072
  * remove; re-introducing it from the cure side would be grotesque.
12073
12073
  *
12074
12074
  * Nothing in this file reads a clock, an env var or a store. The registry is
@@ -16371,7 +16371,7 @@ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
16371
16371
  *
16372
16372
  * ⚠ An earlier version of this comment blamed Zod stripping, and that
16373
16373
  * was wrong — corrected 2026-08-26 after the hop map
16374
- * (`docs/design/2026-08-26-mappa-hop-argomenti.md`) traced the path.
16374
+ * (`docs/design/2026-08-26-topic-hop-map.md`) traced the path.
16375
16375
  * There is **no Zod parse at all** between the door and the engine: the
16376
16376
  * dispatcher forwards the payload verbatim and UDS carries it whole. A
16377
16377
  * field declared here reaches `SqliteSettingsBackend` either way.
@@ -17158,7 +17158,17 @@ var SiteZoneSchema = object({
17158
17158
  var ProviderStatusSchema = object({
17159
17159
  connected: boolean(),
17160
17160
  deviceCount: number(),
17161
- error: string().optional()
17161
+ error: string().optional(),
17162
+ /**
17163
+ * `'orchestrator'`: this provider writes NO camera's `motion` runtime slice
17164
+ * — the orchestrator is its only writer (D696). Set by `BaseDeviceProvider`,
17165
+ * which every provider bundles, so only a provider BUILT from D696-amended
17166
+ * code says it. ABSENT means an older provider that may still write it (raw
17167
+ * VMD writes, a boot seed), and the orchestrator's provider gate keeps that
17168
+ * provider's cameras unwritten (`camera-sensors/motion-slice-provider-gate.ts`)
17169
+ * — the provider twin of the runner's `getLocalLoad().motionSliceWriter`.
17170
+ */
17171
+ motionSliceWriter: literal("orchestrator").optional()
17162
17172
  });
17163
17173
  object({
17164
17174
  externalId: string(),
@@ -18294,7 +18304,7 @@ method(object({
18294
18304
  * per-device window, `KeyFrameCaptureLog`, `bumpCropMetric`. Every one of them
18295
18305
  * ends in a log line, and a log line is the thing the operator asked to stop
18296
18306
  * needing: *"possiamo armare questi errori intanto? Così al prossimo giro
18297
- * ricontrolliamo tutti questi punti"*. Reading them meant grepping Loki and
18307
+ * ricontrolliamo tutti questi punti"* [can we instrument these errors in the meantime? That way next round we recheck all these points]. Reading them meant grepping Loki and
18298
18308
  * hand-correlating timestamps, which is how a 22% thumbnail gap and a 3-hour
18299
18309
  * media blackout were both diagnosed. The counters stay; this is where they can
18300
18310
  * be READ.
@@ -22898,6 +22908,29 @@ object({
22898
22908
  firstAt: number(),
22899
22909
  lastAt: number()
22900
22910
  });
22911
+ var NC_ALARM_TRIGGERED_MAX_SEC = 3600;
22912
+ var NcAlarmDelaySecSchema = number().int().min(0).max(600);
22913
+ var NcAlarmTriggeredSecSchema = number().int().min(0).max(NC_ALARM_TRIGGERED_MAX_SEC);
22914
+ var uniqueModes = (entries) => new Set(entries.map((e) => e.mode)).size === entries.length;
22915
+ var NcAlarmModeDelaysListSchema = array(object({
22916
+ mode: AlarmArmModeSchema,
22917
+ exitDelaySec: NcAlarmDelaySecSchema.optional(),
22918
+ entryDelaySec: NcAlarmDelaySecSchema.optional(),
22919
+ triggeredDurationSec: NcAlarmTriggeredSecSchema.optional()
22920
+ })).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
22921
+ var NcAlarmModeDelaysEditListSchema = array(object({
22922
+ mode: AlarmArmModeSchema,
22923
+ exitDelaySec: NcAlarmDelaySecSchema.nullable().optional(),
22924
+ entryDelaySec: NcAlarmDelaySecSchema.nullable().optional(),
22925
+ triggeredDurationSec: NcAlarmTriggeredSecSchema.nullable().optional()
22926
+ })).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
22927
+ /** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
22928
+ var NcAlarmNonBlockingEditSchema = object({
22929
+ mode: AlarmArmModeSchema,
22930
+ deviceId: number().int().positive(),
22931
+ /** true = on the list (may be open, does not block); false = off the list (blocks). */
22932
+ nonBlocking: boolean()
22933
+ });
22901
22934
  /**
22902
22935
  * The per-mode lists, at most one per mode. Two lists for one mode have no
22903
22936
  * meaning a reader could agree on (union? the last one?), so they are refused
@@ -22906,10 +22939,10 @@ object({
22906
22939
  var NcAlarmNonBlockingListSchema = array(object({
22907
22940
  mode: AlarmArmModeSchema,
22908
22941
  deviceIds: array(number().int()).max(200)
22909
- })).max(8).refine((lists) => new Set(lists.map((l) => l.mode)).size === lists.length, { message: "nonBlocking: at most one list per arm mode" });
22942
+ })).max(8).refine(uniqueModes, { message: "nonBlocking: at most one list per arm mode" });
22910
22943
  /**
22911
- * The three durations the panel's state machine runs on, who hears about its
22912
- * transitions, and which openings each mode tolerates.
22944
+ * The three durations — global, and per mode since D697 — the panel's state
22945
+ * machine runs on, who hears about its transitions, and which openings each mode tolerates.
22913
22946
  *
22914
22947
  * They live on the NOTIFICATION-RULES cap, not on `alarm-panel`, on purpose:
22915
22948
  * `alarm-panel` is `deviceNative` and its other provider mirrors somebody
@@ -22919,15 +22952,15 @@ var NcAlarmNonBlockingListSchema = array(object({
22919
22952
  */
22920
22953
  var NcAlarmSettingsSchema = object({
22921
22954
  /** Grace period between arming and the mode taking effect. 0 = immediate. */
22922
- exitDelaySec: number().int().min(0).max(600),
22955
+ exitDelaySec: NcAlarmDelaySecSchema,
22923
22956
  /** Grace period between a trigger and the alarm firing. 0 = immediate. */
22924
- entryDelaySec: number().int().min(0).max(600),
22957
+ entryDelaySec: NcAlarmDelaySecSchema,
22925
22958
  /**
22926
22959
  * How long `triggered` lasts before the panel re-arms itself.
22927
22960
  * **0 = until an operator disarms it** — the behaviour before this field
22928
22961
  * existed, and therefore what an untouched install keeps doing.
22929
22962
  */
22930
- triggeredDurationSec: number().int().min(0).max(3600),
22963
+ triggeredDurationSec: NcAlarmTriggeredSecSchema,
22931
22964
  /**
22932
22965
  * Deprecated by D630 — every transition is announced. Parsed, never read;
22933
22966
  * remove after one release. Optional so an older admin's patch (which still
@@ -22950,17 +22983,30 @@ var NcAlarmSettingsSchema = object({
22950
22983
  * per mode is meaningful. Defaulted to `[]` so a blob stored before D630
22951
22984
  * parses as "every opening blocks" — the behaviour it was written under.
22952
22985
  */
22953
- nonBlocking: NcAlarmNonBlockingListSchema.default([])
22986
+ nonBlocking: NcAlarmNonBlockingListSchema.default([]),
22987
+ /**
22988
+ * Per arm mode, the delays that mode OVERRIDES (D697). A mode with no entry, or an entry
22989
+ * without a field, uses the global value above — so `[]`, the default, is exactly the
22990
+ * behaviour of a blob stored before this field existed. Read through `resolveModeDelays`.
22991
+ */
22992
+ modeDelays: NcAlarmModeDelaysListSchema.default([])
22954
22993
  });
22955
22994
  /**
22956
22995
  * Every field optional — a tab edits one control at a time.
22957
22996
  *
22958
- * `nonBlocking` is re-declared WITHOUT its default: `.partial()` does not
22959
- * remove an inner `.default()`, so a patch that never named the field would
22960
- * parse to `nonBlocking: []` and wipe every mode's list on an unrelated edit
22961
- * (the same trap {@link NcRulePatchSchema} documents).
22997
+ * `nonBlocking` and `modeDelays` are re-declared WITHOUT their defaults:
22998
+ * `.partial()` does not remove an inner `.default()`, so a patch that never
22999
+ * named the field would parse to `[]` and wipe every mode's list on an
23000
+ * unrelated edit (the same trap {@link NcRulePatchSchema} documents). Here
23001
+ * `modeDelays` means EDITS, not the stored overrides.
22962
23002
  */
22963
- var NcAlarmSettingsPatchSchema = NcAlarmSettingsSchema.extend({ nonBlocking: NcAlarmNonBlockingListSchema }).partial();
23003
+ var NcAlarmSettingsPatchSchema = NcAlarmSettingsSchema.extend({
23004
+ nonBlocking: NcAlarmNonBlockingListSchema,
23005
+ /** Per-mode, per-field edits — NOT the whole list (see NcAlarmModeDelaysEditSchema). */
23006
+ modeDelays: NcAlarmModeDelaysEditListSchema,
23007
+ /** ONE membership change; the panel applies it to the list it holds at its turn. */
23008
+ nonBlockingEdit: NcAlarmNonBlockingEditSchema
23009
+ }).partial().refine((p) => p.nonBlocking === void 0 || p.nonBlockingEdit === void 0, { message: "nonBlocking and nonBlockingEdit are exclusive — send the whole lists or one edit" });
22964
23010
  /**
22965
23011
  * What one arm mode actually arms, DERIVED from the enabled rules gated on it.
22966
23012
  * Never authored, never stored — see `alarm-mode-coverage.ts` for why a stored
@@ -23060,6 +23106,28 @@ var NcAlarmConfigSchema = object({
23060
23106
  */
23061
23107
  live: NcAlarmLiveSchema.optional()
23062
23108
  });
23109
+ var NcAlarmSensorReadingSchema = _enum([
23110
+ "open",
23111
+ "closed",
23112
+ "unknown",
23113
+ "not-opening"
23114
+ ]);
23115
+ /** One device's state as the alarm reads it — the classifier the arm check uses. */
23116
+ var NcAlarmSensorStateSchema = object({
23117
+ deviceId: number().int().positive(),
23118
+ reading: NcAlarmSensorReadingSchema,
23119
+ /** The word as read (`open`, `closed`, `unlocked`, `stopped`, …); null when unknown / not an opening. */
23120
+ state: string().nullable(),
23121
+ /** Why `unknown`: the read failed, or the slice holds no word its cap defines (a placeholder included). */
23122
+ unknownWhy: _enum(["read-failed", "unknown-word"]).nullable(),
23123
+ /** The device manager's liveness as the centre mirrors it; null = not known. */
23124
+ online: boolean().nullable()
23125
+ });
23126
+ var NcAlarmSensorsInputSchema = object({ deviceIds: array(number().int().positive()).max(500) });
23127
+ var NcAlarmSensorsSchema = object({
23128
+ sensors: array(NcAlarmSensorStateSchema),
23129
+ readAt: number().int().nonnegative()
23130
+ });
23063
23131
  /**
23064
23132
  * ONE rule's demand on ONE camera's clip ring.
23065
23133
  *
@@ -23150,7 +23218,7 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
23150
23218
  }), method(object({}), NcAlarmConfigSchema, { auth: "admin" }), method(object({ patch: NcAlarmSettingsPatchSchema }), NcAlarmConfigSchema, {
23151
23219
  kind: "mutation",
23152
23220
  auth: "admin"
23153
- });
23221
+ }), method(NcAlarmSensorsInputSchema, NcAlarmSensorsSchema, { auth: "admin" });
23154
23222
  /**
23155
23223
  * Zod schemas for persisted record types.
23156
23224
  *
@@ -24349,14 +24417,14 @@ var TrackSchema = object({
24349
24417
  * `derive-returned-null tile=standin`,
24350
24418
  * `native-tile tile=native no-key-frame-at-close`, …) written at close and
24351
24419
  * CLEARED by the late-keyFrame upgrade when a native tile lands after all.
24352
- * The operator-facing answer to "perché manca l'immagine?" on a track whose
24420
+ * The operator-facing answer to "perché manca l'immagine?" [why is the image missing?] on a track whose
24353
24421
  * tile is a face/plate stand-in, a raster crop, or an icon.
24354
24422
  *
24355
24423
  * **`no-key-frame-at-close` (D400).** The line used to be written ONLY when
24356
24424
  * the TILE ranked below native, so a track whose thumbnail landed natively
24357
24425
  * while its key frame missed carried no reason at all — three of the four
24358
24426
  * `MISSING_KEYFRAME` tracks in the 2026-09-07 operator audit were exactly
24359
- * that shape, and their "niente ultimo" had no cause anywhere on the row.
24427
+ * that shape, and their "niente ultimo" [no last frame] had no cause anywhere on the row.
24360
24428
  * The key frame is the head of a cascade (`keyFrame ⇒ keyFrameSmall ⇒ the
24361
24429
  * lastFrame copy source`), so its absence is now on this line whatever the
24362
24430
  * tile ended up being.
@@ -24443,7 +24511,7 @@ var MotionEventSchema = object({
24443
24511
  /**
24444
24512
  * Ms offsets from `timestamp` (the episode's own first rising edge, so the
24445
24513
  * first entry is always `0`) of every genuine off→on transition the
24446
- * episode saw — "ogni evento on si deve salvare" (D475). NOT one entry per
24514
+ * episode saw — "ogni evento on si deve salvare" [every ON event must be saved] (D475). NOT one entry per
24447
24515
  * push: a firmware source that keepalives at ~1 Hz for the whole burst
24448
24516
  * (Reolink, Hikvision) produces exactly one edge; a source that reports an
24449
24517
  * explicit `false` mid-episode and then resumes before the quiet window
@@ -30122,7 +30190,7 @@ var ClipPlaybackSchema = object({
30122
30190
  * **One authorised yes is one wake.** `next-natural` — take the clip the next
30123
30191
  * time the camera is awake for its own reasons — is deliberately not a member:
30124
30192
  * it was proposed, it is free on the battery, and the operator declined it on
30125
- * 2026-09-20 (*"Quando un export viene richiesto si sveglia la camera."*,
30193
+ * 2026-09-20 (*"Quando un export viene richiesto si sveglia la camera."* [When an export is requested the camera wakes up],
30126
30194
  * D558 "Considered and not taken").
30127
30195
  */
30128
30196
  var ClipWakeSchema = _enum(["authorised"]);
@@ -30437,7 +30505,7 @@ var videoclipsCapability = {
30437
30505
  * **It is a SECTION of the Recording tab, at the end of it — not a tab of
30438
30506
  * its own.** It shipped as a `clips` top-tab and the operator rejected the
30439
30507
  * placement: *"utilizzerei la stessa tab recordings, lì abbiamo già tutto il
30440
- * necessario, una nuova sezione alla fine per le clips"*. The Recording tab
30508
+ * necessario, una nuova sezione alla fine per le clips"* [I would use the same recordings tab, there we already have everything necessary, a new section at the end for the clips]. The Recording tab
30441
30509
  * already holds the recorder's panel, the schedule bands and the unified
30442
30510
  * retention policy; footage the camera itself holds is the same question,
30443
30511
  * asked of a different store. `order: 100` puts it after all of them with
@@ -30498,7 +30566,7 @@ var videoclipsCapability = {
30498
30566
  * It replaced `sources?: string[]`, a VIEW filter over source ids that
30499
30567
  * assumed the answer was a fan-out over everything a camera has. The
30500
30568
  * operator settled otherwise on 2026-09-20 — *"l'utilizzatore è uno
30501
- * solo"* — so the list is asked of one provider at a time and there is
30569
+ * solo"* [there is only one user] — so the list is asked of one provider at a time and there is
30502
30570
  * nothing to filter out of it.
30503
30571
  */
30504
30572
  provider: string().min(1)
@@ -37039,7 +37107,7 @@ var ReadGopBytesResultSchema = object({
37039
37107
  /**
37040
37108
  * A time WINDOW of one finalized segment, cut by byte range — the multi-GOP
37041
37109
  * twin of {@link ReadGopBytesResultSchema}'s single instant. Built for the
37042
- * replay clip's `recording` source (`docs/design/plans/2026-08-26-replay-clip-su-pipeline.md`):
37110
+ * replay clip's `recording` source (`docs/design/plans/2026-08-26-clip-replay-on-pipeline.md`):
37043
37111
  * a replay needs several seconds of native pixels, not one frame.
37044
37112
  *
37045
37113
  * `ok.data` is standalone-demuxable, same as a GOP read. `ok.reachesRequestedEnd`
@@ -45054,6 +45122,12 @@ Object.freeze({
45054
45122
  addonId: null,
45055
45123
  access: "view"
45056
45124
  },
45125
+ "notificationRules.getAlarmSensors": {
45126
+ capName: "notification-rules",
45127
+ capScope: "system",
45128
+ addonId: null,
45129
+ access: "view"
45130
+ },
45057
45131
  "notificationRules.getClipRetentionAsks": {
45058
45132
  capName: "notification-rules",
45059
45133
  capScope: "system",
@@ -49537,6 +49611,11 @@ Object.freeze({
49537
49611
  form: "single",
49538
49612
  optional: false
49539
49613
  }],
49614
+ "notificationRules.getAlarmSensors": [{
49615
+ name: "deviceIds",
49616
+ form: "array",
49617
+ optional: false
49618
+ }],
49540
49619
  "notificationRules.setDeviceMuted": [{
49541
49620
  name: "deviceId",
49542
49621
  form: "single",
@@ -51384,7 +51463,7 @@ var PreviewTextField = string().max(200);
51384
51463
  * Whether the notification's preview is a STILL or a short animation.
51385
51464
  *
51386
51465
  * The operator's ask, verbatim: *"inviato come gif o video (come per le altre
51387
- * rule)"* — the other rules already offer an animated preview, and a ten-hour
51466
+ * rule)"* [sent as a gif or video (as for the other rules)] — the other rules already offer an animated preview, and a ten-hour
51388
51467
  * night reads better as three seconds of motion than as one frame of it. Both
51389
51468
  * modes get the SAME treatment (blurred frame, large centred title); `'gif'`
51390
51469
  * 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-sCjZdzKn.js");
5
+ const require_dist = require("../dist-BB9ZzZuv.js");
6
6
  const require_lazy_sharp = require("../lazy-sharp-BuwKlQLR.js");
7
7
  let node_fs = require("node:fs");
8
8
  let node_path = require("node:path");
@@ -1,4 +1,4 @@
1
- import { Sn as hydrateSchema, ct as evaluateZoneRules, dn as DeviceType, kt as motionDetectionCapability, mn as BaseAddon } from "../dist-C8W_MWSz.mjs";
1
+ import { Sn as hydrateSchema, ct as evaluateZoneRules, dn as DeviceType, kt as motionDetectionCapability, mn as BaseAddon } from "../dist-D1CYfnNk.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 { an as Fmp4BoxSplitter, fn as errMsg, ln as isSoftwareDecode, on as buildFfmpegArgs } from "./dist-C8W_MWSz.mjs";
1
+ import { an as Fmp4BoxSplitter, fn as errMsg, ln as isSoftwareDecode, on as buildFfmpegArgs } from "./dist-D1CYfnNk.mjs";
2
2
  import { randomUUID } from "node:crypto";
3
3
  import { realpathSync } from "node:fs";
4
4
  import path from "node:path";
@@ -1,5 +1,5 @@
1
1
  const require_chunk = require("./chunk-emK7D4bc.js");
2
- const require_dist = require("./dist-sCjZdzKn.js");
2
+ const require_dist = require("./dist-BB9ZzZuv.js");
3
3
  let node_crypto = require("node:crypto");
4
4
  let node_fs = require("node:fs");
5
5
  node_fs = require_chunk.__toESM(node_fs, 1);
@@ -3,9 +3,9 @@ Object.defineProperties(exports, {
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
5
  const require_chunk = require("../chunk-emK7D4bc.js");
6
- const require_dist = require("../dist-sCjZdzKn.js");
7
- const require_node = require("../node-D4xdwpPU.js");
8
- const require_default_detection_model = require("../default-detection-model-CteW4o8U.js");
6
+ const require_dist = require("../dist-BB9ZzZuv.js");
7
+ const require_node = require("../node-bfUE4LH0.js");
8
+ const require_default_detection_model = require("../default-detection-model-DD9hOZ4u.js");
9
9
  const require_worker_protocol = require("../worker-protocol-C-G8qmye.js");
10
10
  const require_hub_hostname = require("../hub-hostname-DAJXlOgV.js");
11
11
  const require_lazy_sharp = require("../lazy-sharp-BuwKlQLR.js");
@@ -1,6 +1,6 @@
1
- import { D as NativeLeaseAdmissionSchema, En as nodePin, Fn as lazy, In as literal, It as pipelineRunnerCapability, Ln as number, Mn as array, Nn as boolean, Nt as pickDetailCropConvention, O as NativeLeaseSettingsSchema, Pt as pickNativeLeaseOverride, Rn as object, Un as EventCategory, Vn as string, a as BackgroundRunRegistry, bn as defineCustomActions, bt as loadContributionCapability, fn as errMsg, ft as failureContributionCapability, g as DEFAULT_DETAIL_CROP_CONVENTION, jn as _enum, mn as BaseAddon, nt as deriveDetailCropRect, q as cameraOwnsMotionViaSensor, v as DEFAULT_NATIVE_LEASE_SETTINGS, vn as createEvent, w as FailureCounters, yn as customAction } from "../dist-C8W_MWSz.mjs";
2
- import { i as NO_COST_CLAIM, t as ChildCostRegistry } from "../node-CnLKPz1A.mjs";
3
- import { c as macroGateVerdict, d as resolveFrameViewGeometry, g as getStepDefinition, l as rootObjectGate, o as placeDetailStep, r as CustomModelCatalog, s as stepsForElectedPool, u as localFrameRegistry, v as RETIRED_MODEL_IDS } from "../default-detection-model-BTlf5MpT.mjs";
1
+ import { D as NativeLeaseAdmissionSchema, En as nodePin, Fn as lazy, In as literal, It as pipelineRunnerCapability, Ln as number, Mn as array, Nn as boolean, Nt as pickDetailCropConvention, O as NativeLeaseSettingsSchema, Pt as pickNativeLeaseOverride, Rn as object, Un as EventCategory, Vn as string, a as BackgroundRunRegistry, bn as defineCustomActions, bt as loadContributionCapability, fn as errMsg, ft as failureContributionCapability, g as DEFAULT_DETAIL_CROP_CONVENTION, jn as _enum, mn as BaseAddon, nt as deriveDetailCropRect, q as cameraOwnsMotionViaSensor, v as DEFAULT_NATIVE_LEASE_SETTINGS, vn as createEvent, w as FailureCounters, yn as customAction } from "../dist-D1CYfnNk.mjs";
2
+ import { i as NO_COST_CLAIM, t as ChildCostRegistry } from "../node-CQWOX--t.mjs";
3
+ import { c as macroGateVerdict, d as resolveFrameViewGeometry, g as getStepDefinition, l as rootObjectGate, o as placeDetailStep, r as CustomModelCatalog, s as stepsForElectedPool, u as localFrameRegistry, v as RETIRED_MODEL_IDS } from "../default-detection-model-Ct7dlbBe.mjs";
4
4
  import { t as isWorkerReply } from "../worker-protocol-D_NzPcnh.mjs";
5
5
  import { t as resolveHubHostname } from "../hub-hostname-cCknRYKj.mjs";
6
6
  import { t as getSharp } from "../lazy-sharp-DXsqwpph.mjs";
@@ -1,4 +1,4 @@
1
- import { jt as parseProcStatus } from "./dist-C8W_MWSz.mjs";
1
+ import { jt as parseProcStatus } from "./dist-D1CYfnNk.mjs";
2
2
  import * as fs from "node:fs";
3
3
  import { execFile } from "node:child_process";
4
4
  //#region src/shared/node-topology-platform.ts
@@ -1,5 +1,5 @@
1
1
  const require_chunk = require("./chunk-emK7D4bc.js");
2
- const require_dist = require("./dist-sCjZdzKn.js");
2
+ const require_dist = require("./dist-BB9ZzZuv.js");
3
3
  let node_fs = require("node:fs");
4
4
  node_fs = require_chunk.__toESM(node_fs);
5
5
  let node_child_process = require("node:child_process");