@camstack/addon-provider-wyze 0.2.43 → 0.2.45
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 +63 -4
- package/dist/addon.mjs +63 -4
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -13931,6 +13931,50 @@ var NodeProcessSchema = object({
|
|
|
13931
13931
|
/** Wall-clock uptime (seconds). Parsed from `ps etime`. */
|
|
13932
13932
|
uptimeSec: number()
|
|
13933
13933
|
});
|
|
13934
|
+
/**
|
|
13935
|
+
* One retained container-memory reading.
|
|
13936
|
+
*
|
|
13937
|
+
* `atMs` is the timestamp of the PROCESS snapshot taken in the same tick, not
|
|
13938
|
+
* a second clock: that is what makes "processes sum to X, container says Y"
|
|
13939
|
+
* subtractable per point rather than an eyeballed comparison of two series
|
|
13940
|
+
* sampled at different instants.
|
|
13941
|
+
*
|
|
13942
|
+
* A reduced window keeps the sample with the LARGEST `currentBytes` in each
|
|
13943
|
+
* bucket, WHOLE. Taking a per-field maximum would synthesise a row whose parts
|
|
13944
|
+
* never coexisted, and a mean would smear away the peak this exists to find.
|
|
13945
|
+
*/
|
|
13946
|
+
var ContainerMemoryPointSchema = object({
|
|
13947
|
+
/** Which hierarchy answered, so a reading is never ambiguous. */
|
|
13948
|
+
source: _enum(["cgroup-v2", "cgroup-v1"]),
|
|
13949
|
+
/** `memory.current` (v2) / `memory.usage_in_bytes` (v1). Always known. */
|
|
13950
|
+
currentBytes: number(),
|
|
13951
|
+
/** The cgroup's ceiling. `null` = NO LIMIT — never a sentinel, never zero. */
|
|
13952
|
+
limitBytes: number().nullable(),
|
|
13953
|
+
/** Anonymous pages: the closest thing to "what the processes allocated". */
|
|
13954
|
+
anonBytes: number().nullable(),
|
|
13955
|
+
/** Page cache. Charged to the cgroup, owned by no process. */
|
|
13956
|
+
fileBytes: number().nullable(),
|
|
13957
|
+
/**
|
|
13958
|
+
* Shared memory — and the field that explained the largest single surprise.
|
|
13959
|
+
* The i915 driver backs GPU buffers with shmem, so an inference pool or a
|
|
13960
|
+
* hardware-decode session holding DRM objects is charged HERE and appears
|
|
13961
|
+
* nowhere in a `ps` scan.
|
|
13962
|
+
*/
|
|
13963
|
+
shmemBytes: number().nullable(),
|
|
13964
|
+
/** Kernel slab charged to this cgroup. `null` on v1, which never publishes it. */
|
|
13965
|
+
slabBytes: number().nullable(),
|
|
13966
|
+
/**
|
|
13967
|
+
* Shrinkable i915 GEM object bytes, from debugfs.
|
|
13968
|
+
*
|
|
13969
|
+
* **Host-wide across every DRM client, NOT cgroup-scoped.** It is not a
|
|
13970
|
+
* component of `currentBytes` and must not be subtracted from it; it says
|
|
13971
|
+
* what put the shmem there, where `shmemBytes` only says how much.
|
|
13972
|
+
*
|
|
13973
|
+
* `null` wherever debugfs is not mounted — which is inside every camstack
|
|
13974
|
+
* container today — and on any node with no Intel GPU.
|
|
13975
|
+
*/
|
|
13976
|
+
gpuShmemBytes: number().nullable()
|
|
13977
|
+
}).extend({ atMs: number() });
|
|
13934
13978
|
var DumpHeapSnapshotInputSchema = object({
|
|
13935
13979
|
/** The addon whose runner should dump a heap snapshot. */
|
|
13936
13980
|
addonId: string() });
|
|
@@ -13994,6 +14038,21 @@ var NodeLoadSeriesSchema = object({
|
|
|
13994
14038
|
/** One entry per function seen in the window, heaviest-first. */
|
|
13995
14039
|
series: array(LoadFunctionSeriesSchema).readonly(),
|
|
13996
14040
|
/**
|
|
14041
|
+
* The CONTAINER's memory over the same window, oldest-first.
|
|
14042
|
+
*
|
|
14043
|
+
* Sits next to `series` rather than in a method of its own because the whole
|
|
14044
|
+
* question is a subtraction: the per-process rows in `series` sum to one
|
|
14045
|
+
* number and this one is another, and an operator who has to issue two calls
|
|
14046
|
+
* to compare them will compare two different instants. Same reader, same
|
|
14047
|
+
* `sinceMs`, same `bucketMs`, same timestamps.
|
|
14048
|
+
*
|
|
14049
|
+
* **EMPTY means ABSENT, never zero.** A node with no cgroup — a developer
|
|
14050
|
+
* Mac, a bare-metal host, a container with the hierarchy hidden — reports no
|
|
14051
|
+
* points at all. A zero here would be indistinguishable from a healthy
|
|
14052
|
+
* container and is precisely the lie this field exists to avoid.
|
|
14053
|
+
*/
|
|
14054
|
+
containerMemory: array(ContainerMemoryPointSchema).readonly(),
|
|
14055
|
+
/**
|
|
13997
14056
|
* Width of one returned bucket, in ms. Equals the sampling cadence when no
|
|
13998
14057
|
* reduction was needed — so a caller can always say what one point covers
|
|
13999
14058
|
* without having to know whether it was reduced.
|
|
@@ -27801,10 +27860,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
|
|
|
27801
27860
|
* recording config. NOTE on events (source of truth, R5/C3): this cap carries
|
|
27802
27861
|
* NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
|
|
27803
27862
|
* events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
|
|
27804
|
-
* rows)
|
|
27805
|
-
*
|
|
27806
|
-
*
|
|
27807
|
-
* (`interfaces/recording-config.ts`).
|
|
27863
|
+
* rows) and are the ONLY event surface — the recorder has none. The in-RAM
|
|
27864
|
+
* playback markers it used to build were deleted on 2026-08-29 because nothing
|
|
27865
|
+
* ever read them. Event<->footage joins are by time, padded with the shared
|
|
27866
|
+
* `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
|
|
27808
27867
|
*/
|
|
27809
27868
|
var RecordingStatusSchema = object({
|
|
27810
27869
|
deviceId: number(),
|
package/dist/addon.mjs
CHANGED
|
@@ -13910,6 +13910,50 @@ var NodeProcessSchema = object({
|
|
|
13910
13910
|
/** Wall-clock uptime (seconds). Parsed from `ps etime`. */
|
|
13911
13911
|
uptimeSec: number()
|
|
13912
13912
|
});
|
|
13913
|
+
/**
|
|
13914
|
+
* One retained container-memory reading.
|
|
13915
|
+
*
|
|
13916
|
+
* `atMs` is the timestamp of the PROCESS snapshot taken in the same tick, not
|
|
13917
|
+
* a second clock: that is what makes "processes sum to X, container says Y"
|
|
13918
|
+
* subtractable per point rather than an eyeballed comparison of two series
|
|
13919
|
+
* sampled at different instants.
|
|
13920
|
+
*
|
|
13921
|
+
* A reduced window keeps the sample with the LARGEST `currentBytes` in each
|
|
13922
|
+
* bucket, WHOLE. Taking a per-field maximum would synthesise a row whose parts
|
|
13923
|
+
* never coexisted, and a mean would smear away the peak this exists to find.
|
|
13924
|
+
*/
|
|
13925
|
+
var ContainerMemoryPointSchema = object({
|
|
13926
|
+
/** Which hierarchy answered, so a reading is never ambiguous. */
|
|
13927
|
+
source: _enum(["cgroup-v2", "cgroup-v1"]),
|
|
13928
|
+
/** `memory.current` (v2) / `memory.usage_in_bytes` (v1). Always known. */
|
|
13929
|
+
currentBytes: number(),
|
|
13930
|
+
/** The cgroup's ceiling. `null` = NO LIMIT — never a sentinel, never zero. */
|
|
13931
|
+
limitBytes: number().nullable(),
|
|
13932
|
+
/** Anonymous pages: the closest thing to "what the processes allocated". */
|
|
13933
|
+
anonBytes: number().nullable(),
|
|
13934
|
+
/** Page cache. Charged to the cgroup, owned by no process. */
|
|
13935
|
+
fileBytes: number().nullable(),
|
|
13936
|
+
/**
|
|
13937
|
+
* Shared memory — and the field that explained the largest single surprise.
|
|
13938
|
+
* The i915 driver backs GPU buffers with shmem, so an inference pool or a
|
|
13939
|
+
* hardware-decode session holding DRM objects is charged HERE and appears
|
|
13940
|
+
* nowhere in a `ps` scan.
|
|
13941
|
+
*/
|
|
13942
|
+
shmemBytes: number().nullable(),
|
|
13943
|
+
/** Kernel slab charged to this cgroup. `null` on v1, which never publishes it. */
|
|
13944
|
+
slabBytes: number().nullable(),
|
|
13945
|
+
/**
|
|
13946
|
+
* Shrinkable i915 GEM object bytes, from debugfs.
|
|
13947
|
+
*
|
|
13948
|
+
* **Host-wide across every DRM client, NOT cgroup-scoped.** It is not a
|
|
13949
|
+
* component of `currentBytes` and must not be subtracted from it; it says
|
|
13950
|
+
* what put the shmem there, where `shmemBytes` only says how much.
|
|
13951
|
+
*
|
|
13952
|
+
* `null` wherever debugfs is not mounted — which is inside every camstack
|
|
13953
|
+
* container today — and on any node with no Intel GPU.
|
|
13954
|
+
*/
|
|
13955
|
+
gpuShmemBytes: number().nullable()
|
|
13956
|
+
}).extend({ atMs: number() });
|
|
13913
13957
|
var DumpHeapSnapshotInputSchema = object({
|
|
13914
13958
|
/** The addon whose runner should dump a heap snapshot. */
|
|
13915
13959
|
addonId: string() });
|
|
@@ -13973,6 +14017,21 @@ var NodeLoadSeriesSchema = object({
|
|
|
13973
14017
|
/** One entry per function seen in the window, heaviest-first. */
|
|
13974
14018
|
series: array(LoadFunctionSeriesSchema).readonly(),
|
|
13975
14019
|
/**
|
|
14020
|
+
* The CONTAINER's memory over the same window, oldest-first.
|
|
14021
|
+
*
|
|
14022
|
+
* Sits next to `series` rather than in a method of its own because the whole
|
|
14023
|
+
* question is a subtraction: the per-process rows in `series` sum to one
|
|
14024
|
+
* number and this one is another, and an operator who has to issue two calls
|
|
14025
|
+
* to compare them will compare two different instants. Same reader, same
|
|
14026
|
+
* `sinceMs`, same `bucketMs`, same timestamps.
|
|
14027
|
+
*
|
|
14028
|
+
* **EMPTY means ABSENT, never zero.** A node with no cgroup — a developer
|
|
14029
|
+
* Mac, a bare-metal host, a container with the hierarchy hidden — reports no
|
|
14030
|
+
* points at all. A zero here would be indistinguishable from a healthy
|
|
14031
|
+
* container and is precisely the lie this field exists to avoid.
|
|
14032
|
+
*/
|
|
14033
|
+
containerMemory: array(ContainerMemoryPointSchema).readonly(),
|
|
14034
|
+
/**
|
|
13976
14035
|
* Width of one returned bucket, in ms. Equals the sampling cadence when no
|
|
13977
14036
|
* reduction was needed — so a caller can always say what one point covers
|
|
13978
14037
|
* without having to know whether it was reduced.
|
|
@@ -27780,10 +27839,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
|
|
|
27780
27839
|
* recording config. NOTE on events (source of truth, R5/C3): this cap carries
|
|
27781
27840
|
* NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
|
|
27782
27841
|
* events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
|
|
27783
|
-
* rows)
|
|
27784
|
-
*
|
|
27785
|
-
*
|
|
27786
|
-
* (`interfaces/recording-config.ts`).
|
|
27842
|
+
* rows) and are the ONLY event surface — the recorder has none. The in-RAM
|
|
27843
|
+
* playback markers it used to build were deleted on 2026-08-29 because nothing
|
|
27844
|
+
* ever read them. Event<->footage joins are by time, padded with the shared
|
|
27845
|
+
* `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
|
|
27787
27846
|
*/
|
|
27788
27847
|
var RecordingStatusSchema = object({
|
|
27789
27848
|
deviceId: number(),
|
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.45",
|
|
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",
|