@camstack/addon-pipeline-orchestrator 1.2.213 → 1.2.215

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.
@@ -3,7 +3,7 @@ import "./dist-CYZr2fwk.mjs";
3
3
  var e = {
4
4
  "@camstack/sdk": {
5
5
  name: "@camstack/sdk",
6
- version: "1.2.110",
6
+ version: "1.2.112",
7
7
  scope: ["default"],
8
8
  loaded: !1,
9
9
  from: "addon_pipeline_orchestrator_widgets",
@@ -18,7 +18,7 @@ var e = {
18
18
  },
19
19
  "@camstack/types": {
20
20
  name: "@camstack/types",
21
- version: "1.2.204",
21
+ version: "1.2.206",
22
22
  scope: ["default"],
23
23
  loaded: !1,
24
24
  from: "addon_pipeline_orchestrator_widgets",
@@ -33,7 +33,7 @@ var e = {
33
33
  },
34
34
  "@camstack/ui-library": {
35
35
  name: "@camstack/ui-library",
36
- version: "1.2.169",
36
+ version: "1.2.171",
37
37
  scope: ["default"],
38
38
  loaded: !1,
39
39
  from: "addon_pipeline_orchestrator_widgets",
@@ -36,7 +36,7 @@ async function r() {
36
36
  }
37
37
  },
38
38
  "@camstack/types": {
39
- version: "1.2.204",
39
+ version: "1.2.206",
40
40
  scope: "default",
41
41
  shareConfig: {
42
42
  singleton: !0,
@@ -45,7 +45,7 @@ async function r() {
45
45
  }
46
46
  },
47
47
  "@camstack/sdk": {
48
- version: "1.2.110",
48
+ version: "1.2.112",
49
49
  scope: "default",
50
50
  shareConfig: {
51
51
  singleton: !0,
@@ -99,7 +99,7 @@ async function r() {
99
99
  }
100
100
  },
101
101
  "@camstack/ui-library": {
102
- version: "1.2.169",
102
+ version: "1.2.171",
103
103
  scope: "default",
104
104
  shareConfig: {
105
105
  singleton: !0,
package/dist/index.js CHANGED
@@ -13218,7 +13218,23 @@ var PickStreamRequirementsSchema = object({
13218
13218
  * This is what lets one picker serve both the bypass and the full source
13219
13219
  * choice, instead of a consumer scoring privately when the bypass misses.
13220
13220
  */
13221
- allowTranscode: boolean().optional()
13221
+ allowTranscode: boolean().optional(),
13222
+ /**
13223
+ * Consider ONLY streams the broker has bound to a profile slot.
13224
+ *
13225
+ * A consumer that dials the broker — which is every exporter, since none
13226
+ * of them may open the camera's own URL — can do nothing with a source
13227
+ * that has no slot: there is no restream to dial. Without this the picker
13228
+ * can name such a stream, and each consumer discovers the dead end for
13229
+ * itself: Alexa's `profileForCamStream` returns `null` and it quietly
13230
+ * falls back, and HomeKit would have had to grow the same function again.
13231
+ *
13232
+ * Default `false`, and deliberately so: the BROKER itself picks through
13233
+ * here when it decides which source to BIND to a slot
13234
+ * (`computeInitialAssignment`), and it must see the unbound ones or it
13235
+ * could never bind them.
13236
+ */
13237
+ requireProfileBound: boolean().optional()
13222
13238
  }).readonly();
13223
13239
  var PickStreamPreferencesSchema = object({
13224
13240
  /**
@@ -13259,7 +13275,43 @@ var PickedCamStreamSchema = object({
13259
13275
  */
13260
13276
  transcodes: boolean(),
13261
13277
  /** One-line explanation of why this stream won — for logs / debug UI. */
13262
- reason: string()
13278
+ reason: string(),
13279
+ /**
13280
+ * The broker profile slot this source is bound to, when it is bound.
13281
+ *
13282
+ * Answered HERE because every consumer needs it and none of them can get it
13283
+ * from the `camStreamId` alone. Alexa wrote `profileForCamStream` for it —
13284
+ * a second cap read plus a `null` branch — and HomeKit was about to write
13285
+ * the same function a second time.
13286
+ *
13287
+ * Absent when the source has no slot, which a caller passing
13288
+ * `requireProfileBound` can never see.
13289
+ */
13290
+ profile: CamProfileSchema.optional(),
13291
+ /** The broker id of that slot, for logs that must name what was dialled. */
13292
+ brokerId: string().optional(),
13293
+ /**
13294
+ * The broker restream URL to dial for this stream.
13295
+ *
13296
+ * An exporter must never open the camera's own URL — the broker is the one
13297
+ * that dials the camera, and every consumer goes through its restream. So
13298
+ * the picker answers with the thing a consumer may actually use, instead of
13299
+ * naming a source and leaving each caller to look the URL up.
13300
+ */
13301
+ url: string().optional(),
13302
+ /**
13303
+ * Frames per second this stream really delivers, and where the number came
13304
+ * from.
13305
+ *
13306
+ * It is here because getting it wrong is expensive and silent: a HomeKit
13307
+ * accessory advertised 720p at 24 fps while the slot serving it ran at 9,
13308
+ * and the controller rendered nothing at all. The source is carried with the
13309
+ * value for the same reason the bitrate evidence is: `published` is what the
13310
+ * publisher declares and `measured` is what the broker observed, and they
13311
+ * are not interchangeable.
13312
+ */
13313
+ fps: number().positive().optional(),
13314
+ fpsSource: _enum(["published", "measured"]).optional()
13263
13315
  });
13264
13316
  DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), array(CameraStreamSchema).readonly()), method(object({ deviceId: number().int().nonnegative() }), array(ProfileSlotSchema).readonly()), method(object({
13265
13317
  deviceId: number().int().nonnegative(),
package/dist/index.mjs CHANGED
@@ -13190,7 +13190,23 @@ var PickStreamRequirementsSchema = object({
13190
13190
  * This is what lets one picker serve both the bypass and the full source
13191
13191
  * choice, instead of a consumer scoring privately when the bypass misses.
13192
13192
  */
13193
- allowTranscode: boolean().optional()
13193
+ allowTranscode: boolean().optional(),
13194
+ /**
13195
+ * Consider ONLY streams the broker has bound to a profile slot.
13196
+ *
13197
+ * A consumer that dials the broker — which is every exporter, since none
13198
+ * of them may open the camera's own URL — can do nothing with a source
13199
+ * that has no slot: there is no restream to dial. Without this the picker
13200
+ * can name such a stream, and each consumer discovers the dead end for
13201
+ * itself: Alexa's `profileForCamStream` returns `null` and it quietly
13202
+ * falls back, and HomeKit would have had to grow the same function again.
13203
+ *
13204
+ * Default `false`, and deliberately so: the BROKER itself picks through
13205
+ * here when it decides which source to BIND to a slot
13206
+ * (`computeInitialAssignment`), and it must see the unbound ones or it
13207
+ * could never bind them.
13208
+ */
13209
+ requireProfileBound: boolean().optional()
13194
13210
  }).readonly();
13195
13211
  var PickStreamPreferencesSchema = object({
13196
13212
  /**
@@ -13231,7 +13247,43 @@ var PickedCamStreamSchema = object({
13231
13247
  */
13232
13248
  transcodes: boolean(),
13233
13249
  /** One-line explanation of why this stream won — for logs / debug UI. */
13234
- reason: string()
13250
+ reason: string(),
13251
+ /**
13252
+ * The broker profile slot this source is bound to, when it is bound.
13253
+ *
13254
+ * Answered HERE because every consumer needs it and none of them can get it
13255
+ * from the `camStreamId` alone. Alexa wrote `profileForCamStream` for it —
13256
+ * a second cap read plus a `null` branch — and HomeKit was about to write
13257
+ * the same function a second time.
13258
+ *
13259
+ * Absent when the source has no slot, which a caller passing
13260
+ * `requireProfileBound` can never see.
13261
+ */
13262
+ profile: CamProfileSchema.optional(),
13263
+ /** The broker id of that slot, for logs that must name what was dialled. */
13264
+ brokerId: string().optional(),
13265
+ /**
13266
+ * The broker restream URL to dial for this stream.
13267
+ *
13268
+ * An exporter must never open the camera's own URL — the broker is the one
13269
+ * that dials the camera, and every consumer goes through its restream. So
13270
+ * the picker answers with the thing a consumer may actually use, instead of
13271
+ * naming a source and leaving each caller to look the URL up.
13272
+ */
13273
+ url: string().optional(),
13274
+ /**
13275
+ * Frames per second this stream really delivers, and where the number came
13276
+ * from.
13277
+ *
13278
+ * It is here because getting it wrong is expensive and silent: a HomeKit
13279
+ * accessory advertised 720p at 24 fps while the slot serving it ran at 9,
13280
+ * and the controller rendered nothing at all. The source is carried with the
13281
+ * value for the same reason the bitrate evidence is: `published` is what the
13282
+ * publisher declares and `measured` is what the broker observed, and they
13283
+ * are not interchangeable.
13284
+ */
13285
+ fps: number().positive().optional(),
13286
+ fpsSource: _enum(["published", "measured"]).optional()
13235
13287
  });
13236
13288
  DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), array(CameraStreamSchema).readonly()), method(object({ deviceId: number().int().nonnegative() }), array(ProfileSlotSchema).readonly()), method(object({
13237
13289
  deviceId: number().int().nonnegative(),
@@ -30,7 +30,7 @@ async function d(e) {
30
30
  }
31
31
  }
32
32
  async function f() {
33
- return l ||= d(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_orchestrator_widgets-D3QHzyg3.mjs")).catch((e) => {
33
+ return l ||= d(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_orchestrator_widgets-CLulJBL1.mjs")).catch((e) => {
34
34
  throw l = void 0, e;
35
35
  }), l;
36
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-pipeline-orchestrator",
3
- "version": "1.2.213",
3
+ "version": "1.2.215",
4
4
  "description": "Hub-side camera-to-agent load balancer — tracks runner capacity and dispatches attachCamera calls to the optimal pipeline-runner instance",
5
5
  "keywords": [
6
6
  "camstack",