@camstack/addon-agent-ui 1.2.75 → 1.2.77

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 +94 -2
  2. package/package.json +1 -1
package/dist/addon.js 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
@@ -7891,7 +7912,22 @@ var RecordingTriggersSchema = object({
7891
7912
  * il livello: un contatto trovato già aperto al riavvio del runner non fa
7892
7913
  * registrare.
7893
7914
  */
7894
- 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()
7895
7931
  });
7896
7932
  /**
7897
7933
  * Mode of a single recording band — the recorder per-band vocabulary.
@@ -11355,6 +11391,8 @@ method(object({
11355
11391
  label: string().optional(),
11356
11392
  deviceFeatures: array(string()).optional(),
11357
11393
  autoEligible: boolean().optional(),
11394
+ /** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
11395
+ profileHint: CamProfileSchema.optional(),
11358
11396
  metadata: record(string(), unknown()).optional(),
11359
11397
  /** Required when kind === 'derived' — the source camStreamId the
11360
11398
  * derived broker reads its encoded plane from.
@@ -27664,6 +27702,47 @@ method(object({
27664
27702
  auth: "protected"
27665
27703
  });
27666
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
+ /**
27667
27746
  * scene-monitor — device-scoped reference-region state cap. An operator marks
27668
27747
  * a rect ROI on a camera frame and names one or more states; the engine
27669
27748
  * (pipeline-analytics, designated post-processing node) reports which state is
@@ -28036,6 +28115,8 @@ var CamStreamDescriptorSchema = object({
28036
28115
  deviceFeatures: array(string()).optional(),
28037
28116
  /** Eligible for automatic profile assignment. Absent = `true`. */
28038
28117
  autoEligible: boolean().optional(),
28118
+ /** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
28119
+ profileHint: CamProfileSchema.optional(),
28039
28120
  /** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
28040
28121
  metadata: record(string(), unknown()).optional()
28041
28122
  });
@@ -33981,6 +34062,12 @@ Object.freeze({
33981
34062
  addonId: null,
33982
34063
  access: "view"
33983
34064
  },
34065
+ "recordingSignal.getStatus": {
34066
+ capName: "recording-signal",
34067
+ capScope: "device",
34068
+ addonId: null,
34069
+ access: "view"
34070
+ },
33984
34071
  "sceneMonitor.captureReference": {
33985
34072
  capName: "scene-monitor",
33986
34073
  capScope: "device",
@@ -36973,6 +37060,11 @@ Object.freeze({
36973
37060
  form: "single",
36974
37061
  optional: true
36975
37062
  }],
37063
+ "recordingSignal.getStatus": [{
37064
+ name: "deviceId",
37065
+ form: "single",
37066
+ optional: false
37067
+ }],
36976
37068
  "sceneMonitor.captureReference": [{
36977
37069
  name: "deviceId",
36978
37070
  form: "single",
@@ -37827,7 +37919,7 @@ var AgentUIAddon = class extends BaseAddon {
37827
37919
  capability: adminUiCapability,
37828
37920
  provider: {
37829
37921
  getStaticDir: async () => ({ staticDir: path.resolve(__dirname) }),
37830
- getVersion: async () => ({ version: "1.2.75" })
37922
+ getVersion: async () => ({ version: "1.2.77" })
37831
37923
  }
37832
37924
  }];
37833
37925
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-agent-ui",
3
- "version": "1.2.75",
3
+ "version": "1.2.77",
4
4
  "description": "Agent UI — lightweight status dashboard served by every agent node",
5
5
  "keywords": [
6
6
  "camstack",