@camstack/addon-ai 0.4.73 → 0.4.75

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
@@ -5566,6 +5566,12 @@ Object.fromEntries([
5566
5566
  icon: "move",
5567
5567
  order: 40
5568
5568
  },
5569
+ {
5570
+ id: "navigation",
5571
+ label: "Navigation",
5572
+ icon: "compass",
5573
+ order: 41
5574
+ },
5569
5575
  {
5570
5576
  id: "consumables",
5571
5577
  label: "Consumables",
@@ -6599,6 +6605,21 @@ var CameraStreamSchema = object({
6599
6605
  */
6600
6606
  autoEligible: boolean().optional(),
6601
6607
  /**
6608
+ * The profile slot the PUBLISHER says this stream is: `low` for a stream
6609
+ * whose only sensible role is the low-bandwidth one, `high` for a main
6610
+ * stream. Consulted by the broker's automatic ranking
6611
+ * (`rankInitialAssignment`) BEFORE the pixel-count heuristic, and only there:
6612
+ * an operator's manual assignment still wins, and an absent hint is the
6613
+ * pixel-ranked default every camera had before this field existed.
6614
+ *
6615
+ * Why it exists: a camera with ONE stream ranked to `mid` — the slot no
6616
+ * storage class is written for on its own (`recordings` is high|mid,
6617
+ * `recordingsLow` is low) and the one profile scrub does not read. The robot
6618
+ * camera's single 720p relay is a `low` in every respect except the slot the
6619
+ * heuristic put it in.
6620
+ */
6621
+ profileHint: CamProfileSchema.optional(),
6622
+ /**
6602
6623
  * Transport-specific opaque metadata. The broker passes it through to
6603
6624
  * the source reader without inspecting it. Currently used by
6604
6625
  * `pull-rfc4571` streams to carry the upstream SDP (so the reader can
@@ -8091,7 +8112,22 @@ var RecordingTriggersSchema = object({
8091
8112
  * il livello: un contatto trovato già aperto al riavvio del runner non fa
8092
8113
  * registrare.
8093
8114
  */
8094
- sensorDeviceIds: array(number$1().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
8115
+ sensorDeviceIds: array(number$1().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional(),
8116
+ /**
8117
+ * La camera registra per tutta la durata del SEGNALE che lei stessa
8118
+ * pubblica — la cap `recording-signal` (`active: true` mentre il device è in
8119
+ * funzione: un robot che pulisce). È un LIVELLO, non un fronte: la finestra
8120
+ * resta aperta finché il segnale è alto e si chiude `postBufferSec` dopo la
8121
+ * caduta, così una pulizia di quaranta minuti è UNA clip.
8122
+ *
8123
+ * Non nomina un device: il segnale è della camera stessa, tenuto fresco dal
8124
+ * suo provider (D224); il recorder lo ascolta su `DeviceStateChanged` e lo
8125
+ * riconcilia leggendo la slice via RPC, con un tetto oltre il quale un
8126
+ * segnale mai abbassato (un evento perso) non può tenere aperta una
8127
+ * registrazione (D11). Vedi `recorder/addon/band-decision.ts`
8128
+ * (`holdTrigger` / `releaseTrigger`).
8129
+ */
8130
+ deviceSignal: boolean().optional()
8095
8131
  });
8096
8132
  /**
8097
8133
  * Mode of a single recording band — the recorder per-band vocabulary.
@@ -11555,6 +11591,8 @@ method(object({
11555
11591
  label: string().optional(),
11556
11592
  deviceFeatures: array(string()).optional(),
11557
11593
  autoEligible: boolean().optional(),
11594
+ /** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
11595
+ profileHint: CamProfileSchema.optional(),
11558
11596
  metadata: record(string(), unknown()).optional(),
11559
11597
  /** Required when kind === 'derived' — the source camStreamId the
11560
11598
  * derived broker reads its encoded plane from.
@@ -27958,6 +27996,47 @@ method(object({
27958
27996
  auth: "protected"
27959
27997
  });
27960
27998
  /**
27999
+ * A camera's own "record me NOW" LEVEL — a signal the device raises while
28000
+ * something it knows about is happening (a robot vacuum cleaning, a machine
28001
+ * running, a gate open) and lowers when it stops.
28002
+ *
28003
+ * It is a level, not an edge. The sensor triggers the recorder already listens
28004
+ * to (`SOURCE_CAP_ACTIVE_FIELD`) fire on a rising edge and record for a fixed
28005
+ * post-buffer; a cleaning lasts forty minutes, and forty minutes of "this is
28006
+ * still happening" cannot be expressed as an edge plus a post-buffer without
28007
+ * either re-triggering on a timer (polling — D224 forbids the consumer keeping
28008
+ * the fact fresh) or picking a post-buffer long enough to cover every job,
28009
+ * which records the dock for that long after every short one. So the recorder
28010
+ * reads the LEVEL: it records for as long as `active` is true, plus the band's
28011
+ * own post-buffer once it falls.
28012
+ *
28013
+ * Who owns the fact: the PROVIDER of the device, which already reads the state
28014
+ * the signal is derived from (the vacuum's lifecycle state, for Dreame). It
28015
+ * writes this slice on every change; consumers subscribe to the kernel's
28016
+ * `DeviceStateChanged` for it and read it back through
28017
+ * `deviceState.getCapSlice` to reconcile — never a second copy, never a poll
28018
+ * against the device (D224, D8/D11).
28019
+ *
28020
+ * Deliberately NOT a `binary` sensor on the camera: a binary sensor is exported
28021
+ * to Home Assistant, HomeKit and the sensor picker as a thing an operator can
28022
+ * bind, and "the camera wants to record" is not a room sensor. It is a fact
28023
+ * about the camera, on the camera.
28024
+ */
28025
+ var RecordingSignalStatusSchema = object({
28026
+ /** True while the device asks to be recorded. */
28027
+ active: boolean(),
28028
+ /**
28029
+ * Why, in the provider's own vocabulary (a vacuum's `cleaning` / `docked`,
28030
+ * …). Free text for the log line and the UI badge; the recorder never
28031
+ * branches on it.
28032
+ */
28033
+ reason: string(),
28034
+ /** Ms epoch of the last `active` transition. 0 if never observed. */
28035
+ lastChangedAt: number$1()
28036
+ });
28037
+ RecordingSignalStatusSchema.extend({ lastFetchedAt: number$1() });
28038
+ DeviceType.Camera, method(object({ deviceId: number$1() }), RecordingSignalStatusSchema);
28039
+ /**
27961
28040
  * scene-monitor — device-scoped reference-region state cap. An operator marks
27962
28041
  * a rect ROI on a camera frame and names one or more states; the engine
27963
28042
  * (pipeline-analytics, designated post-processing node) reports which state is
@@ -28330,6 +28409,8 @@ var CamStreamDescriptorSchema = object({
28330
28409
  deviceFeatures: array(string()).optional(),
28331
28410
  /** Eligible for automatic profile assignment. Absent = `true`. */
28332
28411
  autoEligible: boolean().optional(),
28412
+ /** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
28413
+ profileHint: CamProfileSchema.optional(),
28333
28414
  /** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
28334
28415
  metadata: record(string(), unknown()).optional()
28335
28416
  });
@@ -34275,6 +34356,12 @@ Object.freeze({
34275
34356
  addonId: null,
34276
34357
  access: "view"
34277
34358
  },
34359
+ "recordingSignal.getStatus": {
34360
+ capName: "recording-signal",
34361
+ capScope: "device",
34362
+ addonId: null,
34363
+ access: "view"
34364
+ },
34278
34365
  "sceneMonitor.captureReference": {
34279
34366
  capName: "scene-monitor",
34280
34367
  capScope: "device",
@@ -37267,6 +37354,11 @@ Object.freeze({
37267
37354
  form: "single",
37268
37355
  optional: true
37269
37356
  }],
37357
+ "recordingSignal.getStatus": [{
37358
+ name: "deviceId",
37359
+ form: "single",
37360
+ optional: false
37361
+ }],
37270
37362
  "sceneMonitor.captureReference": [{
37271
37363
  name: "deviceId",
37272
37364
  form: "single",
package/dist/addon.mjs CHANGED
@@ -5593,6 +5593,12 @@ Object.fromEntries([
5593
5593
  icon: "move",
5594
5594
  order: 40
5595
5595
  },
5596
+ {
5597
+ id: "navigation",
5598
+ label: "Navigation",
5599
+ icon: "compass",
5600
+ order: 41
5601
+ },
5596
5602
  {
5597
5603
  id: "consumables",
5598
5604
  label: "Consumables",
@@ -6626,6 +6632,21 @@ var CameraStreamSchema = object({
6626
6632
  */
6627
6633
  autoEligible: boolean().optional(),
6628
6634
  /**
6635
+ * The profile slot the PUBLISHER says this stream is: `low` for a stream
6636
+ * whose only sensible role is the low-bandwidth one, `high` for a main
6637
+ * stream. Consulted by the broker's automatic ranking
6638
+ * (`rankInitialAssignment`) BEFORE the pixel-count heuristic, and only there:
6639
+ * an operator's manual assignment still wins, and an absent hint is the
6640
+ * pixel-ranked default every camera had before this field existed.
6641
+ *
6642
+ * Why it exists: a camera with ONE stream ranked to `mid` — the slot no
6643
+ * storage class is written for on its own (`recordings` is high|mid,
6644
+ * `recordingsLow` is low) and the one profile scrub does not read. The robot
6645
+ * camera's single 720p relay is a `low` in every respect except the slot the
6646
+ * heuristic put it in.
6647
+ */
6648
+ profileHint: CamProfileSchema.optional(),
6649
+ /**
6629
6650
  * Transport-specific opaque metadata. The broker passes it through to
6630
6651
  * the source reader without inspecting it. Currently used by
6631
6652
  * `pull-rfc4571` streams to carry the upstream SDP (so the reader can
@@ -8118,7 +8139,22 @@ var RecordingTriggersSchema = object({
8118
8139
  * il livello: un contatto trovato già aperto al riavvio del runner non fa
8119
8140
  * registrare.
8120
8141
  */
8121
- sensorDeviceIds: array(number$1().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
8142
+ sensorDeviceIds: array(number$1().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional(),
8143
+ /**
8144
+ * La camera registra per tutta la durata del SEGNALE che lei stessa
8145
+ * pubblica — la cap `recording-signal` (`active: true` mentre il device è in
8146
+ * funzione: un robot che pulisce). È un LIVELLO, non un fronte: la finestra
8147
+ * resta aperta finché il segnale è alto e si chiude `postBufferSec` dopo la
8148
+ * caduta, così una pulizia di quaranta minuti è UNA clip.
8149
+ *
8150
+ * Non nomina un device: il segnale è della camera stessa, tenuto fresco dal
8151
+ * suo provider (D224); il recorder lo ascolta su `DeviceStateChanged` e lo
8152
+ * riconcilia leggendo la slice via RPC, con un tetto oltre il quale un
8153
+ * segnale mai abbassato (un evento perso) non può tenere aperta una
8154
+ * registrazione (D11). Vedi `recorder/addon/band-decision.ts`
8155
+ * (`holdTrigger` / `releaseTrigger`).
8156
+ */
8157
+ deviceSignal: boolean().optional()
8122
8158
  });
8123
8159
  /**
8124
8160
  * Mode of a single recording band — the recorder per-band vocabulary.
@@ -11582,6 +11618,8 @@ method(object({
11582
11618
  label: string().optional(),
11583
11619
  deviceFeatures: array(string()).optional(),
11584
11620
  autoEligible: boolean().optional(),
11621
+ /** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
11622
+ profileHint: CamProfileSchema.optional(),
11585
11623
  metadata: record(string(), unknown()).optional(),
11586
11624
  /** Required when kind === 'derived' — the source camStreamId the
11587
11625
  * derived broker reads its encoded plane from.
@@ -27985,6 +28023,47 @@ method(object({
27985
28023
  auth: "protected"
27986
28024
  });
27987
28025
  /**
28026
+ * A camera's own "record me NOW" LEVEL — a signal the device raises while
28027
+ * something it knows about is happening (a robot vacuum cleaning, a machine
28028
+ * running, a gate open) and lowers when it stops.
28029
+ *
28030
+ * It is a level, not an edge. The sensor triggers the recorder already listens
28031
+ * to (`SOURCE_CAP_ACTIVE_FIELD`) fire on a rising edge and record for a fixed
28032
+ * post-buffer; a cleaning lasts forty minutes, and forty minutes of "this is
28033
+ * still happening" cannot be expressed as an edge plus a post-buffer without
28034
+ * either re-triggering on a timer (polling — D224 forbids the consumer keeping
28035
+ * the fact fresh) or picking a post-buffer long enough to cover every job,
28036
+ * which records the dock for that long after every short one. So the recorder
28037
+ * reads the LEVEL: it records for as long as `active` is true, plus the band's
28038
+ * own post-buffer once it falls.
28039
+ *
28040
+ * Who owns the fact: the PROVIDER of the device, which already reads the state
28041
+ * the signal is derived from (the vacuum's lifecycle state, for Dreame). It
28042
+ * writes this slice on every change; consumers subscribe to the kernel's
28043
+ * `DeviceStateChanged` for it and read it back through
28044
+ * `deviceState.getCapSlice` to reconcile — never a second copy, never a poll
28045
+ * against the device (D224, D8/D11).
28046
+ *
28047
+ * Deliberately NOT a `binary` sensor on the camera: a binary sensor is exported
28048
+ * to Home Assistant, HomeKit and the sensor picker as a thing an operator can
28049
+ * bind, and "the camera wants to record" is not a room sensor. It is a fact
28050
+ * about the camera, on the camera.
28051
+ */
28052
+ var RecordingSignalStatusSchema = object({
28053
+ /** True while the device asks to be recorded. */
28054
+ active: boolean(),
28055
+ /**
28056
+ * Why, in the provider's own vocabulary (a vacuum's `cleaning` / `docked`,
28057
+ * …). Free text for the log line and the UI badge; the recorder never
28058
+ * branches on it.
28059
+ */
28060
+ reason: string(),
28061
+ /** Ms epoch of the last `active` transition. 0 if never observed. */
28062
+ lastChangedAt: number$1()
28063
+ });
28064
+ RecordingSignalStatusSchema.extend({ lastFetchedAt: number$1() });
28065
+ DeviceType.Camera, method(object({ deviceId: number$1() }), RecordingSignalStatusSchema);
28066
+ /**
27988
28067
  * scene-monitor — device-scoped reference-region state cap. An operator marks
27989
28068
  * a rect ROI on a camera frame and names one or more states; the engine
27990
28069
  * (pipeline-analytics, designated post-processing node) reports which state is
@@ -28357,6 +28436,8 @@ var CamStreamDescriptorSchema = object({
28357
28436
  deviceFeatures: array(string()).optional(),
28358
28437
  /** Eligible for automatic profile assignment. Absent = `true`. */
28359
28438
  autoEligible: boolean().optional(),
28439
+ /** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
28440
+ profileHint: CamProfileSchema.optional(),
28360
28441
  /** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
28361
28442
  metadata: record(string(), unknown()).optional()
28362
28443
  });
@@ -34302,6 +34383,12 @@ Object.freeze({
34302
34383
  addonId: null,
34303
34384
  access: "view"
34304
34385
  },
34386
+ "recordingSignal.getStatus": {
34387
+ capName: "recording-signal",
34388
+ capScope: "device",
34389
+ addonId: null,
34390
+ access: "view"
34391
+ },
34305
34392
  "sceneMonitor.captureReference": {
34306
34393
  capName: "scene-monitor",
34307
34394
  capScope: "device",
@@ -37294,6 +37381,11 @@ Object.freeze({
37294
37381
  form: "single",
37295
37382
  optional: true
37296
37383
  }],
37384
+ "recordingSignal.getStatus": [{
37385
+ name: "deviceId",
37386
+ form: "single",
37387
+ optional: false
37388
+ }],
37297
37389
  "sceneMonitor.captureReference": [{
37298
37390
  name: "deviceId",
37299
37391
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-ai",
3
- "version": "0.4.73",
3
+ "version": "0.4.75",
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",