@camstack/addon-agent-ui 1.2.112 → 1.2.113

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 +55 -3
  2. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -12266,7 +12266,23 @@ var PickStreamRequirementsSchema = object({
12266
12266
  * This is what lets one picker serve both the bypass and the full source
12267
12267
  * choice, instead of a consumer scoring privately when the bypass misses.
12268
12268
  */
12269
- allowTranscode: boolean().optional()
12269
+ allowTranscode: boolean().optional(),
12270
+ /**
12271
+ * Consider ONLY streams the broker has bound to a profile slot.
12272
+ *
12273
+ * A consumer that dials the broker — which is every exporter, since none
12274
+ * of them may open the camera's own URL — can do nothing with a source
12275
+ * that has no slot: there is no restream to dial. Without this the picker
12276
+ * can name such a stream, and each consumer discovers the dead end for
12277
+ * itself: Alexa's `profileForCamStream` returns `null` and it quietly
12278
+ * falls back, and HomeKit would have had to grow the same function again.
12279
+ *
12280
+ * Default `false`, and deliberately so: the BROKER itself picks through
12281
+ * here when it decides which source to BIND to a slot
12282
+ * (`computeInitialAssignment`), and it must see the unbound ones or it
12283
+ * could never bind them.
12284
+ */
12285
+ requireProfileBound: boolean().optional()
12270
12286
  }).readonly();
12271
12287
  var PickStreamPreferencesSchema = object({
12272
12288
  /**
@@ -12307,7 +12323,43 @@ var PickedCamStreamSchema = object({
12307
12323
  */
12308
12324
  transcodes: boolean(),
12309
12325
  /** One-line explanation of why this stream won — for logs / debug UI. */
12310
- reason: string()
12326
+ reason: string(),
12327
+ /**
12328
+ * The broker profile slot this source is bound to, when it is bound.
12329
+ *
12330
+ * Answered HERE because every consumer needs it and none of them can get it
12331
+ * from the `camStreamId` alone. Alexa wrote `profileForCamStream` for it —
12332
+ * a second cap read plus a `null` branch — and HomeKit was about to write
12333
+ * the same function a second time.
12334
+ *
12335
+ * Absent when the source has no slot, which a caller passing
12336
+ * `requireProfileBound` can never see.
12337
+ */
12338
+ profile: CamProfileSchema.optional(),
12339
+ /** The broker id of that slot, for logs that must name what was dialled. */
12340
+ brokerId: string().optional(),
12341
+ /**
12342
+ * The broker restream URL to dial for this stream.
12343
+ *
12344
+ * An exporter must never open the camera's own URL — the broker is the one
12345
+ * that dials the camera, and every consumer goes through its restream. So
12346
+ * the picker answers with the thing a consumer may actually use, instead of
12347
+ * naming a source and leaving each caller to look the URL up.
12348
+ */
12349
+ url: string().optional(),
12350
+ /**
12351
+ * Frames per second this stream really delivers, and where the number came
12352
+ * from.
12353
+ *
12354
+ * It is here because getting it wrong is expensive and silent: a HomeKit
12355
+ * accessory advertised 720p at 24 fps while the slot serving it ran at 9,
12356
+ * and the controller rendered nothing at all. The source is carried with the
12357
+ * value for the same reason the bitrate evidence is: `published` is what the
12358
+ * publisher declares and `measured` is what the broker observed, and they
12359
+ * are not interchangeable.
12360
+ */
12361
+ fps: number().positive().optional(),
12362
+ fpsSource: _enum(["published", "measured"]).optional()
12311
12363
  });
12312
12364
  DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), array(CameraStreamSchema).readonly()), method(object({ deviceId: number().int().nonnegative() }), array(ProfileSlotSchema).readonly()), method(object({
12313
12365
  deviceId: number().int().nonnegative(),
@@ -40028,7 +40080,7 @@ var AgentUIAddon = class extends BaseAddon {
40028
40080
  capability: adminUiCapability,
40029
40081
  provider: {
40030
40082
  getStaticDir: async () => ({ staticDir: path.resolve(__dirname) }),
40031
- getVersion: async () => ({ version: "1.2.112" })
40083
+ getVersion: async () => ({ version: "1.2.113" })
40032
40084
  }
40033
40085
  }];
40034
40086
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-agent-ui",
3
- "version": "1.2.112",
3
+ "version": "1.2.113",
4
4
  "description": "Agent UI — lightweight status dashboard served by every agent node",
5
5
  "keywords": [
6
6
  "camstack",