@camstack/addon-import-alexa 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
|
@@ -25401,13 +25401,24 @@ method(object({
|
|
|
25401
25401
|
/** Playback-speed multiplier for the render (1 = realtime). */
|
|
25402
25402
|
var ExportSpeedSchema = number().min(.25).max(32);
|
|
25403
25403
|
/**
|
|
25404
|
-
* One dense interval, in SECONDS FROM THE EXPORT'S OWN `fromMs`.
|
|
25404
|
+
* One dense interval, in WALL-CLOCK SECONDS FROM THE EXPORT'S OWN `fromMs`.
|
|
25405
25405
|
*
|
|
25406
|
-
*
|
|
25407
|
-
*
|
|
25408
|
-
*
|
|
25409
|
-
*
|
|
25410
|
-
*
|
|
25406
|
+
* **Wall clock, not ffmpeg's `t`** — and the recorder translates. A caller
|
|
25407
|
+
* derives these bounds from things that happened at a TIME (a track's
|
|
25408
|
+
* `firstSeen`), while `t` runs over the source playlist: the concatenation of
|
|
25409
|
+
* every segment present for the range, with each recording GAP removed. The
|
|
25410
|
+
* two agree only on a window that recorded without one interruption, and only
|
|
25411
|
+
* the render side knows the segments, so the translation lives there
|
|
25412
|
+
* (`export-dense-map.ts`, addon-pipeline).
|
|
25413
|
+
*
|
|
25414
|
+
* It was not always so. These seconds were fed to `between(t,…)` verbatim, and
|
|
25415
|
+
* on a 10 h window holding 29,393 s of footage every range landed late by the
|
|
25416
|
+
* gap accumulated before it — up to 6,607 s, well past EOF. Nothing matched,
|
|
25417
|
+
* the video was a uniform timelapse, and the log line reported the five ranges
|
|
25418
|
+
* that had been ASKED for (2026-08-13, export `57d14363`, camera 615).
|
|
25419
|
+
*
|
|
25420
|
+
* Relative and not absolute epoch, because an absolute epoch would make every
|
|
25421
|
+
* call site responsible for the same subtraction.
|
|
25411
25422
|
*/
|
|
25412
25423
|
var ExportDenseRangeSchema = object({
|
|
25413
25424
|
fromSec: number().nonnegative(),
|
|
@@ -34021,25 +34032,32 @@ object({
|
|
|
34021
34032
|
var NativeLeaseAdmissionSchema = _enum(["all", "inferred"]);
|
|
34022
34033
|
object({
|
|
34023
34034
|
/**
|
|
34024
|
-
* How
|
|
34035
|
+
* How many delivered frames the worker HOLDS at once, waiting for each one's
|
|
34036
|
+
* detection result.
|
|
34025
34037
|
*
|
|
34026
|
-
*
|
|
34027
|
-
*
|
|
34028
|
-
*
|
|
34029
|
-
*
|
|
34030
|
-
*
|
|
34038
|
+
* This replaced a TTL on 2026-08-13, and the replacement is the whole point:
|
|
34039
|
+
* a time window was never related to the event the pixels were waiting for.
|
|
34040
|
+
* A held frame now lives from delivery until the runner has its `FrameResult`
|
|
34041
|
+
* — at which moment the runner cuts the subject tiles it actually wanted and
|
|
34042
|
+
* releases the frame. The bound exists only so a runner that stops answering
|
|
34043
|
+
* cannot pin RAM: above it the OLDEST held frame is dropped and counted.
|
|
34044
|
+
*
|
|
34045
|
+
* Sizing: the steady state is `inferenceLatency × deliveredFps`, measured at
|
|
34046
|
+
* 40-160 ms × ≤25 fps = 1-4 frames. The default leaves headroom for a hiccup
|
|
34047
|
+
* without ever approaching the old resident set (43 frames × 24.9 MB at 4K).
|
|
34048
|
+
* Raising it does not buy hit rate — it buys tolerance for a slow runner, and
|
|
34049
|
+
* `holdOverflow` on the metrics line is what says you need it.
|
|
34031
34050
|
*/
|
|
34032
|
-
|
|
34051
|
+
holdFrames: number().int().min(1).max(64),
|
|
34033
34052
|
/**
|
|
34034
34053
|
* Hard per-decode-worker RAM ceiling for retained native frames, in MB.
|
|
34035
34054
|
*
|
|
34036
|
-
*
|
|
34037
|
-
*
|
|
34038
|
-
*
|
|
34039
|
-
*
|
|
34040
|
-
*
|
|
34041
|
-
*
|
|
34042
|
-
* rather than giving RAM back — lower this knob if RAM is what you wanted.
|
|
34055
|
+
* Since 2026-08-13 this is a SAFETY ceiling and nothing else: `holdFrames`
|
|
34056
|
+
* is what decides how much is held, and the ceiling is the number above which
|
|
34057
|
+
* something is wrong. Before that it was the effective cap — at 1024 MB with
|
|
34058
|
+
* a 2 800 ms TTL a 4K camera sat pinned at `leaseMb:1020, leaseFrames:43`
|
|
34059
|
+
* with the TTL expiring nothing, which is exactly the confusion the hold
|
|
34060
|
+
* removes. `leaseMb` / `leaseFrames` still say what is resident.
|
|
34043
34061
|
* `0` DISABLES the lease entirely and falls the worker back to the tiny
|
|
34044
34062
|
* leak-prone GPU surface ring (~85% crop miss; that is what the lease exists
|
|
34045
34063
|
* to replace).
|
|
@@ -34065,22 +34083,45 @@ object({
|
|
|
34065
34083
|
* there is the signal that some caller names frames outside the inference set
|
|
34066
34084
|
* and that this must go back to `all`.
|
|
34067
34085
|
*/
|
|
34068
|
-
admission: NativeLeaseAdmissionSchema
|
|
34086
|
+
admission: NativeLeaseAdmissionSchema,
|
|
34087
|
+
/**
|
|
34088
|
+
* RAM ceiling per decode worker, in MB, for the SUBJECT TILES — the
|
|
34089
|
+
* compressed native crops the worker cuts at the moment a frame's detection
|
|
34090
|
+
* result arrives, and keeps long after the frame itself is freed.
|
|
34091
|
+
*
|
|
34092
|
+
* This is the knob that replaced the old retention window, and it buys about
|
|
34093
|
+
* three orders of magnitude more of it: a tile is one subject at native
|
|
34094
|
+
* resolution, JPEG-encoded (~60-120 KB on a 4K person), against ~24.9 MB for
|
|
34095
|
+
* the frame it was cut from. A frame on which nothing was detected costs
|
|
34096
|
+
* nothing at all, which is the real change — the old lease paid per FRAME and
|
|
34097
|
+
* was interrogated per SUBJECT.
|
|
34098
|
+
*
|
|
34099
|
+
* `0` DISABLES tiles, leaving only the hold window and the ≤640 RAM
|
|
34100
|
+
* fallback — i.e. the pre-2026-08-13 miss profile. Set it there only to
|
|
34101
|
+
* reproduce that.
|
|
34102
|
+
*/
|
|
34103
|
+
tileBudgetMb: number().int().min(0).max(1024)
|
|
34069
34104
|
});
|
|
34070
34105
|
/**
|
|
34071
|
-
* The values in force when the operator has set nothing
|
|
34072
|
-
*
|
|
34073
|
-
*
|
|
34106
|
+
* The values in force when the operator has set nothing.
|
|
34107
|
+
*
|
|
34108
|
+
* `budgetMb` stays at 1024 on the day the hold landed, deliberately: it stopped
|
|
34109
|
+
* being the retention window and became the OOM ceiling, and lowering a ceiling
|
|
34110
|
+
* in the same change that redefines it would make a regression and a retune
|
|
34111
|
+
* indistinguishable. Cut it once `tileHits` / `holdOverflow` have been read on
|
|
34112
|
+
* live traffic.
|
|
34074
34113
|
*/
|
|
34075
34114
|
var DEFAULT_NATIVE_LEASE_SETTINGS = {
|
|
34076
|
-
|
|
34115
|
+
holdFrames: 8,
|
|
34077
34116
|
budgetMb: 1024,
|
|
34078
34117
|
activityMs: 15e3,
|
|
34118
|
+
tileBudgetMb: 64,
|
|
34079
34119
|
admission: "inferred"
|
|
34080
34120
|
};
|
|
34081
|
-
DEFAULT_NATIVE_LEASE_SETTINGS.
|
|
34121
|
+
DEFAULT_NATIVE_LEASE_SETTINGS.holdFrames;
|
|
34082
34122
|
DEFAULT_NATIVE_LEASE_SETTINGS.budgetMb;
|
|
34083
34123
|
DEFAULT_NATIVE_LEASE_SETTINGS.activityMs;
|
|
34124
|
+
DEFAULT_NATIVE_LEASE_SETTINGS.tileBudgetMb;
|
|
34084
34125
|
DEFAULT_NATIVE_LEASE_SETTINGS.admission;
|
|
34085
34126
|
//#endregion
|
|
34086
34127
|
//#region src/config.ts
|
package/dist/addon.mjs
CHANGED
|
@@ -25401,13 +25401,24 @@ method(object({
|
|
|
25401
25401
|
/** Playback-speed multiplier for the render (1 = realtime). */
|
|
25402
25402
|
var ExportSpeedSchema = number().min(.25).max(32);
|
|
25403
25403
|
/**
|
|
25404
|
-
* One dense interval, in SECONDS FROM THE EXPORT'S OWN `fromMs`.
|
|
25404
|
+
* One dense interval, in WALL-CLOCK SECONDS FROM THE EXPORT'S OWN `fromMs`.
|
|
25405
25405
|
*
|
|
25406
|
-
*
|
|
25407
|
-
*
|
|
25408
|
-
*
|
|
25409
|
-
*
|
|
25410
|
-
*
|
|
25406
|
+
* **Wall clock, not ffmpeg's `t`** — and the recorder translates. A caller
|
|
25407
|
+
* derives these bounds from things that happened at a TIME (a track's
|
|
25408
|
+
* `firstSeen`), while `t` runs over the source playlist: the concatenation of
|
|
25409
|
+
* every segment present for the range, with each recording GAP removed. The
|
|
25410
|
+
* two agree only on a window that recorded without one interruption, and only
|
|
25411
|
+
* the render side knows the segments, so the translation lives there
|
|
25412
|
+
* (`export-dense-map.ts`, addon-pipeline).
|
|
25413
|
+
*
|
|
25414
|
+
* It was not always so. These seconds were fed to `between(t,…)` verbatim, and
|
|
25415
|
+
* on a 10 h window holding 29,393 s of footage every range landed late by the
|
|
25416
|
+
* gap accumulated before it — up to 6,607 s, well past EOF. Nothing matched,
|
|
25417
|
+
* the video was a uniform timelapse, and the log line reported the five ranges
|
|
25418
|
+
* that had been ASKED for (2026-08-13, export `57d14363`, camera 615).
|
|
25419
|
+
*
|
|
25420
|
+
* Relative and not absolute epoch, because an absolute epoch would make every
|
|
25421
|
+
* call site responsible for the same subtraction.
|
|
25411
25422
|
*/
|
|
25412
25423
|
var ExportDenseRangeSchema = object({
|
|
25413
25424
|
fromSec: number().nonnegative(),
|
|
@@ -34021,25 +34032,32 @@ object({
|
|
|
34021
34032
|
var NativeLeaseAdmissionSchema = _enum(["all", "inferred"]);
|
|
34022
34033
|
object({
|
|
34023
34034
|
/**
|
|
34024
|
-
* How
|
|
34035
|
+
* How many delivered frames the worker HOLDS at once, waiting for each one's
|
|
34036
|
+
* detection result.
|
|
34025
34037
|
*
|
|
34026
|
-
*
|
|
34027
|
-
*
|
|
34028
|
-
*
|
|
34029
|
-
*
|
|
34030
|
-
*
|
|
34038
|
+
* This replaced a TTL on 2026-08-13, and the replacement is the whole point:
|
|
34039
|
+
* a time window was never related to the event the pixels were waiting for.
|
|
34040
|
+
* A held frame now lives from delivery until the runner has its `FrameResult`
|
|
34041
|
+
* — at which moment the runner cuts the subject tiles it actually wanted and
|
|
34042
|
+
* releases the frame. The bound exists only so a runner that stops answering
|
|
34043
|
+
* cannot pin RAM: above it the OLDEST held frame is dropped and counted.
|
|
34044
|
+
*
|
|
34045
|
+
* Sizing: the steady state is `inferenceLatency × deliveredFps`, measured at
|
|
34046
|
+
* 40-160 ms × ≤25 fps = 1-4 frames. The default leaves headroom for a hiccup
|
|
34047
|
+
* without ever approaching the old resident set (43 frames × 24.9 MB at 4K).
|
|
34048
|
+
* Raising it does not buy hit rate — it buys tolerance for a slow runner, and
|
|
34049
|
+
* `holdOverflow` on the metrics line is what says you need it.
|
|
34031
34050
|
*/
|
|
34032
|
-
|
|
34051
|
+
holdFrames: number().int().min(1).max(64),
|
|
34033
34052
|
/**
|
|
34034
34053
|
* Hard per-decode-worker RAM ceiling for retained native frames, in MB.
|
|
34035
34054
|
*
|
|
34036
|
-
*
|
|
34037
|
-
*
|
|
34038
|
-
*
|
|
34039
|
-
*
|
|
34040
|
-
*
|
|
34041
|
-
*
|
|
34042
|
-
* rather than giving RAM back — lower this knob if RAM is what you wanted.
|
|
34055
|
+
* Since 2026-08-13 this is a SAFETY ceiling and nothing else: `holdFrames`
|
|
34056
|
+
* is what decides how much is held, and the ceiling is the number above which
|
|
34057
|
+
* something is wrong. Before that it was the effective cap — at 1024 MB with
|
|
34058
|
+
* a 2 800 ms TTL a 4K camera sat pinned at `leaseMb:1020, leaseFrames:43`
|
|
34059
|
+
* with the TTL expiring nothing, which is exactly the confusion the hold
|
|
34060
|
+
* removes. `leaseMb` / `leaseFrames` still say what is resident.
|
|
34043
34061
|
* `0` DISABLES the lease entirely and falls the worker back to the tiny
|
|
34044
34062
|
* leak-prone GPU surface ring (~85% crop miss; that is what the lease exists
|
|
34045
34063
|
* to replace).
|
|
@@ -34065,22 +34083,45 @@ object({
|
|
|
34065
34083
|
* there is the signal that some caller names frames outside the inference set
|
|
34066
34084
|
* and that this must go back to `all`.
|
|
34067
34085
|
*/
|
|
34068
|
-
admission: NativeLeaseAdmissionSchema
|
|
34086
|
+
admission: NativeLeaseAdmissionSchema,
|
|
34087
|
+
/**
|
|
34088
|
+
* RAM ceiling per decode worker, in MB, for the SUBJECT TILES — the
|
|
34089
|
+
* compressed native crops the worker cuts at the moment a frame's detection
|
|
34090
|
+
* result arrives, and keeps long after the frame itself is freed.
|
|
34091
|
+
*
|
|
34092
|
+
* This is the knob that replaced the old retention window, and it buys about
|
|
34093
|
+
* three orders of magnitude more of it: a tile is one subject at native
|
|
34094
|
+
* resolution, JPEG-encoded (~60-120 KB on a 4K person), against ~24.9 MB for
|
|
34095
|
+
* the frame it was cut from. A frame on which nothing was detected costs
|
|
34096
|
+
* nothing at all, which is the real change — the old lease paid per FRAME and
|
|
34097
|
+
* was interrogated per SUBJECT.
|
|
34098
|
+
*
|
|
34099
|
+
* `0` DISABLES tiles, leaving only the hold window and the ≤640 RAM
|
|
34100
|
+
* fallback — i.e. the pre-2026-08-13 miss profile. Set it there only to
|
|
34101
|
+
* reproduce that.
|
|
34102
|
+
*/
|
|
34103
|
+
tileBudgetMb: number().int().min(0).max(1024)
|
|
34069
34104
|
});
|
|
34070
34105
|
/**
|
|
34071
|
-
* The values in force when the operator has set nothing
|
|
34072
|
-
*
|
|
34073
|
-
*
|
|
34106
|
+
* The values in force when the operator has set nothing.
|
|
34107
|
+
*
|
|
34108
|
+
* `budgetMb` stays at 1024 on the day the hold landed, deliberately: it stopped
|
|
34109
|
+
* being the retention window and became the OOM ceiling, and lowering a ceiling
|
|
34110
|
+
* in the same change that redefines it would make a regression and a retune
|
|
34111
|
+
* indistinguishable. Cut it once `tileHits` / `holdOverflow` have been read on
|
|
34112
|
+
* live traffic.
|
|
34074
34113
|
*/
|
|
34075
34114
|
var DEFAULT_NATIVE_LEASE_SETTINGS = {
|
|
34076
|
-
|
|
34115
|
+
holdFrames: 8,
|
|
34077
34116
|
budgetMb: 1024,
|
|
34078
34117
|
activityMs: 15e3,
|
|
34118
|
+
tileBudgetMb: 64,
|
|
34079
34119
|
admission: "inferred"
|
|
34080
34120
|
};
|
|
34081
|
-
DEFAULT_NATIVE_LEASE_SETTINGS.
|
|
34121
|
+
DEFAULT_NATIVE_LEASE_SETTINGS.holdFrames;
|
|
34082
34122
|
DEFAULT_NATIVE_LEASE_SETTINGS.budgetMb;
|
|
34083
34123
|
DEFAULT_NATIVE_LEASE_SETTINGS.activityMs;
|
|
34124
|
+
DEFAULT_NATIVE_LEASE_SETTINGS.tileBudgetMb;
|
|
34084
34125
|
DEFAULT_NATIVE_LEASE_SETTINGS.admission;
|
|
34085
34126
|
//#endregion
|
|
34086
34127
|
//#region src/config.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-import-alexa",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.14",
|
|
4
4
|
"description": "Alexa device-import provider for CamStack — imports the smart-home devices in a user's Alexa account via the unofficial alexa-remote2 cookie/token client (the inverse of the Alexa exporter)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|