@camstack/addon-smtp-nodemailer 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.
@@ -12988,7 +12988,23 @@ var NotificationActionSchema = object({
12988
12988
  * else — see `notification-center/action-token.ts` for what that does and
12989
12989
  * does not buy.
12990
12990
  */
12991
- destructive: boolean().optional()
12991
+ destructive: boolean().optional(),
12992
+ /**
12993
+ * How the tap should REACH the url.
12994
+ *
12995
+ * `navigate` (absent, and every button authored before this field) opens it:
12996
+ * the phone leaves the notification and shows whatever the callback returns.
12997
+ * That is right for a button whose answer the operator wants to read.
12998
+ *
12999
+ * `background` fires it as a POST and stays put. It exists for the buttons
13000
+ * whose whole point is not to interrupt — "silence this for 30 minutes" is
13001
+ * an answer to the notification, and being thrown into a browser tab to
13002
+ * confirm it costs more attention than the notification did. A backend that
13003
+ * cannot do a background call renders it as an ordinary link (the adapters
13004
+ * fall back rather than dropping the button), so this is a preference, never
13005
+ * a requirement.
13006
+ */
13007
+ mode: _enum(["navigate", "background"]).optional()
12992
13008
  });
12993
13009
  /**
12994
13010
  * The canonical notification. `body` is the only hard field (Apprise model).
@@ -13989,6 +14005,9 @@ var NcSystemEventConditionSchema = object({
13989
14005
  nodeIds: array(string().min(1)).min(1).optional(),
13990
14006
  packageNames: array(string().min(1)).min(1).optional()
13991
14007
  });
14008
+ /** Hard ceiling on a window (24h). A snooze that could not expire would be an
14009
+ * outage the operator asked for once and forgot. */
14010
+ var NC_SNOOZE_MAX_MINUTES = 1440;
13992
14011
  /** Weekly schedule — OR of windows; absence on the rule = always active. */
