@camstack/addon-agent-ui 1.2.76 → 1.2.78

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.
Files changed (2) hide show
  1. package/dist/addon.js +88 -2
  2. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -6446,6 +6446,21 @@ var CameraStreamSchema = object({
6446
6446
  */
6447
6447
  autoEligible: boolean().optional(),
6448
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
+ /**
6449
6464
  * Transport-specific opaque metadata. The broker passes it through to
6450
6465
  * the source reader without inspecting it. Currently used by
6451
6466
  * `pull-rfc4571` streams to carry the upstream SDP (so the reader can
@@ -7897,7 +7912,22 @@ var RecordingTriggersSchema = object({
7897
7912
  * il livello: un contatto trovato già aperto al riavvio del runner non fa
7898
7913
  * registrare.
7899
7914
  */
7900
- sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
7915
+ sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional(),
7916
+ /**
7917
+ * La camera registra per tutta la durata del SEGNALE che lei stessa
7918
+ * pubblica — la cap `recording-signal` (`active: true` mentre il device è in
7919
+ * funzione: un robot che pulisce). È un LIVELLO, non un fronte: la finestra
7920
+ * resta aperta finché il segnale è alto e si chiude `postBufferSec` dopo la
7921
+ * caduta, così una pulizia di quaranta minuti è UNA clip.
7922
+ *
7923
+ * Non nomina un device: il segnale è della camera stessa, tenuto fresco dal
7924
+ * suo provider (D224); il recorder lo ascolta su `DeviceStateChanged` e lo
7925
+ * riconcilia leggendo la slice via RPC, con un tetto oltre il quale un
7926
+ * segnale mai abbassato (un evento perso) non può tenere aperta una
7927
+ * registrazione (D11). Vedi `recorder/addon/band-decision.ts`
7928
+ * (`holdTrigger` / `releaseTrigger`).
7929
+ */
7930
+ deviceSignal: boolean().optional()
7901
7931
  });
7902
7932
  /**
7903
7933
  * Mode of a single recording band — the recorder per-band vocabulary.
@@ -11361,6 +11391,8 @@ method(object({
11361
11391
  label: string().optional(),
11362
11392
  deviceFeatures: array(string()).optional(),
11363
11393
  autoEligible: boolean().optional(),
11394
+ /** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
11395
+ profileHint: CamProfileSchema.optional(),
11364
11396
  metadata: record(string(), unknown()).optional(),
11365
11397
  /** Required when kind === 'derived' — the source camStreamId the
11366
11398
  * derived broker reads its encoded plane from.
@@ -27670,6 +27702,47 @@ method(object({
27670
27702
  auth: "protected"
27671
27703
  });
27672
27704
  /**
27705
+ * A camera's own "record me NOW" LEVEL — a signal the device raises while
27706
+ * something it knows about is happening (a robot vacuum cleaning, a machine
27707
+ * running, a gate open) and lowers when it stops.
27708
+ *
27709
+ * It is a level, not an edge. The sensor triggers the recorder already listens
27710
+ * to (`SOURCE_CAP_ACTIVE_FIELD`) fire on a rising edge and record for a fixed
27711
+ * post-buffer; a cleaning lasts forty minutes, and forty minutes of "this is
27712
+ * still happening" cannot be expressed as an edge plus a post-buffer without
27713
+ * either re-triggering on a timer (polling — D224 forbids the consumer keeping
27714
+ * the fact fresh) or picking a post-buffer long enough to cover every job,
27715
+ * which records the dock for that long after every short one. So the recorder
27716
+ * reads the LEVEL: it records for as long as `active` is true, plus the band's
27717
+ * own post-buffer once it falls.
27718
+ *
27719
+ * Who owns the fact: the PROVIDER of the device, which already reads the state
27720
+ * the signal is derived from (the vacuum's lifecycle state, for Dreame). It
27721
+ * writes this slice on every change; consumers subscribe to the kernel's
27722
+ * `DeviceStateChanged` for it and read it back through
27723
+ * `deviceState.getCapSlice` to reconcile — never a second copy, never a poll
27724
+ * against the device (D224, D8/D11).
27725
+ *
27726
+ * Deliberately NOT a `binary` sensor on the camera: a binary sensor is exported
27727
+ * to Home Assistant, HomeKit and the sensor picker as a thing an operator can
27728
+ * bind, and "the camera wants to record" is not a room sensor. It is a fact
27729
+ * about the camera, on the camera.
27730
+ */
27731
+ var RecordingSignalStatusSchema = object({
27732
+ /** True while the device asks to be recorded. */
27733
+ active: boolean(),
27734
+ /**
27735
+ * Why, in the provider's own vocabulary (a vacuum's `cleaning` / `docked`,
27736
+ * …). Free text for the log line and the UI badge; the recorder never
27737
+ * branches on it.
27738
+ */
27739
+ reason: string(),
27740
+ /** Ms epoch of the last `active` transition. 0 if never observed. */
27741
+ lastChangedAt: number()
27742
+ });
27743
+ RecordingSignalStatusSchema.extend({ lastFetchedAt: number() });
27744
+ DeviceType.Camera, method(object({ deviceId: number() }), RecordingSignalStatusSchema);
27745
+ /**
27673
27746
  * scene-monitor — device-scoped reference-region state cap. An operator marks
27674
27747
  * a rect ROI on a camera frame and names one or more states; the engine
27675
27748
  * (pipeline-analytics, designated post-processing node) reports which state is
@@ -28042,6 +28115,8 @@ var CamStreamDescriptorSchema = object({
28042
28115
  deviceFeatures: array(string()).optional(),
28043
28116
  /** Eligible for automatic profile assignment. Absent = `true`. */
28044
28117
  autoEligible: boolean().optional(),
28118
+ /** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
28119
+ profileHint: CamProfileSchema.optional(),
28045
28120
  /** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
28046
28121
  metadata: record(string(), unknown()).optional()
28047
28122
  });
@@ -33987,6 +34062,12 @@ Object.freeze({
33987
34062
  addonId: null,
33988
34063
  access: "view"
33989
34064
  },
34065
+ "recordingSignal.getStatus": {
34066
+ capName: "recording-signal",
34067
+ capScope: "device",
34068
+ addonId: null,
34069
+ access: "view"
34070
+ },
33990
34071
  "sceneMonitor.captureReference": {
33991
34072
  capName: "scene-monitor",
33992
34073
  capScope: "device",
@@ -36979,6 +37060,11 @@ Object.freeze({
36979
37060
  form: "single",
36980
37061
  optional: true
36981
37062
  }],
37063
+ "recordingSignal.getStatus": [{
37064
+ name: "deviceId",
37065
+ form: "single",
37066
+ optional: false
37067
+ }],
36982
37068
  "sceneMonitor.captureReference": [{
36983
37069
  name: "deviceId",
36984
37070
  form: "single",
@@ -37833,7 +37919,7 @@ var AgentUIAddon = class extends BaseAddon {
37833
37919
  capability: adminUiCapability,
37834
37920
  provider: {
37835
37921
  getStaticDir: async () => ({ staticDir: path.resolve(__dirname) }),
37836
- getVersion: async () => ({ version: "1.2.76" })
37922
+ getVersion: async () => ({ version: "1.2.78" })
37837
37923
  }
37838
37924
  }];
37839
37925
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-agent-ui",
3
- "version": "1.2.76",
3
+ "version": "1.2.78",
4
4
  "description": "Agent UI — lightweight status dashboard served by every agent node",
5
5
  "keywords": [
6
6
  "camstack",