@camstack/addon-decoder-nodeav 1.2.71 → 1.2.73

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/index.js CHANGED
@@ -5410,6 +5410,12 @@ Object.fromEntries([
5410
5410
  icon: "move",
5411
5411
  order: 40
5412
5412
  },
5413
+ {
5414
+ id: "navigation",
5415
+ label: "Navigation",
5416
+ icon: "compass",
5417
+ order: 41
5418
+ },
5413
5419
  {
5414
5420
  id: "consumables",
5415
5421
  label: "Consumables",
@@ -6443,6 +6449,21 @@ var CameraStreamSchema = object({
6443
6449
  */
6444
6450
  autoEligible: boolean().optional(),
6445
6451
  /**
6452
+ * The profile slot the PUBLISHER says this stream is: `low` for a stream
6453
+ * whose only sensible role is the low-bandwidth one, `high` for a main
6454
+ * stream. Consulted by the broker's automatic ranking
6455
+ * (`rankInitialAssignment`) BEFORE the pixel-count heuristic, and only there:
6456
+ * an operator's manual assignment still wins, and an absent hint is the
6457
+ * pixel-ranked default every camera had before this field existed.
6458
+ *
6459
+ * Why it exists: a camera with ONE stream ranked to `mid` — the slot no
6460
+ * storage class is written for on its own (`recordings` is high|mid,
6461
+ * `recordingsLow` is low) and the one profile scrub does not read. The robot
6462
+ * camera's single 720p relay is a `low` in every respect except the slot the
6463
+ * heuristic put it in.
6464
+ */
6465
+ profileHint: CamProfileSchema.optional(),
6466
+ /**
6446
6467
  * Transport-specific opaque metadata. The broker passes it through to
6447
6468
  * the source reader without inspecting it. Currently used by
6448
6469
  * `pull-rfc4571` streams to carry the upstream SDP (so the reader can
@@ -7888,7 +7909,22 @@ var RecordingTriggersSchema = object({
7888
7909
  * il livello: un contatto trovato già aperto al riavvio del runner non fa
7889
7910
  * registrare.
7890
7911
  */
7891
- sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
7912
+ sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional(),
7913
+ /**
7914
+ * La camera registra per tutta la durata del SEGNALE che lei stessa
7915
+ * pubblica — la cap `recording-signal` (`active: true` mentre il device è in
7916
+ * funzione: un robot che pulisce). È un LIVELLO, non un fronte: la finestra
7917
+ * resta aperta finché il segnale è alto e si chiude `postBufferSec` dopo la
7918
+ * caduta, così una pulizia di quaranta minuti è UNA clip.
7919
+ *
7920
+ * Non nomina un device: il segnale è della camera stessa, tenuto fresco dal
7921
+ * suo provider (D224); il recorder lo ascolta su `DeviceStateChanged` e lo
7922
+ * riconcilia leggendo la slice via RPC, con un tetto oltre il quale un
7923
+ * segnale mai abbassato (un evento perso) non può tenere aperta una
7924
+ * registrazione (D11). Vedi `recorder/addon/band-decision.ts`
7925
+ * (`holdTrigger` / `releaseTrigger`).
7926
+ */
7927
+ deviceSignal: boolean().optional()
7892
7928
  });
7893
7929
  /**
7894
7930
  * Mode of a single recording band — the recorder per-band vocabulary.
@@ -11389,6 +11425,8 @@ method(object({
11389
11425
  label: string().optional(),
11390
11426
  deviceFeatures: array(string()).optional(),
11391
11427
  autoEligible: boolean().optional(),
11428
+ /** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
11429
+ profileHint: CamProfileSchema.optional(),
11392
11430
  metadata: record(string(), unknown()).optional(),
11393
11431
  /** Required when kind === 'derived' — the source camStreamId the
11394
11432
  * derived broker reads its encoded plane from.
@@ -27791,6 +27829,47 @@ method(object({
27791
27829
  auth: "protected"
27792
27830
  });
27793
27831
  /**
27832
+ * A camera's own "record me NOW" LEVEL — a signal the device raises while
27833
+ * something it knows about is happening (a robot vacuum cleaning, a machine
27834
+ * running, a gate open) and lowers when it stops.
27835
+ *
27836
+ * It is a level, not an edge. The sensor triggers the recorder already listens
27837
+ * to (`SOURCE_CAP_ACTIVE_FIELD`) fire on a rising edge and record for a fixed
27838
+ * post-buffer; a cleaning lasts forty minutes, and forty minutes of "this is
27839
+ * still happening" cannot be expressed as an edge plus a post-buffer without
27840
+ * either re-triggering on a timer (polling — D224 forbids the consumer keeping
27841
+ * the fact fresh) or picking a post-buffer long enough to cover every job,
27842
+ * which records the dock for that long after every short one. So the recorder
27843
+ * reads the LEVEL: it records for as long as `active` is true, plus the band's
27844
+ * own post-buffer once it falls.
27845
+ *
27846
+ * Who owns the fact: the PROVIDER of the device, which already reads the state
27847
+ * the signal is derived from (the vacuum's lifecycle state, for Dreame). It
27848
+ * writes this slice on every change; consumers subscribe to the kernel's
27849
+ * `DeviceStateChanged` for it and read it back through
27850
+ * `deviceState.getCapSlice` to reconcile — never a second copy, never a poll
27851
+ * against the device (D224, D8/D11).
27852
+ *
27853
+ * Deliberately NOT a `binary` sensor on the camera: a binary sensor is exported
27854
+ * to Home Assistant, HomeKit and the sensor picker as a thing an operator can
27855
+ * bind, and "the camera wants to record" is not a room sensor. It is a fact
27856
+ * about the camera, on the camera.
27857
+ */
27858
+ var RecordingSignalStatusSchema = object({
27859
+ /** True while the device asks to be recorded. */
27860
+ active: boolean(),
27861
+ /**
27862
+ * Why, in the provider's own vocabulary (a vacuum's `cleaning` / `docked`,
27863
+ * …). Free text for the log line and the UI badge; the recorder never
27864
+ * branches on it.
27865
+ */
27866
+ reason: string(),
27867
+ /** Ms epoch of the last `active` transition. 0 if never observed. */
27868
+ lastChangedAt: number()
27869
+ });
27870
+ RecordingSignalStatusSchema.extend({ lastFetchedAt: number() });
27871
+ DeviceType.Camera, method(object({ deviceId: number() }), RecordingSignalStatusSchema);
27872
+ /**
27794
27873
  * scene-monitor — device-scoped reference-region state cap. An operator marks
27795
27874
  * a rect ROI on a camera frame and names one or more states; the engine
27796
27875
  * (pipeline-analytics, designated post-processing node) reports which state is
@@ -28163,6 +28242,8 @@ var CamStreamDescriptorSchema = object({
28163
28242
  deviceFeatures: array(string()).optional(),
28164
28243
  /** Eligible for automatic profile assignment. Absent = `true`. */
28165
28244
  autoEligible: boolean().optional(),
28245
+ /** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
28246
+ profileHint: CamProfileSchema.optional(),
28166
28247
  /** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
28167
28248
  metadata: record(string(), unknown()).optional()
28168
28249
  });
@@ -34108,6 +34189,12 @@ Object.freeze({
34108
34189
  addonId: null,
34109
34190
  access: "view"
34110
34191
  },
34192
+ "recordingSignal.getStatus": {
34193
+ capName: "recording-signal",
34194
+ capScope: "device",
34195
+ addonId: null,
34196
+ access: "view"
34197
+ },
34111
34198
  "sceneMonitor.captureReference": {
34112
34199
  capName: "scene-monitor",
34113
34200
  capScope: "device",
@@ -37100,6 +37187,11 @@ Object.freeze({
37100
37187
  form: "single",
37101
37188
  optional: true
37102
37189
  }],
37190
+ "recordingSignal.getStatus": [{
37191
+ name: "deviceId",
37192
+ form: "single",
37193
+ optional: false
37194
+ }],
37103
37195
  "sceneMonitor.captureReference": [{
37104
37196
  name: "deviceId",
37105
37197
  form: "single",
package/dist/index.mjs CHANGED
@@ -5406,6 +5406,12 @@ Object.fromEntries([
5406
5406
  icon: "move",
5407
5407
  order: 40
5408
5408
  },
5409
+ {
5410
+ id: "navigation",
5411
+ label: "Navigation",
5412
+ icon: "compass",
5413
+ order: 41
5414
+ },
5409
5415
  {
5410
5416
  id: "consumables",
5411
5417
  label: "Consumables",
@@ -6439,6 +6445,21 @@ var CameraStreamSchema = object({
6439
6445
  */
6440
6446
  autoEligible: boolean().optional(),
6441
6447
  /**
6448
+ * The profile slot the PUBLISHER says this stream is: `low` for a stream
6449
+ * whose only sensible role is the low-bandwidth one, `high` for a main
6450
+ * stream. Consulted by the broker's automatic ranking
6451
+ * (`rankInitialAssignment`) BEFORE the pixel-count heuristic, and only there:
6452
+ * an operator's manual assignment still wins, and an absent hint is the
6453
+ * pixel-ranked default every camera had before this field existed.
6454
+ *
6455
+ * Why it exists: a camera with ONE stream ranked to `mid` — the slot no
6456
+ * storage class is written for on its own (`recordings` is high|mid,
6457
+ * `recordingsLow` is low) and the one profile scrub does not read. The robot
6458
+ * camera's single 720p relay is a `low` in every respect except the slot the
6459
+ * heuristic put it in.
6460
+ */
6461
+ profileHint: CamProfileSchema.optional(),
6462
+ /**
6442
6463
  * Transport-specific opaque metadata. The broker passes it through to
6443
6464
  * the source reader without inspecting it. Currently used by
6444
6465
  * `pull-rfc4571` streams to carry the upstream SDP (so the reader can
@@ -7884,7 +7905,22 @@ var RecordingTriggersSchema = object({
7884
7905
  * il livello: un contatto trovato già aperto al riavvio del runner non fa
7885
7906
  * registrare.
7886
7907
  */
7887
- sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
7908
+ sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional(),
7909
+ /**
7910
+ * La camera registra per tutta la durata del SEGNALE che lei stessa
7911
+ * pubblica — la cap `recording-signal` (`active: true` mentre il device è in
7912
+ * funzione: un robot che pulisce). È un LIVELLO, non un fronte: la finestra
7913
+ * resta aperta finché il segnale è alto e si chiude `postBufferSec` dopo la
7914
+ * caduta, così una pulizia di quaranta minuti è UNA clip.
7915
+ *
7916
+ * Non nomina un device: il segnale è della camera stessa, tenuto fresco dal
7917
+ * suo provider (D224); il recorder lo ascolta su `DeviceStateChanged` e lo
7918
+ * riconcilia leggendo la slice via RPC, con un tetto oltre il quale un
7919
+ * segnale mai abbassato (un evento perso) non può tenere aperta una
7920
+ * registrazione (D11). Vedi `recorder/addon/band-decision.ts`
7921
+ * (`holdTrigger` / `releaseTrigger`).
7922
+ */
7923
+ deviceSignal: boolean().optional()
7888
7924
  });
