@camstack/addon-agent-ui 1.2.16 → 1.2.17

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 (2) hide show
  1. package/dist/addon.js +77 -9
  2. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -12931,11 +12931,33 @@ var NotificationFormatSchema = _enum([
12931
12931
  * Named by INTENT, never by glyph. "check" would tie the vocabulary to one
12932
12932
  * renderer's icon set; "acknowledge" survives an adapter that draws it
12933
12933
  * differently.
12934
+ *
12935
+ * ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
12936
+ *
12937
+ * These names are for US. **No adapter may forward one verbatim.** Each maps
12938
+ * the whole set onto its own renderer's vocabulary through a
12939
+ * `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
12940
+ * fallback, so adding a member here fails every adapter's build until someone
12941
+ * decides its glyph, which is the only place that decision can be made
12942
+ * honestly.
12943
+ *
12944
+ * This paragraph is the bug. Zentik declared `actionIcons: true` and passed
12945
+ * `disarm` straight through; iOS feeds that string to
12946
+ * `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
12947
+ * and every snooze and alarm button arrived BLANK. A pass-through is not a
12948
+ * mapping, and "the field is documented" is not "the value renders".
12949
+ *
12950
+ * Adding a member is TRAIN-BOUND. The enum lives in the published
12951
+ * `@camstack/server` closure and the cap seam validates against the HUB's copy,
12952
+ * so an addon that emits a token the running hub does not know does not lose an
12953
+ * icon — its whole `send` fails Zod validation and the notification never
12954
+ * arrives. Never emit a new token from an addon before the train carrying it.
12934
12955
  */
12935
12956
  var NotificationActionIconSchema = _enum([
12936
12957
  "acknowledge",
12937
12958
  "dismiss",
12938
12959
  "silence",
12960
+ "snooze",
12939
12961
  "view",
12940
12962
  "play",
12941
12963
  "open",
@@ -12943,9 +12965,13 @@ var NotificationActionIconSchema = _enum([
12943
12965
  "lock",
12944
12966
  "unlock",
12945
12967
  "arm",
12968
+ "arm-home",
12969
+ "arm-away",
12970
+ "arm-night",
12946
12971
  "disarm",
12947
12972
  "light",
12948
- "alert"
12973
+ "alert",
12974
+ "camera"
12949
12975
  ]);
12950
12976
  /** A single tap-through action button. */
12951
12977
  var NotificationActionSchema = object({
@@ -13145,6 +13171,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
13145
13171
  targetId: string(),
13146
13172
  enabled: boolean()
13147
13173
  }), _void(), { kind: "mutation" });
13174
+ new Set([
13175
+ {
13176
+ id: "person",
13177
+ name: "Person"
13178
+ },
13179
+ {
13180
+ id: "vehicle",
13181
+ name: "Vehicle"
13182
+ },
13183
+ {
13184
+ id: "animal",
13185
+ name: "Animal"
13186
+ },
13187
+ {
13188
+ id: "package",
13189
+ name: "Package"
13190
+ }
13191
+ ].map((l) => l.id));
13148
13192
  var COCO_TO_MACRO = {
13149
13193
  mapping: {
13150
13194
  person: "person",
@@ -13942,6 +13986,8 @@ var NcSystemEventKindSchema = _enum([
13942
13986
  "alarm-triggered",
13943
13987
  "alarm-armed",
13944
13988
  "alarm-disarmed",
13989
+ "alarm-arming",
13990
+ "alarm-arm-refused",
13945
13991
  "camera-online",
13946
13992
  "camera-offline",
13947
13993
  "camera-disabled",
@@ -17174,6 +17220,22 @@ var detectionFpsField = {
17174
17220
  default: 10,
17175
17221
  step: 1
17176
17222
  };
17223
+ /**
17224
+ * The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
17225
+ *
17226
+ * The recheck is now on by default (a parked car is invisible to occupancy
17227
+ * rules until the stationary registry has been rebuilt by motion, which after a
17228
+ * restart may be never on a quiet camera). Each cycle re-subscribes a detection
17229
+ * session — an RTSP re-dial — so the switch is only affordable at a WIDE
17230
+ * interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
17231
+ * 30 s. A parked car is therefore counted within 5 minutes of a restart.
17232
+ *
17233
+ * Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
17234
+ * the host validates `attachCamera` against ITS copy of this schema, so a
17235
+ * runner asked for 600 would be rejected by the hub until a `@camstack/server`
17236
+ * carrying the wider bound is installed everywhere. 300 is the widest value
17237
+ * that ships with an addon deploy.
17238
+ */
17177
17239
  var occupancyRecheckSecField = {
17178
17240
  min: 0,
17179
17241
  max: 300,
@@ -17375,15 +17437,21 @@ var RunnerCameraConfigSchema = object({
17375
17437
  */
17376
17438
  onboardMotionDrivesAnalyzer: boolean().default(true),
17377
17439
  /**
17378
- * Master toggle for the occupancy re-check. When `false` (DEFAULT) the runner
17379
- * never arms the periodic recheck timer, regardless of `occupancyRecheckSec`
17380
- * this is off by default because the recheck re-subscribes a detection session
17381
- * every N seconds while `watching`, a major source of pull-decoder re-dial
17382
- * churn (each cycle creates+tears a session → RTSP re-dial → latency). The
17440
+ * Master toggle for the occupancy re-check. When `false` the runner never arms
17441
+ * the periodic recheck timer, regardless of `occupancyRecheckSec`; the
17383
17442
  * `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
17384
17443
  * (and only render) when this is enabled.
17385
- */
17386
- occupancyRecheckEnabled: boolean().default(false),
17444
+ *
17445
+ * DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
17446
+ * recheck re-subscribes a detection session every N seconds while `watching`
17447
+ * — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
17448
+ * pull-decoder churn source. What that bought was a blind spot: a STATIONARY
17449
+ * object is counted only while the stationary registry holds it, and the
17450
+ * registry rebuilds from motion, so after a restart a parked car was invisible
17451
+ * to every occupancy rule until something moved in front of it. The churn is
17452
+ * now paid on the interval instead — see `occupancyRecheckSecField`.
17453
+ */
17454
+ occupancyRecheckEnabled: boolean().default(true),
17387
17455
  occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
17388
17456
  occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
17389
17457
  /**
@@ -30899,7 +30967,7 @@ var AgentUIAddon = class extends BaseAddon {
30899
30967
  capability: adminUiCapability,
30900
30968
  provider: {
30901
30969
  getStaticDir: async () => ({ staticDir: path.resolve(__dirname) }),
30902
- getVersion: async () => ({ version: "1.2.16" })
30970
+ getVersion: async () => ({ version: "1.2.17" })
30903
30971
  }
30904
30972
  }];
30905
30973
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-agent-ui",
3
- "version": "1.2.16",
3
+ "version": "1.2.17",
4
4
  "description": "Agent UI — lightweight status dashboard served by every agent node",
5
5
  "keywords": [
6
6
  "camstack",