@camstack/addon-tailscale 1.2.15 → 1.2.16
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/client/tailscale.addon.js +1 -1
- package/dist/client/tailscale.addon.mjs +1 -1
- package/dist/{dist-C_wvVtn8.mjs → dist-DaQABWY4.mjs} +76 -8
- package/dist/{dist-C8p6RC4p.js → dist-IOeQBNag.js} +76 -8
- package/dist/ingress/tailscale-ingress.addon.js +1 -1
- package/dist/ingress/tailscale-ingress.addon.mjs +1 -1
- package/package.json +1 -1
|
@@ -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-
|
|
27
|
+
const require_dist = require("../dist-IOeQBNag.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 { i as EventCategory, n as networkAccessCapability, r as BaseAddon, t as meshNetworkCapability } from "../dist-
|
|
1
|
+
import { i as EventCategory, n as networkAccessCapability, r as BaseAddon, t as meshNetworkCapability } from "../dist-DaQABWY4.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";
|
|
@@ -12937,11 +12937,33 @@ var NotificationFormatSchema = _enum([
|
|
|
12937
12937
|
* Named by INTENT, never by glyph. "check" would tie the vocabulary to one
|
|
12938
12938
|
* renderer's icon set; "acknowledge" survives an adapter that draws it
|
|
12939
12939
|
* differently.
|
|
12940
|
+
*
|
|
12941
|
+
* ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
|
|
12942
|
+
*
|
|
12943
|
+
* These names are for US. **No adapter may forward one verbatim.** Each maps
|
|
12944
|
+
* the whole set onto its own renderer's vocabulary through a
|
|
12945
|
+
* `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
|
|
12946
|
+
* fallback, so adding a member here fails every adapter's build until someone
|
|
12947
|
+
* decides its glyph, which is the only place that decision can be made
|
|
12948
|
+
* honestly.
|
|
12949
|
+
*
|
|
12950
|
+
* This paragraph is the bug. Zentik declared `actionIcons: true` and passed
|
|
12951
|
+
* `disarm` straight through; iOS feeds that string to
|
|
12952
|
+
* `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
|
|
12953
|
+
* and every snooze and alarm button arrived BLANK. A pass-through is not a
|
|
12954
|
+
* mapping, and "the field is documented" is not "the value renders".
|
|
12955
|
+
*
|
|
12956
|
+
* Adding a member is TRAIN-BOUND. The enum lives in the published
|
|
12957
|
+
* `@camstack/server` closure and the cap seam validates against the HUB's copy,
|
|
12958
|
+
* so an addon that emits a token the running hub does not know does not lose an
|
|
12959
|
+
* icon — its whole `send` fails Zod validation and the notification never
|
|
12960
|
+
* arrives. Never emit a new token from an addon before the train carrying it.
|
|
12940
12961
|
*/
|
|
12941
12962
|
var NotificationActionIconSchema = _enum([
|
|
12942
12963
|
"acknowledge",
|
|
12943
12964
|
"dismiss",
|
|
12944
12965
|
"silence",
|
|
12966
|
+
"snooze",
|
|
12945
12967
|
"view",
|
|
12946
12968
|
"play",
|
|
12947
12969
|
"open",
|
|
@@ -12949,9 +12971,13 @@ var NotificationActionIconSchema = _enum([
|
|
|
12949
12971
|
"lock",
|
|
12950
12972
|
"unlock",
|
|
12951
12973
|
"arm",
|
|
12974
|
+
"arm-home",
|
|
12975
|
+
"arm-away",
|
|
12976
|
+
"arm-night",
|
|
12952
12977
|
"disarm",
|
|
12953
12978
|
"light",
|
|
12954
|
-
"alert"
|
|
12979
|
+
"alert",
|
|
12980
|
+
"camera"
|
|
12955
12981
|
]);
|
|
12956
12982
|
/** A single tap-through action button. */
|
|
12957
12983
|
var NotificationActionSchema = object({
|
|
@@ -13151,6 +13177,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
|
|
|
13151
13177
|
targetId: string(),
|
|
13152
13178
|
enabled: boolean()
|
|
13153
13179
|
}), _void(), { kind: "mutation" });
|
|
13180
|
+
new Set([
|
|
13181
|
+
{
|
|
13182
|
+
id: "person",
|
|
13183
|
+
name: "Person"
|
|
13184
|
+
},
|
|
13185
|
+
{
|
|
13186
|
+
id: "vehicle",
|
|
13187
|
+
name: "Vehicle"
|
|
13188
|
+
},
|
|
13189
|
+
{
|
|
13190
|
+
id: "animal",
|
|
13191
|
+
name: "Animal"
|
|
13192
|
+
},
|
|
13193
|
+
{
|
|
13194
|
+
id: "package",
|
|
13195
|
+
name: "Package"
|
|
13196
|
+
}
|
|
13197
|
+
].map((l) => l.id));
|
|
13154
13198
|
var COCO_TO_MACRO = {
|
|
13155
13199
|
mapping: {
|
|
13156
13200
|
person: "person",
|
|
@@ -13948,6 +13992,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
13948
13992
|
"alarm-triggered",
|
|
13949
13993
|
"alarm-armed",
|
|
13950
13994
|
"alarm-disarmed",
|
|
13995
|
+
"alarm-arming",
|
|
13996
|
+
"alarm-arm-refused",
|
|
13951
13997
|
"camera-online",
|
|
13952
13998
|
"camera-offline",
|
|
13953
13999
|
"camera-disabled",
|
|
@@ -17180,6 +17226,22 @@ var detectionFpsField = {
|
|
|
17180
17226
|
default: 10,
|
|
17181
17227
|
step: 1
|
|
17182
17228
|
};
|
|
17229
|
+
/**
|
|
17230
|
+
* The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
|
|
17231
|
+
*
|
|
17232
|
+
* The recheck is now on by default (a parked car is invisible to occupancy
|
|
17233
|
+
* rules until the stationary registry has been rebuilt by motion, which after a
|
|
17234
|
+
* restart may be never on a quiet camera). Each cycle re-subscribes a detection
|
|
17235
|
+
* session — an RTSP re-dial — so the switch is only affordable at a WIDE
|
|
17236
|
+
* interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
|
|
17237
|
+
* 30 s. A parked car is therefore counted within 5 minutes of a restart.
|
|
17238
|
+
*
|
|
17239
|
+
* Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
|
|
17240
|
+
* the host validates `attachCamera` against ITS copy of this schema, so a
|
|
17241
|
+
* runner asked for 600 would be rejected by the hub until a `@camstack/server`
|
|
17242
|
+
* carrying the wider bound is installed everywhere. 300 is the widest value
|
|
17243
|
+
* that ships with an addon deploy.
|
|
17244
|
+
*/
|
|
17183
17245
|
var occupancyRecheckSecField = {
|
|
17184
17246
|
min: 0,
|
|
17185
17247
|
max: 300,
|
|
@@ -17381,15 +17443,21 @@ var RunnerCameraConfigSchema = object({
|
|
|
17381
17443
|
*/
|
|
17382
17444
|
onboardMotionDrivesAnalyzer: boolean().default(true),
|
|
17383
17445
|
/**
|
|
17384
|
-
* Master toggle for the occupancy re-check. When `false`
|
|
17385
|
-
*
|
|
17386
|
-
* this is off by default because the recheck re-subscribes a detection session
|
|
17387
|
-
* every N seconds while `watching`, a major source of pull-decoder re-dial
|
|
17388
|
-
* churn (each cycle creates+tears a session → RTSP re-dial → latency). The
|
|
17446
|
+
* Master toggle for the occupancy re-check. When `false` the runner never arms
|
|
17447
|
+
* the periodic recheck timer, regardless of `occupancyRecheckSec`; the
|
|
17389
17448
|
* `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
|
|
17390
17449
|
* (and only render) when this is enabled.
|
|
17391
|
-
|
|
17392
|
-
|
|
17450
|
+
*
|
|
17451
|
+
* DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
|
|
17452
|
+
* recheck re-subscribes a detection session every N seconds while `watching`
|
|
17453
|
+
* — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
|
|
17454
|
+
* pull-decoder churn source. What that bought was a blind spot: a STATIONARY
|
|
17455
|
+
* object is counted only while the stationary registry holds it, and the
|
|
17456
|
+
* registry rebuilds from motion, so after a restart a parked car was invisible
|
|
17457
|
+
* to every occupancy rule until something moved in front of it. The churn is
|
|
17458
|
+
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
17459
|
+
*/
|
|
17460
|
+
occupancyRecheckEnabled: boolean().default(true),
|
|
17393
17461
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
17394
17462
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
17395
17463
|
/**
|
|
@@ -12937,11 +12937,33 @@ var NotificationFormatSchema = _enum([
|
|
|
12937
12937
|
* Named by INTENT, never by glyph. "check" would tie the vocabulary to one
|
|
12938
12938
|
* renderer's icon set; "acknowledge" survives an adapter that draws it
|
|
12939
12939
|
* differently.
|
|
12940
|
+
*
|
|
12941
|
+
* ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
|
|
12942
|
+
*
|
|
12943
|
+
* These names are for US. **No adapter may forward one verbatim.** Each maps
|
|
12944
|
+
* the whole set onto its own renderer's vocabulary through a
|
|
12945
|
+
* `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
|
|
12946
|
+
* fallback, so adding a member here fails every adapter's build until someone
|
|
12947
|
+
* decides its glyph, which is the only place that decision can be made
|
|
12948
|
+
* honestly.
|
|
12949
|
+
*
|
|
12950
|
+
* This paragraph is the bug. Zentik declared `actionIcons: true` and passed
|
|
12951
|
+
* `disarm` straight through; iOS feeds that string to
|
|
12952
|
+
* `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
|
|
12953
|
+
* and every snooze and alarm button arrived BLANK. A pass-through is not a
|
|
12954
|
+
* mapping, and "the field is documented" is not "the value renders".
|
|
12955
|
+
*
|
|
12956
|
+
* Adding a member is TRAIN-BOUND. The enum lives in the published
|
|
12957
|
+
* `@camstack/server` closure and the cap seam validates against the HUB's copy,
|
|
12958
|
+
* so an addon that emits a token the running hub does not know does not lose an
|
|
12959
|
+
* icon — its whole `send` fails Zod validation and the notification never
|
|
12960
|
+
* arrives. Never emit a new token from an addon before the train carrying it.
|
|
12940
12961
|
*/
|
|
12941
12962
|
var NotificationActionIconSchema = _enum([
|
|
12942
12963
|
"acknowledge",
|
|
12943
12964
|
"dismiss",
|
|
12944
12965
|
"silence",
|
|
12966
|
+
"snooze",
|
|
12945
12967
|
"view",
|
|
12946
12968
|
"play",
|
|
12947
12969
|
"open",
|
|
@@ -12949,9 +12971,13 @@ var NotificationActionIconSchema = _enum([
|
|
|
12949
12971
|
"lock",
|
|
12950
12972
|
"unlock",
|
|
12951
12973
|
"arm",
|
|
12974
|
+
"arm-home",
|
|
12975
|
+
"arm-away",
|
|
12976
|
+
"arm-night",
|
|
12952
12977
|
"disarm",
|
|
12953
12978
|
"light",
|
|
12954
|
-
"alert"
|
|
12979
|
+
"alert",
|
|
12980
|
+
"camera"
|
|
12955
12981
|
]);
|
|
12956
12982
|
/** A single tap-through action button. */
|
|
12957
12983
|
var NotificationActionSchema = object({
|
|
@@ -13151,6 +13177,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
|
|
|
13151
13177
|
targetId: string(),
|
|
13152
13178
|
enabled: boolean()
|
|
13153
13179
|
}), _void(), { kind: "mutation" });
|
|
13180
|
+
new Set([
|
|
13181
|
+
{
|
|
13182
|
+
id: "person",
|
|
13183
|
+
name: "Person"
|
|
13184
|
+
},
|
|
13185
|
+
{
|
|
13186
|
+
id: "vehicle",
|
|
13187
|
+
name: "Vehicle"
|
|
13188
|
+
},
|
|
13189
|
+
{
|
|
13190
|
+
id: "animal",
|
|
13191
|
+
name: "Animal"
|
|
13192
|
+
},
|
|
13193
|
+
{
|
|
13194
|
+
id: "package",
|
|
13195
|
+
name: "Package"
|
|
13196
|
+
}
|
|
13197
|
+
].map((l) => l.id));
|
|
13154
13198
|
var COCO_TO_MACRO = {
|
|
13155
13199
|
mapping: {
|
|
13156
13200
|
person: "person",
|
|
@@ -13948,6 +13992,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
13948
13992
|
"alarm-triggered",
|
|
13949
13993
|
"alarm-armed",
|
|
13950
13994
|
"alarm-disarmed",
|
|
13995
|
+
"alarm-arming",
|
|
13996
|
+
"alarm-arm-refused",
|
|
13951
13997
|
"camera-online",
|
|
13952
13998
|
"camera-offline",
|
|
13953
13999
|
"camera-disabled",
|
|
@@ -17180,6 +17226,22 @@ var detectionFpsField = {
|
|
|
17180
17226
|
default: 10,
|
|
17181
17227
|
step: 1
|
|
17182
17228
|
};
|
|
17229
|
+
/**
|
|
17230
|
+
* The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
|
|
17231
|
+
*
|
|
17232
|
+
* The recheck is now on by default (a parked car is invisible to occupancy
|
|
17233
|
+
* rules until the stationary registry has been rebuilt by motion, which after a
|
|
17234
|
+
* restart may be never on a quiet camera). Each cycle re-subscribes a detection
|
|
17235
|
+
* session — an RTSP re-dial — so the switch is only affordable at a WIDE
|
|
17236
|
+
* interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
|
|
17237
|
+
* 30 s. A parked car is therefore counted within 5 minutes of a restart.
|
|
17238
|
+
*
|
|
17239
|
+
* Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
|
|
17240
|
+
* the host validates `attachCamera` against ITS copy of this schema, so a
|
|
17241
|
+
* runner asked for 600 would be rejected by the hub until a `@camstack/server`
|
|
17242
|
+
* carrying the wider bound is installed everywhere. 300 is the widest value
|
|
17243
|
+
* that ships with an addon deploy.
|
|
17244
|
+
*/
|
|
17183
17245
|
var occupancyRecheckSecField = {
|
|
17184
17246
|
min: 0,
|
|
17185
17247
|
max: 300,
|
|
@@ -17381,15 +17443,21 @@ var RunnerCameraConfigSchema = object({
|
|
|
17381
17443
|
*/
|
|
17382
17444
|
onboardMotionDrivesAnalyzer: boolean().default(true),
|
|
17383
17445
|
/**
|
|
17384
|
-
* Master toggle for the occupancy re-check. When `false`
|
|
17385
|
-
*
|
|
17386
|
-
* this is off by default because the recheck re-subscribes a detection session
|
|
17387
|
-
* every N seconds while `watching`, a major source of pull-decoder re-dial
|
|
17388
|
-
* churn (each cycle creates+tears a session → RTSP re-dial → latency). The
|
|
17446
|
+
* Master toggle for the occupancy re-check. When `false` the runner never arms
|
|
17447
|
+
* the periodic recheck timer, regardless of `occupancyRecheckSec`; the
|
|
17389
17448
|
* `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
|
|
17390
17449
|
* (and only render) when this is enabled.
|
|
17391
|
-
|
|
17392
|
-
|
|
17450
|
+
*
|
|
17451
|
+
* DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
|
|
17452
|
+
* recheck re-subscribes a detection session every N seconds while `watching`
|
|
17453
|
+
* — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
|
|
17454
|
+
* pull-decoder churn source. What that bought was a blind spot: a STATIONARY
|
|
17455
|
+
* object is counted only while the stationary registry holds it, and the
|
|
17456
|
+
* registry rebuilds from motion, so after a restart a parked car was invisible
|
|
17457
|
+
* to every occupancy rule until something moved in front of it. The churn is
|
|
17458
|
+
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
17459
|
+
*/
|
|
17460
|
+
occupancyRecheckEnabled: boolean().default(true),
|
|
17393
17461
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
17394
17462
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
17395
17463
|
/**
|
|
@@ -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-
|
|
5
|
+
const require_dist = require("../dist-IOeQBNag.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 { i as EventCategory, n as networkAccessCapability, r as BaseAddon } from "../dist-
|
|
1
|
+
import { i as EventCategory, n as networkAccessCapability, r as BaseAddon } from "../dist-DaQABWY4.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.
|
|
3
|
+
"version": "1.2.16",
|
|
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",
|