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