@camstack/addon-ai 0.4.57 → 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). */
@@ -23176,8 +23189,22 @@ DeviceType.Automation, method(object({ deviceId: number$1().int().nonnegative()
23176
23189
  * threshold.
23177
23190
  */
23178
23191
  var BatteryStatusSchema = object({
23179
- /** 0..100 inclusive. Firmware-reported. */
23180
- 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(),
23181
23208
  /**
23182
23209
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
23183
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). */
@@ -23203,8 +23216,22 @@ DeviceType.Automation, method(object({ deviceId: number$1().int().nonnegative()
23203
23216
  * threshold.
23204
23217
  */
23205
23218
  var BatteryStatusSchema = object({
23206
- /** 0..100 inclusive. Firmware-reported. */
23207
- 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(),
23208
23235
  /**
23209
23236
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
23210
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.57",
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",