@camstack/addon-provider-onvif 1.2.38 → 1.2.40
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
|
@@ -13672,6 +13672,50 @@ var NodeProcessSchema = object({
|
|
|
13672
13672
|
/** Wall-clock uptime (seconds). Parsed from `ps etime`. */
|
|
13673
13673
|
uptimeSec: number()
|
|
13674
13674
|
});
|
|
13675
|
+
/**
|
|
13676
|
+
* One retained container-memory reading.
|
|
13677
|
+
*
|
|
13678
|
+
* `atMs` is the timestamp of the PROCESS snapshot taken in the same tick, not
|
|
13679
|
+
* a second clock: that is what makes "processes sum to X, container says Y"
|
|
13680
|
+
* subtractable per point rather than an eyeballed comparison of two series
|
|
13681
|
+
* sampled at different instants.
|
|
13682
|
+
*
|
|
13683
|
+
* A reduced window keeps the sample with the LARGEST `currentBytes` in each
|
|
13684
|
+
* bucket, WHOLE. Taking a per-field maximum would synthesise a row whose parts
|
|
13685
|
+
* never coexisted, and a mean would smear away the peak this exists to find.
|
|
13686
|
+
*/
|
|
13687
|
+
var ContainerMemoryPointSchema = object({
|
|
13688
|
+
/** Which hierarchy answered, so a reading is never ambiguous. */
|
|
13689
|
+
source: _enum(["cgroup-v2", "cgroup-v1"]),
|
|
13690
|
+
/** `memory.current` (v2) / `memory.usage_in_bytes` (v1). Always known. */
|
|
13691
|
+
currentBytes: number(),
|
|
13692
|
+
/** The cgroup's ceiling. `null` = NO LIMIT — never a sentinel, never zero. */
|
|
13693
|
+
limitBytes: number().nullable(),
|
|
13694
|
+
/** Anonymous pages: the closest thing to "what the processes allocated". */
|
|
13695
|
+
anonBytes: number().nullable(),
|
|
13696
|
+
/** Page cache. Charged to the cgroup, owned by no process. */
|
|
13697
|
+
fileBytes: number().nullable(),
|
|
13698
|
+
/**
|
|
13699
|
+
* Shared memory — and the field that explained the largest single surprise.
|
|
13700
|
+
* The i915 driver backs GPU buffers with shmem, so an inference pool or a
|
|
13701
|
+
* hardware-decode session holding DRM objects is charged HERE and appears
|
|
13702
|
+
* nowhere in a `ps` scan.
|
|
13703
|
+
*/
|
|
13704
|
+
shmemBytes: number().nullable(),
|
|
13705
|
+
/** Kernel slab charged to this cgroup. `null` on v1, which never publishes it. */
|
|
13706
|
+
slabBytes: number().nullable(),
|
|
13707
|
+
/**
|
|
13708
|
+
* Shrinkable i915 GEM object bytes, from debugfs.
|
|
13709
|
+
*
|
|
13710
|
+
* **Host-wide across every DRM client, NOT cgroup-scoped.** It is not a
|
|
13711
|
+
* component of `currentBytes` and must not be subtracted from it; it says
|
|
13712
|
+
* what put the shmem there, where `shmemBytes` only says how much.
|
|
13713
|
+
*
|
|
13714
|
+
* `null` wherever debugfs is not mounted — which is inside every camstack
|
|
13715
|
+
* container today — and on any node with no Intel GPU.
|
|
13716
|
+
*/
|
|
13717
|
+
gpuShmemBytes: number().nullable()
|
|
13718
|
+
}).extend({ atMs: number() });
|
|
13675
13719
|
var DumpHeapSnapshotInputSchema = object({
|
|
13676
13720
|
/** The addon whose runner should dump a heap snapshot. */
|
|
13677
13721
|
addonId: string() });
|
|
@@ -13735,6 +13779,21 @@ var NodeLoadSeriesSchema = object({
|
|
|
13735
13779
|
/** One entry per function seen in the window, heaviest-first. */
|
|
13736
13780
|
series: array(LoadFunctionSeriesSchema).readonly(),
|
|
13737
13781
|
/**
|
|
13782
|
+
* The CONTAINER's memory over the same window, oldest-first.
|
|
13783
|
+
*
|
|
13784
|
+
* Sits next to `series` rather than in a method of its own because the whole
|
|
13785
|
+
* question is a subtraction: the per-process rows in `series` sum to one
|
|
13786
|
+
* number and this one is another, and an operator who has to issue two calls
|
|
13787
|
+
* to compare them will compare two different instants. Same reader, same
|
|
13788
|
+
* `sinceMs`, same `bucketMs`, same timestamps.
|
|
13789
|
+
*
|
|
13790
|
+
* **EMPTY means ABSENT, never zero.** A node with no cgroup — a developer
|
|
13791
|
+
* Mac, a bare-metal host, a container with the hierarchy hidden — reports no
|
|
13792
|
+
* points at all. A zero here would be indistinguishable from a healthy
|
|
13793
|
+
* container and is precisely the lie this field exists to avoid.
|
|
13794
|
+
*/
|
|
13795
|
+
containerMemory: array(ContainerMemoryPointSchema).readonly(),
|
|
13796
|
+
/**
|
|
13738
13797
|
* Width of one returned bucket, in ms. Equals the sampling cadence when no
|
|
13739
13798
|
* reduction was needed — so a caller can always say what one point covers
|
|
13740
13799
|
* without having to know whether it was reduced.
|
|
@@ -25810,10 +25869,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
|
|
|
25810
25869
|
* recording config. NOTE on events (source of truth, R5/C3): this cap carries
|
|
25811
25870
|
* NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
|
|
25812
25871
|
* events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
|
|
25813
|
-
* rows)
|
|
25814
|
-
*
|
|
25815
|
-
*
|
|
25816
|
-
* (`interfaces/recording-config.ts`).
|
|
25872
|
+
* rows) and are the ONLY event surface — the recorder has none. The in-RAM
|
|
25873
|
+
* playback markers it used to build were deleted on 2026-08-29 because nothing
|
|
25874
|
+
* ever read them. Event<->footage joins are by time, padded with the shared
|
|
25875
|
+
* `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
|
|
25817
25876
|
*/
|
|
25818
25877
|
var RecordingStatusSchema = object({
|
|
25819
25878
|
deviceId: number(),
|
package/dist/addon.mjs
CHANGED
|
@@ -13673,6 +13673,50 @@ var NodeProcessSchema = object({
|
|
|
13673
13673
|
/** Wall-clock uptime (seconds). Parsed from `ps etime`. */
|
|
13674
13674
|
uptimeSec: number()
|
|
13675
13675
|
});
|
|
13676
|
+
/**
|
|
13677
|
+
* One retained container-memory reading.
|
|
13678
|
+
*
|
|
13679
|
+
* `atMs` is the timestamp of the PROCESS snapshot taken in the same tick, not
|
|
13680
|
+
* a second clock: that is what makes "processes sum to X, container says Y"
|
|
13681
|
+
* subtractable per point rather than an eyeballed comparison of two series
|
|
13682
|
+
* sampled at different instants.
|
|
13683
|
+
*
|
|
13684
|
+
* A reduced window keeps the sample with the LARGEST `currentBytes` in each
|
|
13685
|
+
* bucket, WHOLE. Taking a per-field maximum would synthesise a row whose parts
|
|
13686
|
+
* never coexisted, and a mean would smear away the peak this exists to find.
|
|
13687
|
+
*/
|
|
13688
|
+
var ContainerMemoryPointSchema = object({
|
|
13689
|
+
/** Which hierarchy answered, so a reading is never ambiguous. */
|
|
13690
|
+
source: _enum(["cgroup-v2", "cgroup-v1"]),
|
|
13691
|
+
/** `memory.current` (v2) / `memory.usage_in_bytes` (v1). Always known. */
|
|
13692
|
+
currentBytes: number(),
|
|
13693
|
+
/** The cgroup's ceiling. `null` = NO LIMIT — never a sentinel, never zero. */
|
|
13694
|
+
limitBytes: number().nullable(),
|
|
13695
|
+
/** Anonymous pages: the closest thing to "what the processes allocated". */
|
|
13696
|
+
anonBytes: number().nullable(),
|
|
13697
|
+
/** Page cache. Charged to the cgroup, owned by no process. */
|
|
13698
|
+
fileBytes: number().nullable(),
|
|
13699
|
+
/**
|
|
13700
|
+
* Shared memory — and the field that explained the largest single surprise.
|
|
13701
|
+
* The i915 driver backs GPU buffers with shmem, so an inference pool or a
|
|
13702
|
+
* hardware-decode session holding DRM objects is charged HERE and appears
|
|
13703
|
+
* nowhere in a `ps` scan.
|
|
13704
|
+
*/
|
|
13705
|
+
shmemBytes: number().nullable(),
|
|
13706
|
+
/** Kernel slab charged to this cgroup. `null` on v1, which never publishes it. */
|
|
13707
|
+
slabBytes: number().nullable(),
|
|
13708
|
+
/**
|
|
13709
|
+
* Shrinkable i915 GEM object bytes, from debugfs.
|
|
13710
|
+
*
|
|
13711
|
+
* **Host-wide across every DRM client, NOT cgroup-scoped.** It is not a
|
|
13712
|
+
* component of `currentBytes` and must not be subtracted from it; it says
|
|
13713
|
+
* what put the shmem there, where `shmemBytes` only says how much.
|
|
13714
|
+
*
|
|
13715
|
+
* `null` wherever debugfs is not mounted — which is inside every camstack
|
|
13716
|
+
* container today — and on any node with no Intel GPU.
|
|
13717
|
+
*/
|
|
13718
|
+
gpuShmemBytes: number().nullable()
|
|
13719
|
+
}).extend({ atMs: number() });
|
|
13676
13720
|
var DumpHeapSnapshotInputSchema = object({
|
|
13677
13721
|
/** The addon whose runner should dump a heap snapshot. */
|
|
13678
13722
|
addonId: string() });
|
|
@@ -13736,6 +13780,21 @@ var NodeLoadSeriesSchema = object({
|
|
|
13736
13780
|
/** One entry per function seen in the window, heaviest-first. */
|
|
13737
13781
|
series: array(LoadFunctionSeriesSchema).readonly(),
|
|
13738
13782
|
/**
|
|
13783
|
+
* The CONTAINER's memory over the same window, oldest-first.
|
|
13784
|
+
*
|
|
13785
|
+
* Sits next to `series` rather than in a method of its own because the whole
|
|
13786
|
+
* question is a subtraction: the per-process rows in `series` sum to one
|
|
13787
|
+
* number and this one is another, and an operator who has to issue two calls
|
|
13788
|
+
* to compare them will compare two different instants. Same reader, same
|
|
13789
|
+
* `sinceMs`, same `bucketMs`, same timestamps.
|
|
13790
|
+
*
|
|
13791
|
+
* **EMPTY means ABSENT, never zero.** A node with no cgroup — a developer
|
|
13792
|
+
* Mac, a bare-metal host, a container with the hierarchy hidden — reports no
|
|
13793
|
+
* points at all. A zero here would be indistinguishable from a healthy
|
|
13794
|
+
* container and is precisely the lie this field exists to avoid.
|
|
13795
|
+
*/
|
|
13796
|
+
containerMemory: array(ContainerMemoryPointSchema).readonly(),
|
|
13797
|
+
/**
|
|
13739
13798
|
* Width of one returned bucket, in ms. Equals the sampling cadence when no
|
|
13740
13799
|
* reduction was needed — so a caller can always say what one point covers
|
|
13741
13800
|
* without having to know whether it was reduced.
|
|
@@ -25811,10 +25870,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
|
|
|
25811
25870
|
* recording config. NOTE on events (source of truth, R5/C3): this cap carries
|
|
25812
25871
|
* NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
|
|
25813
25872
|
* events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
|
|
25814
|
-
* rows)
|
|
25815
|
-
*
|
|
25816
|
-
*
|
|
25817
|
-
* (`interfaces/recording-config.ts`).
|
|
25873
|
+
* rows) and are the ONLY event surface — the recorder has none. The in-RAM
|
|
25874
|
+
* playback markers it used to build were deleted on 2026-08-29 because nothing
|
|
25875
|
+
* ever read them. Event<->footage joins are by time, padded with the shared
|
|
25876
|
+
* `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
|
|
25818
25877
|
*/
|
|
25819
25878
|
var RecordingStatusSchema = object({
|
|
25820
25879
|
deviceId: number(),
|