@camstack/addon-tailscale 1.2.96 → 1.2.97

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.
@@ -24,7 +24,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
24
24
  enumerable: true
25
25
  }) : target, mod));
26
26
  //#endregion
27
- const require_dist = require("../dist-BtxyUtA4.js");
27
+ const require_dist = require("../dist-7OI0Ghkt.js");
28
28
  let node_child_process = require("node:child_process");
29
29
  let node_util = require("node:util");
30
30
  let node_fs = require("node:fs");
@@ -1,4 +1,4 @@
1
- import { a as EventCategory, i as BaseAddon, n as networkAccessCapability, r as BOOT_RECOVERY_BACKOFF_MS, t as meshNetworkCapability } from "../dist-CHvdQviB.mjs";
1
+ import { a as EventCategory, i as BaseAddon, n as networkAccessCapability, r as BOOT_RECOVERY_BACKOFF_MS, t as meshNetworkCapability } from "../dist-OQPhLetZ.mjs";
2
2
  import { execFile, spawn } from "node:child_process";
3
3
  import { promisify } from "node:util";
4
4
  import * as fs from "node:fs";
@@ -20364,6 +20364,14 @@ var NativeCropResultSchema = object({
20364
20364
  * set `encodeJpeg: true`; `bytes` is then absent.
20365
20365
  */
20366
20366
  jpeg: string().optional(),
20367
+ /**
20368
+ * The SAME compressed JPEG as `jpeg`, as bytes (D462). Present instead of
20369
+ * `jpeg` when the request set `acceptJpegBytes`; a request that did not gets
20370
+ * `jpeg` exactly as before. MsgPack and the mesh leg both carry binary —
20371
+ * `bytes` above has crossed this boundary as a `Uint8Array` all along — so
20372
+ * base64 was buying nothing but a multi-megabyte string in the relay's heap.
20373
+ */
20374
+ jpegBytes: _instanceof(Uint8Array).optional(),
20367
20375
  width: number().int().positive(),
20368
20376
  height: number().int().positive(),
20369
20377
  /**
@@ -20430,7 +20438,14 @@ var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
20430
20438
  })]);
20431
20439
  /** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
20432
20440
  var ParkedTrackFrameSchema = object({
20433
- jpeg: string(),
20441
+ /**
20442
+ * Base64 JPEG — the pre-D462 wire. OPTIONAL since D462: a request that set
20443
+ * `acceptJpegBytes` is answered in `jpegBytes` and this is then absent.
20444
+ * Exactly one of the two is present.
20445
+ */
20446
+ jpeg: string().optional(),
20447
+ /** The same JPEG as bytes, for a caller that declared it reads them (D462). */
20448
+ jpegBytes: _instanceof(Uint8Array).optional(),
20434
20449
  width: number().int().positive(),
20435
20450
  height: number().int().positive(),
20436
20451
  /** The frame instant the parcel shows (the caller's clock, echoed back). */
@@ -21017,6 +21032,13 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
21017
21032
  bbox: NativeCropBboxSchema,
21018
21033
  maxWidth: number().int().positive().optional(),
21019
21034
  /**
21035
+ * The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
21036
+ * back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
21037
+ * wire — never assume consent: a pre-D462 caller parses the field as
21038
+ * base64 and bytes would decode to garbage rather than fail.
21039
+ */
21040
+ acceptJpegBytes: boolean().optional(),
21041
+ /**
21020
21042
  * When `true`, the runner encodes the resolved crop to JPEG ON THE
21021
21043
  * OWNING NODE and returns it in `jpeg` (base64) INSTEAD of raw `bytes`.
21022
21044
  * Callers set this for CROSS-NODE fetches (`handle.nodeId` is a remote
@@ -21084,7 +21106,14 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
21084
21106
  }), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
21085
21107
  deviceId: number(),
21086
21108
  trackId: string(),
21087
- kind: ParkedFrameKindSchema
21109
+ kind: ParkedFrameKindSchema,
21110
+ /**
21111
+ * The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
21112
+ * back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
21113
+ * wire — never assume consent: a pre-D462 caller parses the field as
21114
+ * base64 and bytes would decode to garbage rather than fail.
21115
+ */
21116
+ acceptJpegBytes: boolean().optional()
21088
21117
  }), ParkedTrackFrameSchema.nullable()), method(object({
21089
21118
  deviceId: number(),
21090
21119
  trackId: string()
@@ -20364,6 +20364,14 @@ var NativeCropResultSchema = object({
20364
20364
  * set `encodeJpeg: true`; `bytes` is then absent.
20365
20365
  */
20366
20366
  jpeg: string().optional(),
20367
+ /**
20368
+ * The SAME compressed JPEG as `jpeg`, as bytes (D462). Present instead of
20369
+ * `jpeg` when the request set `acceptJpegBytes`; a request that did not gets
20370
+ * `jpeg` exactly as before. MsgPack and the mesh leg both carry binary —
20371
+ * `bytes` above has crossed this boundary as a `Uint8Array` all along — so
20372
+ * base64 was buying nothing but a multi-megabyte string in the relay's heap.
20373
+ */
20374
+ jpegBytes: _instanceof(Uint8Array).optional(),
20367
20375
  width: number().int().positive(),
20368
20376
  height: number().int().positive(),
20369
20377
  /**
@@ -20430,7 +20438,14 @@ var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
20430
20438
  })]);
20431
20439
  /** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
20432
20440
  var ParkedTrackFrameSchema = object({
20433
- jpeg: string(),
20441
+ /**
20442
+ * Base64 JPEG — the pre-D462 wire. OPTIONAL since D462: a request that set
20443
+ * `acceptJpegBytes` is answered in `jpegBytes` and this is then absent.
20444
+ * Exactly one of the two is present.
20445
+ */
20446
+ jpeg: string().optional(),
20447
+ /** The same JPEG as bytes, for a caller that declared it reads them (D462). */
20448
+ jpegBytes: _instanceof(Uint8Array).optional(),
20434
20449
  width: number().int().positive(),
20435
20450
  height: number().int().positive(),
20436
20451
  /** The frame instant the parcel shows (the caller's clock, echoed back). */
@@ -21017,6 +21032,13 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
21017
21032
  bbox: NativeCropBboxSchema,
21018
21033
  maxWidth: number().int().positive().optional(),
21019
21034
  /**
21035
+ * The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
21036
+ * back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
21037
+ * wire — never assume consent: a pre-D462 caller parses the field as
21038
+ * base64 and bytes would decode to garbage rather than fail.
21039
+ */
21040
+ acceptJpegBytes: boolean().optional(),
21041
+ /**
21020
21042
  * When `true`, the runner encodes the resolved crop to JPEG ON THE
21021
21043
  * OWNING NODE and returns it in `jpeg` (base64) INSTEAD of raw `bytes`.
21022
21044
  * Callers set this for CROSS-NODE fetches (`handle.nodeId` is a remote
@@ -21084,7 +21106,14 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
21084
21106
  }), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
21085
21107
  deviceId: number(),
21086
21108
  trackId: string(),
21087
- kind: ParkedFrameKindSchema
21109
+ kind: ParkedFrameKindSchema,
21110
+ /**
21111
+ * The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
21112
+ * back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
21113
+ * wire — never assume consent: a pre-D462 caller parses the field as
21114
+ * base64 and bytes would decode to garbage rather than fail.
21115
+ */
21116
+ acceptJpegBytes: boolean().optional()
21088
21117
  }), ParkedTrackFrameSchema.nullable()), method(object({
21089
21118
  deviceId: number(),
21090
21119
  trackId: string()
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_dist = require("../dist-BtxyUtA4.js");
5
+ const require_dist = require("../dist-7OI0Ghkt.js");
6
6
  let node_crypto = require("node:crypto");
7
7
  let node_child_process = require("node:child_process");
8
8
  //#region src/ingress/tailscale-cli.ts
@@ -1,4 +1,4 @@
1
- import { a as EventCategory, i as BaseAddon, n as networkAccessCapability } from "../dist-CHvdQviB.mjs";
1
+ import { a as EventCategory, i as BaseAddon, n as networkAccessCapability } from "../dist-OQPhLetZ.mjs";
2
2
  import { randomUUID } from "node:crypto";
3
3
  import { execFile } from "node:child_process";
4
4
  import { promisify } from "node:util";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-tailscale",
3
- "version": "1.2.96",
3
+ "version": "1.2.97",
4
4
  "description": "Tailscale bundle for CamStack — joins the host to a tailnet (client) and exposes the hub via Serve/Funnel (ingress). Multi-entry npm package shipping 2 addons under a single bundle.",
5
5
  "keywords": [
6
6
  "camstack",