@camstack/addon-provider-unifi 0.2.39 → 0.2.41
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
|
@@ -13882,6 +13882,50 @@ var NodeProcessSchema = object({
|
|
|
13882
13882
|
/** Wall-clock uptime (seconds). Parsed from `ps etime`. */
|
|
13883
13883
|
uptimeSec: number()
|
|
13884
13884
|
});
|
|
13885
|
+
/**
|
|
13886
|
+
* One retained container-memory reading.
|
|
13887
|
+
*
|
|
13888
|
+
* `atMs` is the timestamp of the PROCESS snapshot taken in the same tick, not
|
|
13889
|
+
* a second clock: that is what makes "processes sum to X, container says Y"
|
|
13890
|
+
* subtractable per point rather than an eyeballed comparison of two series
|
|
13891
|
+
* sampled at different instants.
|
|
13892
|
+
*
|
|
13893
|
+
* A reduced window keeps the sample with the LARGEST `currentBytes` in each
|
|
13894
|
+
* bucket, WHOLE. Taking a per-field maximum would synthesise a row whose parts
|
|
13895
|
+
* never coexisted, and a mean would smear away the peak this exists to find.
|
|
13896
|
+
*/
|
|
13897
|
+
var ContainerMemoryPointSchema = object({
|
|
13898
|
+
/** Which hierarchy answered, so a reading is never ambiguous. */
|
|
13899
|
+
source: _enum(["cgroup-v2", "cgroup-v1"]),
|
|
13900
|
+
/** `memory.current` (v2) / `memory.usage_in_bytes` (v1). Always known. */
|
|
13901
|
+
currentBytes: number(),
|
|
13902
|
+
/** The cgroup's ceiling. `null` = NO LIMIT — never a sentinel, never zero. */
|
|
13903
|
+
limitBytes: number().nullable(),
|
|
13904
|
+
/** Anonymous pages: the closest thing to "what the processes allocated". */
|
|
13905
|
+
anonBytes: number().nullable(),
|
|
13906
|
+
/** Page cache. Charged to the cgroup, owned by no process. */
|
|
13907
|
+
fileBytes: number().nullable(),
|
|
13908
|
+
/**
|
|
13909
|
+
* Shared memory — and the field that explained the largest single surprise.
|
|
13910
|
+
* The i915 driver backs GPU buffers with shmem, so an inference pool or a
|
|
13911
|
+
* hardware-decode session holding DRM objects is charged HERE and appears
|
|
13912
|
+
* nowhere in a `ps` scan.
|
|
13913
|
+
*/
|
|
13914
|
+
shmemBytes: number().nullable(),
|
|
13915
|
+
/** Kernel slab charged to this cgroup. `null` on v1, which never publishes it. */
|
|
13916
|
+
slabBytes: number().nullable(),
|
|
13917
|
+
/**
|
|
13918
|
+
* Shrinkable i915 GEM object bytes, from debugfs.
|
|
13919
|
+
*
|
|
13920
|
+
* **Host-wide across every DRM client, NOT cgroup-scoped.** It is not a
|
|
13921
|
+
* component of `currentBytes` and must not be subtracted from it; it says
|
|
13922
|
+
* what put the shmem there, where `shmemBytes` only says how much.
|
|
13923
|
+
*
|
|
13924
|
+
* `null` wherever debugfs is not mounted — which is inside every camstack
|
|
13925
|
+
* container today — and on any node with no Intel GPU.
|
|
13926
|
+
*/
|
|
13927
|
+
gpuShmemBytes: number().nullable()
|
|
13928
|
+
}).extend({ atMs: number() });
|
|
13885
13929
|
var DumpHeapSnapshotInputSchema = object({
|
|
13886
13930
|
/** The addon whose runner should dump a heap snapshot. */
|
|
13887
13931
|
addonId: string() });
|
|
@@ -13945,6 +13989,21 @@ var NodeLoadSeriesSchema = object({
|
|
|
13945
13989
|
/** One entry per function seen in the window, heaviest-first. */
|
|
13946
13990
|
series: array(LoadFunctionSeriesSchema).readonly(),
|
|
13947
13991
|
/**
|
|
13992
|
+
* The CONTAINER's memory over the same window, oldest-first.
|
|
13993
|
+
*
|
|
13994
|
+
* Sits next to `series` rather than in a method of its own because the whole
|
|
13995
|
+
* question is a subtraction: the per-process rows in `series` sum to one
|
|
13996
|
+
* number and this one is another, and an operator who has to issue two calls
|
|
13997
|
+
* to compare them will compare two different instants. Same reader, same
|
|
13998
|
+
* `sinceMs`, same `bucketMs`, same timestamps.
|
|
13999
|
+
*
|
|
14000
|
+
* **EMPTY means ABSENT, never zero.** A node with no cgroup — a developer
|
|
14001
|
+
* Mac, a bare-metal host, a container with the hierarchy hidden — reports no
|
|
14002
|
+
* points at all. A zero here would be indistinguishable from a healthy
|
|
14003
|
+
* container and is precisely the lie this field exists to avoid.
|
|
14004
|
+
*/
|
|
14005
|
+
containerMemory: array(ContainerMemoryPointSchema).readonly(),
|
|
14006
|
+
/**
|
|
13948
14007
|
* Width of one returned bucket, in ms. Equals the sampling cadence when no
|
|
13949
14008
|
* reduction was needed — so a caller can always say what one point covers
|
|
13950
14009
|
* without having to know whether it was reduced.
|
|
@@ -27657,10 +27716,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
|
|
|
27657
27716
|
* recording config. NOTE on events (source of truth, R5/C3): this cap carries
|
|
27658
27717
|
* NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
|
|
27659
27718
|
* events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
|
|
27660
|
-
* rows)
|
|
27661
|
-
*
|
|
27662
|
-
*
|
|
27663
|
-
* (`interfaces/recording-config.ts`).
|
|
27719
|
+
* rows) and are the ONLY event surface — the recorder has none. The in-RAM
|
|
27720
|
+
* playback markers it used to build were deleted on 2026-08-29 because nothing
|
|
27721
|
+
* ever read them. Event<->footage joins are by time, padded with the shared
|
|
27722
|
+
* `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
|
|
27664
27723
|
*/
|
|
27665
27724
|
var RecordingStatusSchema = object({
|
|
27666
27725
|
deviceId: number(),
|
package/dist/addon.mjs
CHANGED
|
@@ -13881,6 +13881,50 @@ var NodeProcessSchema = object({
|
|
|
13881
13881
|
/** Wall-clock uptime (seconds). Parsed from `ps etime`. */
|
|
13882
13882
|
uptimeSec: number()
|
|
13883
13883
|
});
|
|
13884
|
+
/**
|
|
13885
|
+
* One retained container-memory reading.
|
|
13886
|
+
*
|
|
13887
|
+
* `atMs` is the timestamp of the PROCESS snapshot taken in the same tick, not
|
|
13888
|
+
* a second clock: that is what makes "processes sum to X, container says Y"
|
|
13889
|
+
* subtractable per point rather than an eyeballed comparison of two series
|
|
13890
|
+
* sampled at different instants.
|
|
13891
|
+
*
|
|
13892
|
+
* A reduced window keeps the sample with the LARGEST `currentBytes` in each
|
|
13893
|
+
* bucket, WHOLE. Taking a per-field maximum would synthesise a row whose parts
|
|
13894
|
+
* never coexisted, and a mean would smear away the peak this exists to find.
|
|
13895
|
+
*/
|
|
13896
|
+
var ContainerMemoryPointSchema = object({
|
|
13897
|
+
/** Which hierarchy answered, so a reading is never ambiguous. */
|
|
13898
|
+
source: _enum(["cgroup-v2", "cgroup-v1"]),
|
|
13899
|
+
/** `memory.current` (v2) / `memory.usage_in_bytes` (v1). Always known. */
|
|
13900
|
+
currentBytes: number(),
|
|
13901
|
+
/** The cgroup's ceiling. `null` = NO LIMIT — never a sentinel, never zero. */
|
|
13902
|
+
limitBytes: number().nullable(),
|
|
13903
|
+
/** Anonymous pages: the closest thing to "what the processes allocated". */
|
|
13904
|
+
anonBytes: number().nullable(),
|
|
13905
|
+
/** Page cache. Charged to the cgroup, owned by no process. */
|
|
13906
|
+
fileBytes: number().nullable(),
|
|
13907
|
+
/**
|
|
13908
|
+
* Shared memory — and the field that explained the largest single surprise.
|
|
13909
|
+
* The i915 driver backs GPU buffers with shmem, so an inference pool or a
|
|
13910
|
+
* hardware-decode session holding DRM objects is charged HERE and appears
|
|
13911
|
+
* nowhere in a `ps` scan.
|
|
13912
|
+
*/
|
|
13913
|
+
shmemBytes: number().nullable(),
|
|
13914
|
+
/** Kernel slab charged to this cgroup. `null` on v1, which never publishes it. */
|
|
13915
|
+
slabBytes: number().nullable(),
|
|
13916
|
+
/**
|
|
13917
|
+
* Shrinkable i915 GEM object bytes, from debugfs.
|
|
13918
|
+
*
|
|
13919
|
+
* **Host-wide across every DRM client, NOT cgroup-scoped.** It is not a
|
|
13920
|
+
* component of `currentBytes` and must not be subtracted from it; it says
|
|
13921
|
+
* what put the shmem there, where `shmemBytes` only says how much.
|
|
13922
|
+
*
|
|
13923
|
+
* `null` wherever debugfs is not mounted — which is inside every camstack
|
|
13924
|
+
* container today — and on any node with no Intel GPU.
|
|
13925
|
+
*/
|
|
13926
|
+
gpuShmemBytes: number().nullable()
|
|
13927
|
+
}).extend({ atMs: number() });
|
|
13884
13928
|
var DumpHeapSnapshotInputSchema = object({
|
|
13885
13929
|
/** The addon whose runner should dump a heap snapshot. */
|
|
13886
13930
|
addonId: string() });
|
|
@@ -13944,6 +13988,21 @@ var NodeLoadSeriesSchema = object({
|
|
|
13944
13988
|
/** One entry per function seen in the window, heaviest-first. */
|
|
13945
13989
|
series: array(LoadFunctionSeriesSchema).readonly(),
|
|
13946
13990
|
/**
|
|
13991
|
+
* The CONTAINER's memory over the same window, oldest-first.
|
|
13992
|
+
*
|
|
13993
|
+
* Sits next to `series` rather than in a method of its own because the whole
|
|
13994
|
+
* question is a subtraction: the per-process rows in `series` sum to one
|
|
13995
|
+
* number and this one is another, and an operator who has to issue two calls
|
|
13996
|
+
* to compare them will compare two different instants. Same reader, same
|
|
13997
|
+
* `sinceMs`, same `bucketMs`, same timestamps.
|
|
13998
|
+
*
|
|
13999
|
+
* **EMPTY means ABSENT, never zero.** A node with no cgroup — a developer
|
|
14000
|
+
* Mac, a bare-metal host, a container with the hierarchy hidden — reports no
|
|
14001
|
+
* points at all. A zero here would be indistinguishable from a healthy
|
|
14002
|
+
* container and is precisely the lie this field exists to avoid.
|
|
14003
|
+
*/
|
|
14004
|
+
containerMemory: array(ContainerMemoryPointSchema).readonly(),
|
|
14005
|
+
/**
|
|
13947
14006
|
* Width of one returned bucket, in ms. Equals the sampling cadence when no
|
|
13948
14007
|
* reduction was needed — so a caller can always say what one point covers
|
|
13949
14008
|
* without having to know whether it was reduced.
|
|
@@ -27656,10 +27715,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
|
|
|
27656
27715
|
* recording config. NOTE on events (source of truth, R5/C3): this cap carries
|
|
27657
27716
|
* NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
|
|
27658
27717
|
* events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
|
|
27659
|
-
* rows)
|
|
27660
|
-
*
|
|
27661
|
-
*
|
|
27662
|
-
* (`interfaces/recording-config.ts`).
|
|
27718
|
+
* rows) and are the ONLY event surface — the recorder has none. The in-RAM
|
|
27719
|
+
* playback markers it used to build were deleted on 2026-08-29 because nothing
|
|
27720
|
+
* ever read them. Event<->footage joins are by time, padded with the shared
|
|
27721
|
+
* `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
|
|
27663
27722
|
*/
|
|
27664
27723
|
var RecordingStatusSchema = object({
|
|
27665
27724
|
deviceId: number(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-unifi",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.41",
|
|
4
4
|
"description": "UniFi Network controller device-provider addon for CamStack — local-controller infra switches/APs (as containers) + network-client presence. NO cameras/Protect.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|