7889
7925
  /**
7890
7926
  * Mode of a single recording band — the recorder per-band vocabulary.
@@ -11385,6 +11421,8 @@ method(object({
11385
11421
  label: string().optional(),
11386
11422
  deviceFeatures: array(string()).optional(),
11387
11423
  autoEligible: boolean().optional(),
11424
+ /** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
11425
+ profileHint: CamProfileSchema.optional(),
11388
11426
  metadata: record(string(), unknown()).optional(),
11389
11427
  /** Required when kind === 'derived' — the source camStreamId the
11390
11428
  * derived broker reads its encoded plane from.
@@ -27787,6 +27825,47 @@ method(object({
27787
27825
  auth: "protected"
27788
27826
  });
27789
27827
  /**
27828
+ * A camera's own "record me NOW" LEVEL — a signal the device raises while
27829
+ * something it knows about is happening (a robot vacuum cleaning, a machine
27830
+ * running, a gate open) and lowers when it stops.
27831
+ *
27832
+ * It is a level, not an edge. The sensor triggers the recorder already listens
27833
+ * to (`SOURCE_CAP_ACTIVE_FIELD`) fire on a rising edge and record for a fixed
27834
+ * post-buffer; a cleaning lasts forty minutes, and forty minutes of "this is
27835
+ * still happening" cannot be expressed as an edge plus a post-buffer without
27836
+ * either re-triggering on a timer (polling — D224 forbids the consumer keeping
27837
+ * the fact fresh) or picking a post-buffer long enough to cover every job,
27838
+ * which records the dock for that long after every short one. So the recorder
27839
+ * reads the LEVEL: it records for as long as `active` is true, plus the band's
27840
+ * own post-buffer once it falls.
27841
+ *
27842
+ * Who owns the fact: the PROVIDER of the device, which already reads the state
27843
+ * the signal is derived from (the vacuum's lifecycle state, for Dreame). It
27844
+ * writes this slice on every change; consumers subscribe to the kernel's
27845
+ * `DeviceStateChanged` for it and read it back through
27846
+ * `deviceState.getCapSlice` to reconcile — never a second copy, never a poll
27847
+ * against the device (D224, D8/D11).
27848
+ *
27849
+ * Deliberately NOT a `binary` sensor on the camera: a binary sensor is exported
27850
+ * to Home Assistant, HomeKit and the sensor picker as a thing an operator can
27851
+ * bind, and "the camera wants to record" is not a room sensor. It is a fact
27852
+ * about the camera, on the camera.
27853
+ */
27854
+ var RecordingSignalStatusSchema = object({
27855
+ /** True while the device asks to be recorded. */
27856
+ active: boolean(),
27857
+ /**
27858
+ * Why, in the provider's own vocabulary (a vacuum's `cleaning` / `docked`,
27859
+ * …). Free text for the log line and the UI badge; the recorder never
27860
+ * branches on it.
27861
+ */
27862
+ reason: string(),
27863
+ /** Ms epoch of the last `active` transition. 0 if never observed. */
27864
+ lastChangedAt: number()
27865
+ });
27866
+ RecordingSignalStatusSchema.extend({ lastFetchedAt: number() });
27867
+ DeviceType.Camera, method(object({ deviceId: number() }), RecordingSignalStatusSchema);
27868
+ /**
27790
27869
  * scene-monitor — device-scoped reference-region state cap. An operator marks
27791
27870
  * a rect ROI on a camera frame and names one or more states; the engine
27792
27871
  * (pipeline-analytics, designated post-processing node) reports which state is
@@ -28159,6 +28238,8 @@ var CamStreamDescriptorSchema = object({
28159
28238
  deviceFeatures: array(string()).optional(),
28160
28239
  /** Eligible for automatic profile assignment. Absent = `true`. */
