@camstack/addon-matter-broker 0.2.102 → 0.2.104
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 +48 -8
- package/dist/addon.mjs +48 -8
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -19518,13 +19518,26 @@ var TrackAudioLabelSchema = object({
|
|
|
19518
19518
|
* - `audio` — an audio event on the camera itself that was anomalous for
|
|
19519
19519
|
* THAT camera, loud, and heard while nothing visual was happening (D62).
|
|
19520
19520
|
*
|
|
19521
|
+
* - `onboard` — the CAMERA's own firmware, paired with a decoded frame in
|
|
19522
|
+
* that frame's pixel space. A real root detector and a SPATIAL one: its
|
|
19523
|
+
* boxes are the same kind of fact `pipeline`'s are, produced by a different
|
|
19524
|
+
* detector.
|
|
19525
|
+
*
|
|
19526
|
+
* `onboard` was missing here while `DetectionSourceSchema` already had it, so
|
|
19527
|
+
* a persisted onboard track failed `safeParse` on read and came back with NO
|
|
19528
|
+
* source at all — which `isSpatialTrack` then admitted by accident, through the
|
|
19529
|
+
* `undefined` arm rather than by anybody's decision, and which `excludeSources`
|
|
19530
|
+
* could not name.
|
|
19531
|
+
*
|
|
19521
19532
|
* The spatial subsystems (tracker association, occupancy count, re-id /
|
|
19522
19533
|
* embedding, resurrection) MUST skip every synthetic source. Test for that
|
|
19523
|
-
* with `isSpatialTrack`, which allow-lists
|
|
19524
|
-
* check silently readmits every source added after it was
|
|
19534
|
+
* with `isSpatialTrack`, which allow-lists the spatial sources explicitly — a
|
|
19535
|
+
* `!== 'sensor'` check silently readmits every source added after it was
|
|
19536
|
+
* written.
|
|
19525
19537
|
*/
|
|
19526
19538
|
var TrackSourceSchema = _enum([
|
|
19527
19539
|
"pipeline",
|
|
19540
|
+
"onboard",
|
|
19528
19541
|
"sensor",
|
|
19529
19542
|
"audio"
|
|
19530
19543
|
]);
|
|
@@ -20112,6 +20125,7 @@ var MediaFileKindEnum = _enum([
|
|
|
20112
20125
|
"keyFrame",
|
|
20113
20126
|
"keyFrameSmall",
|
|
20114
20127
|
"thumbnailSmall",
|
|
20128
|
+
"confirmationCrop",
|
|
20115
20129
|
"sceneFrame"
|
|
20116
20130
|
]);
|
|
20117
20131
|
/**
|
|
@@ -21606,13 +21620,39 @@ var MotionSourceEnum = _enum([
|
|
|
21606
21620
|
*/
|
|
21607
21621
|
var MotionSourcesSchema = array(MotionSourceEnum);
|
|
21608
21622
|
/**
|
|
21609
|
-
* Which root
|
|
21610
|
-
*
|
|
21611
|
-
*
|
|
21612
|
-
*
|
|
21613
|
-
*
|
|
21623
|
+
* Which root detector a camera runs — EXACTLY ONE.
|
|
21624
|
+
*
|
|
21625
|
+
* Deliberately the SAME vocabulary post-analysis already tags every detection
|
|
21626
|
+
* with (`DetectionSource`) rather than a second spelling of the same two
|
|
21627
|
+
* ideas: the value an operator picks here is the value that comes back on the
|
|
21628
|
+
* track, the overlay and the debug row.
|
|
21629
|
+
*
|
|
21630
|
+
* ## Why one, and why it is still an array
|
|
21631
|
+
*
|
|
21632
|
+
* Two roots on one camera is a capability nobody asked for and the operator has
|
|
21633
|
+
* since ruled out. It was never free: both planes feed the SAME per-device
|
|
21634
|
+
* stationary registry, both can promote the same parked object, and the two
|
|
21635
|
+
* detectors disagree about the same box by construction — which is the
|
|
21636
|
+
* disagreement D505 had to arbitrate. Removing the case removes the arbitration.
|
|
21637
|
+
*
|
|
21638
|
+
* The ARRAY shape survives because the stored settings and the attach payload
|
|
21639
|
+
* already speak it on every camera of every fleet, and a cap input that
|
|
21640
|
+
* suddenly refuses a stored value makes the camera un-attachable — a fail-closed
|
|
21641
|
+
* in the one direction that costs an operator their cameras. So the wire stays
|
|
21642
|
+
* tolerant and the TYPE is exact: a longer list is truncated to its first
|
|
21643
|
+
* element rather than refused, and `max(1)` is what every consumer can then
|
|
21644
|
+
* rely on.
|
|
21645
|
+
*
|
|
21646
|
+
* AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
|
|
21647
|
+
* a camera an operator left with no root detector — and `planDetectionSources`
|
|
21648
|
+
* has always said so: inventing a root for them is how a default acts without
|
|
21649
|
+
* anybody choosing it. Tightening this to `length(1)` broke that, and the
|
|
21650
|
+
* suite caught it.
|
|
21651
|
+
*
|
|
21652
|
+
* Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
|
|
21653
|
+
* `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
|
|
21614
21654
|
*/
|
|
21615
|
-
var DetectionSourcesSchema = array(DetectionSourceSchema);
|
|
21655
|
+
var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
|
|
21616
21656
|
/**
|
|
21617
21657
|
* Input shape for `pipeline-runner.reportMotion` cap method. Exported
|
|
21618
21658
|
* so cap-side consumers (the orchestrator forward, the runner addon's
|
package/dist/addon.mjs
CHANGED
|
@@ -19516,13 +19516,26 @@ var TrackAudioLabelSchema = object({
|
|
|
19516
19516
|
* - `audio` — an audio event on the camera itself that was anomalous for
|
|
19517
19517
|
* THAT camera, loud, and heard while nothing visual was happening (D62).
|
|
19518
19518
|
*
|
|
19519
|
+
* - `onboard` — the CAMERA's own firmware, paired with a decoded frame in
|
|
19520
|
+
* that frame's pixel space. A real root detector and a SPATIAL one: its
|
|
19521
|
+
* boxes are the same kind of fact `pipeline`'s are, produced by a different
|
|
19522
|
+
* detector.
|
|
19523
|
+
*
|
|
19524
|
+
* `onboard` was missing here while `DetectionSourceSchema` already had it, so
|
|
19525
|
+
* a persisted onboard track failed `safeParse` on read and came back with NO
|
|
19526
|
+
* source at all — which `isSpatialTrack` then admitted by accident, through the
|
|
19527
|
+
* `undefined` arm rather than by anybody's decision, and which `excludeSources`
|
|
19528
|
+
* could not name.
|
|
19529
|
+
*
|
|
19519
19530
|
* The spatial subsystems (tracker association, occupancy count, re-id /
|
|
19520
19531
|
* embedding, resurrection) MUST skip every synthetic source. Test for that
|
|
19521
|
-
* with `isSpatialTrack`, which allow-lists
|
|
19522
|
-
* check silently readmits every source added after it was
|
|
19532
|
+
* with `isSpatialTrack`, which allow-lists the spatial sources explicitly — a
|
|
19533
|
+
* `!== 'sensor'` check silently readmits every source added after it was
|
|
19534
|
+
* written.
|
|
19523
19535
|
*/
|
|
19524
19536
|
var TrackSourceSchema = _enum([
|
|
19525
19537
|
"pipeline",
|
|
19538
|
+
"onboard",
|
|
19526
19539
|
"sensor",
|
|
19527
19540
|
"audio"
|
|
19528
19541
|
]);
|
|
@@ -20110,6 +20123,7 @@ var MediaFileKindEnum = _enum([
|
|
|
20110
20123
|
"keyFrame",
|
|
20111
20124
|
"keyFrameSmall",
|
|
20112
20125
|
"thumbnailSmall",
|
|
20126
|
+
"confirmationCrop",
|
|
20113
20127
|
"sceneFrame"
|
|
20114
20128
|
]);
|
|
20115
20129
|
/**
|
|
@@ -21604,13 +21618,39 @@ var MotionSourceEnum = _enum([
|
|
|
21604
21618
|
*/
|
|
21605
21619
|
var MotionSourcesSchema = array(MotionSourceEnum);
|
|
21606
21620
|
/**
|
|
21607
|
-
* Which root
|
|
21608
|
-
*
|
|
21609
|
-
*
|
|
21610
|
-
*
|
|
21611
|
-
*
|
|
21621
|
+
* Which root detector a camera runs — EXACTLY ONE.
|
|
21622
|
+
*
|
|
21623
|
+
* Deliberately the SAME vocabulary post-analysis already tags every detection
|
|
21624
|
+
* with (`DetectionSource`) rather than a second spelling of the same two
|
|
21625
|
+
* ideas: the value an operator picks here is the value that comes back on the
|
|
21626
|
+
* track, the overlay and the debug row.
|
|
21627
|
+
*
|
|
21628
|
+
* ## Why one, and why it is still an array
|
|
21629
|
+
*
|
|
21630
|
+
* Two roots on one camera is a capability nobody asked for and the operator has
|
|
21631
|
+
* since ruled out. It was never free: both planes feed the SAME per-device
|
|
21632
|
+
* stationary registry, both can promote the same parked object, and the two
|
|
21633
|
+
* detectors disagree about the same box by construction — which is the
|
|
21634
|
+
* disagreement D505 had to arbitrate. Removing the case removes the arbitration.
|
|
21635
|
+
*
|
|
21636
|
+
* The ARRAY shape survives because the stored settings and the attach payload
|
|
21637
|
+
* already speak it on every camera of every fleet, and a cap input that
|
|
21638
|
+
* suddenly refuses a stored value makes the camera un-attachable — a fail-closed
|
|
21639
|
+
* in the one direction that costs an operator their cameras. So the wire stays
|
|
21640
|
+
* tolerant and the TYPE is exact: a longer list is truncated to its first
|
|
21641
|
+
* element rather than refused, and `max(1)` is what every consumer can then
|
|
21642
|
+
* rely on.
|
|
21643
|
+
*
|
|
21644
|
+
* AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
|
|
21645
|
+
* a camera an operator left with no root detector — and `planDetectionSources`
|
|
21646
|
+
* has always said so: inventing a root for them is how a default acts without
|
|
21647
|
+
* anybody choosing it. Tightening this to `length(1)` broke that, and the
|
|
21648
|
+
* suite caught it.
|
|
21649
|
+
*
|
|
21650
|
+
* Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
|
|
21651
|
+
* `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
|
|
21612
21652
|
*/
|
|
21613
|
-
var DetectionSourcesSchema = array(DetectionSourceSchema);
|
|
21653
|
+
var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
|
|
21614
21654
|
/**
|
|
21615
21655
|
* Input shape for `pipeline-runner.reportMotion` cap method. Exported
|
|
21616
21656
|
* 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-matter-broker",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.104",
|
|
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",
|