@camstack/addon-export-hap 1.2.24 → 1.2.26
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/hap-export.addon.js +140 -36
- package/dist/hap-export.addon.mjs +140 -36
- package/package.json +1 -1
package/dist/hap-export.addon.js
CHANGED
|
@@ -13768,7 +13768,23 @@ var NotificationActionSchema = object({
|
|
|
13768
13768
|
* else — see `notification-center/action-token.ts` for what that does and
|
|
13769
13769
|
* does not buy.
|
|
13770
13770
|
*/
|
|
13771
|
-
destructive: boolean().optional()
|
|
13771
|
+
destructive: boolean().optional(),
|
|
13772
|
+
/**
|
|
13773
|
+
* How the tap should REACH the url.
|
|
13774
|
+
*
|
|
13775
|
+
* `navigate` (absent, and every button authored before this field) opens it:
|
|
13776
|
+
* the phone leaves the notification and shows whatever the callback returns.
|
|
13777
|
+
* That is right for a button whose answer the operator wants to read.
|
|
13778
|
+
*
|
|
13779
|
+
* `background` fires it as a POST and stays put. It exists for the buttons
|
|
13780
|
+
* whose whole point is not to interrupt — "silence this for 30 minutes" is
|
|
13781
|
+
* an answer to the notification, and being thrown into a browser tab to
|
|
13782
|
+
* confirm it costs more attention than the notification did. A backend that
|
|
13783
|
+
* cannot do a background call renders it as an ordinary link (the adapters
|
|
13784
|
+
* fall back rather than dropping the button), so this is a preference, never
|
|
13785
|
+
* a requirement.
|
|
13786
|
+
*/
|
|
13787
|
+
mode: _enum(["navigate", "background"]).optional()
|
|
13772
13788
|
});
|
|
13773
13789
|
/**
|
|
13774
13790
|
* The canonical notification. `body` is the only hard field (Apprise model).
|
|
@@ -14769,6 +14785,9 @@ var NcSystemEventConditionSchema = object({
|
|
|
14769
14785
|
nodeIds: array(string().min(1)).min(1).optional(),
|
|
14770
14786
|
packageNames: array(string().min(1)).min(1).optional()
|
|
14771
14787
|
});
|
|
14788
|
+
/** Hard ceiling on a window (24h). A snooze that could not expire would be an
|
|
14789
|
+
* outage the operator asked for once and forgot. */
|
|
14790
|
+
var NC_SNOOZE_MAX_MINUTES = 1440;
|
|
14772
14791
|
/** Weekly schedule — OR of windows; absence on the rule = always active. */
|
|
14773
14792
|
var NcScheduleSchema = object({
|
|
14774
14793
|
windows: array(object({
|
|
@@ -15145,15 +15164,15 @@ var NcConditionsSchema = object({
|
|
|
15145
15164
|
* (an `immediate` rule naming an `audio-*` class, one notification per
|
|
15146
15165
|
* classified sample) stays exactly as it was for rules that already use it.
|
|
15147
15166
|
*
|
|
15148
|
-
*
|
|
15149
|
-
* rather than an
|
|
15150
|
-
* (`camstack/src/data/notification-center.ts`, guarded by
|
|
15151
|
-
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor
|
|
15167
|
+
* In {@link NC_CONDITION_CATALOG} since P2, and the ORDER it got there is the
|
|
15168
|
+
* rule rather than an accident: the viewer mirrors the descriptor enums BY
|
|
15169
|
+
* HAND (`camstack/src/data/notification-center.ts`, guarded by
|
|
15170
|
+
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor strips the
|
|
15152
15171
|
* condition fields it does not know when a rule is saved from the phone.
|
|
15153
15172
|
* Publishing an editor for a condition the app cannot round-trip is how an
|
|
15154
|
-
* operator loses a rule's conditions by opening it — so the
|
|
15155
|
-
*
|
|
15156
|
-
*
|
|
15173
|
+
* operator loses a rule's conditions by opening it — so the viewer mirror
|
|
15174
|
+
* (P3, shipped) went FIRST, and the descriptor an editor renders from
|
|
15175
|
+
* follows here.
|
|
15157
15176
|
*/
|
|
15158
15177
|
audio: NcAudioConditionSchema.optional()
|
|
15159
15178
|
});
|
|
@@ -15389,6 +15408,30 @@ var NcRuleInputSchema = object({
|
|
|
15389
15408
|
*/
|
|
15390
15409
|
snoozeAllowGlobal: boolean().optional(),
|
|
15391
15410
|
/**
|
|
15411
|
+
* The snooze durations THIS rule's notification offers as buttons, in
|
|
15412
|
+
* minutes.
|
|
15413
|
+
*
|
|
15414
|
+
* Three states, and all three are distinct — which is exactly why this is
|
|
15415
|
+
* `.optional()` and never `.default()`. A Zod default does not run on the
|
|
15416
|
+
* addon cap path (three production failures in one day), so a schema default
|
|
15417
|
+
* would collapse the first two:
|
|
15418
|
+
*
|
|
15419
|
+
* | value | meaning |
|
|
15420
|
+
* | --- | --- |
|
|
15421
|
+
* | absent | the operator never said ⇒ {@link NC_DEFAULT_SNOOZE_MINUTES} |
|
|
15422
|
+
* | `[]` | **no snooze buttons on this rule** — the explicit override |
|
|
15423
|
+
* | a list | these choices, de-duplicated and sorted, at most four |
|
|
15424
|
+
*
|
|
15425
|
+
* `.max(4)` because the notifier's own action budget is small (ntfy allows
|
|
15426
|
+
* three buttons in total) and a rule that spent it all on snooze choices
|
|
15427
|
+
* would push its own tap-through actions off the notification.
|
|
15428
|
+
*
|
|
15429
|
+
* An empty list is NOT an alarm exemption: a rule the alarm is about, or
|
|
15430
|
+
* that arms the panel, is exempt automatically and cannot be silenced by a
|
|
15431
|
+
* window from anywhere (D133).
|
|
15432
|
+
*/
|
|
15433
|
+
snoozeOptions: array(number().int().min(1).max(NC_SNOOZE_MAX_MINUTES)).max(4).optional(),
|
|
15434
|
+
/**
|
|
15392
15435
|
* Devices this rule ACTUATES — arm the alarm, open a gate, turn on a light.
|
|
15393
15436
|
*
|
|
15394
15437
|
* This is what makes the rule set the alarm's trigger set without the alarm
|
|
@@ -15488,6 +15531,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
15488
15531
|
"device",
|
|
15489
15532
|
"package",
|
|
15490
15533
|
"occupancy",
|
|
15534
|
+
"audio",
|
|
15491
15535
|
"system"
|
|
15492
15536
|
]),
|
|
15493
15537
|
label: string(),
|
|
@@ -15506,6 +15550,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
15506
15550
|
"crossingSelect",
|
|
15507
15551
|
"polygonDraw",
|
|
15508
15552
|
"occupancy",
|
|
15553
|
+
"audio",
|
|
15509
15554
|
"deviceState",
|
|
15510
15555
|
"systemEvent"
|
|
15511
15556
|
]),
|
|
@@ -15657,7 +15702,20 @@ var NcSnoozeInputSchema = object({
|
|
|
15657
15702
|
ruleId: string().optional(),
|
|
15658
15703
|
/** Required when `scope: 'device'`. */
|
|
15659
15704
|
deviceId: number().int().optional(),
|
|
15660
|
-
|
|
15705
|
+
/**
|
|
15706
|
+
* Narrow the window to these subject classes — "the cat, not the person".
|
|
15707
|
+
*
|
|
15708
|
+
* ORTHOGONAL to `scope`, deliberately, and absent means EVERY class: that is
|
|
15709
|
+
* what every window authored before this field meant, so no persisted row
|
|
15710
|
+
* changes meaning and no client has to learn anything to keep working.
|
|
15711
|
+
*
|
|
15712
|
+
* It is what makes the window's real key `(deviceId, classes[])` and lets it
|
|
15713
|
+
* cross rules (D133): the operator points at a camera and a kind of thing,
|
|
15714
|
+
* not at whichever of their four rules happened to produce the notification
|
|
15715
|
+
* they are dismissing.
|
|
15716
|
+
*/
|
|
15717
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
15718
|
+
durationMinutes: number().int().min(1).max(NC_SNOOZE_MAX_MINUTES),
|
|
15661
15719
|
/**
|
|
15662
15720
|
* Silence this for EVERY recipient, not just the caller. Permission is
|
|
15663
15721
|
* checked server-side (the rule's `snoozeAllowGlobal`, or admin for the
|
|
@@ -15682,6 +15740,10 @@ var NcSnoozeSchema = object({
|
|
|
15682
15740
|
scope: NcSnoozeScopeSchema,
|
|
15683
15741
|
ruleId: string().optional(),
|
|
15684
15742
|
deviceId: number().int().optional(),
|
|
15743
|
+
/** Subject classes this window covers. ABSENT = every class — see
|
|
15744
|
+
* {@link NcSnoozeInputSchema.shape.classes}. Lives in the JSON blob and has
|
|
15745
|
+
* no SQLite column: nothing queries a window by class. */
|
|
15746
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
15685
15747
|
startedAt: number(),
|
|
15686
15748
|
/** Exclusive: at exactly this instant the snooze is over. Expiry is a
|
|
15687
15749
|
* COMPARISON, not a job — no sweeper can leave the operator silenced. */
|
|
@@ -24384,13 +24446,24 @@ method(object({
|
|
|
24384
24446
|
/** Playback-speed multiplier for the render (1 = realtime). */
|
|
24385
24447
|
var ExportSpeedSchema = number().min(.25).max(32);
|
|
24386
24448
|
/**
|
|
24387
|
-
* One dense interval, in SECONDS FROM THE EXPORT'S OWN `fromMs`.
|
|
24388
|
-
*
|
|
24389
|
-
*
|
|
24390
|
-
*
|
|
24391
|
-
*
|
|
24392
|
-
*
|
|
24393
|
-
*
|
|
24449
|
+
* One dense interval, in WALL-CLOCK SECONDS FROM THE EXPORT'S OWN `fromMs`.
|
|
24450
|
+
*
|
|
24451
|
+
* **Wall clock, not ffmpeg's `t`** — and the recorder translates. A caller
|
|
24452
|
+
* derives these bounds from things that happened at a TIME (a track's
|
|
24453
|
+
* `firstSeen`), while `t` runs over the source playlist: the concatenation of
|
|
24454
|
+
* every segment present for the range, with each recording GAP removed. The
|
|
24455
|
+
* two agree only on a window that recorded without one interruption, and only
|
|
24456
|
+
* the render side knows the segments, so the translation lives there
|
|
24457
|
+
* (`export-dense-map.ts`, addon-pipeline).
|
|
24458
|
+
*
|
|
24459
|
+
* It was not always so. These seconds were fed to `between(t,…)` verbatim, and
|
|
24460
|
+
* on a 10 h window holding 29,393 s of footage every range landed late by the
|
|
24461
|
+
* gap accumulated before it — up to 6,607 s, well past EOF. Nothing matched,
|
|
24462
|
+
* the video was a uniform timelapse, and the log line reported the five ranges
|
|
24463
|
+
* that had been ASKED for (2026-08-13, export `57d14363`, camera 615).
|
|
24464
|
+
*
|
|
24465
|
+
* Relative and not absolute epoch, because an absolute epoch would make every
|
|
24466
|
+
* call site responsible for the same subtraction.
|
|
24394
24467
|
*/
|
|
24395
24468
|
var ExportDenseRangeSchema = object({
|
|
24396
24469
|
fromSec: number().nonnegative(),
|
|
@@ -31243,6 +31316,7 @@ Object.freeze({
|
|
|
31243
31316
|
"network-access": "ingress",
|
|
31244
31317
|
"smtp-provider": "email"
|
|
31245
31318
|
});
|
|
31319
|
+
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
31246
31320
|
new Set(["devices", "classes"]);
|
|
31247
31321
|
/**
|
|
31248
31322
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|
|
@@ -31520,25 +31594,32 @@ object({
|
|
|
31520
31594
|
var NativeLeaseAdmissionSchema = _enum(["all", "inferred"]);
|
|
31521
31595
|
object({
|
|
31522
31596
|
/**
|
|
31523
|
-
* How
|
|
31597
|
+
* How many delivered frames the worker HOLDS at once, waiting for each one's
|
|
31598
|
+
* detection result.
|
|
31524
31599
|
*
|
|
31525
|
-
*
|
|
31526
|
-
*
|
|
31527
|
-
*
|
|
31528
|
-
*
|
|
31529
|
-
*
|
|
31600
|
+
* This replaced a TTL on 2026-08-13, and the replacement is the whole point:
|
|
31601
|
+
* a time window was never related to the event the pixels were waiting for.
|
|
31602
|
+
* A held frame now lives from delivery until the runner has its `FrameResult`
|
|
31603
|
+
* — at which moment the runner cuts the subject tiles it actually wanted and
|
|
31604
|
+
* releases the frame. The bound exists only so a runner that stops answering
|
|
31605
|
+
* cannot pin RAM: above it the OLDEST held frame is dropped and counted.
|
|
31606
|
+
*
|
|
31607
|
+
* Sizing: the steady state is `inferenceLatency × deliveredFps`, measured at
|
|
31608
|
+
* 40-160 ms × ≤25 fps = 1-4 frames. The default leaves headroom for a hiccup
|
|
31609
|
+
* without ever approaching the old resident set (43 frames × 24.9 MB at 4K).
|
|
31610
|
+
* Raising it does not buy hit rate — it buys tolerance for a slow runner, and
|
|
31611
|
+
* `holdOverflow` on the metrics line is what says you need it.
|
|
31530
31612
|
*/
|
|
31531
|
-
|
|
31613
|
+
holdFrames: number().int().min(1).max(64),
|
|
31532
31614
|
/**
|
|
31533
31615
|
* Hard per-decode-worker RAM ceiling for retained native frames, in MB.
|
|
31534
31616
|
*
|
|
31535
|
-
*
|
|
31536
|
-
*
|
|
31537
|
-
*
|
|
31538
|
-
*
|
|
31539
|
-
*
|
|
31540
|
-
*
|
|
31541
|
-
* rather than giving RAM back — lower this knob if RAM is what you wanted.
|
|
31617
|
+
* Since 2026-08-13 this is a SAFETY ceiling and nothing else: `holdFrames`
|
|
31618
|
+
* is what decides how much is held, and the ceiling is the number above which
|
|
31619
|
+
* something is wrong. Before that it was the effective cap — at 1024 MB with
|
|
31620
|
+
* a 2 800 ms TTL a 4K camera sat pinned at `leaseMb:1020, leaseFrames:43`
|
|
31621
|
+
* with the TTL expiring nothing, which is exactly the confusion the hold
|
|
31622
|
+
* removes. `leaseMb` / `leaseFrames` still say what is resident.
|
|
31542
31623
|
* `0` DISABLES the lease entirely and falls the worker back to the tiny
|
|
31543
31624
|
* leak-prone GPU surface ring (~85% crop miss; that is what the lease exists
|
|
31544
31625
|
* to replace).
|
|
@@ -31564,22 +31645,45 @@ object({
|
|
|
31564
31645
|
* there is the signal that some caller names frames outside the inference set
|
|
31565
31646
|
* and that this must go back to `all`.
|
|
31566
31647
|
*/
|
|
31567
|
-
admission: NativeLeaseAdmissionSchema
|
|
31648
|
+
admission: NativeLeaseAdmissionSchema,
|
|
31649
|
+
/**
|
|
31650
|
+
* RAM ceiling per decode worker, in MB, for the SUBJECT TILES — the
|
|
31651
|
+
* compressed native crops the worker cuts at the moment a frame's detection
|
|
31652
|
+
* result arrives, and keeps long after the frame itself is freed.
|
|
31653
|
+
*
|
|
31654
|
+
* This is the knob that replaced the old retention window, and it buys about
|
|
31655
|
+
* three orders of magnitude more of it: a tile is one subject at native
|
|
31656
|
+
* resolution, JPEG-encoded (~60-120 KB on a 4K person), against ~24.9 MB for
|
|
31657
|
+
* the frame it was cut from. A frame on which nothing was detected costs
|
|
31658
|
+
* nothing at all, which is the real change — the old lease paid per FRAME and
|
|
31659
|
+
* was interrogated per SUBJECT.
|
|
31660
|
+
*
|
|
31661
|
+
* `0` DISABLES tiles, leaving only the hold window and the ≤640 RAM
|
|
31662
|
+
* fallback — i.e. the pre-2026-08-13 miss profile. Set it there only to
|
|
31663
|
+
* reproduce that.
|
|
31664
|
+
*/
|
|
31665
|
+
tileBudgetMb: number().int().min(0).max(1024)
|
|
31568
31666
|
});
|
|
31569
31667
|
/**
|
|
31570
|
-
* The values in force when the operator has set nothing
|
|
31571
|
-
*
|
|
31572
|
-
*
|
|
31668
|
+
* The values in force when the operator has set nothing.
|
|
31669
|
+
*
|
|
31670
|
+
* `budgetMb` stays at 1024 on the day the hold landed, deliberately: it stopped
|
|
31671
|
+
* being the retention window and became the OOM ceiling, and lowering a ceiling
|
|
31672
|
+
* in the same change that redefines it would make a regression and a retune
|
|
31673
|
+
* indistinguishable. Cut it once `tileHits` / `holdOverflow` have been read on
|
|
31674
|
+
* live traffic.
|
|
31573
31675
|
*/
|
|
31574
31676
|
var DEFAULT_NATIVE_LEASE_SETTINGS = {
|
|
31575
|
-
|
|
31677
|
+
holdFrames: 8,
|
|
31576
31678
|
budgetMb: 1024,
|
|
31577
31679
|
activityMs: 15e3,
|
|
31680
|
+
tileBudgetMb: 64,
|
|
31578
31681
|
admission: "inferred"
|
|
31579
31682
|
};
|
|
31580
|
-
DEFAULT_NATIVE_LEASE_SETTINGS.
|
|
31683
|
+
DEFAULT_NATIVE_LEASE_SETTINGS.holdFrames;
|
|
31581
31684
|
DEFAULT_NATIVE_LEASE_SETTINGS.budgetMb;
|
|
31582
31685
|
DEFAULT_NATIVE_LEASE_SETTINGS.activityMs;
|
|
31686
|
+
DEFAULT_NATIVE_LEASE_SETTINGS.tileBudgetMb;
|
|
31583
31687
|
DEFAULT_NATIVE_LEASE_SETTINGS.admission;
|
|
31584
31688
|
/**
|
|
31585
31689
|
* Compute the stable 64-char lowercase-hex fingerprint of a device's
|
|
@@ -13756,7 +13756,23 @@ var NotificationActionSchema = object({
|
|
|
13756
13756
|
* else — see `notification-center/action-token.ts` for what that does and
|
|
13757
13757
|
* does not buy.
|
|
13758
13758
|
*/
|
|
13759
|
-
destructive: boolean().optional()
|
|
13759
|
+
destructive: boolean().optional(),
|
|
13760
|
+
/**
|
|
13761
|
+
* How the tap should REACH the url.
|
|
13762
|
+
*
|
|
13763
|
+
* `navigate` (absent, and every button authored before this field) opens it:
|
|
13764
|
+
* the phone leaves the notification and shows whatever the callback returns.
|
|
13765
|
+
* That is right for a button whose answer the operator wants to read.
|
|
13766
|
+
*
|
|
13767
|
+
* `background` fires it as a POST and stays put. It exists for the buttons
|
|
13768
|
+
* whose whole point is not to interrupt — "silence this for 30 minutes" is
|
|
13769
|
+
* an answer to the notification, and being thrown into a browser tab to
|
|
13770
|
+
* confirm it costs more attention than the notification did. A backend that
|
|
13771
|
+
* cannot do a background call renders it as an ordinary link (the adapters
|
|
13772
|
+
* fall back rather than dropping the button), so this is a preference, never
|
|
13773
|
+
* a requirement.
|
|
13774
|
+
*/
|
|
13775
|
+
mode: _enum(["navigate", "background"]).optional()
|
|
13760
13776
|
});
|
|
13761
13777
|
/**
|
|
13762
13778
|
* The canonical notification. `body` is the only hard field (Apprise model).
|
|
@@ -14757,6 +14773,9 @@ var NcSystemEventConditionSchema = object({
|
|
|
14757
14773
|
nodeIds: array(string().min(1)).min(1).optional(),
|
|
14758
14774
|
packageNames: array(string().min(1)).min(1).optional()
|
|
14759
14775
|
});
|
|
14776
|
+
/** Hard ceiling on a window (24h). A snooze that could not expire would be an
|
|
14777
|
+
* outage the operator asked for once and forgot. */
|
|
14778
|
+
var NC_SNOOZE_MAX_MINUTES = 1440;
|
|
14760
14779
|
/** Weekly schedule — OR of windows; absence on the rule = always active. */
|
|
14761
14780
|
var NcScheduleSchema = object({
|
|
14762
14781
|
windows: array(object({
|
|
@@ -15133,15 +15152,15 @@ var NcConditionsSchema = object({
|
|
|
15133
15152
|
* (an `immediate` rule naming an `audio-*` class, one notification per
|
|
15134
15153
|
* classified sample) stays exactly as it was for rules that already use it.
|
|
15135
15154
|
*
|
|
15136
|
-
*
|
|
15137
|
-
* rather than an
|
|
15138
|
-
* (`camstack/src/data/notification-center.ts`, guarded by
|
|
15139
|
-
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor
|
|
15155
|
+
* In {@link NC_CONDITION_CATALOG} since P2, and the ORDER it got there is the
|
|
15156
|
+
* rule rather than an accident: the viewer mirrors the descriptor enums BY
|
|
15157
|
+
* HAND (`camstack/src/data/notification-center.ts`, guarded by
|
|
15158
|
+
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor strips the
|
|
15140
15159
|
* condition fields it does not know when a rule is saved from the phone.
|
|
15141
15160
|
* Publishing an editor for a condition the app cannot round-trip is how an
|
|
15142
|
-
* operator loses a rule's conditions by opening it — so the
|
|
15143
|
-
*
|
|
15144
|
-
*
|
|
15161
|
+
* operator loses a rule's conditions by opening it — so the viewer mirror
|
|
15162
|
+
* (P3, shipped) went FIRST, and the descriptor an editor renders from
|
|
15163
|
+
* follows here.
|
|
15145
15164
|
*/
|
|
15146
15165
|
audio: NcAudioConditionSchema.optional()
|
|
15147
15166
|
});
|
|
@@ -15377,6 +15396,30 @@ var NcRuleInputSchema = object({
|
|
|
15377
15396
|
*/
|
|
15378
15397
|
snoozeAllowGlobal: boolean().optional(),
|
|
15379
15398
|
/**
|
|
15399
|
+
* The snooze durations THIS rule's notification offers as buttons, in
|
|
15400
|
+
* minutes.
|
|
15401
|
+
*
|
|
15402
|
+
* Three states, and all three are distinct — which is exactly why this is
|
|
15403
|
+
* `.optional()` and never `.default()`. A Zod default does not run on the
|
|
15404
|
+
* addon cap path (three production failures in one day), so a schema default
|
|
15405
|
+
* would collapse the first two:
|
|
15406
|
+
*
|
|
15407
|
+
* | value | meaning |
|
|
15408
|
+
* | --- | --- |
|
|
15409
|
+
* | absent | the operator never said ⇒ {@link NC_DEFAULT_SNOOZE_MINUTES} |
|
|
15410
|
+
* | `[]` | **no snooze buttons on this rule** — the explicit override |
|
|
15411
|
+
* | a list | these choices, de-duplicated and sorted, at most four |
|
|
15412
|
+
*
|
|
15413
|
+
* `.max(4)` because the notifier's own action budget is small (ntfy allows
|
|
15414
|
+
* three buttons in total) and a rule that spent it all on snooze choices
|
|
15415
|
+
* would push its own tap-through actions off the notification.
|
|
15416
|
+
*
|
|
15417
|
+
* An empty list is NOT an alarm exemption: a rule the alarm is about, or
|
|
15418
|
+
* that arms the panel, is exempt automatically and cannot be silenced by a
|
|
15419
|
+
* window from anywhere (D133).
|
|
15420
|
+
*/
|
|
15421
|
+
snoozeOptions: array(number().int().min(1).max(NC_SNOOZE_MAX_MINUTES)).max(4).optional(),
|
|
15422
|
+
/**
|
|
15380
15423
|
* Devices this rule ACTUATES — arm the alarm, open a gate, turn on a light.
|
|
15381
15424
|
*
|
|
15382
15425
|
* This is what makes the rule set the alarm's trigger set without the alarm
|
|
@@ -15476,6 +15519,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
15476
15519
|
"device",
|
|
15477
15520
|
"package",
|
|
15478
15521
|
"occupancy",
|
|
15522
|
+
"audio",
|
|
15479
15523
|
"system"
|
|
15480
15524
|
]),
|
|
15481
15525
|
label: string(),
|
|
@@ -15494,6 +15538,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
15494
15538
|
"crossingSelect",
|
|
15495
15539
|
"polygonDraw",
|
|
15496
15540
|
"occupancy",
|
|
15541
|
+
"audio",
|
|
15497
15542
|
"deviceState",
|
|
15498
15543
|
"systemEvent"
|
|
15499
15544
|
]),
|
|
@@ -15645,7 +15690,20 @@ var NcSnoozeInputSchema = object({
|
|
|
15645
15690
|
ruleId: string().optional(),
|
|
15646
15691
|
/** Required when `scope: 'device'`. */
|
|
15647
15692
|
deviceId: number().int().optional(),
|
|
15648
|
-
|
|
15693
|
+
/**
|
|
15694
|
+
* Narrow the window to these subject classes — "the cat, not the person".
|
|
15695
|
+
*
|
|
15696
|
+
* ORTHOGONAL to `scope`, deliberately, and absent means EVERY class: that is
|
|
15697
|
+
* what every window authored before this field meant, so no persisted row
|
|
15698
|
+
* changes meaning and no client has to learn anything to keep working.
|
|
15699
|
+
*
|
|
15700
|
+
* It is what makes the window's real key `(deviceId, classes[])` and lets it
|
|
15701
|
+
* cross rules (D133): the operator points at a camera and a kind of thing,
|
|
15702
|
+
* not at whichever of their four rules happened to produce the notification
|
|
15703
|
+
* they are dismissing.
|
|
15704
|
+
*/
|
|
15705
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
15706
|
+
durationMinutes: number().int().min(1).max(NC_SNOOZE_MAX_MINUTES),
|
|
15649
15707
|
/**
|
|
15650
15708
|
* Silence this for EVERY recipient, not just the caller. Permission is
|
|
15651
15709
|
* checked server-side (the rule's `snoozeAllowGlobal`, or admin for the
|
|
@@ -15670,6 +15728,10 @@ var NcSnoozeSchema = object({
|
|
|
15670
15728
|
scope: NcSnoozeScopeSchema,
|
|
15671
15729
|
ruleId: string().optional(),
|
|
15672
15730
|
deviceId: number().int().optional(),
|
|
15731
|
+
/** Subject classes this window covers. ABSENT = every class — see
|
|
15732
|
+
* {@link NcSnoozeInputSchema.shape.classes}. Lives in the JSON blob and has
|
|
15733
|
+
* no SQLite column: nothing queries a window by class. */
|
|
15734
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
15673
15735
|
startedAt: number(),
|
|
15674
15736
|
/** Exclusive: at exactly this instant the snooze is over. Expiry is a
|
|
15675
15737
|
* COMPARISON, not a job — no sweeper can leave the operator silenced. */
|
|
@@ -24372,13 +24434,24 @@ method(object({
|
|
|
24372
24434
|
/** Playback-speed multiplier for the render (1 = realtime). */
|
|
24373
24435
|
var ExportSpeedSchema = number().min(.25).max(32);
|
|
24374
24436
|
/**
|
|
24375
|
-
* One dense interval, in SECONDS FROM THE EXPORT'S OWN `fromMs`.
|
|
24376
|
-
*
|
|
24377
|
-
*
|
|
24378
|
-
*
|
|
24379
|
-
*
|
|
24380
|
-
*
|
|
24381
|
-
*
|
|
24437
|
+
* One dense interval, in WALL-CLOCK SECONDS FROM THE EXPORT'S OWN `fromMs`.
|
|
24438
|
+
*
|
|
24439
|
+
* **Wall clock, not ffmpeg's `t`** — and the recorder translates. A caller
|
|
24440
|
+
* derives these bounds from things that happened at a TIME (a track's
|
|
24441
|
+
* `firstSeen`), while `t` runs over the source playlist: the concatenation of
|
|
24442
|
+
* every segment present for the range, with each recording GAP removed. The
|
|
24443
|
+
* two agree only on a window that recorded without one interruption, and only
|
|
24444
|
+
* the render side knows the segments, so the translation lives there
|
|
24445
|
+
* (`export-dense-map.ts`, addon-pipeline).
|
|
24446
|
+
*
|
|
24447
|
+
* It was not always so. These seconds were fed to `between(t,…)` verbatim, and
|
|
24448
|
+
* on a 10 h window holding 29,393 s of footage every range landed late by the
|
|
24449
|
+
* gap accumulated before it — up to 6,607 s, well past EOF. Nothing matched,
|
|
24450
|
+
* the video was a uniform timelapse, and the log line reported the five ranges
|
|
24451
|
+
* that had been ASKED for (2026-08-13, export `57d14363`, camera 615).
|
|
24452
|
+
*
|
|
24453
|
+
* Relative and not absolute epoch, because an absolute epoch would make every
|
|
24454
|
+
* call site responsible for the same subtraction.
|
|
24382
24455
|
*/
|
|
24383
24456
|
var ExportDenseRangeSchema = object({
|
|
24384
24457
|
fromSec: number().nonnegative(),
|
|
@@ -31231,6 +31304,7 @@ Object.freeze({
|
|
|
31231
31304
|
"network-access": "ingress",
|
|
31232
31305
|
"smtp-provider": "email"
|
|
31233
31306
|
});
|
|
31307
|
+
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
31234
31308
|
new Set(["devices", "classes"]);
|
|
31235
31309
|
/**
|
|
31236
31310
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|
|
@@ -31508,25 +31582,32 @@ object({
|
|
|
31508
31582
|
var NativeLeaseAdmissionSchema = _enum(["all", "inferred"]);
|
|
31509
31583
|
object({
|
|
31510
31584
|
/**
|
|
31511
|
-
* How
|
|
31585
|
+
* How many delivered frames the worker HOLDS at once, waiting for each one's
|
|
31586
|
+
* detection result.
|
|
31512
31587
|
*
|
|
31513
|
-
*
|
|
31514
|
-
*
|
|
31515
|
-
*
|
|
31516
|
-
*
|
|
31517
|
-
*
|
|
31588
|
+
* This replaced a TTL on 2026-08-13, and the replacement is the whole point:
|
|
31589
|
+
* a time window was never related to the event the pixels were waiting for.
|
|
31590
|
+
* A held frame now lives from delivery until the runner has its `FrameResult`
|
|
31591
|
+
* — at which moment the runner cuts the subject tiles it actually wanted and
|
|
31592
|
+
* releases the frame. The bound exists only so a runner that stops answering
|
|
31593
|
+
* cannot pin RAM: above it the OLDEST held frame is dropped and counted.
|
|
31594
|
+
*
|
|
31595
|
+
* Sizing: the steady state is `inferenceLatency × deliveredFps`, measured at
|
|
31596
|
+
* 40-160 ms × ≤25 fps = 1-4 frames. The default leaves headroom for a hiccup
|
|
31597
|
+
* without ever approaching the old resident set (43 frames × 24.9 MB at 4K).
|
|
31598
|
+
* Raising it does not buy hit rate — it buys tolerance for a slow runner, and
|
|
31599
|
+
* `holdOverflow` on the metrics line is what says you need it.
|
|
31518
31600
|
*/
|
|
31519
|
-
|
|
31601
|
+
holdFrames: number().int().min(1).max(64),
|
|
31520
31602
|
/**
|
|
31521
31603
|
* Hard per-decode-worker RAM ceiling for retained native frames, in MB.
|
|
31522
31604
|
*
|
|
31523
|
-
*
|
|
31524
|
-
*
|
|
31525
|
-
*
|
|
31526
|
-
*
|
|
31527
|
-
*
|
|
31528
|
-
*
|
|
31529
|
-
* rather than giving RAM back — lower this knob if RAM is what you wanted.
|
|
31605
|
+
* Since 2026-08-13 this is a SAFETY ceiling and nothing else: `holdFrames`
|
|
31606
|
+
* is what decides how much is held, and the ceiling is the number above which
|
|
31607
|
+
* something is wrong. Before that it was the effective cap — at 1024 MB with
|
|
31608
|
+
* a 2 800 ms TTL a 4K camera sat pinned at `leaseMb:1020, leaseFrames:43`
|
|
31609
|
+
* with the TTL expiring nothing, which is exactly the confusion the hold
|
|
31610
|
+
* removes. `leaseMb` / `leaseFrames` still say what is resident.
|
|
31530
31611
|
* `0` DISABLES the lease entirely and falls the worker back to the tiny
|
|
31531
31612
|
* leak-prone GPU surface ring (~85% crop miss; that is what the lease exists
|
|
31532
31613
|
* to replace).
|
|
@@ -31552,22 +31633,45 @@ object({
|
|
|
31552
31633
|
* there is the signal that some caller names frames outside the inference set
|
|
31553
31634
|
* and that this must go back to `all`.
|
|
31554
31635
|
*/
|
|
31555
|
-
admission: NativeLeaseAdmissionSchema
|
|
31636
|
+
admission: NativeLeaseAdmissionSchema,
|
|
31637
|
+
/**
|
|
31638
|
+
* RAM ceiling per decode worker, in MB, for the SUBJECT TILES — the
|
|
31639
|
+
* compressed native crops the worker cuts at the moment a frame's detection
|
|
31640
|
+
* result arrives, and keeps long after the frame itself is freed.
|
|
31641
|
+
*
|
|
31642
|
+
* This is the knob that replaced the old retention window, and it buys about
|
|
31643
|
+
* three orders of magnitude more of it: a tile is one subject at native
|
|
31644
|
+
* resolution, JPEG-encoded (~60-120 KB on a 4K person), against ~24.9 MB for
|
|
31645
|
+
* the frame it was cut from. A frame on which nothing was detected costs
|
|
31646
|
+
* nothing at all, which is the real change — the old lease paid per FRAME and
|
|
31647
|
+
* was interrogated per SUBJECT.
|
|
31648
|
+
*
|
|
31649
|
+
* `0` DISABLES tiles, leaving only the hold window and the ≤640 RAM
|
|
31650
|
+
* fallback — i.e. the pre-2026-08-13 miss profile. Set it there only to
|
|
31651
|
+
* reproduce that.
|
|
31652
|
+
*/
|
|
31653
|
+
tileBudgetMb: number().int().min(0).max(1024)
|
|
31556
31654
|
});
|
|
31557
31655
|
/**
|
|
31558
|
-
* The values in force when the operator has set nothing
|
|
31559
|
-
*
|
|
31560
|
-
*
|
|
31656
|
+
* The values in force when the operator has set nothing.
|
|
31657
|
+
*
|
|
31658
|
+
* `budgetMb` stays at 1024 on the day the hold landed, deliberately: it stopped
|
|
31659
|
+
* being the retention window and became the OOM ceiling, and lowering a ceiling
|
|
31660
|
+
* in the same change that redefines it would make a regression and a retune
|
|
31661
|
+
* indistinguishable. Cut it once `tileHits` / `holdOverflow` have been read on
|
|
31662
|
+
* live traffic.
|
|
31561
31663
|
*/
|
|
31562
31664
|
var DEFAULT_NATIVE_LEASE_SETTINGS = {
|
|
31563
|
-
|
|
31665
|
+
holdFrames: 8,
|
|
31564
31666
|
budgetMb: 1024,
|
|
31565
31667
|
activityMs: 15e3,
|
|
31668
|
+
tileBudgetMb: 64,
|
|
31566
31669
|
admission: "inferred"
|
|
31567
31670
|
};
|
|
31568
|
-
DEFAULT_NATIVE_LEASE_SETTINGS.
|
|
31671
|
+
DEFAULT_NATIVE_LEASE_SETTINGS.holdFrames;
|
|
31569
31672
|
DEFAULT_NATIVE_LEASE_SETTINGS.budgetMb;
|
|
31570
31673
|
DEFAULT_NATIVE_LEASE_SETTINGS.activityMs;
|
|
31674
|
+
DEFAULT_NATIVE_LEASE_SETTINGS.tileBudgetMb;
|
|
31571
31675
|
DEFAULT_NATIVE_LEASE_SETTINGS.admission;
|
|
31572
31676
|
/**
|
|
31573
31677
|
* Compute the stable 64-char lowercase-hex fingerprint of a device's
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-export-hap",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.26",
|
|
4
4
|
"description": "HomeKit (HAP) bridge exporter for CamStack devices. Publishes a bridged accessory per exposed device — MotionSensor in this MVP; Camera/Doorbell/Switch/Light follow.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|