28161
28240
  autoEligible: boolean().optional(),
28241
+ /** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
28242
+ profileHint: CamProfileSchema.optional(),
28162
28243
  /** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
28163
28244
  metadata: record(string(), unknown()).optional()
28164
28245
  });
@@ -34104,6 +34185,12 @@ Object.freeze({
34104
34185
  addonId: null,
34105
34186
  access: "view"
34106
34187
  },
34188
+ "recordingSignal.getStatus": {
34189
+ capName: "recording-signal",
34190
+ capScope: "device",
34191
+ addonId: null,
34192
+ access: "view"
34193
+ },
34107
34194
  "sceneMonitor.captureReference": {
34108
34195
  capName: "scene-monitor",
34109
34196
  capScope: "device",
@@ -37096,6 +37183,11 @@ Object.freeze({
37096
37183
  form: "single",
37097
37184
  optional: true
37098
37185
  }],
37186
+ "recordingSignal.getStatus": [{
37187
+ name: "deviceId",
37188
+ form: "single",
37189
+ optional: false
37190
+ }],
37099
37191
  "sceneMonitor.captureReference": [{
37100
37192
  name: "deviceId",
37101
37193
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-decoder-nodeav",
3
- "version": "1.2.71",
3
+ "version": "1.2.73",
4
4
  "description": "Standalone in-process node-av decoder addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",