@camstack/addon-static-turn 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/static-turn.addon.js +139 -35
- package/dist/static-turn.addon.mjs +139 -35
- package/package.json +1 -1
|
@@ -12951,7 +12951,23 @@ var NotificationActionSchema = object({
|
|
|
12951
12951
|
* else — see `notification-center/action-token.ts` for what that does and
|
|
12952
12952
|
* does not buy.
|
|
12953
12953
|
*/
|
|
12954
|
-
destructive: boolean().optional()
|
|
12954
|
+
destructive: boolean().optional(),
|
|
12955
|
+
/**
|
|
12956
|
+
* How the tap should REACH the url.
|
|
12957
|
+
*
|
|
12958
|
+
* `navigate` (absent, and every button authored before this field) opens it:
|
|
12959
|
+
* the phone leaves the notification and shows whatever the callback returns.
|
|
12960
|
+
* That is right for a button whose answer the operator wants to read.
|
|
12961
|
+
*
|
|
12962
|
+
* `background` fires it as a POST and stays put. It exists for the buttons
|
|
12963
|
+
* whose whole point is not to interrupt — "silence this for 30 minutes" is
|
|
12964
|
+
* an answer to the notification, and being thrown into a browser tab to
|
|
12965
|
+
* confirm it costs more attention than the notification did. A backend that
|
|
12966
|
+
* cannot do a background call renders it as an ordinary link (the adapters
|
|
12967
|
+
* fall back rather than dropping the button), so this is a preference, never
|
|
12968
|
+
* a requirement.
|
|
12969
|
+
*/
|
|
12970
|
+
mode: _enum(["navigate", "background"]).optional()
|
|
12955
12971
|
});
|
|
12956
12972
|
/**
|
|
12957
12973
|
* The canonical notification. `body` is the only hard field (Apprise model).
|
|
@@ -13952,6 +13968,9 @@ var NcSystemEventConditionSchema = object({
|
|
|
13952
13968
|
nodeIds: array(string().min(1)).min(1).optional(),
|
|
13953
13969
|
packageNames: array(string().min(1)).min(1).optional()
|
|
13954
13970
|
});
|
|
13971
|
+
/** Hard ceiling on a window (24h). A snooze that could not expire would be an
|
|
13972
|
+
* outage the operator asked for once and forgot. */
|
|
13973
|
+
var NC_SNOOZE_MAX_MINUTES = 1440;
|
|
13955
13974
|
/** Weekly schedule — OR of windows; absence on the rule = always active. */
|
|
13956
13975
|
var NcScheduleSchema = object({
|
|
13957
13976
|
windows: array(object({
|
|
@@ -14328,15 +14347,15 @@ var NcConditionsSchema = object({
|
|
|
14328
14347
|
* (an `immediate` rule naming an `audio-*` class, one notification per
|
|
14329
14348
|
* classified sample) stays exactly as it was for rules that already use it.
|
|
14330
14349
|
*
|
|
14331
|
-
*
|
|
14332
|
-
* rather than an
|
|
14333
|
-
* (`camstack/src/data/notification-center.ts`, guarded by
|
|
14334
|
-
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor
|
|
14350
|
+
* In {@link NC_CONDITION_CATALOG} since P2, and the ORDER it got there is the
|
|
14351
|
+
* rule rather than an accident: the viewer mirrors the descriptor enums BY
|
|
14352
|
+
* HAND (`camstack/src/data/notification-center.ts`, guarded by
|
|
14353
|
+
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor strips the
|
|
14335
14354
|
* condition fields it does not know when a rule is saved from the phone.
|
|
14336
14355
|
* Publishing an editor for a condition the app cannot round-trip is how an
|
|
14337
|
-
* operator loses a rule's conditions by opening it — so the
|
|
14338
|
-
*
|
|
14339
|
-
*
|
|
14356
|
+
* operator loses a rule's conditions by opening it — so the viewer mirror
|
|
14357
|
+
* (P3, shipped) went FIRST, and the descriptor an editor renders from
|
|
14358
|
+
* follows here.
|
|
14340
14359
|
*/
|
|
14341
14360
|
audio: NcAudioConditionSchema.optional()
|
|
14342
14361
|
});
|
|
@@ -14572,6 +14591,30 @@ var NcRuleInputSchema = object({
|
|
|
14572
14591
|
*/
|
|
14573
14592
|
snoozeAllowGlobal: boolean().optional(),
|
|
14574
14593
|
/**
|
|
14594
|
+
* The snooze durations THIS rule's notification offers as buttons, in
|
|
14595
|
+
* minutes.
|
|
14596
|
+
*
|
|
14597
|
+
* Three states, and all three are distinct — which is exactly why this is
|
|
14598
|
+
* `.optional()` and never `.default()`. A Zod default does not run on the
|
|
14599
|
+
* addon cap path (three production failures in one day), so a schema default
|
|
14600
|
+
* would collapse the first two:
|
|
14601
|
+
*
|
|
14602
|
+
* | value | meaning |
|
|
14603
|
+
* | --- | --- |
|
|
14604
|
+
* | absent | the operator never said ⇒ {@link NC_DEFAULT_SNOOZE_MINUTES} |
|
|
14605
|
+
* | `[]` | **no snooze buttons on this rule** — the explicit override |
|
|
14606
|
+
* | a list | these choices, de-duplicated and sorted, at most four |
|
|
14607
|
+
*
|
|
14608
|
+
* `.max(4)` because the notifier's own action budget is small (ntfy allows
|
|
14609
|
+
* three buttons in total) and a rule that spent it all on snooze choices
|
|
14610
|
+
* would push its own tap-through actions off the notification.
|
|
14611
|
+
*
|
|
14612
|
+
* An empty list is NOT an alarm exemption: a rule the alarm is about, or
|
|
14613
|
+
* that arms the panel, is exempt automatically and cannot be silenced by a
|
|
14614
|
+
* window from anywhere (D133).
|
|
14615
|
+
*/
|
|
14616
|
+
snoozeOptions: array(number().int().min(1).max(NC_SNOOZE_MAX_MINUTES)).max(4).optional(),
|
|
14617
|
+
/**
|
|
14575
14618
|
* Devices this rule ACTUATES — arm the alarm, open a gate, turn on a light.
|
|
14576
14619
|
*
|
|
14577
14620
|
* This is what makes the rule set the alarm's trigger set without the alarm
|
|
@@ -14671,6 +14714,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
14671
14714
|
"device",
|
|
14672
14715
|
"package",
|
|
14673
14716
|
"occupancy",
|
|
14717
|
+
"audio",
|
|
14674
14718
|
"system"
|
|
14675
14719
|
]),
|
|
14676
14720
|
label: string(),
|
|
@@ -14689,6 +14733,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
14689
14733
|
"crossingSelect",
|
|
14690
14734
|
"polygonDraw",
|
|
14691
14735
|
"occupancy",
|
|
14736
|
+
"audio",
|
|
14692
14737
|
"deviceState",
|
|
14693
14738
|
"systemEvent"
|
|
14694
14739
|
]),
|
|
@@ -14840,7 +14885,20 @@ var NcSnoozeInputSchema = object({
|
|
|
14840
14885
|
ruleId: string().optional(),
|
|
14841
14886
|
/** Required when `scope: 'device'`. */
|
|
14842
14887
|
deviceId: number().int().optional(),
|
|
14843
|
-
|
|
14888
|
+
/**
|
|
14889
|
+
* Narrow the window to these subject classes — "the cat, not the person".
|
|
14890
|
+
*
|
|
14891
|
+
* ORTHOGONAL to `scope`, deliberately, and absent means EVERY class: that is
|
|
14892
|
+
* what every window authored before this field meant, so no persisted row
|
|
14893
|
+
* changes meaning and no client has to learn anything to keep working.
|
|
14894
|
+
*
|
|
14895
|
+
* It is what makes the window's real key `(deviceId, classes[])` and lets it
|
|
14896
|
+
* cross rules (D133): the operator points at a camera and a kind of thing,
|
|
14897
|
+
* not at whichever of their four rules happened to produce the notification
|
|
14898
|
+
* they are dismissing.
|
|
14899
|
+
*/
|
|
14900
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
14901
|
+
durationMinutes: number().int().min(1).max(NC_SNOOZE_MAX_MINUTES),
|
|
14844
14902
|
/**
|
|
14845
14903
|
* Silence this for EVERY recipient, not just the caller. Permission is
|
|
14846
14904
|
* checked server-side (the rule's `snoozeAllowGlobal`, or admin for the
|
|
@@ -14865,6 +14923,10 @@ var NcSnoozeSchema = object({
|
|
|
14865
14923
|
scope: NcSnoozeScopeSchema,
|
|
14866
14924
|
ruleId: string().optional(),
|
|
14867
14925
|
deviceId: number().int().optional(),
|
|
14926
|
+
/** Subject classes this window covers. ABSENT = every class — see
|
|
14927
|
+
* {@link NcSnoozeInputSchema.shape.classes}. Lives in the JSON blob and has
|
|
14928
|
+
* no SQLite column: nothing queries a window by class. */
|
|
14929
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
14868
14930
|
startedAt: number(),
|
|
14869
14931
|
/** Exclusive: at exactly this instant the snooze is over. Expiry is a
|
|
14870
14932
|
* COMPARISON, not a job — no sweeper can leave the operator silenced. */
|
|
@@ -23590,13 +23652,24 @@ method(object({
|
|
|
23590
23652
|
/** Playback-speed multiplier for the render (1 = realtime). */
|
|
23591
23653
|
var ExportSpeedSchema = number().min(.25).max(32);
|
|
23592
23654
|
/**
|
|
23593
|
-
* One dense interval, in SECONDS FROM THE EXPORT'S OWN `fromMs`.
|
|
23655
|
+
* One dense interval, in WALL-CLOCK SECONDS FROM THE EXPORT'S OWN `fromMs`.
|
|
23656
|
+
*
|
|
23657
|
+
* **Wall clock, not ffmpeg's `t`** — and the recorder translates. A caller
|
|
23658
|
+
* derives these bounds from things that happened at a TIME (a track's
|
|
23659
|
+
* `firstSeen`), while `t` runs over the source playlist: the concatenation of
|
|
23660
|
+
* every segment present for the range, with each recording GAP removed. The
|
|
23661
|
+
* two agree only on a window that recorded without one interruption, and only
|
|
23662
|
+
* the render side knows the segments, so the translation lives there
|
|
23663
|
+
* (`export-dense-map.ts`, addon-pipeline).
|
|
23664
|
+
*
|
|
23665
|
+
* It was not always so. These seconds were fed to `between(t,…)` verbatim, and
|
|
23666
|
+
* on a 10 h window holding 29,393 s of footage every range landed late by the
|
|
23667
|
+
* gap accumulated before it — up to 6,607 s, well past EOF. Nothing matched,
|
|
23668
|
+
* the video was a uniform timelapse, and the log line reported the five ranges
|
|
23669
|
+
* that had been ASKED for (2026-08-13, export `57d14363`, camera 615).
|
|
23594
23670
|
*
|
|
23595
|
-
* Relative and not absolute epoch
|
|
23596
|
-
*
|
|
23597
|
-
* playlist. Handing it absolute epochs would make every call site responsible
|
|
23598
|
-
* for the same subtraction, and the one that forgot would emit a filter that
|
|
23599
|
-
* selects nothing — silently, as a uniform timelapse.
|
|
23671
|
+
* Relative and not absolute epoch, because an absolute epoch would make every
|
|
23672
|
+
* call site responsible for the same subtraction.
|
|
23600
23673
|
*/
|
|
23601
23674
|
var ExportDenseRangeSchema = object({
|
|
23602
23675
|
fromSec: number().nonnegative(),
|
|
@@ -30449,6 +30522,7 @@ Object.freeze({
|
|
|
30449
30522
|
"network-access": "ingress",
|
|
30450
30523
|
"smtp-provider": "email"
|
|
30451
30524
|
});
|
|
30525
|
+
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
30452
30526
|
new Set(["devices", "classes"]);
|
|
30453
30527
|
/**
|
|
30454
30528
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|
|
@@ -30726,25 +30800,32 @@ object({
|
|
|
30726
30800
|
var NativeLeaseAdmissionSchema = _enum(["all", "inferred"]);
|
|
30727
30801
|
object({
|
|
30728
30802
|
/**
|
|
30729
|
-
* How
|
|
30803
|
+
* How many delivered frames the worker HOLDS at once, waiting for each one's
|
|
30804
|
+
* detection result.
|
|
30730
30805
|
*
|
|
30731
|
-
*
|
|
30732
|
-
*
|
|
30733
|
-
*
|
|
30734
|
-
*
|
|
30735
|
-
*
|
|
30806
|
+
* This replaced a TTL on 2026-08-13, and the replacement is the whole point:
|
|
30807
|
+
* a time window was never related to the event the pixels were waiting for.
|
|
30808
|
+
* A held frame now lives from delivery until the runner has its `FrameResult`
|
|
30809
|
+
* — at which moment the runner cuts the subject tiles it actually wanted and
|
|
30810
|
+
* releases the frame. The bound exists only so a runner that stops answering
|
|
30811
|
+
* cannot pin RAM: above it the OLDEST held frame is dropped and counted.
|
|
30812
|
+
*
|
|
30813
|
+
* Sizing: the steady state is `inferenceLatency × deliveredFps`, measured at
|
|
30814
|
+
* 40-160 ms × ≤25 fps = 1-4 frames. The default leaves headroom for a hiccup
|
|
30815
|
+
* without ever approaching the old resident set (43 frames × 24.9 MB at 4K).
|
|
30816
|
+
* Raising it does not buy hit rate — it buys tolerance for a slow runner, and
|
|
30817
|
+
* `holdOverflow` on the metrics line is what says you need it.
|
|
30736
30818
|
*/
|
|
30737
|
-
|
|
30819
|
+
holdFrames: number().int().min(1).max(64),
|
|
30738
30820
|
/**
|
|
30739
30821
|
* Hard per-decode-worker RAM ceiling for retained native frames, in MB.
|
|
30740
30822
|
*
|
|
30741
|
-
*
|
|
30742
|
-
*
|
|
30743
|
-
*
|
|
30744
|
-
*
|
|
30745
|
-
*
|
|
30746
|
-
*
|
|
30747
|
-
* rather than giving RAM back — lower this knob if RAM is what you wanted.
|
|
30823
|
+
* Since 2026-08-13 this is a SAFETY ceiling and nothing else: `holdFrames`
|
|
30824
|
+
* is what decides how much is held, and the ceiling is the number above which
|
|
30825
|
+
* something is wrong. Before that it was the effective cap — at 1024 MB with
|
|
30826
|
+
* a 2 800 ms TTL a 4K camera sat pinned at `leaseMb:1020, leaseFrames:43`
|
|
30827
|
+
* with the TTL expiring nothing, which is exactly the confusion the hold
|
|
30828
|
+
* removes. `leaseMb` / `leaseFrames` still say what is resident.
|
|
30748
30829
|
* `0` DISABLES the lease entirely and falls the worker back to the tiny
|
|
30749
30830
|
* leak-prone GPU surface ring (~85% crop miss; that is what the lease exists
|
|
30750
30831
|
* to replace).
|
|
@@ -30770,22 +30851,45 @@ object({
|
|
|
30770
30851
|
* there is the signal that some caller names frames outside the inference set
|
|
30771
30852
|
* and that this must go back to `all`.
|
|
30772
30853
|
*/
|
|
30773
|
-
admission: NativeLeaseAdmissionSchema
|
|
30854
|
+
admission: NativeLeaseAdmissionSchema,
|
|
30855
|
+
/**
|
|
30856
|
+
* RAM ceiling per decode worker, in MB, for the SUBJECT TILES — the
|
|
30857
|
+
* compressed native crops the worker cuts at the moment a frame's detection
|
|
30858
|
+
* result arrives, and keeps long after the frame itself is freed.
|
|
30859
|
+
*
|
|
30860
|
+
* This is the knob that replaced the old retention window, and it buys about
|
|
30861
|
+
* three orders of magnitude more of it: a tile is one subject at native
|
|
30862
|
+
* resolution, JPEG-encoded (~60-120 KB on a 4K person), against ~24.9 MB for
|
|
30863
|
+
* the frame it was cut from. A frame on which nothing was detected costs
|
|
30864
|
+
* nothing at all, which is the real change — the old lease paid per FRAME and
|
|
30865
|
+
* was interrogated per SUBJECT.
|
|
30866
|
+
*
|
|
30867
|
+
* `0` DISABLES tiles, leaving only the hold window and the ≤640 RAM
|
|
30868
|
+
* fallback — i.e. the pre-2026-08-13 miss profile. Set it there only to
|
|
30869
|
+
* reproduce that.
|
|
30870
|
+
*/
|
|
30871
|
+
tileBudgetMb: number().int().min(0).max(1024)
|
|
30774
30872
|
});
|
|
30775
30873
|
/**
|
|
30776
|
-
* The values in force when the operator has set nothing
|
|
30777
|
-
*
|
|
30778
|
-
*
|
|
30874
|
+
* The values in force when the operator has set nothing.
|
|
30875
|
+
*
|
|
30876
|
+
* `budgetMb` stays at 1024 on the day the hold landed, deliberately: it stopped
|
|
30877
|
+
* being the retention window and became the OOM ceiling, and lowering a ceiling
|
|
30878
|
+
* in the same change that redefines it would make a regression and a retune
|
|
30879
|
+
* indistinguishable. Cut it once `tileHits` / `holdOverflow` have been read on
|
|
30880
|
+
* live traffic.
|
|
30779
30881
|
*/
|
|
30780
30882
|
var DEFAULT_NATIVE_LEASE_SETTINGS = {
|
|
30781
|
-
|
|
30883
|
+
holdFrames: 8,
|
|
30782
30884
|
budgetMb: 1024,
|
|
30783
30885
|
activityMs: 15e3,
|
|
30886
|
+
tileBudgetMb: 64,
|
|
30784
30887
|
admission: "inferred"
|
|
30785
30888
|
};
|
|
30786
|
-
DEFAULT_NATIVE_LEASE_SETTINGS.
|
|
30889
|
+
DEFAULT_NATIVE_LEASE_SETTINGS.holdFrames;
|
|
30787
30890
|
DEFAULT_NATIVE_LEASE_SETTINGS.budgetMb;
|
|
30788
30891
|
DEFAULT_NATIVE_LEASE_SETTINGS.activityMs;
|
|
30892
|
+
DEFAULT_NATIVE_LEASE_SETTINGS.tileBudgetMb;
|
|
30789
30893
|
DEFAULT_NATIVE_LEASE_SETTINGS.admission;
|
|
30790
30894
|
//#endregion
|
|
30791
30895
|
//#region src/static-turn.addon.ts
|
|
@@ -12950,7 +12950,23 @@ var NotificationActionSchema = object({
|
|
|
12950
12950
|
* else — see `notification-center/action-token.ts` for what that does and
|
|
12951
12951
|
* does not buy.
|
|
12952
12952
|
*/
|
|
12953
|
-
destructive: boolean().optional()
|
|
12953
|
+
destructive: boolean().optional(),
|
|
12954
|
+
/**
|
|
12955
|
+
* How the tap should REACH the url.
|
|
12956
|
+
*
|
|
12957
|
+
* `navigate` (absent, and every button authored before this field) opens it:
|
|
12958
|
+
* the phone leaves the notification and shows whatever the callback returns.
|
|
12959
|
+
* That is right for a button whose answer the operator wants to read.
|
|
12960
|
+
*
|
|
12961
|
+
* `background` fires it as a POST and stays put. It exists for the buttons
|
|
12962
|
+
* whose whole point is not to interrupt — "silence this for 30 minutes" is
|
|
12963
|
+
* an answer to the notification, and being thrown into a browser tab to
|
|
12964
|
+
* confirm it costs more attention than the notification did. A backend that
|
|
12965
|
+
* cannot do a background call renders it as an ordinary link (the adapters
|
|
12966
|
+
* fall back rather than dropping the button), so this is a preference, never
|
|
12967
|
+
* a requirement.
|
|
12968
|
+
*/
|
|
12969
|
+
mode: _enum(["navigate", "background"]).optional()
|
|
12954
12970
|
});
|
|
12955
12971
|
/**
|
|
12956
12972
|
* The canonical notification. `body` is the only hard field (Apprise model).
|
|
@@ -13951,6 +13967,9 @@ var NcSystemEventConditionSchema = object({
|
|
|
13951
13967
|
nodeIds: array(string().min(1)).min(1).optional(),
|
|
13952
13968
|
packageNames: array(string().min(1)).min(1).optional()
|
|
13953
13969
|
});
|
|
13970
|
+
/** Hard ceiling on a window (24h). A snooze that could not expire would be an
|
|
13971
|
+
* outage the operator asked for once and forgot. */
|
|
13972
|
+
var NC_SNOOZE_MAX_MINUTES = 1440;
|
|
13954
13973
|
/** Weekly schedule — OR of windows; absence on the rule = always active. */
|
|
13955
13974
|
var NcScheduleSchema = object({
|
|
13956
13975
|
windows: array(object({
|
|
@@ -14327,15 +14346,15 @@ var NcConditionsSchema = object({
|
|
|
14327
14346
|
* (an `immediate` rule naming an `audio-*` class, one notification per
|
|
14328
14347
|
* classified sample) stays exactly as it was for rules that already use it.
|
|
14329
14348
|
*
|
|
14330
|
-
*
|
|
14331
|
-
* rather than an
|
|
14332
|
-
* (`camstack/src/data/notification-center.ts`, guarded by
|
|
14333
|
-
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor
|
|
14349
|
+
* In {@link NC_CONDITION_CATALOG} since P2, and the ORDER it got there is the
|
|
14350
|
+
* rule rather than an accident: the viewer mirrors the descriptor enums BY
|
|
14351
|
+
* HAND (`camstack/src/data/notification-center.ts`, guarded by
|
|
14352
|
+
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor strips the
|
|
14334
14353
|
* condition fields it does not know when a rule is saved from the phone.
|
|
14335
14354
|
* Publishing an editor for a condition the app cannot round-trip is how an
|
|
14336
|
-
* operator loses a rule's conditions by opening it — so the
|
|
14337
|
-
*
|
|
14338
|
-
*
|
|
14355
|
+
* operator loses a rule's conditions by opening it — so the viewer mirror
|
|
14356
|
+
* (P3, shipped) went FIRST, and the descriptor an editor renders from
|
|
14357
|
+
* follows here.
|
|
14339
14358
|
*/
|
|
14340
14359
|
audio: NcAudioConditionSchema.optional()
|
|
14341
14360
|
});
|
|
@@ -14571,6 +14590,30 @@ var NcRuleInputSchema = object({
|
|
|
14571
14590
|
*/
|
|
14572
14591
|
snoozeAllowGlobal: boolean().optional(),
|
|
14573
14592
|
/**
|
|
14593
|
+
* The snooze durations THIS rule's notification offers as buttons, in
|
|
14594
|
+
* minutes.
|
|
14595
|
+
*
|
|
14596
|
+
* Three states, and all three are distinct — which is exactly why this is
|
|
14597
|
+
* `.optional()` and never `.default()`. A Zod default does not run on the
|
|
14598
|
+
* addon cap path (three production failures in one day), so a schema default
|
|
14599
|
+
* would collapse the first two:
|
|
14600
|
+
*
|
|
14601
|
+
* | value | meaning |
|
|
14602
|
+
* | --- | --- |
|
|
14603
|
+
* | absent | the operator never said ⇒ {@link NC_DEFAULT_SNOOZE_MINUTES} |
|
|
14604
|
+
* | `[]` | **no snooze buttons on this rule** — the explicit override |
|
|
14605
|
+
* | a list | these choices, de-duplicated and sorted, at most four |
|
|
14606
|
+
*
|
|
14607
|
+
* `.max(4)` because the notifier's own action budget is small (ntfy allows
|
|
14608
|
+
* three buttons in total) and a rule that spent it all on snooze choices
|
|
14609
|
+
* would push its own tap-through actions off the notification.
|
|
14610
|
+
*
|
|
14611
|
+
* An empty list is NOT an alarm exemption: a rule the alarm is about, or
|
|
14612
|
+
* that arms the panel, is exempt automatically and cannot be silenced by a
|
|
14613
|
+
* window from anywhere (D133).
|
|
14614
|
+
*/
|
|
14615
|
+
snoozeOptions: array(number().int().min(1).max(NC_SNOOZE_MAX_MINUTES)).max(4).optional(),
|
|
14616
|
+
/**
|
|
14574
14617
|
* Devices this rule ACTUATES — arm the alarm, open a gate, turn on a light.
|
|
14575
14618
|
*
|
|
14576
14619
|
* This is what makes the rule set the alarm's trigger set without the alarm
|
|
@@ -14670,6 +14713,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
14670
14713
|
"device",
|
|
14671
14714
|
"package",
|
|
14672
14715
|
"occupancy",
|
|
14716
|
+
"audio",
|
|
14673
14717
|
"system"
|
|
14674
14718
|
]),
|
|
14675
14719
|
label: string(),
|
|
@@ -14688,6 +14732,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
14688
14732
|
"crossingSelect",
|
|
14689
14733
|
"polygonDraw",
|
|
14690
14734
|
"occupancy",
|
|
14735
|
+
"audio",
|
|
14691
14736
|
"deviceState",
|
|
14692
14737
|
"systemEvent"
|
|
14693
14738
|
]),
|
|
@@ -14839,7 +14884,20 @@ var NcSnoozeInputSchema = object({
|
|
|
14839
14884
|
ruleId: string().optional(),
|
|
14840
14885
|
/** Required when `scope: 'device'`. */
|
|
14841
14886
|
deviceId: number().int().optional(),
|
|
14842
|
-
|
|
14887
|
+
/**
|
|
14888
|
+
* Narrow the window to these subject classes — "the cat, not the person".
|
|
14889
|
+
*
|
|
14890
|
+
* ORTHOGONAL to `scope`, deliberately, and absent means EVERY class: that is
|
|
14891
|
+
* what every window authored before this field meant, so no persisted row
|
|
14892
|
+
* changes meaning and no client has to learn anything to keep working.
|
|
14893
|
+
*
|
|
14894
|
+
* It is what makes the window's real key `(deviceId, classes[])` and lets it
|
|
14895
|
+
* cross rules (D133): the operator points at a camera and a kind of thing,
|
|
14896
|
+
* not at whichever of their four rules happened to produce the notification
|
|
14897
|
+
* they are dismissing.
|
|
14898
|
+
*/
|
|
14899
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
14900
|
+
durationMinutes: number().int().min(1).max(NC_SNOOZE_MAX_MINUTES),
|
|
14843
14901
|
/**
|
|
14844
14902
|
* Silence this for EVERY recipient, not just the caller. Permission is
|
|
14845
14903
|
* checked server-side (the rule's `snoozeAllowGlobal`, or admin for the
|
|
@@ -14864,6 +14922,10 @@ var NcSnoozeSchema = object({
|
|
|
14864
14922
|
scope: NcSnoozeScopeSchema,
|
|
14865
14923
|
ruleId: string().optional(),
|
|
14866
14924
|
deviceId: number().int().optional(),
|
|
14925
|
+
/** Subject classes this window covers. ABSENT = every class — see
|
|
14926
|
+
* {@link NcSnoozeInputSchema.shape.classes}. Lives in the JSON blob and has
|
|
14927
|
+
* no SQLite column: nothing queries a window by class. */
|
|
14928
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
14867
14929
|
startedAt: number(),
|
|
14868
14930
|
/** Exclusive: at exactly this instant the snooze is over. Expiry is a
|
|
14869
14931
|
* COMPARISON, not a job — no sweeper can leave the operator silenced. */
|
|
@@ -23589,13 +23651,24 @@ method(object({
|
|
|
23589
23651
|
/** Playback-speed multiplier for the render (1 = realtime). */
|
|
23590
23652
|
var ExportSpeedSchema = number().min(.25).max(32);
|
|
23591
23653
|
/**
|
|
23592
|
-
* One dense interval, in SECONDS FROM THE EXPORT'S OWN `fromMs`.
|
|
23654
|
+
* One dense interval, in WALL-CLOCK SECONDS FROM THE EXPORT'S OWN `fromMs`.
|
|
23655
|
+
*
|
|
23656
|
+
* **Wall clock, not ffmpeg's `t`** — and the recorder translates. A caller
|
|
23657
|
+
* derives these bounds from things that happened at a TIME (a track's
|
|
23658
|
+
* `firstSeen`), while `t` runs over the source playlist: the concatenation of
|
|
23659
|
+
* every segment present for the range, with each recording GAP removed. The
|
|
23660
|
+
* two agree only on a window that recorded without one interruption, and only
|
|
23661
|
+
* the render side knows the segments, so the translation lives there
|
|
23662
|
+
* (`export-dense-map.ts`, addon-pipeline).
|
|
23663
|
+
*
|
|
23664
|
+
* It was not always so. These seconds were fed to `between(t,…)` verbatim, and
|
|
23665
|
+
* on a 10 h window holding 29,393 s of footage every range landed late by the
|
|
23666
|
+
* gap accumulated before it — up to 6,607 s, well past EOF. Nothing matched,
|
|
23667
|
+
* the video was a uniform timelapse, and the log line reported the five ranges
|
|
23668
|
+
* that had been ASKED for (2026-08-13, export `57d14363`, camera 615).
|
|
23593
23669
|
*
|
|
23594
|
-
* Relative and not absolute epoch
|
|
23595
|
-
*
|
|
23596
|
-
* playlist. Handing it absolute epochs would make every call site responsible
|
|
23597
|
-
* for the same subtraction, and the one that forgot would emit a filter that
|
|
23598
|
-
* selects nothing — silently, as a uniform timelapse.
|
|
23670
|
+
* Relative and not absolute epoch, because an absolute epoch would make every
|
|
23671
|
+
* call site responsible for the same subtraction.
|
|
23599
23672
|
*/
|
|
23600
23673
|
var ExportDenseRangeSchema = object({
|
|
23601
23674
|
fromSec: number().nonnegative(),
|
|
@@ -30448,6 +30521,7 @@ Object.freeze({
|
|
|
30448
30521
|
"network-access": "ingress",
|
|
30449
30522
|
"smtp-provider": "email"
|
|
30450
30523
|
});
|
|
30524
|
+
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
30451
30525
|
new Set(["devices", "classes"]);
|
|
30452
30526
|
/**
|
|
30453
30527
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|
|
@@ -30725,25 +30799,32 @@ object({
|
|
|
30725
30799
|
var NativeLeaseAdmissionSchema = _enum(["all", "inferred"]);
|
|
30726
30800
|
object({
|
|
30727
30801
|
/**
|
|
30728
|
-
* How
|
|
30802
|
+
* How many delivered frames the worker HOLDS at once, waiting for each one's
|
|
30803
|
+
* detection result.
|
|
30729
30804
|
*
|
|
30730
|
-
*
|
|
30731
|
-
*
|
|
30732
|
-
*
|
|
30733
|
-
*
|
|
30734
|
-
*
|
|
30805
|
+
* This replaced a TTL on 2026-08-13, and the replacement is the whole point:
|
|
30806
|
+
* a time window was never related to the event the pixels were waiting for.
|
|
30807
|
+
* A held frame now lives from delivery until the runner has its `FrameResult`
|
|
30808
|
+
* — at which moment the runner cuts the subject tiles it actually wanted and
|
|
30809
|
+
* releases the frame. The bound exists only so a runner that stops answering
|
|
30810
|
+
* cannot pin RAM: above it the OLDEST held frame is dropped and counted.
|
|
30811
|
+
*
|
|
30812
|
+
* Sizing: the steady state is `inferenceLatency × deliveredFps`, measured at
|
|
30813
|
+
* 40-160 ms × ≤25 fps = 1-4 frames. The default leaves headroom for a hiccup
|
|
30814
|
+
* without ever approaching the old resident set (43 frames × 24.9 MB at 4K).
|
|
30815
|
+
* Raising it does not buy hit rate — it buys tolerance for a slow runner, and
|
|
30816
|
+
* `holdOverflow` on the metrics line is what says you need it.
|
|
30735
30817
|
*/
|
|
30736
|
-
|
|
30818
|
+
holdFrames: number().int().min(1).max(64),
|
|
30737
30819
|
/**
|
|
30738
30820
|
* Hard per-decode-worker RAM ceiling for retained native frames, in MB.
|
|
30739
30821
|
*
|
|
30740
|
-
*
|
|
30741
|
-
*
|
|
30742
|
-
*
|
|
30743
|
-
*
|
|
30744
|
-
*
|
|
30745
|
-
*
|
|
30746
|
-
* rather than giving RAM back — lower this knob if RAM is what you wanted.
|
|
30822
|
+
* Since 2026-08-13 this is a SAFETY ceiling and nothing else: `holdFrames`
|
|
30823
|
+
* is what decides how much is held, and the ceiling is the number above which
|
|
30824
|
+
* something is wrong. Before that it was the effective cap — at 1024 MB with
|
|
30825
|
+
* a 2 800 ms TTL a 4K camera sat pinned at `leaseMb:1020, leaseFrames:43`
|
|
30826
|
+
* with the TTL expiring nothing, which is exactly the confusion the hold
|
|
30827
|
+
* removes. `leaseMb` / `leaseFrames` still say what is resident.
|
|
30747
30828
|
* `0` DISABLES the lease entirely and falls the worker back to the tiny
|
|
30748
30829
|
* leak-prone GPU surface ring (~85% crop miss; that is what the lease exists
|
|
30749
30830
|
* to replace).
|
|
@@ -30769,22 +30850,45 @@ object({
|
|
|
30769
30850
|
* there is the signal that some caller names frames outside the inference set
|
|
30770
30851
|
* and that this must go back to `all`.
|
|
30771
30852
|
*/
|
|
30772
|
-
admission: NativeLeaseAdmissionSchema
|
|
30853
|
+
admission: NativeLeaseAdmissionSchema,
|
|
30854
|
+
/**
|
|
30855
|
+
* RAM ceiling per decode worker, in MB, for the SUBJECT TILES — the
|
|
30856
|
+
* compressed native crops the worker cuts at the moment a frame's detection
|
|
30857
|
+
* result arrives, and keeps long after the frame itself is freed.
|
|
30858
|
+
*
|
|
30859
|
+
* This is the knob that replaced the old retention window, and it buys about
|
|
30860
|
+
* three orders of magnitude more of it: a tile is one subject at native
|
|
30861
|
+
* resolution, JPEG-encoded (~60-120 KB on a 4K person), against ~24.9 MB for
|
|
30862
|
+
* the frame it was cut from. A frame on which nothing was detected costs
|
|
30863
|
+
* nothing at all, which is the real change — the old lease paid per FRAME and
|
|
30864
|
+
* was interrogated per SUBJECT.
|
|
30865
|
+
*
|
|
30866
|
+
* `0` DISABLES tiles, leaving only the hold window and the ≤640 RAM
|
|
30867
|
+
* fallback — i.e. the pre-2026-08-13 miss profile. Set it there only to
|
|
30868
|
+
* reproduce that.
|
|
30869
|
+
*/
|
|
30870
|
+
tileBudgetMb: number().int().min(0).max(1024)
|
|
30773
30871
|
});
|
|
30774
30872
|
/**
|
|
30775
|
-
* The values in force when the operator has set nothing
|
|
30776
|
-
*
|
|
30777
|
-
*
|
|
30873
|
+
* The values in force when the operator has set nothing.
|
|
30874
|
+
*
|
|
30875
|
+
* `budgetMb` stays at 1024 on the day the hold landed, deliberately: it stopped
|
|
30876
|
+
* being the retention window and became the OOM ceiling, and lowering a ceiling
|
|
30877
|
+
* in the same change that redefines it would make a regression and a retune
|
|
30878
|
+
* indistinguishable. Cut it once `tileHits` / `holdOverflow` have been read on
|
|
30879
|
+
* live traffic.
|
|
30778
30880
|
*/
|
|
30779
30881
|
var DEFAULT_NATIVE_LEASE_SETTINGS = {
|
|
30780
|
-
|
|
30882
|
+
holdFrames: 8,
|
|
30781
30883
|
budgetMb: 1024,
|
|
30782
30884
|
activityMs: 15e3,
|
|
30885
|
+
tileBudgetMb: 64,
|
|
30783
30886
|
admission: "inferred"
|
|
30784
30887
|
};
|
|
30785
|
-
DEFAULT_NATIVE_LEASE_SETTINGS.
|
|
30888
|
+
DEFAULT_NATIVE_LEASE_SETTINGS.holdFrames;
|
|
30786
30889
|
DEFAULT_NATIVE_LEASE_SETTINGS.budgetMb;
|
|
30787
30890
|
DEFAULT_NATIVE_LEASE_SETTINGS.activityMs;
|
|
30891
|
+
DEFAULT_NATIVE_LEASE_SETTINGS.tileBudgetMb;
|
|
30788
30892
|
DEFAULT_NATIVE_LEASE_SETTINGS.admission;
|
|
30789
30893
|
//#endregion
|
|
30790
30894
|
//#region src/static-turn.addon.ts
|