@camstack/addon-tailscale 1.2.103 → 1.2.105

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-w8QFHMPp.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-YOWzoZRg.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
  ]);
@@ -19669,6 +19682,7 @@ var MediaFileKindEnum = _enum([
19669
19682
  "keyFrame",
19670
19683
  "keyFrameSmall",
19671
19684
  "thumbnailSmall",
19685
+ "confirmationCrop",
19672
19686
  "sceneFrame"
19673
19687
  ]);
19674
19688
  /**
@@ -21163,13 +21177,39 @@ var MotionSourceEnum = _enum([
21163
21177
  */
21164
21178
  var MotionSourcesSchema = array(MotionSourceEnum);
21165
21179
  /**
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.
21180
+ * Which root detector a camera runs — EXACTLY ONE.
21181
+ *
21182
+ * Deliberately the SAME vocabulary post-analysis already tags every detection
21183
+ * with (`DetectionSource`) rather than a second spelling of the same two
21184
+ * ideas: the value an operator picks here is the value that comes back on the
21185
+ * track, the overlay and the debug row.
21186
+ *
21187
+ * ## Why one, and why it is still an array
21188
+ *
21189
+ * Two roots on one camera is a capability nobody asked for and the operator has
21190
+ * since ruled out. It was never free: both planes feed the SAME per-device
21191
+ * stationary registry, both can promote the same parked object, and the two
21192
+ * detectors disagree about the same box by construction — which is the
21193
+ * disagreement D505 had to arbitrate. Removing the case removes the arbitration.
21194
+ *
21195
+ * The ARRAY shape survives because the stored settings and the attach payload
21196
+ * already speak it on every camera of every fleet, and a cap input that
21197
+ * suddenly refuses a stored value makes the camera un-attachable — a fail-closed
21198
+ * in the one direction that costs an operator their cameras. So the wire stays
21199
+ * tolerant and the TYPE is exact: a longer list is truncated to its first
21200
+ * element rather than refused, and `max(1)` is what every consumer can then
21201
+ * rely on.
21202
+ *
21203
+ * AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
21204
+ * a camera an operator left with no root detector — and `planDetectionSources`
21205
+ * has always said so: inventing a root for them is how a default acts without
21206
+ * anybody choosing it. Tightening this to `length(1)` broke that, and the
21207
+ * suite caught it.
21208
+ *
21209
+ * Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
21210
+ * `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
21171
21211
  */
21172
- var DetectionSourcesSchema = array(DetectionSourceSchema);
21212
+ var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
21173
21213
  /**
21174
21214
  * Input shape for `pipeline-runner.reportMotion` cap method. Exported
21175
21215
  * 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
  ]);
@@ -19669,6 +19682,7 @@ var MediaFileKindEnum = _enum([
19669
19682
  "keyFrame",
19670
19683
  "keyFrameSmall",
19671
19684
  "thumbnailSmall",
19685
+ "confirmationCrop",
19672
19686
  "sceneFrame"
19673
19687
  ]);
19674
19688
  /**
@@ -21163,13 +21177,39 @@ var MotionSourceEnum = _enum([
21163
21177
  */
21164
21178
  var MotionSourcesSchema = array(MotionSourceEnum);
21165
21179
  /**
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.
21180
+ * Which root detector a camera runs — EXACTLY ONE.
21181
+ *
21182
+ * Deliberately the SAME vocabulary post-analysis already tags every detection
21183
+ * with (`DetectionSource`) rather than a second spelling of the same two
21184
+ * ideas: the value an operator picks here is the value that comes back on the
21185
+ * track, the overlay and the debug row.
21186
+ *
21187
+ * ## Why one, and why it is still an array
21188
+ *
21189
+ * Two roots on one camera is a capability nobody asked for and the operator has
21190
+ * since ruled out. It was never free: both planes feed the SAME per-device
21191
+ * stationary registry, both can promote the same parked object, and the two
21192
+ * detectors disagree about the same box by construction — which is the
21193
+ * disagreement D505 had to arbitrate. Removing the case removes the arbitration.
21194
+ *
21195
+ * The ARRAY shape survives because the stored settings and the attach payload
21196
+ * already speak it on every camera of every fleet, and a cap input that
21197
+ * suddenly refuses a stored value makes the camera un-attachable — a fail-closed
21198
+ * in the one direction that costs an operator their cameras. So the wire stays
21199
+ * tolerant and the TYPE is exact: a longer list is truncated to its first
21200
+ * element rather than refused, and `max(1)` is what every consumer can then
21201
+ * rely on.
21202
+ *
21203
+ * AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
21204
+ * a camera an operator left with no root detector — and `planDetectionSources`
21205
+ * has always said so: inventing a root for them is how a default acts without
21206
+ * anybody choosing it. Tightening this to `length(1)` broke that, and the
21207
+ * suite caught it.
21208
+ *
21209
+ * Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
21210
+ * `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
21171
21211
  */
21172
- var DetectionSourcesSchema = array(DetectionSourceSchema);
21212
+ var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
21173
21213
  /**
21174
21214
  * Input shape for `pipeline-runner.reportMotion` cap method. Exported
21175
21215
  * 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-w8QFHMPp.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-YOWzoZRg.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.105",
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",