@camstack/addon-model-studio 1.1.123 → 1.1.124

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-cfIxlJFh.mjs";
2
+ import "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-BQaqzXT5.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-BG8GMjRc.mjs";
5
5
  import { d as _, l as v, u as y } from "./use-device-snapshot-wJ9dEWmG.mjs";
@@ -1,9 +1,9 @@
1
- import "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-cfIxlJFh.mjs";
1
+ import "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-BQaqzXT5.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.99",
6
+ version: "1.2.100",
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.179",
21
+ version: "1.2.180",
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.147",
36
+ version: "1.2.148",
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.179",
39
+ version: "1.2.180",
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.99",
48
+ version: "1.2.100",
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.147",
84
+ version: "1.2.148",
85
85
  scope: "default",
86
86
  shareConfig: {
87
87
  singleton: !0,
@@ -20959,6 +20959,14 @@ var NativeCropResultSchema = object({
20959
20959
  * set `encodeJpeg: true`; `bytes` is then absent.
20960
20960
  */
20961
20961
  jpeg: string().optional(),
20962
+ /**
20963
+ * The SAME compressed JPEG as `jpeg`, as bytes (D462). Present instead of
20964
+ * `jpeg` when the request set `acceptJpegBytes`; a request that did not gets
20965
+ * `jpeg` exactly as before. MsgPack and the mesh leg both carry binary —
20966
+ * `bytes` above has crossed this boundary as a `Uint8Array` all along — so
20967
+ * base64 was buying nothing but a multi-megabyte string in the relay's heap.
20968
+ */
20969
+ jpegBytes: _instanceof(Uint8Array).optional(),
20962
20970
  width: number().int().positive(),
20963
20971
  height: number().int().positive(),
20964
20972
  /**
@@ -21025,7 +21033,14 @@ var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
21025
21033
  })]);
21026
21034
  /** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
21027
21035
  var ParkedTrackFrameSchema = object({
21028
- jpeg: string(),
21036
+ /**
21037
+ * Base64 JPEG — the pre-D462 wire. OPTIONAL since D462: a request that set
21038
+ * `acceptJpegBytes` is answered in `jpegBytes` and this is then absent.
21039
+ * Exactly one of the two is present.
21040
+ */
21041
+ jpeg: string().optional(),
21042
+ /** The same JPEG as bytes, for a caller that declared it reads them (D462). */
21043
+ jpegBytes: _instanceof(Uint8Array).optional(),
21029
21044
  width: number().int().positive(),
21030
21045
  height: number().int().positive(),
21031
21046
  /** The frame instant the parcel shows (the caller's clock, echoed back). */
@@ -21612,6 +21627,13 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
21612
21627
  bbox: NativeCropBboxSchema,
21613
21628
  maxWidth: number().int().positive().optional(),
21614
21629
  /**
21630
+ * The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
21631
+ * back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
21632
+ * wire — never assume consent: a pre-D462 caller parses the field as
21633
+ * base64 and bytes would decode to garbage rather than fail.
21634
+ */
21635
+ acceptJpegBytes: boolean().optional(),
21636
+ /**
21615
21637
  * When `true`, the runner encodes the resolved crop to JPEG ON THE
21616
21638
  * OWNING NODE and returns it in `jpeg` (base64) INSTEAD of raw `bytes`.
21617
21639
  * Callers set this for CROSS-NODE fetches (`handle.nodeId` is a remote
@@ -21679,7 +21701,14 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
21679
21701
  }), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
21680
21702
  deviceId: number(),
21681
21703
  trackId: string(),
21682
- kind: ParkedFrameKindSchema
21704
+ kind: ParkedFrameKindSchema,
21705
+ /**
21706
+ * The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
21707
+ * back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
21708
+ * wire — never assume consent: a pre-D462 caller parses the field as
21709
+ * base64 and bytes would decode to garbage rather than fail.
21710
+ */
21711
+ acceptJpegBytes: boolean().optional()
21683
21712
  }), ParkedTrackFrameSchema.nullable()), method(object({
21684
21713
  deviceId: number(),
21685
21714
  trackId: string()
@@ -20938,6 +20938,14 @@ var NativeCropResultSchema = object({
20938
20938
  * set `encodeJpeg: true`; `bytes` is then absent.
20939
20939
  */
20940
20940
  jpeg: string().optional(),
20941
+ /**
20942
+ * The SAME compressed JPEG as `jpeg`, as bytes (D462). Present instead of
20943
+ * `jpeg` when the request set `acceptJpegBytes`; a request that did not gets
20944
+ * `jpeg` exactly as before. MsgPack and the mesh leg both carry binary —
20945
+ * `bytes` above has crossed this boundary as a `Uint8Array` all along — so
20946
+ * base64 was buying nothing but a multi-megabyte string in the relay's heap.
20947
+ */
20948
+ jpegBytes: _instanceof(Uint8Array).optional(),
20941
20949
  width: number().int().positive(),
20942
20950
  height: number().int().positive(),
20943
20951
  /**
@@ -21004,7 +21012,14 @@ var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
21004
21012
  })]);
21005
21013
  /** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
21006
21014
  var ParkedTrackFrameSchema = object({
21007
- jpeg: string(),
21015
+ /**
21016
+ * Base64 JPEG — the pre-D462 wire. OPTIONAL since D462: a request that set
21017
+ * `acceptJpegBytes` is answered in `jpegBytes` and this is then absent.
21018
+ * Exactly one of the two is present.
21019
+ */
21020
+ jpeg: string().optional(),
21021
+ /** The same JPEG as bytes, for a caller that declared it reads them (D462). */
21022
+ jpegBytes: _instanceof(Uint8Array).optional(),
21008
21023
  width: number().int().positive(),
21009
21024
  height: number().int().positive(),
21010
21025
  /** The frame instant the parcel shows (the caller's clock, echoed back). */
@@ -21591,6 +21606,13 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
21591
21606
  bbox: NativeCropBboxSchema,
21592
21607
  maxWidth: number().int().positive().optional(),
21593
21608
  /**
21609
+ * The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
21610
+ * back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
21611
+ * wire — never assume consent: a pre-D462 caller parses the field as
21612
+ * base64 and bytes would decode to garbage rather than fail.
21613
+ */
21614
+ acceptJpegBytes: boolean().optional(),
21615
+ /**
21594
21616
  * When `true`, the runner encodes the resolved crop to JPEG ON THE
21595
21617
  * OWNING NODE and returns it in `jpeg` (base64) INSTEAD of raw `bytes`.
21596
21618
  * Callers set this for CROSS-NODE fetches (`handle.nodeId` is a remote
@@ -21658,7 +21680,14 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
21658
21680
  }), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
21659
21681
  deviceId: number(),
21660
21682
  trackId: string(),
21661
- kind: ParkedFrameKindSchema
21683
+ kind: ParkedFrameKindSchema,
21684
+ /**
21685
+ * The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
21686
+ * back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
21687
+ * wire — never assume consent: a pre-D462 caller parses the field as
21688
+ * base64 and bytes would decode to garbage rather than fail.
21689
+ */
21690
+ acceptJpegBytes: boolean().optional()
21662
21691
  }), ParkedTrackFrameSchema.nullable()), method(object({
21663
21692
  deviceId: number(),
21664
21693
  trackId: string()
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-cfIxlJFh.mjs";
1
+ import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-BQaqzXT5.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-T6oUJS05.mjs")).catch((e) => {
2756
+ return tr ||= rr(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-DOixvj3G.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.123",
3
+ "version": "1.1.124",
4
4
  "description": "Custom detection model registry, conversion & distribution for CamStack",
5
5
  "keywords": [
6
6
  "camstack",