@camstack/addon-provider-velux 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 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.
@@ -27640,10 +27699,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
27640
27699
  * recording config. NOTE on events (source of truth, R5/C3): this cap carries
27641
27700
  * NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
27642
27701
  * events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
27643
- * rows); the recorder's internal EventMap markers are ephemeral in-RAM
27644
- * annotations that are not exposed here and must not be treated as an event
27645
- * feed. Event<->footage joins are by time, padded with the shared `EVENT_PAD_MS`
27646
- * (`interfaces/recording-config.ts`).
27702
+ * rows) and are the ONLY event surface — the recorder has none. The in-RAM
27703
+ * playback markers it used to build were deleted on 2026-08-29 because nothing
27704
+ * ever read them. Event<->footage joins are by time, padded with the shared
27705
+ * `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
27647
27706
  */
27648
27707
  var RecordingStatusSchema = object({
27649
27708
  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.
@@ -27639,10 +27698,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
27639
27698
  * recording config. NOTE on events (source of truth, R5/C3): this cap carries
27640
27699
  * NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
27641
27700
  * events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
27642
- * rows); the recorder's internal EventMap markers are ephemeral in-RAM
27643
- * annotations that are not exposed here and must not be treated as an event
27644
- * feed. Event<->footage joins are by time, padded with the shared `EVENT_PAD_MS`
27645
- * (`interfaces/recording-config.ts`).
27701
+ * rows) and are the ONLY event surface — the recorder has none. The in-RAM
27702
+ * playback markers it used to build were deleted on 2026-08-29 because nothing
27703
+ * ever read them. Event<->footage joins are by time, padded with the shared
27704
+ * `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
27646
27705
  */
27647
27706
  var RecordingStatusSchema = object({
27648
27707
  deviceId: number(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-velux",
3
- "version": "0.2.39",
3
+ "version": "0.2.41",
4
4
  "description": "Velux KLF-200 device-provider addon for CamStack — local-gateway window + shutter covers (positional, no tilt)",
5
5
  "keywords": [
6
6
  "camstack",