@camstack/addon-ai 0.4.108 → 0.4.110

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
@@ -19338,13 +19338,26 @@ var TrackAudioLabelSchema = object({
19338
19338
  * - `audio` — an audio event on the camera itself that was anomalous for
19339
19339
  * THAT camera, loud, and heard while nothing visual was happening (D62).
19340
19340
  *
19341
+ * - `onboard` — the CAMERA's own firmware, paired with a decoded frame in
19342
+ * that frame's pixel space. A real root detector and a SPATIAL one: its
19343
+ * boxes are the same kind of fact `pipeline`'s are, produced by a different
19344
+ * detector.
19345
+ *
19346
+ * `onboard` was missing here while `DetectionSourceSchema` already had it, so
19347
+ * a persisted onboard track failed `safeParse` on read and came back with NO
19348
+ * source at all — which `isSpatialTrack` then admitted by accident, through the
19349
+ * `undefined` arm rather than by anybody's decision, and which `excludeSources`
19350
+ * could not name.
19351
+ *
19341
19352
  * The spatial subsystems (tracker association, occupancy count, re-id /
19342
19353
  * embedding, resurrection) MUST skip every synthetic source. Test for that
19343
- * with `isSpatialTrack`, which allow-lists `pipeline` — a `!== 'sensor'`
19344
- * check silently readmits every source added after it was written.
19354
+ * with `isSpatialTrack`, which allow-lists the spatial sources explicitly — a
19355
+ * `!== 'sensor'` check silently readmits every source added after it was
19356
+ * written.
19345
19357
  */
19346
19358
  var TrackSourceSchema = _enum([
19347
19359
  "pipeline",
19360
+ "onboard",
19348
19361
  "sensor",
19349
19362
  "audio"
19350
19363
  ]);
@@ -19932,6 +19945,7 @@ var MediaFileKindEnum = _enum([
19932
19945
  "keyFrame",
19933
19946
  "keyFrameSmall",
19934
19947
  "thumbnailSmall",
19948
+ "confirmationCrop",
19935
19949
  "sceneFrame"
19936
19950
  ]);
19937
19951
  /**
@@ -21426,13 +21440,39 @@ var MotionSourceEnum = _enum([
21426
21440
  */
21427
21441
  var MotionSourcesSchema = array(MotionSourceEnum);
21428
21442
  /**
21429
- * Which root detectors a camera runs. Deliberately the SAME vocabulary
21430
- * post-analysis already tags every detection with (`DetectionSource`) rather
21431
- * than a second spelling of the same two ideas — the value an operator picks
21432
- * here is the value that comes back on the track, the overlay and the debug
21433
- * row.
21443
+ * Which root detector a camera runs — EXACTLY ONE.
21444
+ *
21445
+ * Deliberately the SAME vocabulary post-analysis already tags every detection
21446
+ * with (`DetectionSource`) rather than a second spelling of the same two
21447
+ * ideas: the value an operator picks here is the value that comes back on the
21448
+ * track, the overlay and the debug row.
21449
+ *
21450
+ * ## Why one, and why it is still an array
21451
+ *
21452
+ * Two roots on one camera is a capability nobody asked for and the operator has
21453
+ * since ruled out. It was never free: both planes feed the SAME per-device
21454
+ * stationary registry, both can promote the same parked object, and the two
21455
+ * detectors disagree about the same box by construction — which is the
21456
+ * disagreement D505 had to arbitrate. Removing the case removes the arbitration.
21457
+ *
21458
+ * The ARRAY shape survives because the stored settings and the attach payload
21459
+ * already speak it on every camera of every fleet, and a cap input that
21460
+ * suddenly refuses a stored value makes the camera un-attachable — a fail-closed
21461
+ * in the one direction that costs an operator their cameras. So the wire stays
21462
+ * tolerant and the TYPE is exact: a longer list is truncated to its first
21463
+ * element rather than refused, and `max(1)` is what every consumer can then
21464
+ * rely on.
21465
+ *
21466
+ * AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
21467
+ * a camera an operator left with no root detector — and `planDetectionSources`
21468
+ * has always said so: inventing a root for them is how a default acts without
21469
+ * anybody choosing it. Tightening this to `length(1)` broke that, and the
21470
+ * suite caught it.
21471
+ *
21472
+ * Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
21473
+ * `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
21434
21474
  */
21435
- var DetectionSourcesSchema = array(DetectionSourceSchema);
21475
+ var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
21436
21476
  /**
21437
21477
  * Input shape for `pipeline-runner.reportMotion` cap method. Exported
21438
21478
  * so cap-side consumers (the orchestrator forward, the runner addon's
package/dist/addon.mjs CHANGED
@@ -19365,13 +19365,26 @@ var TrackAudioLabelSchema = object({
19365
19365
  * - `audio` — an audio event on the camera itself that was anomalous for
19366
19366
  * THAT camera, loud, and heard while nothing visual was happening (D62).
19367
19367
  *
19368
+ * - `onboard` — the CAMERA's own firmware, paired with a decoded frame in
19369
+ * that frame's pixel space. A real root detector and a SPATIAL one: its
19370
+ * boxes are the same kind of fact `pipeline`'s are, produced by a different
19371
+ * detector.
19372
+ *
19373
+ * `onboard` was missing here while `DetectionSourceSchema` already had it, so
19374
+ * a persisted onboard track failed `safeParse` on read and came back with NO
19375
+ * source at all — which `isSpatialTrack` then admitted by accident, through the
19376
+ * `undefined` arm rather than by anybody's decision, and which `excludeSources`
19377
+ * could not name.
19378
+ *
19368
19379
  * The spatial subsystems (tracker association, occupancy count, re-id /
19369
19380
  * embedding, resurrection) MUST skip every synthetic source. Test for that
19370
- * with `isSpatialTrack`, which allow-lists `pipeline` — a `!== 'sensor'`
19371
- * check silently readmits every source added after it was written.
19381
+ * with `isSpatialTrack`, which allow-lists the spatial sources explicitly — a
19382
+ * `!== 'sensor'` check silently readmits every source added after it was
19383
+ * written.
19372
19384
  */
19373
19385
  var TrackSourceSchema = _enum([
19374
19386
  "pipeline",
19387
+ "onboard",
19375
19388
  "sensor",
19376
19389
  "audio"
19377
19390
  ]);
@@ -19959,6 +19972,7 @@ var MediaFileKindEnum = _enum([
19959
19972
  "keyFrame",
19960
19973
  "keyFrameSmall",
19961
19974
  "thumbnailSmall",
19975
+ "confirmationCrop",
19962
19976
  "sceneFrame"
19963
19977
  ]);
19964
19978
  /**
@@ -21453,13 +21467,39 @@ var MotionSourceEnum = _enum([
21453
21467
  */
21454
21468
  var MotionSourcesSchema = array(MotionSourceEnum);
21455
21469
  /**
21456
- * Which root detectors a camera runs. Deliberately the SAME vocabulary
21457
- * post-analysis already tags every detection with (`DetectionSource`) rather
21458
- * than a second spelling of the same two ideas — the value an operator picks
21459
- * here is the value that comes back on the track, the overlay and the debug
21460
- * row.
21470
+ * Which root detector a camera runs — EXACTLY ONE.
21471
+ *
21472
+ * Deliberately the SAME vocabulary post-analysis already tags every detection
21473
+ * with (`DetectionSource`) rather than a second spelling of the same two
21474
+ * ideas: the value an operator picks here is the value that comes back on the
21475
+ * track, the overlay and the debug row.
21476
+ *
21477
+ * ## Why one, and why it is still an array
21478
+ *
21479
+ * Two roots on one camera is a capability nobody asked for and the operator has
21480
+ * since ruled out. It was never free: both planes feed the SAME per-device
21481
+ * stationary registry, both can promote the same parked object, and the two
21482
+ * detectors disagree about the same box by construction — which is the
21483
+ * disagreement D505 had to arbitrate. Removing the case removes the arbitration.
21484
+ *
21485
+ * The ARRAY shape survives because the stored settings and the attach payload
21486
+ * already speak it on every camera of every fleet, and a cap input that
21487
+ * suddenly refuses a stored value makes the camera un-attachable — a fail-closed
21488
+ * in the one direction that costs an operator their cameras. So the wire stays
21489
+ * tolerant and the TYPE is exact: a longer list is truncated to its first
21490
+ * element rather than refused, and `max(1)` is what every consumer can then
21491
+ * rely on.
21492
+ *
21493
+ * AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
21494
+ * a camera an operator left with no root detector — and `planDetectionSources`
21495
+ * has always said so: inventing a root for them is how a default acts without
21496
+ * anybody choosing it. Tightening this to `length(1)` broke that, and the
21497
+ * suite caught it.
21498
+ *
21499
+ * Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
21500
+ * `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
21461
21501
  */
21462
- var DetectionSourcesSchema = array(DetectionSourceSchema);
21502
+ var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
21463
21503
  /**
21464
21504
  * Input shape for `pipeline-runner.reportMotion` cap method. Exported
21465
21505
  * 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-ai",
3
- "version": "0.4.108",
3
+ "version": "0.4.110",
4
4
  "description": "AI addon for CamStack — the `llm` collection provider (cloud, LAN, and camstack-managed local llama.cpp profiles) plus the per-node `llm-runtime` managed executor.",
5
5
  "keywords": [
6
6
  "camstack",