@camstack/addon-ai 0.4.99 → 0.4.101

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/addon.js CHANGED
@@ -20627,6 +20627,14 @@ var NativeCropResultSchema = object({
20627
20627
  * set `encodeJpeg: true`; `bytes` is then absent.
20628
20628
  */
20629
20629
  jpeg: string().optional(),
20630
+ /**
20631
+ * The SAME compressed JPEG as `jpeg`, as bytes (D462). Present instead of
20632
+ * `jpeg` when the request set `acceptJpegBytes`; a request that did not gets
20633
+ * `jpeg` exactly as before. MsgPack and the mesh leg both carry binary —
20634
+ * `bytes` above has crossed this boundary as a `Uint8Array` all along — so
20635
+ * base64 was buying nothing but a multi-megabyte string in the relay's heap.
20636
+ */
20637
+ jpegBytes: _instanceof(Uint8Array).optional(),
20630
20638
  width: number$1().int().positive(),
20631
20639
  height: number$1().int().positive(),
20632
20640
  /**
@@ -20693,7 +20701,14 @@ var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
20693
20701
  })]);
20694
20702
  /** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
20695
20703
  var ParkedTrackFrameSchema = object({
20696
- jpeg: string(),
20704
+ /**
20705
+ * Base64 JPEG — the pre-D462 wire. OPTIONAL since D462: a request that set
20706
+ * `acceptJpegBytes` is answered in `jpegBytes` and this is then absent.
20707
+ * Exactly one of the two is present.
20708
+ */
20709
+ jpeg: string().optional(),
20710
+ /** The same JPEG as bytes, for a caller that declared it reads them (D462). */
20711
+ jpegBytes: _instanceof(Uint8Array).optional(),
20697
20712
  width: number$1().int().positive(),
20698
20713
  height: number$1().int().positive(),
20699
20714
  /** The frame instant the parcel shows (the caller's clock, echoed back). */
@@ -21280,6 +21295,13 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
21280
21295
  bbox: NativeCropBboxSchema,
21281
21296
  maxWidth: number$1().int().positive().optional(),
21282
21297
  /**
21298
+ * The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
21299
+ * back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
21300
+ * wire — never assume consent: a pre-D462 caller parses the field as
21301
+ * base64 and bytes would decode to garbage rather than fail.
21302
+ */
21303
+ acceptJpegBytes: boolean().optional(),
21304
+ /**
21283
21305
  * When `true`, the runner encodes the resolved crop to JPEG ON THE
21284
21306
  * OWNING NODE and returns it in `jpeg` (base64) INSTEAD of raw `bytes`.
21285
21307
  * Callers set this for CROSS-NODE fetches (`handle.nodeId` is a remote
@@ -21347,7 +21369,14 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
21347
21369
  }), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
21348
21370
  deviceId: number$1(),
21349
21371
  trackId: string(),
21350
- kind: ParkedFrameKindSchema
21372
+ kind: ParkedFrameKindSchema,
21373
+ /**
21374
+ * The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
21375
+ * back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
21376
+ * wire — never assume consent: a pre-D462 caller parses the field as
21377
+ * base64 and bytes would decode to garbage rather than fail.
21378
+ */
21379
+ acceptJpegBytes: boolean().optional()
21351
21380
  }), ParkedTrackFrameSchema.nullable()), method(object({
21352
21381
  deviceId: number$1(),
21353
21382
  trackId: string()
package/dist/addon.mjs CHANGED
@@ -20654,6 +20654,14 @@ var NativeCropResultSchema = object({
20654
20654
  * set `encodeJpeg: true`; `bytes` is then absent.
20655
20655
  */
20656
20656
  jpeg: string().optional(),
20657
+ /**
20658
+ * The SAME compressed JPEG as `jpeg`, as bytes (D462). Present instead of
20659
+ * `jpeg` when the request set `acceptJpegBytes`; a request that did not gets
20660
+ * `jpeg` exactly as before. MsgPack and the mesh leg both carry binary —
20661
+ * `bytes` above has crossed this boundary as a `Uint8Array` all along — so
20662
+ * base64 was buying nothing but a multi-megabyte string in the relay's heap.
20663
+ */
20664
+ jpegBytes: _instanceof(Uint8Array).optional(),
20657
20665
  width: number$1().int().positive(),
20658
20666
  height: number$1().int().positive(),
20659
20667
  /**
@@ -20720,7 +20728,14 @@ var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
20720
20728
  })]);
20721
20729
  /** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
20722
20730
  var ParkedTrackFrameSchema = object({
20723
- jpeg: string(),
20731
+ /**
20732
+ * Base64 JPEG — the pre-D462 wire. OPTIONAL since D462: a request that set
20733
+ * `acceptJpegBytes` is answered in `jpegBytes` and this is then absent.
20734
+ * Exactly one of the two is present.
20735
+ */
20736
+ jpeg: string().optional(),
20737
+ /** The same JPEG as bytes, for a caller that declared it reads them (D462). */
20738
+ jpegBytes: _instanceof(Uint8Array).optional(),
20724
20739
  width: number$1().int().positive(),
20725
20740
  height: number$1().int().positive(),
20726
20741
  /** The frame instant the parcel shows (the caller's clock, echoed back). */
@@ -21307,6 +21322,13 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
21307
21322
  bbox: NativeCropBboxSchema,
21308
21323
  maxWidth: number$1().int().positive().optional(),
21309
21324
  /**
21325
+ * The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
21326
+ * back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
21327
+ * wire — never assume consent: a pre-D462 caller parses the field as
21328
+ * base64 and bytes would decode to garbage rather than fail.
21329
+ */
21330
+ acceptJpegBytes: boolean().optional(),
21331
+ /**
21310
21332
  * When `true`, the runner encodes the resolved crop to JPEG ON THE
21311
21333
  * OWNING NODE and returns it in `jpeg` (base64) INSTEAD of raw `bytes`.
21312
21334
  * Callers set this for CROSS-NODE fetches (`handle.nodeId` is a remote
@@ -21374,7 +21396,14 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
21374
21396
  }), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
21375
21397
  deviceId: number$1(),
21376
21398
  trackId: string(),
21377
- kind: ParkedFrameKindSchema
21399
+ kind: ParkedFrameKindSchema,
21400
+ /**
21401
+ * The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
21402
+ * back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
21403
+ * wire — never assume consent: a pre-D462 caller parses the field as
21404
+ * base64 and bytes would decode to garbage rather than fail.
21405
+ */
21406
+ acceptJpegBytes: boolean().optional()
21378
21407
  }), ParkedTrackFrameSchema.nullable()), method(object({
21379
21408
  deviceId: number$1(),
21380
21409
  trackId: string()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-ai",
3
- "version": "0.4.99",
3
+ "version": "0.4.101",
4
4
  "description": "AI addon for CamStack — the `llm` collection provider (cloud, LAN, and camstack-managed local llama.cpp profiles) plus the per-node `llm-runtime` managed executor.",
5
5
  "keywords": [
6
6
  "camstack",