@camstack/addon-mqtt-broker 1.2.14 → 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/mqtt-broker.addon.js +67 -26
- package/dist/mqtt-broker.addon.mjs +67 -26
- package/package.json +1 -1
|
@@ -23680,13 +23680,24 @@ method(object({
|
|
|
23680
23680
|
/** Playback-speed multiplier for the render (1 = realtime). */
|
|
23681
23681
|
var ExportSpeedSchema = number().min(.25).max(32);
|
|
23682
23682
|
/**
|
|
23683
|
-
* One dense interval, in SECONDS FROM THE EXPORT'S OWN `fromMs`.
|
|
23683
|
+
* One dense interval, in WALL-CLOCK SECONDS FROM THE EXPORT'S OWN `fromMs`.
|
|
23684
23684
|
*
|
|
23685
|
-
*
|
|
23686
|
-
*
|
|
23687
|
-
*
|
|
23688
|
-
*
|
|
23689
|
-
*
|
|
23685
|
+
* **Wall clock, not ffmpeg's `t`** — and the recorder translates. A caller
|
|
23686
|
+
* derives these bounds from things that happened at a TIME (a track's
|
|
23687
|
+
* `firstSeen`), while `t` runs over the source playlist: the concatenation of
|
|
23688
|
+
* every segment present for the range, with each recording GAP removed. The
|
|
23689
|
+
* two agree only on a window that recorded without one interruption, and only
|
|
23690
|
+
* the render side knows the segments, so the translation lives there
|
|
23691
|
+
* (`export-dense-map.ts`, addon-pipeline).
|
|
23692
|
+
*
|
|
23693
|
+
* It was not always so. These seconds were fed to `between(t,…)` verbatim, and
|
|
23694
|
+
* on a 10 h window holding 29,393 s of footage every range landed late by the
|
|
23695
|
+
* gap accumulated before it — up to 6,607 s, well past EOF. Nothing matched,
|
|
23696
|
+
* the video was a uniform timelapse, and the log line reported the five ranges
|
|
23697
|
+
* that had been ASKED for (2026-08-13, export `57d14363`, camera 615).
|
|
23698
|
+
*
|
|
23699
|
+
* Relative and not absolute epoch, because an absolute epoch would make every
|
|
23700
|
+
* call site responsible for the same subtraction.
|
|
23690
23701
|
*/
|
|
23691
23702
|
var ExportDenseRangeSchema = object({
|
|
23692
23703
|
fromSec: number().nonnegative(),
|
|
@@ -30816,25 +30827,32 @@ object({
|
|
|
30816
30827
|
var NativeLeaseAdmissionSchema = _enum(["all", "inferred"]);
|
|
30817
30828
|
object({
|
|
30818
30829
|
/**
|
|
30819
|
-
* How
|
|
30830
|
+
* How many delivered frames the worker HOLDS at once, waiting for each one's
|
|
30831
|
+
* detection result.
|
|
30820
30832
|
*
|
|
30821
|
-
*
|
|
30822
|
-
*
|
|
30823
|
-
*
|
|
30824
|
-
*
|
|
30825
|
-
*
|
|
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.
|
|
30826
30845
|
*/
|
|
30827
|
-
|
|
30846
|
+
holdFrames: number().int().min(1).max(64),
|
|
30828
30847
|
/**
|
|
30829
30848
|
* Hard per-decode-worker RAM ceiling for retained native frames, in MB.
|
|
30830
30849
|
*
|
|
30831
|
-
*
|
|
30832
|
-
*
|
|
30833
|
-
*
|
|
30834
|
-
*
|
|
30835
|
-
*
|
|
30836
|
-
*
|
|
30837
|
-
* 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.
|
|
30838
30856
|
* `0` DISABLES the lease entirely and falls the worker back to the tiny
|
|
30839
30857
|
* leak-prone GPU surface ring (~85% crop miss; that is what the lease exists
|
|
30840
30858
|
* to replace).
|
|
@@ -30860,22 +30878,45 @@ object({
|
|
|
30860
30878
|
* there is the signal that some caller names frames outside the inference set
|
|
30861
30879
|
* and that this must go back to `all`.
|
|
30862
30880
|
*/
|
|
30863
|
-
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)
|
|
30864
30899
|
});
|
|
30865
30900
|
/**
|
|
30866
|
-
* The values in force when the operator has set nothing
|
|
30867
|
-
*
|
|
30868
|
-
*
|
|
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.
|
|
30869
30908
|
*/
|
|
30870
30909
|
var DEFAULT_NATIVE_LEASE_SETTINGS = {
|
|
30871
|
-
|
|
30910
|
+
holdFrames: 8,
|
|
30872
30911
|
budgetMb: 1024,
|
|
30873
30912
|
activityMs: 15e3,
|
|
30913
|
+
tileBudgetMb: 64,
|
|
30874
30914
|
admission: "inferred"
|
|
30875
30915
|
};
|
|
30876
|
-
DEFAULT_NATIVE_LEASE_SETTINGS.
|
|
30916
|
+
DEFAULT_NATIVE_LEASE_SETTINGS.holdFrames;
|
|
30877
30917
|
DEFAULT_NATIVE_LEASE_SETTINGS.budgetMb;
|
|
30878
30918
|
DEFAULT_NATIVE_LEASE_SETTINGS.activityMs;
|
|
30919
|
+
DEFAULT_NATIVE_LEASE_SETTINGS.tileBudgetMb;
|
|
30879
30920
|
DEFAULT_NATIVE_LEASE_SETTINGS.admission;
|
|
30880
30921
|
//#endregion
|
|
30881
30922
|
//#region ../../node_modules/xtend/immutable.js
|
|
@@ -23675,13 +23675,24 @@ method(object({
|
|
|
23675
23675
|
/** Playback-speed multiplier for the render (1 = realtime). */
|
|
23676
23676
|
var ExportSpeedSchema = number().min(.25).max(32);
|
|
23677
23677
|
/**
|
|
23678
|
-
* One dense interval, in SECONDS FROM THE EXPORT'S OWN `fromMs`.
|
|
23678
|
+
* One dense interval, in WALL-CLOCK SECONDS FROM THE EXPORT'S OWN `fromMs`.
|
|
23679
23679
|
*
|
|
23680
|
-
*
|
|
23681
|
-
*
|
|
23682
|
-
*
|
|
23683
|
-
*
|
|
23684
|
-
*
|
|
23680
|
+
* **Wall clock, not ffmpeg's `t`** — and the recorder translates. A caller
|
|
23681
|
+
* derives these bounds from things that happened at a TIME (a track's
|
|
23682
|
+
* `firstSeen`), while `t` runs over the source playlist: the concatenation of
|
|
23683
|
+
* every segment present for the range, with each recording GAP removed. The
|
|
23684
|
+
* two agree only on a window that recorded without one interruption, and only
|
|
23685
|
+
* the render side knows the segments, so the translation lives there
|
|
23686
|
+
* (`export-dense-map.ts`, addon-pipeline).
|
|
23687
|
+
*
|
|
23688
|
+
* It was not always so. These seconds were fed to `between(t,…)` verbatim, and
|
|
23689
|
+
* on a 10 h window holding 29,393 s of footage every range landed late by the
|
|
23690
|
+
* gap accumulated before it — up to 6,607 s, well past EOF. Nothing matched,
|
|
23691
|
+
* the video was a uniform timelapse, and the log line reported the five ranges
|
|
23692
|
+
* that had been ASKED for (2026-08-13, export `57d14363`, camera 615).
|
|
23693
|
+
*
|
|
23694
|
+
* Relative and not absolute epoch, because an absolute epoch would make every
|
|
23695
|
+
* call site responsible for the same subtraction.
|
|
23685
23696
|
*/
|
|
23686
23697
|
var ExportDenseRangeSchema = object({
|
|
23687
23698
|
fromSec: number().nonnegative(),
|
|
@@ -30811,25 +30822,32 @@ object({
|
|
|
30811
30822
|
var NativeLeaseAdmissionSchema = _enum(["all", "inferred"]);
|
|
30812
30823
|
object({
|
|
30813
30824
|
/**
|
|
30814
|
-
* How
|
|
30825
|
+
* How many delivered frames the worker HOLDS at once, waiting for each one's
|
|
30826
|
+
* detection result.
|
|
30815
30827
|
*
|
|
30816
|
-
*
|
|
30817
|
-
*
|
|
30818
|
-
*
|
|
30819
|
-
*
|
|
30820
|
-
*
|
|
30828
|
+
* This replaced a TTL on 2026-08-13, and the replacement is the whole point:
|
|
30829
|
+
* a time window was never related to the event the pixels were waiting for.
|
|
30830
|
+
* A held frame now lives from delivery until the runner has its `FrameResult`
|
|
30831
|
+
* — at which moment the runner cuts the subject tiles it actually wanted and
|
|
30832
|
+
* releases the frame. The bound exists only so a runner that stops answering
|
|
30833
|
+
* cannot pin RAM: above it the OLDEST held frame is dropped and counted.
|
|
30834
|
+
*
|
|
30835
|
+
* Sizing: the steady state is `inferenceLatency × deliveredFps`, measured at
|
|
30836
|
+
* 40-160 ms × ≤25 fps = 1-4 frames. The default leaves headroom for a hiccup
|
|
30837
|
+
* without ever approaching the old resident set (43 frames × 24.9 MB at 4K).
|
|
30838
|
+
* Raising it does not buy hit rate — it buys tolerance for a slow runner, and
|
|
30839
|
+
* `holdOverflow` on the metrics line is what says you need it.
|
|
30821
30840
|
*/
|
|
30822
|
-
|
|
30841
|
+
holdFrames: number().int().min(1).max(64),
|
|
30823
30842
|
/**
|
|
30824
30843
|
* Hard per-decode-worker RAM ceiling for retained native frames, in MB.
|
|
30825
30844
|
*
|
|
30826
|
-
*
|
|
30827
|
-
*
|
|
30828
|
-
*
|
|
30829
|
-
*
|
|
30830
|
-
*
|
|
30831
|
-
*
|
|
30832
|
-
* rather than giving RAM back — lower this knob if RAM is what you wanted.
|
|
30845
|
+
* Since 2026-08-13 this is a SAFETY ceiling and nothing else: `holdFrames`
|
|
30846
|
+
* is what decides how much is held, and the ceiling is the number above which
|
|
30847
|
+
* something is wrong. Before that it was the effective cap — at 1024 MB with
|
|
30848
|
+
* a 2 800 ms TTL a 4K camera sat pinned at `leaseMb:1020, leaseFrames:43`
|
|
30849
|
+
* with the TTL expiring nothing, which is exactly the confusion the hold
|
|
30850
|
+
* removes. `leaseMb` / `leaseFrames` still say what is resident.
|
|
30833
30851
|
* `0` DISABLES the lease entirely and falls the worker back to the tiny
|
|
30834
30852
|
* leak-prone GPU surface ring (~85% crop miss; that is what the lease exists
|
|
30835
30853
|
* to replace).
|
|
@@ -30855,22 +30873,45 @@ object({
|
|
|
30855
30873
|
* there is the signal that some caller names frames outside the inference set
|
|
30856
30874
|
* and that this must go back to `all`.
|
|
30857
30875
|
*/
|
|
30858
|
-
admission: NativeLeaseAdmissionSchema
|
|
30876
|
+
admission: NativeLeaseAdmissionSchema,
|
|
30877
|
+
/**
|
|
30878
|
+
* RAM ceiling per decode worker, in MB, for the SUBJECT TILES — the
|
|
30879
|
+
* compressed native crops the worker cuts at the moment a frame's detection
|
|
30880
|
+
* result arrives, and keeps long after the frame itself is freed.
|
|
30881
|
+
*
|
|
30882
|
+
* This is the knob that replaced the old retention window, and it buys about
|
|
30883
|
+
* three orders of magnitude more of it: a tile is one subject at native
|
|
30884
|
+
* resolution, JPEG-encoded (~60-120 KB on a 4K person), against ~24.9 MB for
|
|
30885
|
+
* the frame it was cut from. A frame on which nothing was detected costs
|
|
30886
|
+
* nothing at all, which is the real change — the old lease paid per FRAME and
|
|
30887
|
+
* was interrogated per SUBJECT.
|
|
30888
|
+
*
|
|
30889
|
+
* `0` DISABLES tiles, leaving only the hold window and the ≤640 RAM
|
|
30890
|
+
* fallback — i.e. the pre-2026-08-13 miss profile. Set it there only to
|
|
30891
|
+
* reproduce that.
|
|
30892
|
+
*/
|
|
30893
|
+
tileBudgetMb: number().int().min(0).max(1024)
|
|
30859
30894
|
});
|
|
30860
30895
|
/**
|
|
30861
|
-
* The values in force when the operator has set nothing
|
|
30862
|
-
*
|
|
30863
|
-
*
|
|
30896
|
+
* The values in force when the operator has set nothing.
|
|
30897
|
+
*
|
|
30898
|
+
* `budgetMb` stays at 1024 on the day the hold landed, deliberately: it stopped
|
|
30899
|
+
* being the retention window and became the OOM ceiling, and lowering a ceiling
|
|
30900
|
+
* in the same change that redefines it would make a regression and a retune
|
|
30901
|
+
* indistinguishable. Cut it once `tileHits` / `holdOverflow` have been read on
|
|
30902
|
+
* live traffic.
|
|
30864
30903
|
*/
|
|
30865
30904
|
var DEFAULT_NATIVE_LEASE_SETTINGS = {
|
|
30866
|
-
|
|
30905
|
+
holdFrames: 8,
|
|
30867
30906
|
budgetMb: 1024,
|
|
30868
30907
|
activityMs: 15e3,
|
|
30908
|
+
tileBudgetMb: 64,
|
|
30869
30909
|
admission: "inferred"
|
|
30870
30910
|
};
|
|
30871
|
-
DEFAULT_NATIVE_LEASE_SETTINGS.
|
|
30911
|
+
DEFAULT_NATIVE_LEASE_SETTINGS.holdFrames;
|
|
30872
30912
|
DEFAULT_NATIVE_LEASE_SETTINGS.budgetMb;
|
|
30873
30913
|
DEFAULT_NATIVE_LEASE_SETTINGS.activityMs;
|
|
30914
|
+
DEFAULT_NATIVE_LEASE_SETTINGS.tileBudgetMb;
|
|
30874
30915
|
DEFAULT_NATIVE_LEASE_SETTINGS.admission;
|
|
30875
30916
|
//#endregion
|
|
30876
30917
|
//#region ../../node_modules/xtend/immutable.js
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-mqtt-broker",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.15",
|
|
4
4
|
"description": "MQTT broker registry addon for CamStack — manages external broker entries + an optional embedded aedes broker. Consumers spin up their own `mqtt.js` clients via the `mqtt-broker` cap.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|