@camstack/addon-tailscale 1.2.88 → 1.2.90

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-XKXst1IW.js");
27
+ const require_dist = require("../dist-DvJMHeGc.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-CluHgSCs.mjs";
1
+ import { a as EventCategory, i as BaseAddon, n as networkAccessCapability, r as BOOT_RECOVERY_BACKOFF_MS, t as meshNetworkCapability } from "../dist-CUQ2MTx9.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";
@@ -20378,6 +20378,22 @@ var occupancyRecheckFramesField = {
20378
20378
  step: 1
20379
20379
  };
20380
20380
  /**
20381
+ * Frames one PRE-ROLL catch-up burst may send to inference at session open.
20382
+ *
20383
+ * The default of 12 over a ~4 s retained window is one frame per ~333 ms of
20384
+ * footage, and costs ~480 ms of ONE inference permit at the 40 ms/frame this
20385
+ * fleet measures — one-shot, and only ever taken while a permit would still be
20386
+ * spare for live. `0` turns the burst off entirely (the history is still
20387
+ * decoded, because that is how the dial reaches a decodable GOP, and is then
20388
+ * discarded — the pre-D411 behaviour).
20389
+ */
20390
+ var preRollInferenceFramesField = {
20391
+ min: 0,
20392
+ max: 30,
20393
+ default: 12,
20394
+ step: 1
20395
+ };
20396
+ /**
20381
20397
  * Source enum for motion signals fed to the runner. Extensible — add
20382
20398
  * new variants here when new motion-trigger paths are wired in
20383
20399
  * (`wasm-cross-camera`, `event-bus-relay`, etc.). The runner uses
@@ -20618,6 +20634,31 @@ var RunnerCameraConfigSchema = object({
20618
20634
  * to every occupancy rule until something moved in front of it. The churn is
20619
20635
  * now paid on the interval instead — see `occupancyRecheckSecField`.
20620
20636
  */
20637
+ /**
20638
+ * Infer the session's PRE-ROLL — the retained history the restreamer replays
20639
+ * at session open — instead of decoding it and throwing it away.
20640
+ *
20641
+ * DEFAULT `true`, and the default is the argument. This is not a new
20642
+ * capability being offered cautiously: the pre-roll is ALREADY requested,
20643
+ * already served, already decoded and already paid for on every on-motion
20644
+ * detection session that asks for history. What shipped was a last-moment
20645
+ * discard — `FrameSlot`'s throttle compares wall clocks, and ~4 s of media
20646
+ * arriving inside a few hundred ms of wall clock looks to it like one frame's
20647
+ * worth. Device 617, 2026-09-08: a re-run of the SAME model over the stored
20648
+ * recording scored the subject `vehicle 0.5669` — above the 0.50 floor —
20649
+ * 1.68 s BEFORE the live track was born, on a frame that was in the pre-roll,
20650
+ * was decoded, and was freed.
20651
+ *
20652
+ * Shipping that as opt-in would ship the bug: an operator cannot discover a
20653
+ * setting whose absence looks exactly like a camera that noticed the cyclist
20654
+ * late. What makes ON safe is not a switch but the BOUND —
20655
+ * `preRollInferenceFrames`, a wall-clock ceiling, and a lane that never takes
20656
+ * the last inference permit — so the switch exists for the camera where the
20657
+ * history is worthless (a doorbell whose subject is always already at the
20658
+ * door), not as a hedge against the feature.
20659
+ */
20660
+ preRollInferenceEnabled: boolean().default(true),
20661
+ preRollInferenceFrames: number().min(preRollInferenceFramesField.min).max(preRollInferenceFramesField.max).default(preRollInferenceFramesField.default),
20621
20662
  occupancyRecheckEnabled: boolean().default(true),
20622
20663
  occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
20623
20664
  occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
@@ -20646,7 +20687,7 @@ var RunnerCameraConfigSchema = object({
20646
20687
  */
20647
20688
  inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
20648
20689
  });
20649
- motionFpsField.min, motionFpsField.max, motionFpsField.step, motionFpsField.default, detectionFpsField.min, detectionFpsField.max, detectionFpsField.step, detectionFpsField.default, motionCooldownMsField.min, motionCooldownMsField.max, motionCooldownMsField.step, motionCooldownMsField.default, maxSessionHoldMsField.min, maxSessionHoldMsField.max, maxSessionHoldMsField.step, maxSessionHoldMsField.default, audioMotionWindowMsField.min, audioMotionWindowMsField.max, audioMotionWindowMsField.step, audioMotionWindowMsField.default, occupancyRecheckSecField.min, occupancyRecheckSecField.max, occupancyRecheckSecField.step, occupancyRecheckSecField.default, occupancyRecheckFramesField.min, occupancyRecheckFramesField.max, occupancyRecheckFramesField.step, occupancyRecheckFramesField.default;
20690
+ motionFpsField.min, motionFpsField.max, motionFpsField.step, motionFpsField.default, detectionFpsField.min, detectionFpsField.max, detectionFpsField.step, detectionFpsField.default, motionCooldownMsField.min, motionCooldownMsField.max, motionCooldownMsField.step, motionCooldownMsField.default, maxSessionHoldMsField.min, maxSessionHoldMsField.max, maxSessionHoldMsField.step, maxSessionHoldMsField.default, audioMotionWindowMsField.min, audioMotionWindowMsField.max, audioMotionWindowMsField.step, audioMotionWindowMsField.default, preRollInferenceFramesField.min, preRollInferenceFramesField.max, preRollInferenceFramesField.step, preRollInferenceFramesField.default, occupancyRecheckSecField.min, occupancyRecheckSecField.max, occupancyRecheckSecField.step, occupancyRecheckSecField.default, occupancyRecheckFramesField.min, occupancyRecheckFramesField.max, occupancyRecheckFramesField.step, occupancyRecheckFramesField.default;
20650
20691
  /**
20651
20692
  * Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
20652
20693
  * load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
@@ -20378,6 +20378,22 @@ var occupancyRecheckFramesField = {
20378
20378
  step: 1
20379
20379
  };
20380
20380
  /**
20381
+ * Frames one PRE-ROLL catch-up burst may send to inference at session open.
20382
+ *
20383
+ * The default of 12 over a ~4 s retained window is one frame per ~333 ms of
20384
+ * footage, and costs ~480 ms of ONE inference permit at the 40 ms/frame this
20385
+ * fleet measures — one-shot, and only ever taken while a permit would still be
20386
+ * spare for live. `0` turns the burst off entirely (the history is still
20387
+ * decoded, because that is how the dial reaches a decodable GOP, and is then
20388
+ * discarded — the pre-D411 behaviour).
20389
+ */
20390
+ var preRollInferenceFramesField = {
20391
+ min: 0,
20392
+ max: 30,
20393
+ default: 12,
20394
+ step: 1
20395
+ };
20396
+ /**
20381
20397
  * Source enum for motion signals fed to the runner. Extensible — add
20382
20398
  * new variants here when new motion-trigger paths are wired in
20383
20399
  * (`wasm-cross-camera`, `event-bus-relay`, etc.). The runner uses
@@ -20618,6 +20634,31 @@ var RunnerCameraConfigSchema = object({
20618
20634
  * to every occupancy rule until something moved in front of it. The churn is
20619
20635
  * now paid on the interval instead — see `occupancyRecheckSecField`.
20620
20636
  */
20637
+ /**
20638
+ * Infer the session's PRE-ROLL — the retained history the restreamer replays
20639
+ * at session open — instead of decoding it and throwing it away.
20640
+ *
20641
+ * DEFAULT `true`, and the default is the argument. This is not a new
20642
+ * capability being offered cautiously: the pre-roll is ALREADY requested,
20643
+ * already served, already decoded and already paid for on every on-motion
20644
+ * detection session that asks for history. What shipped was a last-moment
20645
+ * discard — `FrameSlot`'s throttle compares wall clocks, and ~4 s of media
20646
+ * arriving inside a few hundred ms of wall clock looks to it like one frame's
20647
+ * worth. Device 617, 2026-09-08: a re-run of the SAME model over the stored
20648
+ * recording scored the subject `vehicle 0.5669` — above the 0.50 floor —
20649
+ * 1.68 s BEFORE the live track was born, on a frame that was in the pre-roll,
20650
+ * was decoded, and was freed.
20651
+ *
20652
+ * Shipping that as opt-in would ship the bug: an operator cannot discover a
20653
+ * setting whose absence looks exactly like a camera that noticed the cyclist
20654
+ * late. What makes ON safe is not a switch but the BOUND —
20655
+ * `preRollInferenceFrames`, a wall-clock ceiling, and a lane that never takes
20656
+ * the last inference permit — so the switch exists for the camera where the
20657
+ * history is worthless (a doorbell whose subject is always already at the
20658
+ * door), not as a hedge against the feature.
20659
+ */
20660
+ preRollInferenceEnabled: boolean().default(true),
20661
+ preRollInferenceFrames: number().min(preRollInferenceFramesField.min).max(preRollInferenceFramesField.max).default(preRollInferenceFramesField.default),
20621
20662
  occupancyRecheckEnabled: boolean().default(true),
20622
20663
  occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
20623
20664
  occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
@@ -20646,7 +20687,7 @@ var RunnerCameraConfigSchema = object({
20646
20687
  */
20647
20688
  inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
20648
20689
  });
20649
- motionFpsField.min, motionFpsField.max, motionFpsField.step, motionFpsField.default, detectionFpsField.min, detectionFpsField.max, detectionFpsField.step, detectionFpsField.default, motionCooldownMsField.min, motionCooldownMsField.max, motionCooldownMsField.step, motionCooldownMsField.default, maxSessionHoldMsField.min, maxSessionHoldMsField.max, maxSessionHoldMsField.step, maxSessionHoldMsField.default, audioMotionWindowMsField.min, audioMotionWindowMsField.max, audioMotionWindowMsField.step, audioMotionWindowMsField.default, occupancyRecheckSecField.min, occupancyRecheckSecField.max, occupancyRecheckSecField.step, occupancyRecheckSecField.default, occupancyRecheckFramesField.min, occupancyRecheckFramesField.max, occupancyRecheckFramesField.step, occupancyRecheckFramesField.default;
20690
+ motionFpsField.min, motionFpsField.max, motionFpsField.step, motionFpsField.default, detectionFpsField.min, detectionFpsField.max, detectionFpsField.step, detectionFpsField.default, motionCooldownMsField.min, motionCooldownMsField.max, motionCooldownMsField.step, motionCooldownMsField.default, maxSessionHoldMsField.min, maxSessionHoldMsField.max, maxSessionHoldMsField.step, maxSessionHoldMsField.default, audioMotionWindowMsField.min, audioMotionWindowMsField.max, audioMotionWindowMsField.step, audioMotionWindowMsField.default, preRollInferenceFramesField.min, preRollInferenceFramesField.max, preRollInferenceFramesField.step, preRollInferenceFramesField.default, occupancyRecheckSecField.min, occupancyRecheckSecField.max, occupancyRecheckSecField.step, occupancyRecheckSecField.default, occupancyRecheckFramesField.min, occupancyRecheckFramesField.max, occupancyRecheckFramesField.step, occupancyRecheckFramesField.default;
20650
20691
  /**
20651
20692
  * Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
20652
20693
  * load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
@@ -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-XKXst1IW.js");
5
+ const require_dist = require("../dist-DvJMHeGc.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-CluHgSCs.mjs";
1
+ import { a as EventCategory, i as BaseAddon, n as networkAccessCapability } from "../dist-CUQ2MTx9.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.88",
3
+ "version": "1.2.90",
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",