@camstack/addon-tailscale 1.2.103 → 1.2.104

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--IlqSQuX.js");
27
+ const require_dist = require("../dist-CimxBsE_.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-BXOKgV-B.mjs";
1
+ import { a as EventCategory, i as BaseAddon, n as networkAccessCapability, r as BOOT_RECOVERY_BACKOFF_MS, t as meshNetworkCapability } from "../dist-CQ9xsWl-.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";
@@ -19075,13 +19075,26 @@ var TrackAudioLabelSchema = object({
19075
19075
  * - `audio` — an audio event on the camera itself that was anomalous for
19076
19076
  * THAT camera, loud, and heard while nothing visual was happening (D62).
19077
19077
  *
19078
+ * - `onboard` — the CAMERA's own firmware, paired with a decoded frame in
19079
+ * that frame's pixel space. A real root detector and a SPATIAL one: its
19080
+ * boxes are the same kind of fact `pipeline`'s are, produced by a different
19081
+ * detector.
19082
+ *
19083
+ * `onboard` was missing here while `DetectionSourceSchema` already had it, so
19084
+ * a persisted onboard track failed `safeParse` on read and came back with NO
19085
+ * source at all — which `isSpatialTrack` then admitted by accident, through the
19086
+ * `undefined` arm rather than by anybody's decision, and which `excludeSources`
19087
+ * could not name.
19088
+ *
19078
19089
  * The spatial subsystems (tracker association, occupancy count, re-id /
19079
19090
  * embedding, resurrection) MUST skip every synthetic source. Test for that
19080
- * with `isSpatialTrack`, which allow-lists `pipeline` — a `!== 'sensor'`
19081
- * check silently readmits every source added after it was written.
19091
+ * with `isSpatialTrack`, which allow-lists the spatial sources explicitly — a
19092
+ * `!== 'sensor'` check silently readmits every source added after it was
19093
+ * written.
19082
19094
  */
19083
19095
  var TrackSourceSchema = _enum([
19084
19096
  "pipeline",
19097
+ "onboard",
19085
19098
  "sensor",
19086
19099
  "audio"
19087
19100
  ]);
@@ -21163,13 +21176,39 @@ var MotionSourceEnum = _enum([
21163
21176
  */
21164
21177
  var MotionSourcesSchema = array(MotionSourceEnum);
21165
21178
  /**
21166
- * Which root detectors a camera runs. Deliberately the SAME vocabulary
21167
- * post-analysis already tags every detection with (`DetectionSource`) rather
21168
- * than a second spelling of the same two ideas — the value an operator picks
21169
- * here is the value that comes back on the track, the overlay and the debug
21170
- * row.
21179
+ * Which root detector a camera runs — EXACTLY ONE.
21180
+ *
21181
+ * Deliberately the SAME vocabulary post-analysis already tags every detection
21182
+ * with (`DetectionSource`) rather than a second spelling of the same two
21183
+ * ideas: the value an operator picks here is the value that comes back on the
21184
+ * track, the overlay and the debug row.
21185
+ *
21186
+ * ## Why one, and why it is still an array
21187
+ *
21188
+ * Two roots on one camera is a capability nobody asked for and the operator has
21189
+ * since ruled out. It was never free: both planes feed the SAME per-device
21190
+ * stationary registry, both can promote the same parked object, and the two
21191
+ * detectors disagree about the same box by construction — which is the
21192
+ * disagreement D505 had to arbitrate. Removing the case removes the arbitration.
21193
+ *
21194
+ * The ARRAY shape survives because the stored settings and the attach payload
21195
+ * already speak it on every camera of every fleet, and a cap input that
21196
+ * suddenly refuses a stored value makes the camera un-attachable — a fail-closed
21197
+ * in the one direction that costs an operator their cameras. So the wire stays
21198
+ * tolerant and the TYPE is exact: a longer list is truncated to its first
21199
+ * element rather than refused, and `max(1)` is what every consumer can then
21200
+ * rely on.
21201
+ *
21202
+ * AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
21203
+ * a camera an operator left with no root detector — and `planDetectionSources`
21204
+ * has always said so: inventing a root for them is how a default acts without
21205
+ * anybody choosing it. Tightening this to `length(1)` broke that, and the
21206
+ * suite caught it.
21207
+ *
21208
+ * Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
21209
+ * `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
21171
21210
  */
21172
- var DetectionSourcesSchema = array(DetectionSourceSchema);
21211
+ var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
21173
21212
  /**
21174
21213
  * Input shape for `pipeline-runner.reportMotion` cap method. Exported
21175
21214
  * so cap-side consumers (the orchestrator forward, the runner addon's
@@ -19075,13 +19075,26 @@ var TrackAudioLabelSchema = object({
19075
19075
  * - `audio` — an audio event on the camera itself that was anomalous for
19076
19076
  * THAT camera, loud, and heard while nothing visual was happening (D62).
19077
19077
  *
19078
+ * - `onboard` — the CAMERA's own firmware, paired with a decoded frame in
19079
+ * that frame's pixel space. A real root detector and a SPATIAL one: its
19080
+ * boxes are the same kind of fact `pipeline`'s are, produced by a different
19081
+ * detector.
19082
+ *
19083
+ * `onboard` was missing here while `DetectionSourceSchema` already had it, so
19084
+ * a persisted onboard track failed `safeParse` on read and came back with NO
19085
+ * source at all — which `isSpatialTrack` then admitted by accident, through the
19086
+ * `undefined` arm rather than by anybody's decision, and which `excludeSources`
19087
+ * could not name.
19088
+ *
19078
19089
  * The spatial subsystems (tracker association, occupancy count, re-id /
19079
19090
  * embedding, resurrection) MUST skip every synthetic source. Test for that
19080
- * with `isSpatialTrack`, which allow-lists `pipeline` — a `!== 'sensor'`
19081
- * check silently readmits every source added after it was written.
19091
+ * with `isSpatialTrack`, which allow-lists the spatial sources explicitly — a
19092
+ * `!== 'sensor'` check silently readmits every source added after it was
19093
+ * written.
19082
19094
  */
19083
19095
  var TrackSourceSchema = _enum([
19084
19096
  "pipeline",
19097
+ "onboard",
19085
19098
  "sensor",
19086
19099
  "audio"
19087
19100
  ]);
@@ -21163,13 +21176,39 @@ var MotionSourceEnum = _enum([
21163
21176
  */
21164
21177
  var MotionSourcesSchema = array(MotionSourceEnum);
21165
21178
  /**
21166
- * Which root detectors a camera runs. Deliberately the SAME vocabulary
21167
- * post-analysis already tags every detection with (`DetectionSource`) rather
21168
- * than a second spelling of the same two ideas — the value an operator picks
21169
- * here is the value that comes back on the track, the overlay and the debug
21170
- * row.
21179
+ * Which root detector a camera runs — EXACTLY ONE.
21180
+ *
21181
+ * Deliberately the SAME vocabulary post-analysis already tags every detection
21182
+ * with (`DetectionSource`) rather than a second spelling of the same two
21183
+ * ideas: the value an operator picks here is the value that comes back on the
21184
+ * track, the overlay and the debug row.
21185
+ *
21186
+ * ## Why one, and why it is still an array
21187
+ *
21188
+ * Two roots on one camera is a capability nobody asked for and the operator has
21189
+ * since ruled out. It was never free: both planes feed the SAME per-device
21190
+ * stationary registry, both can promote the same parked object, and the two
21191
+ * detectors disagree about the same box by construction — which is the
21192
+ * disagreement D505 had to arbitrate. Removing the case removes the arbitration.
21193
+ *
21194
+ * The ARRAY shape survives because the stored settings and the attach payload
21195
+ * already speak it on every camera of every fleet, and a cap input that
21196
+ * suddenly refuses a stored value makes the camera un-attachable — a fail-closed
21197
+ * in the one direction that costs an operator their cameras. So the wire stays
21198
+ * tolerant and the TYPE is exact: a longer list is truncated to its first
21199
+ * element rather than refused, and `max(1)` is what every consumer can then
21200
+ * rely on.
21201
+ *
21202
+ * AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
21203
+ * a camera an operator left with no root detector — and `planDetectionSources`
21204
+ * has always said so: inventing a root for them is how a default acts without
21205
+ * anybody choosing it. Tightening this to `length(1)` broke that, and the
21206
+ * suite caught it.
21207
+ *
21208
+ * Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
21209
+ * `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
21171
21210
  */
21172
- var DetectionSourcesSchema = array(DetectionSourceSchema);
21211
+ var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
21173
21212
  /**
21174
21213
  * Input shape for `pipeline-runner.reportMotion` cap method. Exported
21175
21214
  * so cap-side consumers (the orchestrator forward, the runner addon's
@@ -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--IlqSQuX.js");
5
+ const require_dist = require("../dist-CimxBsE_.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-BXOKgV-B.mjs";
1
+ import { a as EventCategory, i as BaseAddon, n as networkAccessCapability } from "../dist-CQ9xsWl-.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.103",
3
+ "version": "1.2.104",
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",