@camstack/addon-notifiers 1.2.107 → 1.2.108
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 +47 -8
- package/dist/addon.mjs +47 -8
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -19227,13 +19227,26 @@ var TrackAudioLabelSchema = object({
|
|
|
19227
19227
|
* - `audio` — an audio event on the camera itself that was anomalous for
|
|
19228
19228
|
* THAT camera, loud, and heard while nothing visual was happening (D62).
|
|
19229
19229
|
*
|
|
19230
|
+
* - `onboard` — the CAMERA's own firmware, paired with a decoded frame in
|
|
19231
|
+
* that frame's pixel space. A real root detector and a SPATIAL one: its
|
|
19232
|
+
* boxes are the same kind of fact `pipeline`'s are, produced by a different
|
|
19233
|
+
* detector.
|
|
19234
|
+
*
|
|
19235
|
+
* `onboard` was missing here while `DetectionSourceSchema` already had it, so
|
|
19236
|
+
* a persisted onboard track failed `safeParse` on read and came back with NO
|
|
19237
|
+
* source at all — which `isSpatialTrack` then admitted by accident, through the
|
|
19238
|
+
* `undefined` arm rather than by anybody's decision, and which `excludeSources`
|
|
19239
|
+
* could not name.
|
|
19240
|
+
*
|
|
19230
19241
|
* The spatial subsystems (tracker association, occupancy count, re-id /
|
|
19231
19242
|
* embedding, resurrection) MUST skip every synthetic source. Test for that
|
|
19232
|
-
* with `isSpatialTrack`, which allow-lists
|
|
19233
|
-
* check silently readmits every source added after it was
|
|
19243
|
+
* with `isSpatialTrack`, which allow-lists the spatial sources explicitly — a
|
|
19244
|
+
* `!== 'sensor'` check silently readmits every source added after it was
|
|
19245
|
+
* written.
|
|
19234
19246
|
*/
|
|
19235
19247
|
var TrackSourceSchema = _enum([
|
|
19236
19248
|
"pipeline",
|
|
19249
|
+
"onboard",
|
|
19237
19250
|
"sensor",
|
|
19238
19251
|
"audio"
|
|
19239
19252
|
]);
|
|
@@ -21315,13 +21328,39 @@ var MotionSourceEnum = _enum([
|
|
|
21315
21328
|
*/
|
|
21316
21329
|
var MotionSourcesSchema = array(MotionSourceEnum);
|
|
21317
21330
|
/**
|
|
21318
|
-
* Which root
|
|
21319
|
-
*
|
|
21320
|
-
*
|
|
21321
|
-
*
|
|
21322
|
-
*
|
|
21331
|
+
* Which root detector a camera runs — EXACTLY ONE.
|
|
21332
|
+
*
|
|
21333
|
+
* Deliberately the SAME vocabulary post-analysis already tags every detection
|
|
21334
|
+
* with (`DetectionSource`) rather than a second spelling of the same two
|
|
21335
|
+
* ideas: the value an operator picks here is the value that comes back on the
|
|
21336
|
+
* track, the overlay and the debug row.
|
|
21337
|
+
*
|
|
21338
|
+
* ## Why one, and why it is still an array
|
|
21339
|
+
*
|
|
21340
|
+
* Two roots on one camera is a capability nobody asked for and the operator has
|
|
21341
|
+
* since ruled out. It was never free: both planes feed the SAME per-device
|
|
21342
|
+
* stationary registry, both can promote the same parked object, and the two
|
|
21343
|
+
* detectors disagree about the same box by construction — which is the
|
|
21344
|
+
* disagreement D505 had to arbitrate. Removing the case removes the arbitration.
|
|
21345
|
+
*
|
|
21346
|
+
* The ARRAY shape survives because the stored settings and the attach payload
|
|
21347
|
+
* already speak it on every camera of every fleet, and a cap input that
|
|
21348
|
+
* suddenly refuses a stored value makes the camera un-attachable — a fail-closed
|
|
21349
|
+
* in the one direction that costs an operator their cameras. So the wire stays
|
|
21350
|
+
* tolerant and the TYPE is exact: a longer list is truncated to its first
|
|
21351
|
+
* element rather than refused, and `max(1)` is what every consumer can then
|
|
21352
|
+
* rely on.
|
|
21353
|
+
*
|
|
21354
|
+
* AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
|
|
21355
|
+
* a camera an operator left with no root detector — and `planDetectionSources`
|
|
21356
|
+
* has always said so: inventing a root for them is how a default acts without
|
|
21357
|
+
* anybody choosing it. Tightening this to `length(1)` broke that, and the
|
|
21358
|
+
* suite caught it.
|
|
21359
|
+
*
|
|
21360
|
+
* Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
|
|
21361
|
+
* `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
|
|
21323
21362
|
*/
|
|
21324
|
-
var DetectionSourcesSchema = array(DetectionSourceSchema);
|
|
21363
|
+
var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
|
|
21325
21364
|
/**
|
|
21326
21365
|
* Input shape for `pipeline-runner.reportMotion` cap method. Exported
|
|
21327
21366
|
* so cap-side consumers (the orchestrator forward, the runner addon's
|
package/dist/addon.mjs
CHANGED
|
@@ -19200,13 +19200,26 @@ var TrackAudioLabelSchema = object({
|
|
|
19200
19200
|
* - `audio` — an audio event on the camera itself that was anomalous for
|
|
19201
19201
|
* THAT camera, loud, and heard while nothing visual was happening (D62).
|
|
19202
19202
|
*
|
|
19203
|
+
* - `onboard` — the CAMERA's own firmware, paired with a decoded frame in
|
|
19204
|
+
* that frame's pixel space. A real root detector and a SPATIAL one: its
|
|
19205
|
+
* boxes are the same kind of fact `pipeline`'s are, produced by a different
|
|
19206
|
+
* detector.
|
|
19207
|
+
*
|
|
19208
|
+
* `onboard` was missing here while `DetectionSourceSchema` already had it, so
|
|
19209
|
+
* a persisted onboard track failed `safeParse` on read and came back with NO
|
|
19210
|
+
* source at all — which `isSpatialTrack` then admitted by accident, through the
|
|
19211
|
+
* `undefined` arm rather than by anybody's decision, and which `excludeSources`
|
|
19212
|
+
* could not name.
|
|
19213
|
+
*
|
|
19203
19214
|
* The spatial subsystems (tracker association, occupancy count, re-id /
|
|
19204
19215
|
* embedding, resurrection) MUST skip every synthetic source. Test for that
|
|
19205
|
-
* with `isSpatialTrack`, which allow-lists
|
|
19206
|
-
* check silently readmits every source added after it was
|
|
19216
|
+
* with `isSpatialTrack`, which allow-lists the spatial sources explicitly — a
|
|
19217
|
+
* `!== 'sensor'` check silently readmits every source added after it was
|
|
19218
|
+
* written.
|
|
19207
19219
|
*/
|
|
19208
19220
|
var TrackSourceSchema = _enum([
|
|
19209
19221
|
"pipeline",
|
|
19222
|
+
"onboard",
|
|
19210
19223
|
"sensor",
|
|
19211
19224
|
"audio"
|
|
19212
19225
|
]);
|
|
@@ -21288,13 +21301,39 @@ var MotionSourceEnum = _enum([
|
|
|
21288
21301
|
*/
|
|
21289
21302
|
var MotionSourcesSchema = array(MotionSourceEnum);
|
|
21290
21303
|
/**
|
|
21291
|
-
* Which root
|
|
21292
|
-
*
|
|
21293
|
-
*
|
|
21294
|
-
*
|
|
21295
|
-
*
|
|
21304
|
+
* Which root detector a camera runs — EXACTLY ONE.
|
|
21305
|
+
*
|
|
21306
|
+
* Deliberately the SAME vocabulary post-analysis already tags every detection
|
|
21307
|
+
* with (`DetectionSource`) rather than a second spelling of the same two
|
|
21308
|
+
* ideas: the value an operator picks here is the value that comes back on the
|
|
21309
|
+
* track, the overlay and the debug row.
|
|
21310
|
+
*
|
|
21311
|
+
* ## Why one, and why it is still an array
|
|
21312
|
+
*
|
|
21313
|
+
* Two roots on one camera is a capability nobody asked for and the operator has
|
|
21314
|
+
* since ruled out. It was never free: both planes feed the SAME per-device
|
|
21315
|
+
* stationary registry, both can promote the same parked object, and the two
|
|
21316
|
+
* detectors disagree about the same box by construction — which is the
|
|
21317
|
+
* disagreement D505 had to arbitrate. Removing the case removes the arbitration.
|
|
21318
|
+
*
|
|
21319
|
+
* The ARRAY shape survives because the stored settings and the attach payload
|
|
21320
|
+
* already speak it on every camera of every fleet, and a cap input that
|
|
21321
|
+
* suddenly refuses a stored value makes the camera un-attachable — a fail-closed
|
|
21322
|
+
* in the one direction that costs an operator their cameras. So the wire stays
|
|
21323
|
+
* tolerant and the TYPE is exact: a longer list is truncated to its first
|
|
21324
|
+
* element rather than refused, and `max(1)` is what every consumer can then
|
|
21325
|
+
* rely on.
|
|
21326
|
+
*
|
|
21327
|
+
* AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
|
|
21328
|
+
* a camera an operator left with no root detector — and `planDetectionSources`
|
|
21329
|
+
* has always said so: inventing a root for them is how a default acts without
|
|
21330
|
+
* anybody choosing it. Tightening this to `length(1)` broke that, and the
|
|
21331
|
+
* suite caught it.
|
|
21332
|
+
*
|
|
21333
|
+
* Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
|
|
21334
|
+
* `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
|
|
21296
21335
|
*/
|
|
21297
|
-
var DetectionSourcesSchema = array(DetectionSourceSchema);
|
|
21336
|
+
var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
|
|
21298
21337
|
/**
|
|
21299
21338
|
* Input shape for `pipeline-runner.reportMotion` cap method. Exported
|
|
21300
21339
|
* so cap-side consumers (the orchestrator forward, the runner addon's
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-notifiers",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.108",
|
|
4
4
|
"description": "System notifiers addon for CamStack — a `notification-output` collection provider hosting per-kind notifier adapters (ntfy, pushover, gotify, telegram, discord, webhook, zentik).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|