@camstack/addon-tailscale 1.2.13 → 1.2.15
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-DBqlCVJV.js → dist-C8p6RC4p.js} +139 -35
- package/dist/{dist-BSHt2t-G.mjs → dist-C_wvVtn8.mjs} +139 -35
- 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-C8p6RC4p.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-C_wvVtn8.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";
|
|
@@ -12967,7 +12967,23 @@ var NotificationActionSchema = object({
|
|
|
12967
12967
|
* else — see `notification-center/action-token.ts` for what that does and
|
|
12968
12968
|
* does not buy.
|
|
12969
12969
|
*/
|
|
12970
|
-
destructive: boolean().optional()
|
|
12970
|
+
destructive: boolean().optional(),
|
|
12971
|
+
/**
|
|
12972
|
+
* How the tap should REACH the url.
|
|
12973
|
+
*
|
|
12974
|
+
* `navigate` (absent, and every button authored before this field) opens it:
|
|
12975
|
+
* the phone leaves the notification and shows whatever the callback returns.
|
|
12976
|
+
* That is right for a button whose answer the operator wants to read.
|
|
12977
|
+
*
|
|
12978
|
+
* `background` fires it as a POST and stays put. It exists for the buttons
|
|
12979
|
+
* whose whole point is not to interrupt — "silence this for 30 minutes" is
|
|
12980
|
+
* an answer to the notification, and being thrown into a browser tab to
|
|
12981
|
+
* confirm it costs more attention than the notification did. A backend that
|
|
12982
|
+
* cannot do a background call renders it as an ordinary link (the adapters
|
|
12983
|
+
* fall back rather than dropping the button), so this is a preference, never
|
|
12984
|
+
* a requirement.
|
|
12985
|
+
*/
|
|
12986
|
+
mode: _enum(["navigate", "background"]).optional()
|
|
12971
12987
|
});
|
|
12972
12988
|
/**
|
|
12973
12989
|
* The canonical notification. `body` is the only hard field (Apprise model).
|
|
@@ -13968,6 +13984,9 @@ var NcSystemEventConditionSchema = object({
|
|
|
13968
13984
|
nodeIds: array(string().min(1)).min(1).optional(),
|
|
13969
13985
|
packageNames: array(string().min(1)).min(1).optional()
|
|
13970
13986
|
});
|
|
13987
|
+
/** Hard ceiling on a window (24h). A snooze that could not expire would be an
|
|
13988
|
+
* outage the operator asked for once and forgot. */
|
|
13989
|
+
var NC_SNOOZE_MAX_MINUTES = 1440;
|
|
13971
13990
|
/** Weekly schedule — OR of windows; absence on the rule = always active. */
|
|
13972
13991
|
var NcScheduleSchema = object({
|
|
13973
13992
|
windows: array(object({
|
|
@@ -14344,15 +14363,15 @@ var NcConditionsSchema = object({
|
|
|
14344
14363
|
* (an `immediate` rule naming an `audio-*` class, one notification per
|
|
14345
14364
|
* classified sample) stays exactly as it was for rules that already use it.
|
|
14346
14365
|
*
|
|
14347
|
-
*
|
|
14348
|
-
* rather than an
|
|
14349
|
-
* (`camstack/src/data/notification-center.ts`, guarded by
|
|
14350
|
-
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor
|
|
14366
|
+
* In {@link NC_CONDITION_CATALOG} since P2, and the ORDER it got there is the
|
|
14367
|
+
* rule rather than an accident: the viewer mirrors the descriptor enums BY
|
|
14368
|
+
* HAND (`camstack/src/data/notification-center.ts`, guarded by
|
|
14369
|
+
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor strips the
|
|
14351
14370
|
* condition fields it does not know when a rule is saved from the phone.
|
|
14352
14371
|
* Publishing an editor for a condition the app cannot round-trip is how an
|
|
14353
|
-
* operator loses a rule's conditions by opening it — so the
|
|
14354
|
-
*
|
|
14355
|
-
*
|
|
14372
|
+
* operator loses a rule's conditions by opening it — so the viewer mirror
|
|
14373
|
+
* (P3, shipped) went FIRST, and the descriptor an editor renders from
|
|
14374
|
+
* follows here.
|
|
14356
14375
|
*/
|
|
14357
14376
|
audio: NcAudioConditionSchema.optional()
|
|
14358
14377
|
});
|
|
@@ -14588,6 +14607,30 @@ var NcRuleInputSchema = object({
|
|
|
14588
14607
|
*/
|
|
14589
14608
|
snoozeAllowGlobal: boolean().optional(),
|
|
14590
14609
|
/**
|
|
14610
|
+
* The snooze durations THIS rule's notification offers as buttons, in
|
|
14611
|
+
* minutes.
|
|
14612
|
+
*
|
|
14613
|
+
* Three states, and all three are distinct — which is exactly why this is
|
|
14614
|
+
* `.optional()` and never `.default()`. A Zod default does not run on the
|
|
14615
|
+
* addon cap path (three production failures in one day), so a schema default
|
|
14616
|
+
* would collapse the first two:
|
|
14617
|
+
*
|
|
14618
|
+
* | value | meaning |
|
|
14619
|
+
* | --- | --- |
|
|
14620
|
+
* | absent | the operator never said ⇒ {@link NC_DEFAULT_SNOOZE_MINUTES} |
|
|
14621
|
+
* | `[]` | **no snooze buttons on this rule** — the explicit override |
|
|
14622
|
+
* | a list | these choices, de-duplicated and sorted, at most four |
|
|
14623
|
+
*
|
|
14624
|
+
* `.max(4)` because the notifier's own action budget is small (ntfy allows
|
|
14625
|
+
* three buttons in total) and a rule that spent it all on snooze choices
|
|
14626
|
+
* would push its own tap-through actions off the notification.
|
|
14627
|
+
*
|
|
14628
|
+
* An empty list is NOT an alarm exemption: a rule the alarm is about, or
|
|
14629
|
+
* that arms the panel, is exempt automatically and cannot be silenced by a
|
|
14630
|
+
* window from anywhere (D133).
|
|
14631
|
+
*/
|
|
14632
|
+
snoozeOptions: array(number().int().min(1).max(NC_SNOOZE_MAX_MINUTES)).max(4).optional(),
|
|
14633
|
+
/**
|
|
14591
14634
|
* Devices this rule ACTUATES — arm the alarm, open a gate, turn on a light.
|
|
14592
14635
|
*
|
|
14593
14636
|
* This is what makes the rule set the alarm's trigger set without the alarm
|
|
@@ -14687,6 +14730,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
14687
14730
|
"device",
|
|
14688
14731
|
"package",
|
|
14689
14732
|
"occupancy",
|
|
14733
|
+
"audio",
|
|
14690
14734
|
"system"
|
|
14691
14735
|
]),
|
|
14692
14736
|
label: string(),
|
|
@@ -14705,6 +14749,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
14705
14749
|
"crossingSelect",
|
|
14706
14750
|
"polygonDraw",
|
|
14707
14751
|
"occupancy",
|
|
14752
|
+
"audio",
|
|
14708
14753
|
"deviceState",
|
|
14709
14754
|
"systemEvent"
|
|
14710
14755
|
]),
|
|
@@ -14856,7 +14901,20 @@ var NcSnoozeInputSchema = object({
|
|
|
14856
14901
|
ruleId: string().optional(),
|
|
14857
14902
|
/** Required when `scope: 'device'`. */
|
|
14858
14903
|
deviceId: number().int().optional(),
|
|
14859
|
-
|
|
14904
|
+
/**
|
|
14905
|
+
* Narrow the window to these subject classes — "the cat, not the person".
|
|
14906
|
+
*
|
|
14907
|
+
* ORTHOGONAL to `scope`, deliberately, and absent means EVERY class: that is
|
|
14908
|
+
* what every window authored before this field meant, so no persisted row
|
|
14909
|
+
* changes meaning and no client has to learn anything to keep working.
|
|
14910
|
+
*
|
|
14911
|
+
* It is what makes the window's real key `(deviceId, classes[])` and lets it
|
|
14912
|
+
* cross rules (D133): the operator points at a camera and a kind of thing,
|
|
14913
|
+
* not at whichever of their four rules happened to produce the notification
|
|
14914
|
+
* they are dismissing.
|
|
14915
|
+
*/
|
|
14916
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
14917
|
+
durationMinutes: number().int().min(1).max(NC_SNOOZE_MAX_MINUTES),
|
|
14860
14918
|
/**
|
|
14861
14919
|
* Silence this for EVERY recipient, not just the caller. Permission is
|
|
14862
14920
|
* checked server-side (the rule's `snoozeAllowGlobal`, or admin for the
|
|
@@ -14881,6 +14939,10 @@ var NcSnoozeSchema = object({
|
|
|
14881
14939
|
scope: NcSnoozeScopeSchema,
|
|
14882
14940
|
ruleId: string().optional(),
|
|
14883
14941
|
deviceId: number().int().optional(),
|
|
14942
|
+
/** Subject classes this window covers. ABSENT = every class — see
|
|
14943
|
+
* {@link NcSnoozeInputSchema.shape.classes}. Lives in the JSON blob and has
|
|
14944
|
+
* no SQLite column: nothing queries a window by class. */
|
|
14945
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
14884
14946
|
startedAt: number(),
|
|
14885
14947
|
/** Exclusive: at exactly this instant the snooze is over. Expiry is a
|
|
14886
14948
|
* COMPARISON, not a job — no sweeper can leave the operator silenced. */
|
|
@@ -23644,13 +23706,24 @@ method(object({
|
|
|
23644
23706
|
/** Playback-speed multiplier for the render (1 = realtime). */
|
|
23645
23707
|
var ExportSpeedSchema = number().min(.25).max(32);
|
|
23646
23708
|
/**
|
|
23647
|
-
* One dense interval, in SECONDS FROM THE EXPORT'S OWN `fromMs`.
|
|
23709
|
+
* One dense interval, in WALL-CLOCK SECONDS FROM THE EXPORT'S OWN `fromMs`.
|
|
23710
|
+
*
|
|
23711
|
+
* **Wall clock, not ffmpeg's `t`** — and the recorder translates. A caller
|
|
23712
|
+
* derives these bounds from things that happened at a TIME (a track's
|
|
23713
|
+
* `firstSeen`), while `t` runs over the source playlist: the concatenation of
|
|
23714
|
+
* every segment present for the range, with each recording GAP removed. The
|
|
23715
|
+
* two agree only on a window that recorded without one interruption, and only
|
|
23716
|
+
* the render side knows the segments, so the translation lives there
|
|
23717
|
+
* (`export-dense-map.ts`, addon-pipeline).
|
|
23718
|
+
*
|
|
23719
|
+
* It was not always so. These seconds were fed to `between(t,…)` verbatim, and
|
|
23720
|
+
* on a 10 h window holding 29,393 s of footage every range landed late by the
|
|
23721
|
+
* gap accumulated before it — up to 6,607 s, well past EOF. Nothing matched,
|
|
23722
|
+
* the video was a uniform timelapse, and the log line reported the five ranges
|
|
23723
|
+
* that had been ASKED for (2026-08-13, export `57d14363`, camera 615).
|
|
23648
23724
|
*
|
|
23649
|
-
* Relative and not absolute epoch
|
|
23650
|
-
*
|
|
23651
|
-
* playlist. Handing it absolute epochs would make every call site responsible
|
|
23652
|
-
* for the same subtraction, and the one that forgot would emit a filter that
|
|
23653
|
-
* selects nothing — silently, as a uniform timelapse.
|
|
23725
|
+
* Relative and not absolute epoch, because an absolute epoch would make every
|
|
23726
|
+
* call site responsible for the same subtraction.
|
|
23654
23727
|
*/
|
|
23655
23728
|
var ExportDenseRangeSchema = object({
|
|
23656
23729
|
fromSec: number().nonnegative(),
|
|
@@ -30503,6 +30576,7 @@ Object.freeze({
|
|
|
30503
30576
|
"network-access": "ingress",
|
|
30504
30577
|
"smtp-provider": "email"
|
|
30505
30578
|
});
|
|
30579
|
+
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
30506
30580
|
new Set(["devices", "classes"]);
|
|
30507
30581
|
/**
|
|
30508
30582
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|
|
@@ -30780,25 +30854,32 @@ object({
|
|
|
30780
30854
|
var NativeLeaseAdmissionSchema = _enum(["all", "inferred"]);
|
|
30781
30855
|
object({
|
|
30782
30856
|
/**
|
|
30783
|
-
* How
|
|
30857
|
+
* How many delivered frames the worker HOLDS at once, waiting for each one's
|
|
30858
|
+
* detection result.
|
|
30784
30859
|
*
|
|
30785
|
-
*
|
|
30786
|
-
*
|
|
30787
|
-
*
|
|
30788
|
-
*
|
|
30789
|
-
*
|
|
30860
|
+
* This replaced a TTL on 2026-08-13, and the replacement is the whole point:
|
|
30861
|
+
* a time window was never related to the event the pixels were waiting for.
|
|
30862
|
+
* A held frame now lives from delivery until the runner has its `FrameResult`
|
|
30863
|
+
* — at which moment the runner cuts the subject tiles it actually wanted and
|
|
30864
|
+
* releases the frame. The bound exists only so a runner that stops answering
|
|
30865
|
+
* cannot pin RAM: above it the OLDEST held frame is dropped and counted.
|
|
30866
|
+
*
|
|
30867
|
+
* Sizing: the steady state is `inferenceLatency × deliveredFps`, measured at
|
|
30868
|
+
* 40-160 ms × ≤25 fps = 1-4 frames. The default leaves headroom for a hiccup
|
|
30869
|
+
* without ever approaching the old resident set (43 frames × 24.9 MB at 4K).
|
|
30870
|
+
* Raising it does not buy hit rate — it buys tolerance for a slow runner, and
|
|
30871
|
+
* `holdOverflow` on the metrics line is what says you need it.
|
|
30790
30872
|
*/
|
|
30791
|
-
|
|
30873
|
+
holdFrames: number().int().min(1).max(64),
|
|
30792
30874
|
/**
|
|
30793
30875
|
* Hard per-decode-worker RAM ceiling for retained native frames, in MB.
|
|
30794
30876
|
*
|
|
30795
|
-
*
|
|
30796
|
-
*
|
|
30797
|
-
*
|
|
30798
|
-
*
|
|
30799
|
-
*
|
|
30800
|
-
*
|
|
30801
|
-
* rather than giving RAM back — lower this knob if RAM is what you wanted.
|
|
30877
|
+
* Since 2026-08-13 this is a SAFETY ceiling and nothing else: `holdFrames`
|
|
30878
|
+
* is what decides how much is held, and the ceiling is the number above which
|
|
30879
|
+
* something is wrong. Before that it was the effective cap — at 1024 MB with
|
|
30880
|
+
* a 2 800 ms TTL a 4K camera sat pinned at `leaseMb:1020, leaseFrames:43`
|
|
30881
|
+
* with the TTL expiring nothing, which is exactly the confusion the hold
|
|
30882
|
+
* removes. `leaseMb` / `leaseFrames` still say what is resident.
|
|
30802
30883
|
* `0` DISABLES the lease entirely and falls the worker back to the tiny
|
|
30803
30884
|
* leak-prone GPU surface ring (~85% crop miss; that is what the lease exists
|
|
30804
30885
|
* to replace).
|
|
@@ -30824,22 +30905,45 @@ object({
|
|
|
30824
30905
|
* there is the signal that some caller names frames outside the inference set
|
|
30825
30906
|
* and that this must go back to `all`.
|
|
30826
30907
|
*/
|
|
30827
|
-
admission: NativeLeaseAdmissionSchema
|
|
30908
|
+
admission: NativeLeaseAdmissionSchema,
|
|
30909
|
+
/**
|
|
30910
|
+
* RAM ceiling per decode worker, in MB, for the SUBJECT TILES — the
|
|
30911
|
+
* compressed native crops the worker cuts at the moment a frame's detection
|
|
30912
|
+
* result arrives, and keeps long after the frame itself is freed.
|
|
30913
|
+
*
|
|
30914
|
+
* This is the knob that replaced the old retention window, and it buys about
|
|
30915
|
+
* three orders of magnitude more of it: a tile is one subject at native
|
|
30916
|
+
* resolution, JPEG-encoded (~60-120 KB on a 4K person), against ~24.9 MB for
|
|
30917
|
+
* the frame it was cut from. A frame on which nothing was detected costs
|
|
30918
|
+
* nothing at all, which is the real change — the old lease paid per FRAME and
|
|
30919
|
+
* was interrogated per SUBJECT.
|
|
30920
|
+
*
|
|
30921
|
+
* `0` DISABLES tiles, leaving only the hold window and the ≤640 RAM
|
|
30922
|
+
* fallback — i.e. the pre-2026-08-13 miss profile. Set it there only to
|
|
30923
|
+
* reproduce that.
|
|
30924
|
+
*/
|
|
30925
|
+
tileBudgetMb: number().int().min(0).max(1024)
|
|
30828
30926
|
});
|
|
30829
30927
|
/**
|
|
30830
|
-
* The values in force when the operator has set nothing
|
|
30831
|
-
*
|
|
30832
|
-
*
|
|
30928
|
+
* The values in force when the operator has set nothing.
|
|
30929
|
+
*
|
|
30930
|
+
* `budgetMb` stays at 1024 on the day the hold landed, deliberately: it stopped
|
|
30931
|
+
* being the retention window and became the OOM ceiling, and lowering a ceiling
|
|
30932
|
+
* in the same change that redefines it would make a regression and a retune
|
|
30933
|
+
* indistinguishable. Cut it once `tileHits` / `holdOverflow` have been read on
|
|
30934
|
+
* live traffic.
|
|
30833
30935
|
*/
|
|
30834
30936
|
var DEFAULT_NATIVE_LEASE_SETTINGS = {
|
|
30835
|
-
|
|
30937
|
+
holdFrames: 8,
|
|
30836
30938
|
budgetMb: 1024,
|
|
30837
30939
|
activityMs: 15e3,
|
|
30940
|
+
tileBudgetMb: 64,
|
|
30838
30941
|
admission: "inferred"
|
|
30839
30942
|
};
|
|
30840
|
-
DEFAULT_NATIVE_LEASE_SETTINGS.
|
|
30943
|
+
DEFAULT_NATIVE_LEASE_SETTINGS.holdFrames;
|
|
30841
30944
|
DEFAULT_NATIVE_LEASE_SETTINGS.budgetMb;
|
|
30842
30945
|
DEFAULT_NATIVE_LEASE_SETTINGS.activityMs;
|
|
30946
|
+
DEFAULT_NATIVE_LEASE_SETTINGS.tileBudgetMb;
|
|
30843
30947
|
DEFAULT_NATIVE_LEASE_SETTINGS.admission;
|
|
30844
30948
|
//#endregion
|
|
30845
30949
|
Object.defineProperty(exports, "BaseAddon", {
|
|
@@ -12967,7 +12967,23 @@ var NotificationActionSchema = object({
|
|
|
12967
12967
|
* else — see `notification-center/action-token.ts` for what that does and
|
|
12968
12968
|
* does not buy.
|
|
12969
12969
|
*/
|
|
12970
|
-
destructive: boolean().optional()
|
|
12970
|
+
destructive: boolean().optional(),
|
|
12971
|
+
/**
|
|
12972
|
+
* How the tap should REACH the url.
|
|
12973
|
+
*
|
|
12974
|
+
* `navigate` (absent, and every button authored before this field) opens it:
|
|
12975
|
+
* the phone leaves the notification and shows whatever the callback returns.
|
|
12976
|
+
* That is right for a button whose answer the operator wants to read.
|
|
12977
|
+
*
|
|
12978
|
+
* `background` fires it as a POST and stays put. It exists for the buttons
|
|
12979
|
+
* whose whole point is not to interrupt — "silence this for 30 minutes" is
|
|
12980
|
+
* an answer to the notification, and being thrown into a browser tab to
|
|
12981
|
+
* confirm it costs more attention than the notification did. A backend that
|
|
12982
|
+
* cannot do a background call renders it as an ordinary link (the adapters
|
|
12983
|
+
* fall back rather than dropping the button), so this is a preference, never
|
|
12984
|
+
* a requirement.
|
|
12985
|
+
*/
|
|
12986
|
+
mode: _enum(["navigate", "background"]).optional()
|
|
12971
12987
|
});
|
|
12972
12988
|
/**
|
|
12973
12989
|
* The canonical notification. `body` is the only hard field (Apprise model).
|
|
@@ -13968,6 +13984,9 @@ var NcSystemEventConditionSchema = object({
|
|
|
13968
13984
|
nodeIds: array(string().min(1)).min(1).optional(),
|
|
13969
13985
|
packageNames: array(string().min(1)).min(1).optional()
|
|
13970
13986
|
});
|
|
13987
|
+
/** Hard ceiling on a window (24h). A snooze that could not expire would be an
|
|
13988
|
+
* outage the operator asked for once and forgot. */
|
|
13989
|
+
var NC_SNOOZE_MAX_MINUTES = 1440;
|
|
13971
13990
|
/** Weekly schedule — OR of windows; absence on the rule = always active. */
|
|
13972
13991
|
var NcScheduleSchema = object({
|
|
13973
13992
|
windows: array(object({
|
|
@@ -14344,15 +14363,15 @@ var NcConditionsSchema = object({
|
|
|
14344
14363
|
* (an `immediate` rule naming an `audio-*` class, one notification per
|
|
14345
14364
|
* classified sample) stays exactly as it was for rules that already use it.
|
|
14346
14365
|
*
|
|
14347
|
-
*
|
|
14348
|
-
* rather than an
|
|
14349
|
-
* (`camstack/src/data/notification-center.ts`, guarded by
|
|
14350
|
-
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor
|
|
14366
|
+
* In {@link NC_CONDITION_CATALOG} since P2, and the ORDER it got there is the
|
|
14367
|
+
* rule rather than an accident: the viewer mirrors the descriptor enums BY
|
|
14368
|
+
* HAND (`camstack/src/data/notification-center.ts`, guarded by
|
|
14369
|
+
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor strips the
|
|
14351
14370
|
* condition fields it does not know when a rule is saved from the phone.
|
|
14352
14371
|
* Publishing an editor for a condition the app cannot round-trip is how an
|
|
14353
|
-
* operator loses a rule's conditions by opening it — so the
|
|
14354
|
-
*
|
|
14355
|
-
*
|
|
14372
|
+
* operator loses a rule's conditions by opening it — so the viewer mirror
|
|
14373
|
+
* (P3, shipped) went FIRST, and the descriptor an editor renders from
|
|
14374
|
+
* follows here.
|
|
14356
14375
|
*/
|
|
14357
14376
|
audio: NcAudioConditionSchema.optional()
|
|
14358
14377
|
});
|
|
@@ -14588,6 +14607,30 @@ var NcRuleInputSchema = object({
|
|
|
14588
14607
|
*/
|
|
14589
14608
|
snoozeAllowGlobal: boolean().optional(),
|
|
14590
14609
|
/**
|
|
14610
|
+
* The snooze durations THIS rule's notification offers as buttons, in
|
|
14611
|
+
* minutes.
|
|
14612
|
+
*
|
|
14613
|
+
* Three states, and all three are distinct — which is exactly why this is
|
|
14614
|
+
* `.optional()` and never `.default()`. A Zod default does not run on the
|
|
14615
|
+
* addon cap path (three production failures in one day), so a schema default
|
|
14616
|
+
* would collapse the first two:
|
|
14617
|
+
*
|
|
14618
|
+
* | value | meaning |
|
|
14619
|
+
* | --- | --- |
|
|
14620
|
+
* | absent | the operator never said ⇒ {@link NC_DEFAULT_SNOOZE_MINUTES} |
|
|
14621
|
+
* | `[]` | **no snooze buttons on this rule** — the explicit override |
|
|
14622
|
+
* | a list | these choices, de-duplicated and sorted, at most four |
|
|
14623
|
+
*
|
|
14624
|
+
* `.max(4)` because the notifier's own action budget is small (ntfy allows
|
|
14625
|
+
* three buttons in total) and a rule that spent it all on snooze choices
|
|
14626
|
+
* would push its own tap-through actions off the notification.
|
|
14627
|
+
*
|
|
14628
|
+
* An empty list is NOT an alarm exemption: a rule the alarm is about, or
|
|
14629
|
+
* that arms the panel, is exempt automatically and cannot be silenced by a
|
|
14630
|
+
* window from anywhere (D133).
|
|
14631
|
+
*/
|
|
14632
|
+
snoozeOptions: array(number().int().min(1).max(NC_SNOOZE_MAX_MINUTES)).max(4).optional(),
|
|
14633
|
+
/**
|
|
14591
14634
|
* Devices this rule ACTUATES — arm the alarm, open a gate, turn on a light.
|
|
14592
14635
|
*
|
|
14593
14636
|
* This is what makes the rule set the alarm's trigger set without the alarm
|
|
@@ -14687,6 +14730,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
14687
14730
|
"device",
|
|
14688
14731
|
"package",
|
|
14689
14732
|
"occupancy",
|
|
14733
|
+
"audio",
|
|
14690
14734
|
"system"
|
|
14691
14735
|
]),
|
|
14692
14736
|
label: string(),
|
|
@@ -14705,6 +14749,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
14705
14749
|
"crossingSelect",
|
|
14706
14750
|
"polygonDraw",
|
|
14707
14751
|
"occupancy",
|
|
14752
|
+
"audio",
|
|
14708
14753
|
"deviceState",
|
|
14709
14754
|
"systemEvent"
|
|
14710
14755
|
]),
|
|
@@ -14856,7 +14901,20 @@ var NcSnoozeInputSchema = object({
|
|
|
14856
14901
|
ruleId: string().optional(),
|
|
14857
14902
|
/** Required when `scope: 'device'`. */
|
|
14858
14903
|
deviceId: number().int().optional(),
|
|
14859
|
-
|
|
14904
|
+
/**
|
|
14905
|
+
* Narrow the window to these subject classes — "the cat, not the person".
|
|
14906
|
+
*
|
|
14907
|
+
* ORTHOGONAL to `scope`, deliberately, and absent means EVERY class: that is
|
|
14908
|
+
* what every window authored before this field meant, so no persisted row
|
|
14909
|
+
* changes meaning and no client has to learn anything to keep working.
|
|
14910
|
+
*
|
|
14911
|
+
* It is what makes the window's real key `(deviceId, classes[])` and lets it
|
|
14912
|
+
* cross rules (D133): the operator points at a camera and a kind of thing,
|
|
14913
|
+
* not at whichever of their four rules happened to produce the notification
|
|
14914
|
+
* they are dismissing.
|
|
14915
|
+
*/
|
|
14916
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
14917
|
+
durationMinutes: number().int().min(1).max(NC_SNOOZE_MAX_MINUTES),
|
|
14860
14918
|
/**
|
|
14861
14919
|
* Silence this for EVERY recipient, not just the caller. Permission is
|
|
14862
14920
|
* checked server-side (the rule's `snoozeAllowGlobal`, or admin for the
|
|
@@ -14881,6 +14939,10 @@ var NcSnoozeSchema = object({
|
|
|
14881
14939
|
scope: NcSnoozeScopeSchema,
|
|
14882
14940
|
ruleId: string().optional(),
|
|
14883
14941
|
deviceId: number().int().optional(),
|
|
14942
|
+
/** Subject classes this window covers. ABSENT = every class — see
|
|
14943
|
+
* {@link NcSnoozeInputSchema.shape.classes}. Lives in the JSON blob and has
|
|
14944
|
+
* no SQLite column: nothing queries a window by class. */
|
|
14945
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
14884
14946
|
startedAt: number(),
|
|
14885
14947
|
/** Exclusive: at exactly this instant the snooze is over. Expiry is a
|
|
14886
14948
|
* COMPARISON, not a job — no sweeper can leave the operator silenced. */
|
|
@@ -23644,13 +23706,24 @@ method(object({
|
|
|
23644
23706
|
/** Playback-speed multiplier for the render (1 = realtime). */
|
|
23645
23707
|
var ExportSpeedSchema = number().min(.25).max(32);
|
|
23646
23708
|
/**
|
|
23647
|
-
* One dense interval, in SECONDS FROM THE EXPORT'S OWN `fromMs`.
|
|
23709
|
+
* One dense interval, in WALL-CLOCK SECONDS FROM THE EXPORT'S OWN `fromMs`.
|
|
23710
|
+
*
|
|
23711
|
+
* **Wall clock, not ffmpeg's `t`** — and the recorder translates. A caller
|
|
23712
|
+
* derives these bounds from things that happened at a TIME (a track's
|
|
23713
|
+
* `firstSeen`), while `t` runs over the source playlist: the concatenation of
|
|
23714
|
+
* every segment present for the range, with each recording GAP removed. The
|
|
23715
|
+
* two agree only on a window that recorded without one interruption, and only
|
|
23716
|
+
* the render side knows the segments, so the translation lives there
|
|
23717
|
+
* (`export-dense-map.ts`, addon-pipeline).
|
|
23718
|
+
*
|
|
23719
|
+
* It was not always so. These seconds were fed to `between(t,…)` verbatim, and
|
|
23720
|
+
* on a 10 h window holding 29,393 s of footage every range landed late by the
|
|
23721
|
+
* gap accumulated before it — up to 6,607 s, well past EOF. Nothing matched,
|
|
23722
|
+
* the video was a uniform timelapse, and the log line reported the five ranges
|
|
23723
|
+
* that had been ASKED for (2026-08-13, export `57d14363`, camera 615).
|
|
23648
23724
|
*
|
|
23649
|
-
* Relative and not absolute epoch
|
|
23650
|
-
*
|
|
23651
|
-
* playlist. Handing it absolute epochs would make every call site responsible
|
|
23652
|
-
* for the same subtraction, and the one that forgot would emit a filter that
|
|
23653
|
-
* selects nothing — silently, as a uniform timelapse.
|
|
23725
|
+
* Relative and not absolute epoch, because an absolute epoch would make every
|
|
23726
|
+
* call site responsible for the same subtraction.
|
|
23654
23727
|
*/
|
|
23655
23728
|
var ExportDenseRangeSchema = object({
|
|
23656
23729
|
fromSec: number().nonnegative(),
|
|
@@ -30503,6 +30576,7 @@ Object.freeze({
|
|
|
30503
30576
|
"network-access": "ingress",
|
|
30504
30577
|
"smtp-provider": "email"
|
|
30505
30578
|
});
|
|
30579
|
+
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
30506
30580
|
new Set(["devices", "classes"]);
|
|
30507
30581
|
/**
|
|
30508
30582
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|
|
@@ -30780,25 +30854,32 @@ object({
|
|
|
30780
30854
|
var NativeLeaseAdmissionSchema = _enum(["all", "inferred"]);
|
|
30781
30855
|
object({
|
|
30782
30856
|
/**
|
|
30783
|
-
* How
|
|
30857
|
+
* How many delivered frames the worker HOLDS at once, waiting for each one's
|
|
30858
|
+
* detection result.
|
|
30784
30859
|
*
|
|
30785
|
-
*
|
|
30786
|
-
*
|
|
30787
|
-
*
|
|
30788
|
-
*
|
|
30789
|
-
*
|
|
30860
|
+
* This replaced a TTL on 2026-08-13, and the replacement is the whole point:
|
|
30861
|
+
* a time window was never related to the event the pixels were waiting for.
|
|
30862
|
+
* A held frame now lives from delivery until the runner has its `FrameResult`
|
|
30863
|
+
* — at which moment the runner cuts the subject tiles it actually wanted and
|
|
30864
|
+
* releases the frame. The bound exists only so a runner that stops answering
|
|
30865
|
+
* cannot pin RAM: above it the OLDEST held frame is dropped and counted.
|
|
30866
|
+
*
|
|
30867
|
+
* Sizing: the steady state is `inferenceLatency × deliveredFps`, measured at
|
|
30868
|
+
* 40-160 ms × ≤25 fps = 1-4 frames. The default leaves headroom for a hiccup
|
|
30869
|
+
* without ever approaching the old resident set (43 frames × 24.9 MB at 4K).
|
|
30870
|
+
* Raising it does not buy hit rate — it buys tolerance for a slow runner, and
|
|
30871
|
+
* `holdOverflow` on the metrics line is what says you need it.
|
|
30790
30872
|
*/
|
|
30791
|
-
|
|
30873
|
+
holdFrames: number().int().min(1).max(64),
|
|
30792
30874
|
/**
|
|
30793
30875
|
* Hard per-decode-worker RAM ceiling for retained native frames, in MB.
|
|
30794
30876
|
*
|
|
30795
|
-
*
|
|
30796
|
-
*
|
|
30797
|
-
*
|
|
30798
|
-
*
|
|
30799
|
-
*
|
|
30800
|
-
*
|
|
30801
|
-
* rather than giving RAM back — lower this knob if RAM is what you wanted.
|
|
30877
|
+
* Since 2026-08-13 this is a SAFETY ceiling and nothing else: `holdFrames`
|
|
30878
|
+
* is what decides how much is held, and the ceiling is the number above which
|
|
30879
|
+
* something is wrong. Before that it was the effective cap — at 1024 MB with
|
|
30880
|
+
* a 2 800 ms TTL a 4K camera sat pinned at `leaseMb:1020, leaseFrames:43`
|
|
30881
|
+
* with the TTL expiring nothing, which is exactly the confusion the hold
|
|
30882
|
+
* removes. `leaseMb` / `leaseFrames` still say what is resident.
|
|
30802
30883
|
* `0` DISABLES the lease entirely and falls the worker back to the tiny
|
|
30803
30884
|
* leak-prone GPU surface ring (~85% crop miss; that is what the lease exists
|
|
30804
30885
|
* to replace).
|
|
@@ -30824,22 +30905,45 @@ object({
|
|
|
30824
30905
|
* there is the signal that some caller names frames outside the inference set
|
|
30825
30906
|
* and that this must go back to `all`.
|
|
30826
30907
|
*/
|
|
30827
|
-
admission: NativeLeaseAdmissionSchema
|
|
30908
|
+
admission: NativeLeaseAdmissionSchema,
|
|
30909
|
+
/**
|
|
30910
|
+
* RAM ceiling per decode worker, in MB, for the SUBJECT TILES — the
|
|
30911
|
+
* compressed native crops the worker cuts at the moment a frame's detection
|
|
30912
|
+
* result arrives, and keeps long after the frame itself is freed.
|
|
30913
|
+
*
|
|
30914
|
+
* This is the knob that replaced the old retention window, and it buys about
|
|
30915
|
+
* three orders of magnitude more of it: a tile is one subject at native
|
|
30916
|
+
* resolution, JPEG-encoded (~60-120 KB on a 4K person), against ~24.9 MB for
|
|
30917
|
+
* the frame it was cut from. A frame on which nothing was detected costs
|
|
30918
|
+
* nothing at all, which is the real change — the old lease paid per FRAME and
|
|
30919
|
+
* was interrogated per SUBJECT.
|
|
30920
|
+
*
|
|
30921
|
+
* `0` DISABLES tiles, leaving only the hold window and the ≤640 RAM
|
|
30922
|
+
* fallback — i.e. the pre-2026-08-13 miss profile. Set it there only to
|
|
30923
|
+
* reproduce that.
|
|
30924
|
+
*/
|
|
30925
|
+
tileBudgetMb: number().int().min(0).max(1024)
|
|
30828
30926
|
});
|
|
30829
30927
|
/**
|
|
30830
|
-
* The values in force when the operator has set nothing
|
|
30831
|
-
*
|
|
30832
|
-
*
|
|
30928
|
+
* The values in force when the operator has set nothing.
|
|
30929
|
+
*
|
|
30930
|
+
* `budgetMb` stays at 1024 on the day the hold landed, deliberately: it stopped
|
|
30931
|
+
* being the retention window and became the OOM ceiling, and lowering a ceiling
|
|
30932
|
+
* in the same change that redefines it would make a regression and a retune
|
|
30933
|
+
* indistinguishable. Cut it once `tileHits` / `holdOverflow` have been read on
|
|
30934
|
+
* live traffic.
|
|
30833
30935
|
*/
|
|
30834
30936
|
var DEFAULT_NATIVE_LEASE_SETTINGS = {
|
|
30835
|
-
|
|
30937
|
+
holdFrames: 8,
|
|
30836
30938
|
budgetMb: 1024,
|
|
30837
30939
|
activityMs: 15e3,
|
|
30940
|
+
tileBudgetMb: 64,
|
|
30838
30941
|
admission: "inferred"
|
|
30839
30942
|
};
|
|
30840
|
-
DEFAULT_NATIVE_LEASE_SETTINGS.
|
|
30943
|
+
DEFAULT_NATIVE_LEASE_SETTINGS.holdFrames;
|
|
30841
30944
|
DEFAULT_NATIVE_LEASE_SETTINGS.budgetMb;
|
|
30842
30945
|
DEFAULT_NATIVE_LEASE_SETTINGS.activityMs;
|
|
30946
|
+
DEFAULT_NATIVE_LEASE_SETTINGS.tileBudgetMb;
|
|
30843
30947
|
DEFAULT_NATIVE_LEASE_SETTINGS.admission;
|
|
30844
30948
|
//#endregion
|
|
30845
30949
|
export { EventCategory as i, networkAccessCapability as n, BaseAddon as r, meshNetworkCapability as t };
|
|
@@ -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-C8p6RC4p.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-C_wvVtn8.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.15",
|
|
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",
|