13993
14012
  var NcScheduleSchema = object({
13994
14013
  windows: array(object({
@@ -14365,15 +14384,15 @@ var NcConditionsSchema = object({
14365
14384
  * (an `immediate` rule naming an `audio-*` class, one notification per
14366
14385
  * classified sample) stays exactly as it was for rules that already use it.
14367
14386
  *
14368
- * NOT in {@link NC_CONDITION_CATALOG} yet, and that is the sequencing rule
14369
- * rather than an oversight: the viewer mirrors the descriptor enums BY HAND
14370
- * (`camstack/src/data/notification-center.ts`, guarded by
14371
- * `scripts/check-viewer-condition-mirror.ts`) and its rule editor STRIPS the
14387
+ * In {@link NC_CONDITION_CATALOG} since P2, and the ORDER it got there is the
14388
+ * rule rather than an accident: the viewer mirrors the descriptor enums BY
14389
+ * HAND (`camstack/src/data/notification-center.ts`, guarded by
14390
+ * `scripts/check-viewer-condition-mirror.ts`) and its rule editor strips the
14372
14391
  * condition fields it does not know when a rule is saved from the phone.
14373
14392
  * Publishing an editor for a condition the app cannot round-trip is how an
14374
- * operator loses a rule's conditions by opening it — so the descriptor, the
14375
- * admin widget and the viewer mirror land together (P2 + P3), and only then
14376
- * does an audio rule become authorable.
14393
+ * operator loses a rule's conditions by opening it — so the viewer mirror
14394
+ * (P3, shipped) went FIRST, and the descriptor an editor renders from
14395
+ * follows here.
14377
14396
  */
14378
14397
  audio: NcAudioConditionSchema.optional()
14379
14398
  });
@@ -14609,6 +14628,30 @@ var NcRuleInputSchema = object({
14609
14628
  */
14610
14629
  snoozeAllowGlobal: boolean().optional(),
14611
14630
  /**
14631
+ * The snooze durations THIS rule's notification offers as buttons, in
14632
+ * minutes.
14633
+ *
14634
+ * Three states, and all three are distinct — which is exactly why this is
14635
+ * `.optional()` and never `.default()`. A Zod default does not run on the
14636
+ * addon cap path (three production failures in one day), so a schema default
14637
+ * would collapse the first two:
14638
+ *
14639
+ * | value | meaning |
14640
+ * | --- | --- |
14641
+ * | absent | the operator never said ⇒ {@link NC_DEFAULT_SNOOZE_MINUTES} |
14642
+ * | `[]` | **no snooze buttons on this rule** — the explicit override |
14643
+ * | a list | these choices, de-duplicated and sorted, at most four |
14644
+ *
14645
+ * `.max(4)` because the notifier's own action budget is small (ntfy allows
14646
+ * three buttons in total) and a rule that spent it all on snooze choices
14647
+ * would push its own tap-through actions off the notification.
14648
+ *
14649
+ * An empty list is NOT an alarm exemption: a rule the alarm is about, or
14650
+ * that arms the panel, is exempt automatically and cannot be silenced by a
14651
+ * window from anywhere (D133).
14652
+ */
14653
+ snoozeOptions: array(number().int().min(1).max(NC_SNOOZE_MAX_MINUTES)).max(4).optional(),
14654
+ /**
14612
14655
  * Devices this rule ACTUATES — arm the alarm, open a gate, turn on a light.
14613
14656
  *
14614
14657
  * This is what makes the rule set the alarm's trigger set without the alarm
@@ -14708,6 +14751,7 @@ var NcConditionDescriptorSchema = object({
14708
14751
  "device",
14709
14752
  "package",
14710
14753
  "occupancy",
14754
+ "audio",
14711
14755
  "system"
14712
14756
  ]),
14713
14757
  label: string(),
@@ -14726,6 +14770,7 @@ var NcConditionDescriptorSchema = object({
14726
14770
  "crossingSelect",
14727
14771
  "polygonDraw",
14728
14772
  "occupancy",
14773
+ "audio",
14729
14774
  "deviceState",
14730
14775
  "systemEvent"
14731
14776
  ]),
@@ -14877,7 +14922,20 @@ var NcSnoozeInputSchema = object({
14877
14922
  ruleId: string().optional(),
14878
14923
  /** Required when `scope: 'device'`. */
14879
14924
  deviceId: number().int().optional(),
14880
- durationMinutes: number().int().min(1).max(1440),
14925
+ /**
14926
+ * Narrow the window to these subject classes — "the cat, not the person".
14927
+ *
14928
+ * ORTHOGONAL to `scope`, deliberately, and absent means EVERY class: that is
14929
+ * what every window authored before this field meant, so no persisted row
14930
+ * changes meaning and no client has to learn anything to keep working.
14931
+ *
14932
+ * It is what makes the window's real key `(deviceId, classes[])` and lets it
14933
+ * cross rules (D133): the operator points at a camera and a kind of thing,
14934
+ * not at whichever of their four rules happened to produce the notification
14935
+ * they are dismissing.
14936
+ */
14937
+ classes: array(string().min(1)).min(1).optional(),
14938
+ durationMinutes: number().int().min(1).max(NC_SNOOZE_MAX_MINUTES),
14881
14939
  /**
14882
14940
  * Silence this for EVERY recipient, not just the caller. Permission is
14883
14941
  * checked server-side (the rule's `snoozeAllowGlobal`, or admin for the
@@ -14902,6 +14960,10 @@ var NcSnoozeSchema = object({
14902
14960
  scope: NcSnoozeScopeSchema,
14903
14961
  ruleId: string().optional(),
14904
14962
  deviceId: number().int().optional(),
14963
+ /** Subject classes this window covers. ABSENT = every class — see
14964
+ * {@link NcSnoozeInputSchema.shape.classes}. Lives in the JSON blob and has
14965
+ * no SQLite column: nothing queries a window by class. */
14966
+ classes: array(string().min(1)).min(1).optional(),
14905
14967
  startedAt: number(),
14906
14968
  /** Exclusive: at exactly this instant the snooze is over. Expiry is a
14907
14969
  * COMPARISON, not a job — no sweeper can leave the operator silenced. */
@@ -23617,13 +23679,24 @@ method(object({
23617
23679
  /** Playback-speed multiplier for the render (1 = realtime). */
23618
23680
  var ExportSpeedSchema = number().min(.25).max(32);
23619
23681
  /**
23620
- * One dense interval, in SECONDS FROM THE EXPORT'S OWN `fromMs`.
23682
+ * One dense interval, in WALL-CLOCK SECONDS FROM THE EXPORT'S OWN `fromMs`.
23683
+ *
23684
+ * **Wall clock, not ffmpeg's `t`** — and the recorder translates. A caller
23685
+ * derives these bounds from things that happened at a TIME (a track's
23686
+ * `firstSeen`), while `t` runs over the source playlist: the concatenation of
23687
+ * every segment present for the range, with each recording GAP removed. The
23688
+ * two agree only on a window that recorded without one interruption, and only
23689
+ * the render side knows the segments, so the translation lives there
23690
+ * (`export-dense-map.ts`, addon-pipeline).
23691
+ *
23692
+ * It was not always so. These seconds were fed to `between(t,…)` verbatim, and
23693
+ * on a 10 h window holding 29,393 s of footage every range landed late by the
23694
+ * gap accumulated before it — up to 6,607 s, well past EOF. Nothing matched,
23695
+ * the video was a uniform timelapse, and the log line reported the five ranges
23696
+ * that had been ASKED for (2026-08-13, export `57d14363`, camera 615).
23621
23697
  *
23622
- * Relative and not absolute epoch on purpose: the renderer's frame-select
23623
- * expression sees ffmpeg's `t`, which starts at 0 for the export's source
23624
- * playlist. Handing it absolute epochs would make every call site responsible
23625
- * for the same subtraction, and the one that forgot would emit a filter that
23626
- * selects nothing — silently, as a uniform timelapse.
23698
+ * Relative and not absolute epoch, because an absolute epoch would make every
23699
+ * call site responsible for the same subtraction.
23627
23700
  */
23628
23701
  var ExportDenseRangeSchema = object({
23629
23702
  fromSec: number().nonnegative(),
@@ -30476,6 +30549,7 @@ Object.freeze({
30476
30549
  "network-access": "ingress",
30477
30550
  "smtp-provider": "email"
30478
30551
  });
30552
+ new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
30479
30553
  new Set(["devices", "classes"]);
30480
30554
  /**
30481
30555
  * TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
@@ -30753,25 +30827,32 @@ object({
30753
30827
  var NativeLeaseAdmissionSchema = _enum(["all", "inferred"]);
30754
30828
  object({
30755
30829
  /**
30756
- * How long a retained native frame is served before it counts as a miss.
30830
+ * How many delivered frames the worker HOLDS at once, waiting for each one's
30831
+ * detection result.
30757
30832
  *
30758
- * Must cover the FULL late-crop horizon: detection inference + the
30759
- * cross-process inference-result hop to hub post-analysis + tracking + the
30760
- * tRPC crop round-trip back. Below ~500 ms the busiest cameras' subject crops
30761
- * outrun it and fall back to the ≤640 detection frame; above ~3 s the resident
30762
- * RAM per busy camera grows linearly with no measured hit-rate gain.
30833
+ * This replaced a TTL on 2026-08-13, and the replacement is the whole point:
30834
+ * a time window was never related to the event the pixels were waiting for.
30835
+ * A held frame now lives from delivery until the runner has its `FrameResult`
30836
+ * at which moment the runner cuts the subject tiles it actually wanted and
30837
+ * releases the frame. The bound exists only so a runner that stops answering
30838
+ * cannot pin RAM: above it the OLDEST held frame is dropped and counted.
30839
+ *
30840
+ * Sizing: the steady state is `inferenceLatency × deliveredFps`, measured at
30841
+ * 40-160 ms × ≤25 fps = 1-4 frames. The default leaves headroom for a hiccup
30842
+ * without ever approaching the old resident set (43 frames × 24.9 MB at 4K).
30843
+ * Raising it does not buy hit rate — it buys tolerance for a slow runner, and
30844
+ * `holdOverflow` on the metrics line is what says you need it.
30763
30845
  */
30764
- ttlMs: number().int().min(250).max(1e4),
30846
+ holdFrames: number().int().min(1).max(64),
30765
30847
  /**
30766
30848
  * Hard per-decode-worker RAM ceiling for retained native frames, in MB.
30767
30849
  *
30768
- * Intended as a SAFETY ceiling with the TTL as the effective cap — but check
30769
- * which one is actually binding before reasoning from that. At the shipped
30770
- * 1024 MB and a 2 800 ms TTL, a 4K camera hits the CEILING first (~43 frames
30771
- * at ~24 MB each) and the TTL never gets to expire anything; `leaseMb` /
30772
- * `leaseFrames` on the metrics line say which. When the ceiling binds, a
30773
- * change that admits fewer frames buys retention WINDOW at constant RAM
30774
- * rather than giving RAM back — lower this knob if RAM is what you wanted.
30850
+ * Since 2026-08-13 this is a SAFETY ceiling and nothing else: `holdFrames`
30851
+ * is what decides how much is held, and the ceiling is the number above which
30852
+ * something is wrong. Before that it was the effective cap at 1024 MB with
30853
+ * a 2 800 ms TTL a 4K camera sat pinned at `leaseMb:1020, leaseFrames:43`
30854
+ * with the TTL expiring nothing, which is exactly the confusion the hold
30855
+ * removes. `leaseMb` / `leaseFrames` still say what is resident.
30775
30856
  * `0` DISABLES the lease entirely and falls the worker back to the tiny
30776
30857
  * leak-prone GPU surface ring (~85% crop miss; that is what the lease exists
30777
30858
  * to replace).
@@ -30797,22 +30878,45 @@ object({
30797
30878
  * there is the signal that some caller names frames outside the inference set
30798
30879
  * and that this must go back to `all`.
30799
30880
  */
30800
- admission: NativeLeaseAdmissionSchema
30881
+ admission: NativeLeaseAdmissionSchema,
30882
+ /**
30883
+ * RAM ceiling per decode worker, in MB, for the SUBJECT TILES — the
30884
+ * compressed native crops the worker cuts at the moment a frame's detection
30885
+ * result arrives, and keeps long after the frame itself is freed.
30886
+ *
30887
+ * This is the knob that replaced the old retention window, and it buys about
30888
+ * three orders of magnitude more of it: a tile is one subject at native
30889
+ * resolution, JPEG-encoded (~60-120 KB on a 4K person), against ~24.9 MB for
30890
+ * the frame it was cut from. A frame on which nothing was detected costs
30891
+ * nothing at all, which is the real change — the old lease paid per FRAME and
30892
+ * was interrogated per SUBJECT.
30893
+ *
30894
+ * `0` DISABLES tiles, leaving only the hold window and the ≤640 RAM
30895
+ * fallback — i.e. the pre-2026-08-13 miss profile. Set it there only to
30896
+ * reproduce that.
30897
+ */
30898
+ tileBudgetMb: number().int().min(0).max(1024)
30801
30899
  });
30802
30900
  /**
30803
- * The values in force when the operator has set nothing — byte-for-byte the
30804
- * constants the decode worker shipped with as env-var defaults, so making these
30805
- * settings changed no behaviour on the day it landed.
30901
+ * The values in force when the operator has set nothing.
30902
+ *
30903
+ * `budgetMb` stays at 1024 on the day the hold landed, deliberately: it stopped
30904
+ * being the retention window and became the OOM ceiling, and lowering a ceiling
30905
+ * in the same change that redefines it would make a regression and a retune
30906
+ * indistinguishable. Cut it once `tileHits` / `holdOverflow` have been read on
30907
+ * live traffic.
30806
30908
  */
30807
30909
  var DEFAULT_NATIVE_LEASE_SETTINGS = {
30808
- ttlMs: 1200,
30910
+ holdFrames: 8,
30809
30911
  budgetMb: 1024,
30810
30912
  activityMs: 15e3,
30913
+ tileBudgetMb: 64,
30811
30914
  admission: "inferred"
30812
30915
  };
30813
- DEFAULT_NATIVE_LEASE_SETTINGS.ttlMs;
30916
+ DEFAULT_NATIVE_LEASE_SETTINGS.holdFrames;
30814
30917
  DEFAULT_NATIVE_LEASE_SETTINGS.budgetMb;
30815
30918
  DEFAULT_NATIVE_LEASE_SETTINGS.activityMs;
30919
+ DEFAULT_NATIVE_LEASE_SETTINGS.tileBudgetMb;
30816
30920
  DEFAULT_NATIVE_LEASE_SETTINGS.admission;
30817
30921
  //#endregion
30818
30922
  //#region ../../node_modules/nodemailer/lib/punycode/index.js
@@ -12986,7 +12986,23 @@ var NotificationActionSchema = object({
12986
12986
  * else — see `notification-center/action-token.ts` for what that does and
12987
12987
  * does not buy.
12988
12988
  */
12989
- destructive: boolean().optional()
12989
+ destructive: boolean().optional(),
12990
+ /**
12991
+ * How the tap should REACH the url.
12992
+ *
12993
+ * `navigate` (absent, and every button authored before this field) opens it:
12994
+ * the phone leaves the notification and shows whatever the callback returns.
12995
+ * That is right for a button whose answer the operator wants to read.
12996
+ *
12997
+ * `background` fires it as a POST and stays put. It exists for the buttons
12998
+ * whose whole point is not to interrupt — "silence this for 30 minutes" is
12999
+ * an answer to the notification, and being thrown into a browser tab to
13000
+ * confirm it costs more attention than the notification did. A backend that
13001
+ * cannot do a background call renders it as an ordinary link (the adapters
13002
+ * fall back rather than dropping the button), so this is a preference, never
13003
+ * a requirement.
13004
+ */
13005
+ mode: _enum(["navigate", "background"]).optional()
12990
13006
  });
12991
13007
  /**
12992
13008
  * The canonical notification. `body` is the only hard field (Apprise model).
@@ -13987,6 +14003,9 @@ var NcSystemEventConditionSchema = object({
13987
14003
  nodeIds: array(string().min(1)).min(1).optional(),
13988
14004
  packageNames: array(string().min(1)).min(1).optional()
13989
14005
  });
14006
+ /** Hard ceiling on a window (24h). A snooze that could not expire would be an
14007
+ * outage the operator asked for once and forgot. */
14008
+ var NC_SNOOZE_MAX_MINUTES = 1440;
13990
14009
  /** Weekly schedule — OR of windows; absence on the rule = always active. */
13991
14010
  var NcScheduleSchema = object({
13992
14011
  windows: array(object({
@@ -14363,15 +14382,15 @@ var NcConditionsSchema = object({
14363
14382
  * (an `immediate` rule naming an `audio-*` class, one notification per
14364
14383
  * classified sample) stays exactly as it was for rules that already use it.
14365
14384
  *
14366
- * NOT in {@link NC_CONDITION_CATALOG} yet, and that is the sequencing rule
14367
- * rather than an oversight: the viewer mirrors the descriptor enums BY HAND
14368
- * (`camstack/src/data/notification-center.ts`, guarded by
14369
- * `scripts/check-viewer-condition-mirror.ts`) and its rule editor STRIPS the
14385
+ * In {@link NC_CONDITION_CATALOG} since P2, and the ORDER it got there is the
14386
+ * rule rather than an accident: the viewer mirrors the descriptor enums BY
14387
+ * HAND (`camstack/src/data/notification-center.ts`, guarded by
14388
+ * `scripts/check-viewer-condition-mirror.ts`) and its rule editor strips the
14370
14389
  * condition fields it does not know when a rule is saved from the phone.
14371
14390
  * Publishing an editor for a condition the app cannot round-trip is how an
14372
- * operator loses a rule's conditions by opening it — so the descriptor, the
14373
- * admin widget and the viewer mirror land together (P2 + P3), and only then
14374
- * does an audio rule become authorable.
14391
+ * operator loses a rule's conditions by opening it — so the viewer mirror
14392
+ * (P3, shipped) went FIRST, and the descriptor an editor renders from
14393
+ * follows here.
14375
14394
  */
14376
14395
  audio: NcAudioConditionSchema.optional()
14377
14396
  });
@@ -14607,6 +14626,30 @@ var NcRuleInputSchema = object({
14607
14626
  */
14608
14627
  snoozeAllowGlobal: boolean().optional(),
14609
14628
  /**
14629
+ * The snooze durations THIS rule's notification offers as buttons, in
14630
+ * minutes.
14631
+ *
14632
+ * Three states, and all three are distinct — which is exactly why this is
14633
+ * `.optional()` and never `.default()`. A Zod default does not run on the
14634
+ * addon cap path (three production failures in one day), so a schema default
14635
+ * would collapse the first two:
14636
+ *
14637
+ * | value | meaning |
14638
+ * | --- | --- |
14639
+ * | absent | the operator never said ⇒ {@link NC_DEFAULT_SNOOZE_MINUTES} |
14640
+ * | `[]` | **no snooze buttons on this rule** — the explicit override |
14641
+ * | a list | these choices, de-duplicated and sorted, at most four |
14642
+ *
14643
+ * `.max(4)` because the notifier's own action budget is small (ntfy allows
14644
+ * three buttons in total) and a rule that spent it all on snooze choices
14645
+ * would push its own tap-through actions off the notification.
14646
+ *
14647
+ * An empty list is NOT an alarm exemption: a rule the alarm is about, or
14648
+ * that arms the panel, is exempt automatically and cannot be silenced by a
14649
+ * window from anywhere (D133).
14650
+ */
14651
+ snoozeOptions: array(number().int().min(1).max(NC_SNOOZE_MAX_MINUTES)).max(4).optional(),
14652
+ /**
14610
14653
  * Devices this rule ACTUATES — arm the alarm, open a gate, turn on a light.
14611
14654
  *
14612
14655
  * This is what makes the rule set the alarm's trigger set without the alarm
@@ -14706,6 +14749,7 @@ var NcConditionDescriptorSchema = object({
14706
14749
  "device",
14707
14750
  "package",
14708
14751
  "occupancy",
14752
+ "audio",
14709
14753
  "system"
14710
14754
  ]),
14711
14755
  label: string(),
@@ -14724,6 +14768,7 @@ var NcConditionDescriptorSchema = object({
14724
14768
  "crossingSelect",
14725
14769
  "polygonDraw",
14726
14770
  "occupancy",
14771
+ "audio",
14727
14772
  "deviceState",
14728
14773
  "systemEvent"
14729
14774
  ]),
@@ -14875,7 +14920,20 @@ var NcSnoozeInputSchema = object({
14875
14920
  ruleId: string().optional(),
14876
14921
  /** Required when `scope: 'device'`. */
14877
14922
  deviceId: number().int().optional(),
14878
- durationMinutes: number().int().min(1).max(1440),
14923
+ /**
14924
+ * Narrow the window to these subject classes — "the cat, not the person".
14925
+ *
14926
+ * ORTHOGONAL to `scope`, deliberately, and absent means EVERY class: that is
14927
+ * what every window authored before this field meant, so no persisted row
14928
+ * changes meaning and no client has to learn anything to keep working.
14929
+ *
14930
+ * It is what makes the window's real key `(deviceId, classes[])` and lets it
14931
+ * cross rules (D133): the operator points at a camera and a kind of thing,
14932
+ * not at whichever of their four rules happened to produce the notification
14933
+ * they are dismissing.
14934
+ */
14935
+ classes: array(string().min(1)).min(1).optional(),
14936
+ durationMinutes: number().int().min(1).max(NC_SNOOZE_MAX_MINUTES),
14879
14937
  /**
14880
14938
  * Silence this for EVERY recipient, not just the caller. Permission is
14881
14939
  * checked server-side (the rule's `snoozeAllowGlobal`, or admin for the
@@ -14900,6 +14958,10 @@ var NcSnoozeSchema = object({
14900
14958
  scope: NcSnoozeScopeSchema,
14901
14959
  ruleId: string().optional(),
14902
14960
  deviceId: number().int().optional(),
14961
+ /** Subject classes this window covers. ABSENT = every class — see
14962
+ * {@link NcSnoozeInputSchema.shape.classes}. Lives in the JSON blob and has
14963
+ * no SQLite column: nothing queries a window by class. */
14964
+ classes: array(string().min(1)).min(1).optional(),
14903
14965
  startedAt: number(),
14904
14966
  /** Exclusive: at exactly this instant the snooze is over. Expiry is a
14905
14967
  * COMPARISON, not a job — no sweeper can leave the operator silenced. */
@@ -23615,13 +23677,24 @@ method(object({
23615
23677
  /** Playback-speed multiplier for the render (1 = realtime). */
23616
23678
  var ExportSpeedSchema = number().min(.25).max(32);
23617
23679
  /**
23618
- * One dense interval, in SECONDS FROM THE EXPORT'S OWN `fromMs`.
23680
+ * One dense interval, in WALL-CLOCK SECONDS FROM THE EXPORT'S OWN `fromMs`.
23681
+ *
23682
+ * **Wall clock, not ffmpeg's `t`** — and the recorder translates. A caller
23683
+ * derives these bounds from things that happened at a TIME (a track's
23684
+ * `firstSeen`), while `t` runs over the source playlist: the concatenation of
23685
+ * every segment present for the range, with each recording GAP removed. The
23686
+ * two agree only on a window that recorded without one interruption, and only
23687
+ * the render side knows the segments, so the translation lives there
23688
+ * (`export-dense-map.ts`, addon-pipeline).
23689
+ *
23690
+ * It was not always so. These seconds were fed to `between(t,…)` verbatim, and
23691
+ * on a 10 h window holding 29,393 s of footage every range landed late by the
23692
+ * gap accumulated before it — up to 6,607 s, well past EOF. Nothing matched,
23693
+ * the video was a uniform timelapse, and the log line reported the five ranges
23694
+ * that had been ASKED for (2026-08-13, export `57d14363`, camera 615).
23619
23695
  *
23620
- * Relative and not absolute epoch on purpose: the renderer's frame-select
23621
- * expression sees ffmpeg's `t`, which starts at 0 for the export's source
23622
- * playlist. Handing it absolute epochs would make every call site responsible
23623
- * for the same subtraction, and the one that forgot would emit a filter that
23624
- * selects nothing — silently, as a uniform timelapse.
23696
+ * Relative and not absolute epoch, because an absolute epoch would make every
23697
+ * call site responsible for the same subtraction.
23625
23698
  */
23626
23699
  var ExportDenseRangeSchema = object({
23627
23700
  fromSec: number().nonnegative(),
@@ -30474,6 +30547,7 @@ Object.freeze({
30474
30547
  "network-access": "ingress",
30475
30548
  "smtp-provider": "email"
30476
30549
  });
30550
+ new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
30477
30551
  new Set(["devices", "classes"]);
30478
30552
  /**
30479
30553
  * TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
@@ -30751,25 +30825,32 @@ object({
30751
30825
  var NativeLeaseAdmissionSchema = _enum(["all", "inferred"]);
30752
30826
  object({
30753
30827
  /**
30754
- * How long a retained native frame is served before it counts as a miss.
30828
+ * How many delivered frames the worker HOLDS at once, waiting for each one's
30829
+ * detection result.
30755
30830
  *
30756
- * Must cover the FULL late-crop horizon: detection inference + the
30757
- * cross-process inference-result hop to hub post-analysis + tracking + the
30758
- * tRPC crop round-trip back. Below ~500 ms the busiest cameras' subject crops
30759
- * outrun it and fall back to the ≤640 detection frame; above ~3 s the resident
30760
- * RAM per busy camera grows linearly with no measured hit-rate gain.
30831
+ * This replaced a TTL on 2026-08-13, and the replacement is the whole point:
30832
+ * a time window was never related to the event the pixels were waiting for.
30833
+ * A held frame now lives from delivery until the runner has its `FrameResult`
30834
+ * at which moment the runner cuts the subject tiles it actually wanted and
30835
+ * releases the frame. The bound exists only so a runner that stops answering
30836
+ * cannot pin RAM: above it the OLDEST held frame is dropped and counted.
30837
+ *
30838
+ * Sizing: the steady state is `inferenceLatency × deliveredFps`, measured at
30839
+ * 40-160 ms × ≤25 fps = 1-4 frames. The default leaves headroom for a hiccup
30840
+ * without ever approaching the old resident set (43 frames × 24.9 MB at 4K).
30841
+ * Raising it does not buy hit rate — it buys tolerance for a slow runner, and
30842
+ * `holdOverflow` on the metrics line is what says you need it.
30761
30843
  */
30762
- ttlMs: number().int().min(250).max(1e4),
30844
+ holdFrames: number().int().min(1).max(64),
30763
30845
  /**
30764
30846
  * Hard per-decode-worker RAM ceiling for retained native frames, in MB.
30765
30847
  *
30766
- * Intended as a SAFETY ceiling with the TTL as the effective cap — but check
30767
- * which one is actually binding before reasoning from that. At the shipped
30768
- * 1024 MB and a 2 800 ms TTL, a 4K camera hits the CEILING first (~43 frames
30769
- * at ~24 MB each) and the TTL never gets to expire anything; `leaseMb` /
30770
- * `leaseFrames` on the metrics line say which. When the ceiling binds, a
30771
- * change that admits fewer frames buys retention WINDOW at constant RAM
30772
- * rather than giving RAM back — lower this knob if RAM is what you wanted.
30848
+ * Since 2026-08-13 this is a SAFETY ceiling and nothing else: `holdFrames`
30849
+ * is what decides how much is held, and the ceiling is the number above which
30850
+ * something is wrong. Before that it was the effective cap at 1024 MB with
30851
+ * a 2 800 ms TTL a 4K camera sat pinned at `leaseMb:1020, leaseFrames:43`
30852
+ * with the TTL expiring nothing, which is exactly the confusion the hold
30853
+ * removes. `leaseMb` / `leaseFrames` still say what is resident.
30773
30854
  * `0` DISABLES the lease entirely and falls the worker back to the tiny
30774
30855
  * leak-prone GPU surface ring (~85% crop miss; that is what the lease exists
30775
30856
  * to replace).
@@ -30795,22 +30876,45 @@ object({
30795
30876
  * there is the signal that some caller names frames outside the inference set
30796
30877
  * and that this must go back to `all`.
30797
30878
  */
30798
- admission: NativeLeaseAdmissionSchema
30879
+ admission: NativeLeaseAdmissionSchema,
30880
+ /**
30881
+ * RAM ceiling per decode worker, in MB, for the SUBJECT TILES — the
30882
+ * compressed native crops the worker cuts at the moment a frame's detection
30883
+ * result arrives, and keeps long after the frame itself is freed.
30884
+ *
30885
+ * This is the knob that replaced the old retention window, and it buys about
30886
+ * three orders of magnitude more of it: a tile is one subject at native
30887
+ * resolution, JPEG-encoded (~60-120 KB on a 4K person), against ~24.9 MB for
30888
+ * the frame it was cut from. A frame on which nothing was detected costs
30889
+ * nothing at all, which is the real change — the old lease paid per FRAME and
30890
+ * was interrogated per SUBJECT.
30891
+ *
30892
+ * `0` DISABLES tiles, leaving only the hold window and the ≤640 RAM
30893
+ * fallback — i.e. the pre-2026-08-13 miss profile. Set it there only to
30894
+ * reproduce that.
30895
+ */
30896
+ tileBudgetMb: number().int().min(0).max(1024)
30799
30897
  });
30800
30898
  /**
30801
- * The values in force when the operator has set nothing — byte-for-byte the
30802
- * constants the decode worker shipped with as env-var defaults, so making these
30803
- * settings changed no behaviour on the day it landed.
30899
+ * The values in force when the operator has set nothing.
30900
+ *
30901
+ * `budgetMb` stays at 1024 on the day the hold landed, deliberately: it stopped
30902
+ * being the retention window and became the OOM ceiling, and lowering a ceiling
30903
+ * in the same change that redefines it would make a regression and a retune
30904
+ * indistinguishable. Cut it once `tileHits` / `holdOverflow` have been read on
30905
+ * live traffic.
30804
30906
  */
30805
30907
  var DEFAULT_NATIVE_LEASE_SETTINGS = {
30806
- ttlMs: 1200,
30908
+ holdFrames: 8,
30807
30909
  budgetMb: 1024,
30808
30910
  activityMs: 15e3,
30911
+ tileBudgetMb: 64,
30809
30912
  admission: "inferred"
30810
30913
  };
30811
- DEFAULT_NATIVE_LEASE_SETTINGS.ttlMs;
30914
+ DEFAULT_NATIVE_LEASE_SETTINGS.holdFrames;
30812
30915
  DEFAULT_NATIVE_LEASE_SETTINGS.budgetMb;
30813
30916
  DEFAULT_NATIVE_LEASE_SETTINGS.activityMs;
30917
+ DEFAULT_NATIVE_LEASE_SETTINGS.tileBudgetMb;
30814
30918
  DEFAULT_NATIVE_LEASE_SETTINGS.admission;
30815
30919
  //#endregion
30816
30920
  //#region ../../node_modules/nodemailer/lib/punycode/index.js
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-smtp-nodemailer",
3
- "version": "1.2.13",
3
+ "version": "1.2.15",
4
4
  "description": "SMTP email provider addon for CamStack — wraps `nodemailer` and registers a `smtp-provider` cap collection entry. Used by magic-link login + notifier addons.",
5
5
  "keywords": [
6
6
  "camstack",