@camstack/addon-matter-broker 0.2.15 → 0.2.16

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 CHANGED
@@ -13295,11 +13295,33 @@ var NotificationFormatSchema = _enum([
13295
13295
  * Named by INTENT, never by glyph. "check" would tie the vocabulary to one
13296
13296
  * renderer's icon set; "acknowledge" survives an adapter that draws it
13297
13297
  * differently.
13298
+ *
13299
+ * ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
13300
+ *
13301
+ * These names are for US. **No adapter may forward one verbatim.** Each maps
13302
+ * the whole set onto its own renderer's vocabulary through a
13303
+ * `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
13304
+ * fallback, so adding a member here fails every adapter's build until someone
13305
+ * decides its glyph, which is the only place that decision can be made
13306
+ * honestly.
13307
+ *
13308
+ * This paragraph is the bug. Zentik declared `actionIcons: true` and passed
13309
+ * `disarm` straight through; iOS feeds that string to
13310
+ * `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
13311
+ * and every snooze and alarm button arrived BLANK. A pass-through is not a
13312
+ * mapping, and "the field is documented" is not "the value renders".
13313
+ *
13314
+ * Adding a member is TRAIN-BOUND. The enum lives in the published
13315
+ * `@camstack/server` closure and the cap seam validates against the HUB's copy,
13316
+ * so an addon that emits a token the running hub does not know does not lose an
13317
+ * icon — its whole `send` fails Zod validation and the notification never
13318
+ * arrives. Never emit a new token from an addon before the train carrying it.
13298
13319
  */
13299
13320
  var NotificationActionIconSchema = _enum([
13300
13321
  "acknowledge",
13301
13322
  "dismiss",
13302
13323
  "silence",
13324
+ "snooze",
13303
13325
  "view",
13304
13326
  "play",
13305
13327
  "open",
@@ -13307,9 +13329,13 @@ var NotificationActionIconSchema = _enum([
13307
13329
  "lock",
13308
13330
  "unlock",
13309
13331
  "arm",
13332
+ "arm-home",
13333
+ "arm-away",
13334
+ "arm-night",
13310
13335
  "disarm",
13311
13336
  "light",
13312
- "alert"
13337
+ "alert",
13338
+ "camera"
13313
13339
  ]);
13314
13340
  /** A single tap-through action button. */
13315
13341
  var NotificationActionSchema = object({
@@ -13509,6 +13535,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
13509
13535
  targetId: string$2(),
13510
13536
  enabled: boolean()
13511
13537
  }), _void(), { kind: "mutation" });
13538
+ new Set([
13539
+ {
13540
+ id: "person",
13541
+ name: "Person"
13542
+ },
13543
+ {
13544
+ id: "vehicle",
13545
+ name: "Vehicle"
13546
+ },
13547
+ {
13548
+ id: "animal",
13549
+ name: "Animal"
13550
+ },
13551
+ {
13552
+ id: "package",
13553
+ name: "Package"
13554
+ }
13555
+ ].map((l) => l.id));
13512
13556
  var COCO_TO_MACRO = {
13513
13557
  mapping: {
13514
13558
  person: "person",
@@ -14344,6 +14388,8 @@ var NcSystemEventKindSchema = _enum([
14344
14388
  "alarm-triggered",
14345
14389
  "alarm-armed",
14346
14390
  "alarm-disarmed",
14391
+ "alarm-arming",
14392
+ "alarm-arm-refused",
14347
14393
  "camera-online",
14348
14394
  "camera-offline",
14349
14395
  "camera-disabled",
@@ -17616,6 +17662,22 @@ var detectionFpsField = {
17616
17662
  default: 10,
17617
17663
  step: 1
17618
17664
  };
17665
+ /**
17666
+ * The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
17667
+ *
17668
+ * The recheck is now on by default (a parked car is invisible to occupancy
17669
+ * rules until the stationary registry has been rebuilt by motion, which after a
17670
+ * restart may be never on a quiet camera). Each cycle re-subscribes a detection
17671
+ * session — an RTSP re-dial — so the switch is only affordable at a WIDE
17672
+ * interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
17673
+ * 30 s. A parked car is therefore counted within 5 minutes of a restart.
17674
+ *
17675
+ * Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
17676
+ * the host validates `attachCamera` against ITS copy of this schema, so a
17677
+ * runner asked for 600 would be rejected by the hub until a `@camstack/server`
17678
+ * carrying the wider bound is installed everywhere. 300 is the widest value
17679
+ * that ships with an addon deploy.
17680
+ */
17619
17681
  var occupancyRecheckSecField = {
17620
17682
  min: 0,
17621
17683
  max: 300,
@@ -17817,15 +17879,21 @@ var RunnerCameraConfigSchema = object({
17817
17879
  */
17818
17880
  onboardMotionDrivesAnalyzer: boolean().default(true),
17819
17881
  /**
17820
- * Master toggle for the occupancy re-check. When `false` (DEFAULT) the runner
17821
- * never arms the periodic recheck timer, regardless of `occupancyRecheckSec` —
17822
- * this is off by default because the recheck re-subscribes a detection session
17823
- * every N seconds while `watching`, a major source of pull-decoder re-dial
17824
- * churn (each cycle creates+tears a session → RTSP re-dial → latency). The
17882
+ * Master toggle for the occupancy re-check. When `false` the runner never arms
17883
+ * the periodic recheck timer, regardless of `occupancyRecheckSec`; the
17825
17884
  * `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
17826
17885
  * (and only render) when this is enabled.
17886
+ *
17887
+ * DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
17888
+ * recheck re-subscribes a detection session every N seconds while `watching`
17889
+ * — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
17890
+ * pull-decoder churn source. What that bought was a blind spot: a STATIONARY
17891
+ * object is counted only while the stationary registry holds it, and the
17892
+ * registry rebuilds from motion, so after a restart a parked car was invisible
17893
+ * to every occupancy rule until something moved in front of it. The churn is
17894
+ * now paid on the interval instead — see `occupancyRecheckSecField`.
17827
17895
  */
17828
- occupancyRecheckEnabled: boolean().default(false),
17896
+ occupancyRecheckEnabled: boolean().default(true),
17829
17897
  occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
17830
17898
  occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
17831
17899
  /**
package/dist/addon.mjs CHANGED
@@ -13293,11 +13293,33 @@ var NotificationFormatSchema = _enum([
13293
13293
  * Named by INTENT, never by glyph. "check" would tie the vocabulary to one
13294
13294
  * renderer's icon set; "acknowledge" survives an adapter that draws it
13295
13295
  * differently.
13296
+ *
13297
+ * ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
13298
+ *
13299
+ * These names are for US. **No adapter may forward one verbatim.** Each maps
13300
+ * the whole set onto its own renderer's vocabulary through a
13301
+ * `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
13302
+ * fallback, so adding a member here fails every adapter's build until someone
13303
+ * decides its glyph, which is the only place that decision can be made
13304
+ * honestly.
13305
+ *
13306
+ * This paragraph is the bug. Zentik declared `actionIcons: true` and passed
13307
+ * `disarm` straight through; iOS feeds that string to
13308
+ * `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
13309
+ * and every snooze and alarm button arrived BLANK. A pass-through is not a
13310
+ * mapping, and "the field is documented" is not "the value renders".
13311
+ *
13312
+ * Adding a member is TRAIN-BOUND. The enum lives in the published
13313
+ * `@camstack/server` closure and the cap seam validates against the HUB's copy,
13314
+ * so an addon that emits a token the running hub does not know does not lose an
13315
+ * icon — its whole `send` fails Zod validation and the notification never
13316
+ * arrives. Never emit a new token from an addon before the train carrying it.
13296
13317
  */
13297
13318
  var NotificationActionIconSchema = _enum([
13298
13319
  "acknowledge",
13299
13320
  "dismiss",
13300
13321
  "silence",
13322
+ "snooze",
13301
13323
  "view",
13302
13324
  "play",
13303
13325
  "open",
@@ -13305,9 +13327,13 @@ var NotificationActionIconSchema = _enum([
13305
13327
  "lock",
13306
13328
  "unlock",
13307
13329
  "arm",
13330
+ "arm-home",
13331
+ "arm-away",
13332
+ "arm-night",
13308
13333
  "disarm",
13309
13334
  "light",
13310
- "alert"
13335
+ "alert",
13336
+ "camera"
13311
13337
  ]);
13312
13338
  /** A single tap-through action button. */
13313
13339
  var NotificationActionSchema = object({
@@ -13507,6 +13533,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
13507
13533
  targetId: string$2(),
13508
13534
  enabled: boolean()
13509
13535
  }), _void(), { kind: "mutation" });
13536
+ new Set([
13537
+ {
13538
+ id: "person",
13539
+ name: "Person"
13540
+ },
13541
+ {
13542
+ id: "vehicle",
13543
+ name: "Vehicle"
13544
+ },
13545
+ {
13546
+ id: "animal",
13547
+ name: "Animal"
13548
+ },
13549
+ {
13550
+ id: "package",
13551
+ name: "Package"
13552
+ }
13553
+ ].map((l) => l.id));
13510
13554
  var COCO_TO_MACRO = {
13511
13555
  mapping: {
13512
13556
  person: "person",
@@ -14342,6 +14386,8 @@ var NcSystemEventKindSchema = _enum([
14342
14386
  "alarm-triggered",
14343
14387
  "alarm-armed",
14344
14388
  "alarm-disarmed",
14389
+ "alarm-arming",
14390
+ "alarm-arm-refused",
14345
14391
  "camera-online",
14346
14392
  "camera-offline",
14347
14393
  "camera-disabled",
@@ -17614,6 +17660,22 @@ var detectionFpsField = {
17614
17660
  default: 10,
17615
17661
  step: 1
17616
17662
  };
17663
+ /**
17664
+ * The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
17665
+ *
17666
+ * The recheck is now on by default (a parked car is invisible to occupancy
17667
+ * rules until the stationary registry has been rebuilt by motion, which after a
17668
+ * restart may be never on a quiet camera). Each cycle re-subscribes a detection
17669
+ * session — an RTSP re-dial — so the switch is only affordable at a WIDE
17670
+ * interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
17671
+ * 30 s. A parked car is therefore counted within 5 minutes of a restart.
17672
+ *
17673
+ * Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
17674
+ * the host validates `attachCamera` against ITS copy of this schema, so a
17675
+ * runner asked for 600 would be rejected by the hub until a `@camstack/server`
17676
+ * carrying the wider bound is installed everywhere. 300 is the widest value
17677
+ * that ships with an addon deploy.
17678
+ */
17617
17679
  var occupancyRecheckSecField = {
17618
17680
  min: 0,
17619
17681
  max: 300,
@@ -17815,15 +17877,21 @@ var RunnerCameraConfigSchema = object({
17815
17877
  */
17816
17878
  onboardMotionDrivesAnalyzer: boolean().default(true),
17817
17879
  /**
17818
- * Master toggle for the occupancy re-check. When `false` (DEFAULT) the runner
17819
- * never arms the periodic recheck timer, regardless of `occupancyRecheckSec` —
17820
- * this is off by default because the recheck re-subscribes a detection session
17821
- * every N seconds while `watching`, a major source of pull-decoder re-dial
17822
- * churn (each cycle creates+tears a session → RTSP re-dial → latency). The
17880
+ * Master toggle for the occupancy re-check. When `false` the runner never arms
17881
+ * the periodic recheck timer, regardless of `occupancyRecheckSec`; the
17823
17882
  * `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
17824
17883
  * (and only render) when this is enabled.
17884
+ *
17885
+ * DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
17886
+ * recheck re-subscribes a detection session every N seconds while `watching`
17887
+ * — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
17888
+ * pull-decoder churn source. What that bought was a blind spot: a STATIONARY
17889
+ * object is counted only while the stationary registry holds it, and the
17890
+ * registry rebuilds from motion, so after a restart a parked car was invisible
17891
+ * to every occupancy rule until something moved in front of it. The churn is
17892
+ * now paid on the interval instead — see `occupancyRecheckSecField`.
17825
17893
  */
17826
- occupancyRecheckEnabled: boolean().default(false),
17894
+ occupancyRecheckEnabled: boolean().default(true),
17827
17895
  occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
17828
17896
  occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
17829
17897
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-matter-broker",
3
- "version": "0.2.15",
3
+ "version": "0.2.16",
4
4
  "description": "Matter broker addon for CamStack — owns a Matter fabric (commissioning + the long-lived controller) via the matter.js controller and brokers commissioned Matter nodes into CamStack",
5
5
  "keywords": [
6
6
  "camstack",