@camstack/addon-ai 0.4.56 → 0.4.58

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
@@ -19138,7 +19138,20 @@ var RecentTracksQueryInput = object({
19138
19138
  projection: TrackProjectionSchema.optional(),
19139
19139
  /** Include stationary-promoted rows (parked objects). Default false: the
19140
19140
  * feed lists passages; parking records live on the stationary registry. */
19141
- includeStationary: boolean().optional()
19141
+ includeStationary: boolean().optional(),
19142
+ /**
19143
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
19144
+ *
19145
+ * The same filter `listTracks` takes, because the timeline's class chips must
19146
+ * mean the same thing whether the scope is one camera or twelve. Until this
19147
+ * existed the scoped feed downloaded a page and narrowed it on the phone
19148
+ * while the single-camera path narrowed the read — one filter, two costs.
19149
+ *
19150
+ * A SUPERSET prefilter on `classes[]`, like its single-camera twin: rows
19151
+ * whose class list is unreadable are kept, and the client's rule stays the
19152
+ * exact one.
19153
+ */
19154
+ classes: array(string()).optional()
19142
19155
  });
19143
19156
  var RecentTracksPageSchema = object({
19144
19157
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -19525,7 +19538,21 @@ DeviceType.Camera, method(object({ deviceId: number$1() }), array(TrackSchema).r
19525
19538
  /** Include stationary-promoted rows (parked objects handed to the
19526
19539
  * stationary registry). Default false: the timeline lists passages,
19527
19540
  * not parking records (operator decision, 2026-08-15). */
19528
- includeStationary: boolean().optional()
19541
+ includeStationary: boolean().optional(),
19542
+ /**
19543
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
19544
+ *
19545
+ * Added 2026-09-03: the timeline's class chips filtered in the CLIENT,
19546
+ * on a day of rows already downloaded. The zone filter had been moved
19547
+ * here for exactly that reason — and it is also what lets the rows come
19548
+ * back `slim` — but the class filter was left behind, so a narrow
19549
+ * selection was still a wide read followed by a wide discard.
19550
+ *
19551
+ * Empty is "show all", not "nothing matches": a chip row with nothing
19552
+ * selected is an operator who has not narrowed anything, and an empty
19553
+ * timeline would read as a camera that saw nothing.
19554
+ */
19555
+ classes: array(string()).optional()
19529
19556
  }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number$1() }), _void(), {
19530
19557
  kind: "mutation",
19531
19558
  auth: "admin"
@@ -23162,8 +23189,22 @@ DeviceType.Automation, method(object({ deviceId: number$1().int().nonnegative()
23162
23189
  * threshold.
23163
23190
  */
23164
23191
  var BatteryStatusSchema = object({
23165
- /** 0..100 inclusive. Firmware-reported. */
23166
- percentage: number$1().min(0).max(100),
23192
+ /**
23193
+ * 0..100 inclusive, firmware-reported. **`null` means NOT YET KNOWN** — the
23194
+ * provider has registered the capability but no reading has landed.
23195
+ *
23196
+ * It is nullable because it was not, and the only value a provider could
23197
+ * seed with was `0`. A battery camera behind an NVR therefore announced
23198
+ * itself at 0% on every start and corrected itself a moment later, which is
23199
+ * indistinguishable from a real flat battery: it fires the low-battery alert
23200
+ * every time the hub restarts. Unknown is not empty (D315), and on a battery
23201
+ * reading the difference is an alarm.
23202
+ *
23203
+ * `vacuum-control` and `lawn-mower-control` already model it this way.
23204
+ * Consumers must SKIP a null rather than coerce it — `battery-band` already
23205
+ * declines to band a non-finite reading, which is the correct shape.
23206
+ */
23207
+ percentage: number$1().min(0).max(100).nullable(),
23167
23208
  /**
23168
23209
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
23169
23210
  * Reolink-specific for the Solar Panel 2 accessory (will become
package/dist/addon.mjs CHANGED
@@ -19165,7 +19165,20 @@ var RecentTracksQueryInput = object({
19165
19165
  projection: TrackProjectionSchema.optional(),
19166
19166
  /** Include stationary-promoted rows (parked objects). Default false: the
19167
19167
  * feed lists passages; parking records live on the stationary registry. */
19168
- includeStationary: boolean().optional()
19168
+ includeStationary: boolean().optional(),
19169
+ /**
19170
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
19171
+ *
19172
+ * The same filter `listTracks` takes, because the timeline's class chips must
19173
+ * mean the same thing whether the scope is one camera or twelve. Until this
19174
+ * existed the scoped feed downloaded a page and narrowed it on the phone
19175
+ * while the single-camera path narrowed the read — one filter, two costs.
19176
+ *
19177
+ * A SUPERSET prefilter on `classes[]`, like its single-camera twin: rows
19178
+ * whose class list is unreadable are kept, and the client's rule stays the
19179
+ * exact one.
19180
+ */
19181
+ classes: array(string()).optional()
19169
19182
  });
19170
19183
  var RecentTracksPageSchema = object({
19171
19184
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -19552,7 +19565,21 @@ DeviceType.Camera, method(object({ deviceId: number$1() }), array(TrackSchema).r
19552
19565
  /** Include stationary-promoted rows (parked objects handed to the
19553
19566
  * stationary registry). Default false: the timeline lists passages,
19554
19567
  * not parking records (operator decision, 2026-08-15). */
19555
- includeStationary: boolean().optional()
19568
+ includeStationary: boolean().optional(),
19569
+ /**
19570
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
19571
+ *
19572
+ * Added 2026-09-03: the timeline's class chips filtered in the CLIENT,
19573
+ * on a day of rows already downloaded. The zone filter had been moved
19574
+ * here for exactly that reason — and it is also what lets the rows come
19575
+ * back `slim` — but the class filter was left behind, so a narrow
19576
+ * selection was still a wide read followed by a wide discard.
19577
+ *
19578
+ * Empty is "show all", not "nothing matches": a chip row with nothing
19579
+ * selected is an operator who has not narrowed anything, and an empty
19580
+ * timeline would read as a camera that saw nothing.
19581
+ */
19582
+ classes: array(string()).optional()
19556
19583
  }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number$1() }), _void(), {
19557
19584
  kind: "mutation",
19558
19585
  auth: "admin"
@@ -23189,8 +23216,22 @@ DeviceType.Automation, method(object({ deviceId: number$1().int().nonnegative()
23189
23216
  * threshold.
23190
23217
  */
23191
23218
  var BatteryStatusSchema = object({
23192
- /** 0..100 inclusive. Firmware-reported. */
23193
- percentage: number$1().min(0).max(100),
23219
+ /**
23220
+ * 0..100 inclusive, firmware-reported. **`null` means NOT YET KNOWN** — the
23221
+ * provider has registered the capability but no reading has landed.
23222
+ *
23223
+ * It is nullable because it was not, and the only value a provider could
23224
+ * seed with was `0`. A battery camera behind an NVR therefore announced
23225
+ * itself at 0% on every start and corrected itself a moment later, which is
23226
+ * indistinguishable from a real flat battery: it fires the low-battery alert
23227
+ * every time the hub restarts. Unknown is not empty (D315), and on a battery
23228
+ * reading the difference is an alarm.
23229
+ *
23230
+ * `vacuum-control` and `lawn-mower-control` already model it this way.
23231
+ * Consumers must SKIP a null rather than coerce it — `battery-band` already
23232
+ * declines to band a non-finite reading, which is the correct shape.
23233
+ */
23234
+ percentage: number$1().min(0).max(100).nullable(),
23194
23235
  /**
23195
23236
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
23196
23237
  * Reolink-specific for the Solar Panel 2 accessory (will become
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-ai",
3
- "version": "0.4.56",
3
+ "version": "0.4.58",
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",