@camstack/addon-provider-wyze 0.2.13 → 0.2.14
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/addon.js +67 -26
- package/dist/addon.mjs +67 -26
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -25321,13 +25321,24 @@ method(object({
|
|
|
25321
25321
|
/** Playback-speed multiplier for the render (1 = realtime). */
|
|
25322
25322
|
var ExportSpeedSchema = number().min(.25).max(32);
|
|
25323
25323
|
/**
|
|
25324
|
-
* One dense interval, in SECONDS FROM THE EXPORT'S OWN `fromMs`.
|
|
25324
|
+
* One dense interval, in WALL-CLOCK SECONDS FROM THE EXPORT'S OWN `fromMs`.
|
|
25325
25325
|
*
|
|
25326
|
-
*
|
|
25327
|
-
*
|
|
25328
|
-
*
|
|
25329
|
-
*
|
|
25330
|
-
*
|
|
25326
|
+
* **Wall clock, not ffmpeg's `t`** — and the recorder translates. A caller
|
|
25327
|
+
* derives these bounds from things that happened at a TIME (a track's
|
|
25328
|
+
* `firstSeen`), while `t` runs over the source playlist: the concatenation of
|
|
25329
|
+
* every segment present for the range, with each recording GAP removed. The
|
|
25330
|
+
* two agree only on a window that recorded without one interruption, and only
|
|
25331
|
+
* the render side knows the segments, so the translation lives there
|
|
25332
|
+
* (`export-dense-map.ts`, addon-pipeline).
|
|
25333
|
+
*
|
|
25334
|
+
* It was not always so. These seconds were fed to `between(t,…)` verbatim, and
|
|
25335
|
+
* on a 10 h window holding 29,393 s of footage every range landed late by the
|
|
25336
|
+
* gap accumulated before it — up to 6,607 s, well past EOF. Nothing matched,
|
|
25337
|
+
* the video was a uniform timelapse, and the log line reported the five ranges
|
|
25338
|
+
* that had been ASKED for (2026-08-13, export `57d14363`, camera 615).
|
|
25339
|
+
*
|
|
25340
|
+
* Relative and not absolute epoch, because an absolute epoch would make every
|
|
25341
|
+
* call site responsible for the same subtraction.
|
|
25331
25342
|
*/
|
|
25332
25343
|
var ExportDenseRangeSchema = object({
|
|
25333
25344
|
fromSec: number().nonnegative(),
|
|
@@ -33954,25 +33965,32 @@ object({
|
|
|
33954
33965
|
var NativeLeaseAdmissionSchema = _enum(["all", "inferred"]);
|
|
33955
33966
|
object({
|
|
33956
33967
|
/**
|
|
33957
|
-
* How
|
|
33968
|
+
* How many delivered frames the worker HOLDS at once, waiting for each one's
|
|
33969
|
+
* detection result.
|
|
33958
33970
|
*
|
|
33959
|
-
*
|
|
33960
|
-
*
|
|
33961
|
-
*
|
|
33962
|
-
*
|
|
33963
|
-
*
|
|
33971
|
+
* This replaced a TTL on 2026-08-13, and the replacement is the whole point:
|
|
33972
|
+
* a time window was never related to the event the pixels were waiting for.
|
|
33973
|
+
* A held frame now lives from delivery until the runner has its `FrameResult`
|
|
33974
|
+
* — at which moment the runner cuts the subject tiles it actually wanted and
|
|
33975
|
+
* releases the frame. The bound exists only so a runner that stops answering
|
|
33976
|
+
* cannot pin RAM: above it the OLDEST held frame is dropped and counted.
|
|
33977
|
+
*
|
|
33978
|
+
* Sizing: the steady state is `inferenceLatency × deliveredFps`, measured at
|
|
33979
|
+
* 40-160 ms × ≤25 fps = 1-4 frames. The default leaves headroom for a hiccup
|
|
33980
|
+
* without ever approaching the old resident set (43 frames × 24.9 MB at 4K).
|
|
33981
|
+
* Raising it does not buy hit rate — it buys tolerance for a slow runner, and
|
|
33982
|
+
* `holdOverflow` on the metrics line is what says you need it.
|
|
33964
33983
|
*/
|
|
33965
|
-
|
|
33984
|
+
holdFrames: number().int().min(1).max(64),
|
|
33966
33985
|
/**
|
|
33967
33986
|
* Hard per-decode-worker RAM ceiling for retained native frames, in MB.
|
|
33968
33987
|
*
|
|
33969
|
-
*
|
|
33970
|
-
*
|
|
33971
|
-
*
|
|
33972
|
-
*
|
|
33973
|
-
*
|
|
33974
|
-
*
|
|
33975
|
-
* rather than giving RAM back — lower this knob if RAM is what you wanted.
|
|
33988
|
+
* Since 2026-08-13 this is a SAFETY ceiling and nothing else: `holdFrames`
|
|
33989
|
+
* is what decides how much is held, and the ceiling is the number above which
|
|
33990
|
+
* something is wrong. Before that it was the effective cap — at 1024 MB with
|
|
33991
|
+
* a 2 800 ms TTL a 4K camera sat pinned at `leaseMb:1020, leaseFrames:43`
|
|
33992
|
+
* with the TTL expiring nothing, which is exactly the confusion the hold
|
|
33993
|
+
* removes. `leaseMb` / `leaseFrames` still say what is resident.
|
|
33976
33994
|
* `0` DISABLES the lease entirely and falls the worker back to the tiny
|
|
33977
33995
|
* leak-prone GPU surface ring (~85% crop miss; that is what the lease exists
|
|
33978
33996
|
* to replace).
|
|
@@ -33998,22 +34016,45 @@ object({
|
|
|
33998
34016
|
* there is the signal that some caller names frames outside the inference set
|
|
33999
34017
|
* and that this must go back to `all`.
|
|
34000
34018
|
*/
|
|
34001
|
-
admission: NativeLeaseAdmissionSchema
|
|
34019
|
+
admission: NativeLeaseAdmissionSchema,
|
|
34020
|
+
/**
|
|
34021
|
+
* RAM ceiling per decode worker, in MB, for the SUBJECT TILES — the
|
|
34022
|
+
* compressed native crops the worker cuts at the moment a frame's detection
|
|
34023
|
+
* result arrives, and keeps long after the frame itself is freed.
|
|
34024
|
+
*
|
|
34025
|
+
* This is the knob that replaced the old retention window, and it buys about
|
|
34026
|
+
* three orders of magnitude more of it: a tile is one subject at native
|
|
34027
|
+
* resolution, JPEG-encoded (~60-120 KB on a 4K person), against ~24.9 MB for
|
|
34028
|
+
* the frame it was cut from. A frame on which nothing was detected costs
|
|
34029
|
+
* nothing at all, which is the real change — the old lease paid per FRAME and
|
|
34030
|
+
* was interrogated per SUBJECT.
|
|
34031
|
+
*
|
|
34032
|
+
* `0` DISABLES tiles, leaving only the hold window and the ≤640 RAM
|
|
34033
|
+
* fallback — i.e. the pre-2026-08-13 miss profile. Set it there only to
|
|
34034
|
+
* reproduce that.
|
|
34035
|
+
*/
|
|
34036
|
+
tileBudgetMb: number().int().min(0).max(1024)
|
|
34002
34037
|
});
|
|
34003
34038
|
/**
|
|
34004
|
-
* The values in force when the operator has set nothing
|
|
34005
|
-
*
|
|
34006
|
-
*
|
|
34039
|
+
* The values in force when the operator has set nothing.
|
|
34040
|
+
*
|
|
34041
|
+
* `budgetMb` stays at 1024 on the day the hold landed, deliberately: it stopped
|
|
34042
|
+
* being the retention window and became the OOM ceiling, and lowering a ceiling
|
|
34043
|
+
* in the same change that redefines it would make a regression and a retune
|
|
34044
|
+
* indistinguishable. Cut it once `tileHits` / `holdOverflow` have been read on
|
|
34045
|
+
* live traffic.
|
|
34007
34046
|
*/
|
|
34008
34047
|
var DEFAULT_NATIVE_LEASE_SETTINGS = {
|
|
34009
|
-
|
|
34048
|
+
holdFrames: 8,
|
|
34010
34049
|
budgetMb: 1024,
|
|
34011
34050
|
activityMs: 15e3,
|
|
34051
|
+
tileBudgetMb: 64,
|
|
34012
34052
|
admission: "inferred"
|
|
34013
34053
|
};
|
|
34014
|
-
DEFAULT_NATIVE_LEASE_SETTINGS.
|
|
34054
|
+
DEFAULT_NATIVE_LEASE_SETTINGS.holdFrames;
|
|
34015
34055
|
DEFAULT_NATIVE_LEASE_SETTINGS.budgetMb;
|
|
34016
34056
|
DEFAULT_NATIVE_LEASE_SETTINGS.activityMs;
|
|
34057
|
+
DEFAULT_NATIVE_LEASE_SETTINGS.tileBudgetMb;
|
|
34017
34058
|
DEFAULT_NATIVE_LEASE_SETTINGS.admission;
|
|
34018
34059
|
//#endregion
|
|
34019
34060
|
//#region ../../node_modules/@apocaliss92/wyze-bridge-js/dist/index.js
|
package/dist/addon.mjs
CHANGED
|
@@ -25300,13 +25300,24 @@ method(object({
|
|
|
25300
25300
|
/** Playback-speed multiplier for the render (1 = realtime). */
|
|
25301
25301
|
var ExportSpeedSchema = number().min(.25).max(32);
|
|
25302
25302
|
/**
|
|
25303
|
-
* One dense interval, in SECONDS FROM THE EXPORT'S OWN `fromMs`.
|
|
25303
|
+
* One dense interval, in WALL-CLOCK SECONDS FROM THE EXPORT'S OWN `fromMs`.
|
|
25304
25304
|
*
|
|
25305
|
-
*
|
|
25306
|
-
*
|
|
25307
|
-
*
|
|
25308
|
-
*
|
|
25309
|
-
*
|
|
25305
|
+
* **Wall clock, not ffmpeg's `t`** — and the recorder translates. A caller
|
|
25306
|
+
* derives these bounds from things that happened at a TIME (a track's
|
|
25307
|
+
* `firstSeen`), while `t` runs over the source playlist: the concatenation of
|
|
25308
|
+
* every segment present for the range, with each recording GAP removed. The
|
|
25309
|
+
* two agree only on a window that recorded without one interruption, and only
|
|
25310
|
+
* the render side knows the segments, so the translation lives there
|
|
25311
|
+
* (`export-dense-map.ts`, addon-pipeline).
|
|
25312
|
+
*
|
|
25313
|
+
* It was not always so. These seconds were fed to `between(t,…)` verbatim, and
|
|
25314
|
+
* on a 10 h window holding 29,393 s of footage every range landed late by the
|
|
25315
|
+
* gap accumulated before it — up to 6,607 s, well past EOF. Nothing matched,
|
|
25316
|
+
* the video was a uniform timelapse, and the log line reported the five ranges
|
|
25317
|
+
* that had been ASKED for (2026-08-13, export `57d14363`, camera 615).
|
|
25318
|
+
*
|
|
25319
|
+
* Relative and not absolute epoch, because an absolute epoch would make every
|
|
25320
|
+
* call site responsible for the same subtraction.
|
|
25310
25321
|
*/
|
|
25311
25322
|
var ExportDenseRangeSchema = object({
|
|
25312
25323
|
fromSec: number().nonnegative(),
|
|
@@ -33933,25 +33944,32 @@ object({
|
|
|
33933
33944
|
var NativeLeaseAdmissionSchema = _enum(["all", "inferred"]);
|
|
33934
33945
|
object({
|
|
33935
33946
|
/**
|
|
33936
|
-
* How
|
|
33947
|
+
* How many delivered frames the worker HOLDS at once, waiting for each one's
|
|
33948
|
+
* detection result.
|
|
33937
33949
|
*
|
|
33938
|
-
*
|
|
33939
|
-
*
|
|
33940
|
-
*
|
|
33941
|
-
*
|
|
33942
|
-
*
|
|
33950
|
+
* This replaced a TTL on 2026-08-13, and the replacement is the whole point:
|
|
33951
|
+
* a time window was never related to the event the pixels were waiting for.
|
|
33952
|
+
* A held frame now lives from delivery until the runner has its `FrameResult`
|
|
33953
|
+
* — at which moment the runner cuts the subject tiles it actually wanted and
|
|
33954
|
+
* releases the frame. The bound exists only so a runner that stops answering
|
|
33955
|
+
* cannot pin RAM: above it the OLDEST held frame is dropped and counted.
|
|
33956
|
+
*
|
|
33957
|
+
* Sizing: the steady state is `inferenceLatency × deliveredFps`, measured at
|
|
33958
|
+
* 40-160 ms × ≤25 fps = 1-4 frames. The default leaves headroom for a hiccup
|
|
33959
|
+
* without ever approaching the old resident set (43 frames × 24.9 MB at 4K).
|
|
33960
|
+
* Raising it does not buy hit rate — it buys tolerance for a slow runner, and
|
|
33961
|
+
* `holdOverflow` on the metrics line is what says you need it.
|
|
33943
33962
|
*/
|
|
33944
|
-
|
|
33963
|
+
holdFrames: number().int().min(1).max(64),
|
|
33945
33964
|
/**
|
|
33946
33965
|
* Hard per-decode-worker RAM ceiling for retained native frames, in MB.
|
|
33947
33966
|
*
|
|
33948
|
-
*
|
|
33949
|
-
*
|
|
33950
|
-
*
|
|
33951
|
-
*
|
|
33952
|
-
*
|
|
33953
|
-
*
|
|
33954
|
-
* rather than giving RAM back — lower this knob if RAM is what you wanted.
|
|
33967
|
+
* Since 2026-08-13 this is a SAFETY ceiling and nothing else: `holdFrames`
|
|
33968
|
+
* is what decides how much is held, and the ceiling is the number above which
|
|
33969
|
+
* something is wrong. Before that it was the effective cap — at 1024 MB with
|
|
33970
|
+
* a 2 800 ms TTL a 4K camera sat pinned at `leaseMb:1020, leaseFrames:43`
|
|
33971
|
+
* with the TTL expiring nothing, which is exactly the confusion the hold
|
|
33972
|
+
* removes. `leaseMb` / `leaseFrames` still say what is resident.
|
|
33955
33973
|
* `0` DISABLES the lease entirely and falls the worker back to the tiny
|
|
33956
33974
|
* leak-prone GPU surface ring (~85% crop miss; that is what the lease exists
|
|
33957
33975
|
* to replace).
|
|
@@ -33977,22 +33995,45 @@ object({
|
|
|
33977
33995
|
* there is the signal that some caller names frames outside the inference set
|
|
33978
33996
|
* and that this must go back to `all`.
|
|
33979
33997
|
*/
|
|
33980
|
-
admission: NativeLeaseAdmissionSchema
|
|
33998
|
+
admission: NativeLeaseAdmissionSchema,
|
|
33999
|
+
/**
|
|
34000
|
+
* RAM ceiling per decode worker, in MB, for the SUBJECT TILES — the
|
|
34001
|
+
* compressed native crops the worker cuts at the moment a frame's detection
|
|
34002
|
+
* result arrives, and keeps long after the frame itself is freed.
|
|
34003
|
+
*
|
|
34004
|
+
* This is the knob that replaced the old retention window, and it buys about
|
|
34005
|
+
* three orders of magnitude more of it: a tile is one subject at native
|
|
34006
|
+
* resolution, JPEG-encoded (~60-120 KB on a 4K person), against ~24.9 MB for
|
|
34007
|
+
* the frame it was cut from. A frame on which nothing was detected costs
|
|
34008
|
+
* nothing at all, which is the real change — the old lease paid per FRAME and
|
|
34009
|
+
* was interrogated per SUBJECT.
|
|
34010
|
+
*
|
|
34011
|
+
* `0` DISABLES tiles, leaving only the hold window and the ≤640 RAM
|
|
34012
|
+
* fallback — i.e. the pre-2026-08-13 miss profile. Set it there only to
|
|
34013
|
+
* reproduce that.
|
|
34014
|
+
*/
|
|
34015
|
+
tileBudgetMb: number().int().min(0).max(1024)
|
|
33981
34016
|
});
|
|
33982
34017
|
/**
|
|
33983
|
-
* The values in force when the operator has set nothing
|
|
33984
|
-
*
|
|
33985
|
-
*
|
|
34018
|
+
* The values in force when the operator has set nothing.
|
|
34019
|
+
*
|
|
34020
|
+
* `budgetMb` stays at 1024 on the day the hold landed, deliberately: it stopped
|
|
34021
|
+
* being the retention window and became the OOM ceiling, and lowering a ceiling
|
|
34022
|
+
* in the same change that redefines it would make a regression and a retune
|
|
34023
|
+
* indistinguishable. Cut it once `tileHits` / `holdOverflow` have been read on
|
|
34024
|
+
* live traffic.
|
|
33986
34025
|
*/
|
|
33987
34026
|
var DEFAULT_NATIVE_LEASE_SETTINGS = {
|
|
33988
|
-
|
|
34027
|
+
holdFrames: 8,
|
|
33989
34028
|
budgetMb: 1024,
|
|
33990
34029
|
activityMs: 15e3,
|
|
34030
|
+
tileBudgetMb: 64,
|
|
33991
34031
|
admission: "inferred"
|
|
33992
34032
|
};
|
|
33993
|
-
DEFAULT_NATIVE_LEASE_SETTINGS.
|
|
34033
|
+
DEFAULT_NATIVE_LEASE_SETTINGS.holdFrames;
|
|
33994
34034
|
DEFAULT_NATIVE_LEASE_SETTINGS.budgetMb;
|
|
33995
34035
|
DEFAULT_NATIVE_LEASE_SETTINGS.activityMs;
|
|
34036
|
+
DEFAULT_NATIVE_LEASE_SETTINGS.tileBudgetMb;
|
|
33996
34037
|
DEFAULT_NATIVE_LEASE_SETTINGS.admission;
|
|
33997
34038
|
//#endregion
|
|
33998
34039
|
//#region ../../node_modules/@apocaliss92/wyze-bridge-js/dist/index.js
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-wyze",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.14",
|
|
4
4
|
"description": "Wyze camera device-provider addon for CamStack — wraps the @apocaliss92/wyze-bridge-js P2P/DTLS client, feeding the stream-broker via the pull-rfc4571 lazy-publish path (a structural twin of addon-provider-reolink)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|