@camstack/addon-agent-ui 1.2.87 → 1.2.88

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 +22 -3
  2. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -27100,8 +27100,27 @@ var PrivacyMaskRegionSchema = object({
27100
27100
  });
27101
27101
  object({
27102
27102
  enabled: boolean(),
27103
- /** Active zones (normalized 0..1). Length ≤ maxRegions. */
27104
- regions: array(PrivacyMaskRegionSchema),
27103
+ /**
27104
+ * Active zones (normalized 0..1). Length ≤ maxRegions.
27105
+ *
27106
+ * `null` means "no answer" — the provider has never reached this camera
27107
+ * (a cold `runtimeState` slice, a battery camera asleep) or the read
27108
+ * failed. A consumer must render it as UNKNOWN and never as "this camera
27109
+ * has no zones": those two look identical to an operator right up to the
27110
+ * moment one of them is acted on, and acting on them differs completely.
27111
+ * The switch group turned an unanswered read into *"nothing is set up for
27112
+ * it to act on"* — an instruction to go and draw a zone that already
27113
+ * exists — and this editor seeded an EMPTY canvas from it, one Save away
27114
+ * from deleting the mask it could not read.
27115
+ *
27116
+ * Empty-and-answered is `[]` and stays a real answer: this camera genuinely
27117
+ * has no zones. The distinction is the same one {@link
27118
+ * PrivacyMaskStatusSchema.shape.audioEnabled} already draws for the
27119
+ * microphone, on the very same payload — both planes come from ONE refresh,
27120
+ * so it was never coherent for one of them to be able to say "unknown"
27121
+ * while the other could not.
27122
+ */
27123
+ regions: array(PrivacyMaskRegionSchema).nullable(),
27105
27124
  /**
27106
27125
  * Is the camera capturing sound right now? Read from the camera, never from
27107
27126
  * a server-side mirror.
@@ -38126,7 +38145,7 @@ var AgentUIAddon = class extends BaseAddon {
38126
38145
  capability: adminUiCapability,
38127
38146
  provider: {
38128
38147
  getStaticDir: async () => ({ staticDir: path.resolve(__dirname) }),
38129
- getVersion: async () => ({ version: "1.2.87" })
38148
+ getVersion: async () => ({ version: "1.2.88" })
38130
38149
  }
38131
38150
  }];
38132
38151
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-agent-ui",
3
- "version": "1.2.87",
3
+ "version": "1.2.88",
4
4
  "description": "Agent UI — lightweight status dashboard served by every agent node",
5
5
  "keywords": [
6
6
  "camstack",