@camstack/addon-model-studio 1.1.136 → 1.1.138

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.
package/dist/_stub.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./virtualExposes-CWSi4E_g.mjs";
2
- import "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-B_l0jp8g.mjs";
2
+ import "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-CM3krfBC.mjs";
3
3
  import { _ as e, c as t, d as n, h as r, i, l as a, m as o, p as s, r as c, t as l, u, y as d } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react__loadShare__.js-DJDHChgO.mjs";
4
4
  import { a as f, i as p, o as m, r as h, s as g } from "./responsive-8-xrhADg.mjs";
5
5
  import { d as _, l as v, u as y } from "./use-device-snapshot-BJO0wrqY.mjs";
@@ -1,9 +1,9 @@
1
- import "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-B_l0jp8g.mjs";
1
+ import "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-CM3krfBC.mjs";
2
2
  //#region \0virtual:mf-localSharedImportMap:__mfe_internal__addon_model_studio_page
3
3
  var e = {
4
4
  "@camstack/sdk": {
5
5
  name: "@camstack/sdk",
6
- version: "1.2.110",
6
+ version: "1.2.111",
7
7
  scope: ["default"],
8
8
  loaded: !1,
9
9
  from: "addon_model_studio_page",
@@ -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.205",
22
22
  scope: ["default"],
23
23
  loaded: !1,
24
24
  from: "addon_model_studio_page",
@@ -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.170",
37
37
  scope: ["default"],
38
38
  loaded: !1,
39
39
  from: "addon_model_studio_page",
@@ -36,7 +36,7 @@ async function r() {
36
36
  }
37
37
  },
38
38
  "@camstack/types": {
39
- version: "1.2.204",
39
+ version: "1.2.205",
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.111",
49
49
  scope: "default",
50
50
  shareConfig: {
51
51
  singleton: !0,
@@ -81,7 +81,7 @@ async function r() {
81
81
  }
82
82
  },
83
83
  "@camstack/ui-library": {
84
- version: "1.2.169",
84
+ version: "1.2.170",
85
85
  scope: "default",
86
86
  shareConfig: {
87
87
  singleton: !0,
@@ -12870,7 +12870,23 @@ var PickStreamRequirementsSchema = object({
12870
12870
  * This is what lets one picker serve both the bypass and the full source
12871
12871
  * choice, instead of a consumer scoring privately when the bypass misses.
12872
12872
  */
12873
- allowTranscode: boolean().optional()
12873
+ allowTranscode: boolean().optional(),
12874
+ /**
12875
+ * Consider ONLY streams the broker has bound to a profile slot.
12876
+ *
12877
+ * A consumer that dials the broker — which is every exporter, since none
12878
+ * of them may open the camera's own URL — can do nothing with a source
12879
+ * that has no slot: there is no restream to dial. Without this the picker
12880
+ * can name such a stream, and each consumer discovers the dead end for
12881
+ * itself: Alexa's `profileForCamStream` returns `null` and it quietly
12882
+ * falls back, and HomeKit would have had to grow the same function again.
12883
+ *
12884
+ * Default `false`, and deliberately so: the BROKER itself picks through
12885
+ * here when it decides which source to BIND to a slot
12886
+ * (`computeInitialAssignment`), and it must see the unbound ones or it
12887
+ * could never bind them.
12888
+ */
12889
+ requireProfileBound: boolean().optional()
12874
12890
  }).readonly();
12875
12891
  var PickStreamPreferencesSchema = object({
12876
12892
  /**
@@ -12911,7 +12927,43 @@ var PickedCamStreamSchema = object({
12911
12927
  */
12912
12928
  transcodes: boolean(),
12913
12929
  /** One-line explanation of why this stream won — for logs / debug UI. */
12914
- reason: string()
12930
+ reason: string(),
12931
+ /**
12932
+ * The broker profile slot this source is bound to, when it is bound.
12933
+ *
12934
+ * Answered HERE because every consumer needs it and none of them can get it
12935
+ * from the `camStreamId` alone. Alexa wrote `profileForCamStream` for it —
12936
+ * a second cap read plus a `null` branch — and HomeKit was about to write
12937
+ * the same function a second time.
12938
+ *
12939
+ * Absent when the source has no slot, which a caller passing
12940
+ * `requireProfileBound` can never see.
12941
+ */
12942
+ profile: CamProfileSchema.optional(),
12943
+ /** The broker id of that slot, for logs that must name what was dialled. */
12944
+ brokerId: string().optional(),
12945
+ /**
12946
+ * The broker restream URL to dial for this stream.
12947
+ *
12948
+ * An exporter must never open the camera's own URL — the broker is the one
12949
+ * that dials the camera, and every consumer goes through its restream. So
12950
+ * the picker answers with the thing a consumer may actually use, instead of
12951
+ * naming a source and leaving each caller to look the URL up.
12952
+ */
12953
+ url: string().optional(),
12954
+ /**
12955
+ * Frames per second this stream really delivers, and where the number came
12956
+ * from.
12957
+ *
12958
+ * It is here because getting it wrong is expensive and silent: a HomeKit
12959
+ * accessory advertised 720p at 24 fps while the slot serving it ran at 9,
12960
+ * and the controller rendered nothing at all. The source is carried with the
12961
+ * value for the same reason the bitrate evidence is: `published` is what the
12962
+ * publisher declares and `measured` is what the broker observed, and they
12963
+ * are not interchangeable.
12964
+ */
12965
+ fps: number().positive().optional(),
12966
+ fpsSource: _enum(["published", "measured"]).optional()
12915
12967
  });
12916
12968
  DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), array(CameraStreamSchema).readonly()), method(object({ deviceId: number().int().nonnegative() }), array(ProfileSlotSchema).readonly()), method(object({
12917
12969
  deviceId: number().int().nonnegative(),
@@ -12849,7 +12849,23 @@ var PickStreamRequirementsSchema = object({
12849
12849
  * This is what lets one picker serve both the bypass and the full source
12850
12850
  * choice, instead of a consumer scoring privately when the bypass misses.
12851
12851
  */
12852
- allowTranscode: boolean().optional()
12852
+ allowTranscode: boolean().optional(),
12853
+ /**
12854
+ * Consider ONLY streams the broker has bound to a profile slot.
12855
+ *
12856
+ * A consumer that dials the broker — which is every exporter, since none
12857
+ * of them may open the camera's own URL — can do nothing with a source
12858
+ * that has no slot: there is no restream to dial. Without this the picker
12859
+ * can name such a stream, and each consumer discovers the dead end for
12860
+ * itself: Alexa's `profileForCamStream` returns `null` and it quietly
12861
+ * falls back, and HomeKit would have had to grow the same function again.
12862
+ *
12863
+ * Default `false`, and deliberately so: the BROKER itself picks through
12864
+ * here when it decides which source to BIND to a slot
12865
+ * (`computeInitialAssignment`), and it must see the unbound ones or it
12866
+ * could never bind them.
12867
+ */
12868
+ requireProfileBound: boolean().optional()
12853
12869
  }).readonly();
12854
12870
  var PickStreamPreferencesSchema = object({
12855
12871
  /**
@@ -12890,7 +12906,43 @@ var PickedCamStreamSchema = object({
12890
12906
  */
12891
12907
  transcodes: boolean(),
12892
12908
  /** One-line explanation of why this stream won — for logs / debug UI. */
12893
- reason: string()
12909
+ reason: string(),
12910
+ /**
12911
+ * The broker profile slot this source is bound to, when it is bound.
12912
+ *
12913
+ * Answered HERE because every consumer needs it and none of them can get it
12914
+ * from the `camStreamId` alone. Alexa wrote `profileForCamStream` for it —
12915
+ * a second cap read plus a `null` branch — and HomeKit was about to write
12916
+ * the same function a second time.
12917
+ *
12918
+ * Absent when the source has no slot, which a caller passing
12919
+ * `requireProfileBound` can never see.
12920
+ */
12921
+ profile: CamProfileSchema.optional(),
12922
+ /** The broker id of that slot, for logs that must name what was dialled. */
12923
+ brokerId: string().optional(),
12924
+ /**
12925
+ * The broker restream URL to dial for this stream.
12926
+ *
12927
+ * An exporter must never open the camera's own URL — the broker is the one
12928
+ * that dials the camera, and every consumer goes through its restream. So
12929
+ * the picker answers with the thing a consumer may actually use, instead of
12930
+ * naming a source and leaving each caller to look the URL up.
12931
+ */
12932
+ url: string().optional(),
12933
+ /**
12934
+ * Frames per second this stream really delivers, and where the number came
12935
+ * from.
12936
+ *
12937
+ * It is here because getting it wrong is expensive and silent: a HomeKit
12938
+ * accessory advertised 720p at 24 fps while the slot serving it ran at 9,
12939
+ * and the controller rendered nothing at all. The source is carried with the
12940
+ * value for the same reason the bitrate evidence is: `published` is what the
12941
+ * publisher declares and `measured` is what the broker observed, and they
12942
+ * are not interchangeable.
12943
+ */
12944
+ fps: number().positive().optional(),
12945
+ fpsSource: _enum(["published", "measured"]).optional()
12894
12946
  });
12895
12947
  DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), array(CameraStreamSchema).readonly()), method(object({ deviceId: number().int().nonnegative() }), array(ProfileSlotSchema).readonly()), method(object({
12896
12948
  deviceId: number().int().nonnegative(),
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-B_l0jp8g.mjs";
1
+ import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-CM3krfBC.mjs";
2
2
  export { t as get, e as init };
@@ -2753,7 +2753,7 @@ async function rr(e) {
2753
2753
  }
2754
2754
  }
2755
2755
  async function ir() {
2756
- return tr ||= rr(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-ngA_ggJx.mjs")).catch((e) => {
2756
+ return tr ||= rr(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-mFezx4ss.mjs")).catch((e) => {
2757
2757
  throw tr = void 0, e;
2758
2758
  }), tr;
2759
2759
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-model-studio",
3
- "version": "1.1.136",
3
+ "version": "1.1.138",
4
4
  "description": "Custom detection model registry, conversion & distribution for CamStack",
5
5
  "keywords": [
6
6
  "camstack",