@camstack/addon-matter-broker 0.2.38 → 0.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 CHANGED
@@ -13962,6 +13962,50 @@ var NodeProcessSchema = object({
13962
13962
  /** Wall-clock uptime (seconds). Parsed from `ps etime`. */
13963
13963
  uptimeSec: number()
13964
13964
  });
13965
+ /**
13966
+ * One retained container-memory reading.
13967
+ *
13968
+ * `atMs` is the timestamp of the PROCESS snapshot taken in the same tick, not
13969
+ * a second clock: that is what makes "processes sum to X, container says Y"
13970
+ * subtractable per point rather than an eyeballed comparison of two series
13971
+ * sampled at different instants.
13972
+ *
13973
+ * A reduced window keeps the sample with the LARGEST `currentBytes` in each
13974
+ * bucket, WHOLE. Taking a per-field maximum would synthesise a row whose parts
13975
+ * never coexisted, and a mean would smear away the peak this exists to find.
13976
+ */
13977
+ var ContainerMemoryPointSchema = object({
13978
+ /** Which hierarchy answered, so a reading is never ambiguous. */
13979
+ source: _enum(["cgroup-v2", "cgroup-v1"]),
13980
+ /** `memory.current` (v2) / `memory.usage_in_bytes` (v1). Always known. */
13981
+ currentBytes: number(),
13982
+ /** The cgroup's ceiling. `null` = NO LIMIT — never a sentinel, never zero. */
13983
+ limitBytes: number().nullable(),
13984
+ /** Anonymous pages: the closest thing to "what the processes allocated". */
13985
+ anonBytes: number().nullable(),
13986
+ /** Page cache. Charged to the cgroup, owned by no process. */
13987
+ fileBytes: number().nullable(),
13988
+ /**
13989
+ * Shared memory — and the field that explained the largest single surprise.
13990
+ * The i915 driver backs GPU buffers with shmem, so an inference pool or a
13991
+ * hardware-decode session holding DRM objects is charged HERE and appears
13992
+ * nowhere in a `ps` scan.
13993
+ */
13994
+ shmemBytes: number().nullable(),
13995
+ /** Kernel slab charged to this cgroup. `null` on v1, which never publishes it. */
13996
+ slabBytes: number().nullable(),
13997
+ /**
13998
+ * Shrinkable i915 GEM object bytes, from debugfs.
13999
+ *
14000
+ * **Host-wide across every DRM client, NOT cgroup-scoped.** It is not a
14001
+ * component of `currentBytes` and must not be subtracted from it; it says
14002
+ * what put the shmem there, where `shmemBytes` only says how much.
14003
+ *
14004
+ * `null` wherever debugfs is not mounted — which is inside every camstack
14005
+ * container today — and on any node with no Intel GPU.
14006
+ */
14007
+ gpuShmemBytes: number().nullable()
14008
+ }).extend({ atMs: number() });
13965
14009
  var DumpHeapSnapshotInputSchema = object({
13966
14010
  /** The addon whose runner should dump a heap snapshot. */
13967
14011
  addonId: string$2() });
@@ -14025,6 +14069,21 @@ var NodeLoadSeriesSchema = object({
14025
14069
  /** One entry per function seen in the window, heaviest-first. */
14026
14070
  series: array(LoadFunctionSeriesSchema).readonly(),
14027
14071
  /**
14072
+ * The CONTAINER's memory over the same window, oldest-first.
14073
+ *
14074
+ * Sits next to `series` rather than in a method of its own because the whole
14075
+ * question is a subtraction: the per-process rows in `series` sum to one
14076
+ * number and this one is another, and an operator who has to issue two calls
14077
+ * to compare them will compare two different instants. Same reader, same
14078
+ * `sinceMs`, same `bucketMs`, same timestamps.
14079
+ *
14080
+ * **EMPTY means ABSENT, never zero.** A node with no cgroup — a developer
14081
+ * Mac, a bare-metal host, a container with the hierarchy hidden — reports no
14082
+ * points at all. A zero here would be indistinguishable from a healthy
14083
+ * container and is precisely the lie this field exists to avoid.
14084
+ */
14085
+ containerMemory: array(ContainerMemoryPointSchema).readonly(),
14086
+ /**
14028
14087
  * Width of one returned bucket, in ms. Equals the sampling cadence when no
14029
14088
  * reduction was needed — so a caller can always say what one point covers
14030
14089
  * without having to know whether it was reduced.
@@ -27737,10 +27796,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
27737
27796
  * recording config. NOTE on events (source of truth, R5/C3): this cap carries
27738
27797
  * NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
27739
27798
  * events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
27740
- * rows); the recorder's internal EventMap markers are ephemeral in-RAM
27741
- * annotations that are not exposed here and must not be treated as an event
27742
- * feed. Event<->footage joins are by time, padded with the shared `EVENT_PAD_MS`
27743
- * (`interfaces/recording-config.ts`).
27799
+ * rows) and are the ONLY event surface the recorder has none. The in-RAM
27800
+ * playback markers it used to build were deleted on 2026-08-29 because nothing
27801
+ * ever read them. Event<->footage joins are by time, padded with the shared
27802
+ * `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
27744
27803
  */
27745
27804
  var RecordingStatusSchema = object({
27746
27805
  deviceId: number(),
package/dist/addon.mjs CHANGED
@@ -13960,6 +13960,50 @@ var NodeProcessSchema = object({
13960
13960
  /** Wall-clock uptime (seconds). Parsed from `ps etime`. */
13961
13961
  uptimeSec: number()
13962
13962
  });
13963
+ /**
13964
+ * One retained container-memory reading.
13965
+ *
13966
+ * `atMs` is the timestamp of the PROCESS snapshot taken in the same tick, not
13967
+ * a second clock: that is what makes "processes sum to X, container says Y"
13968
+ * subtractable per point rather than an eyeballed comparison of two series
13969
+ * sampled at different instants.
13970
+ *
13971
+ * A reduced window keeps the sample with the LARGEST `currentBytes` in each
13972
+ * bucket, WHOLE. Taking a per-field maximum would synthesise a row whose parts
13973
+ * never coexisted, and a mean would smear away the peak this exists to find.
13974
+ */
13975
+ var ContainerMemoryPointSchema = object({
13976
+ /** Which hierarchy answered, so a reading is never ambiguous. */
13977
+ source: _enum(["cgroup-v2", "cgroup-v1"]),
13978
+ /** `memory.current` (v2) / `memory.usage_in_bytes` (v1). Always known. */
13979
+ currentBytes: number(),
13980
+ /** The cgroup's ceiling. `null` = NO LIMIT — never a sentinel, never zero. */
13981
+ limitBytes: number().nullable(),
13982
+ /** Anonymous pages: the closest thing to "what the processes allocated". */
13983
+ anonBytes: number().nullable(),
13984
+ /** Page cache. Charged to the cgroup, owned by no process. */
13985
+ fileBytes: number().nullable(),
13986
+ /**
13987
+ * Shared memory — and the field that explained the largest single surprise.
13988
+ * The i915 driver backs GPU buffers with shmem, so an inference pool or a
13989
+ * hardware-decode session holding DRM objects is charged HERE and appears
13990
+ * nowhere in a `ps` scan.
13991
+ */
13992
+ shmemBytes: number().nullable(),
13993
+ /** Kernel slab charged to this cgroup. `null` on v1, which never publishes it. */
13994
+ slabBytes: number().nullable(),
13995
+ /**
13996
+ * Shrinkable i915 GEM object bytes, from debugfs.
13997
+ *
13998
+ * **Host-wide across every DRM client, NOT cgroup-scoped.** It is not a
13999
+ * component of `currentBytes` and must not be subtracted from it; it says
14000
+ * what put the shmem there, where `shmemBytes` only says how much.
14001
+ *
14002
+ * `null` wherever debugfs is not mounted — which is inside every camstack
14003
+ * container today — and on any node with no Intel GPU.
14004
+ */
14005
+ gpuShmemBytes: number().nullable()
14006
+ }).extend({ atMs: number() });
13963
14007
  var DumpHeapSnapshotInputSchema = object({
13964
14008
  /** The addon whose runner should dump a heap snapshot. */
13965
14009
  addonId: string$2() });
@@ -14023,6 +14067,21 @@ var NodeLoadSeriesSchema = object({
14023
14067
  /** One entry per function seen in the window, heaviest-first. */
14024
14068
  series: array(LoadFunctionSeriesSchema).readonly(),
14025
14069
  /**
14070
+ * The CONTAINER's memory over the same window, oldest-first.
14071
+ *
14072
+ * Sits next to `series` rather than in a method of its own because the whole
14073
+ * question is a subtraction: the per-process rows in `series` sum to one
14074
+ * number and this one is another, and an operator who has to issue two calls
14075
+ * to compare them will compare two different instants. Same reader, same
14076
+ * `sinceMs`, same `bucketMs`, same timestamps.
14077
+ *
14078
+ * **EMPTY means ABSENT, never zero.** A node with no cgroup — a developer
14079
+ * Mac, a bare-metal host, a container with the hierarchy hidden — reports no
14080
+ * points at all. A zero here would be indistinguishable from a healthy
14081
+ * container and is precisely the lie this field exists to avoid.
14082
+ */
14083
+ containerMemory: array(ContainerMemoryPointSchema).readonly(),
14084
+ /**
14026
14085
  * Width of one returned bucket, in ms. Equals the sampling cadence when no
14027
14086
  * reduction was needed — so a caller can always say what one point covers
14028
14087
  * without having to know whether it was reduced.
@@ -27735,10 +27794,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
27735
27794
  * recording config. NOTE on events (source of truth, R5/C3): this cap carries
27736
27795
  * NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
27737
27796
  * events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
27738
- * rows); the recorder's internal EventMap markers are ephemeral in-RAM
27739
- * annotations that are not exposed here and must not be treated as an event
27740
- * feed. Event<->footage joins are by time, padded with the shared `EVENT_PAD_MS`
27741
- * (`interfaces/recording-config.ts`).
27797
+ * rows) and are the ONLY event surface the recorder has none. The in-RAM
27798
+ * playback markers it used to build were deleted on 2026-08-29 because nothing
27799
+ * ever read them. Event<->footage joins are by time, padded with the shared
27800
+ * `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
27742
27801
  */
27743
27802
  var RecordingStatusSchema = object({
27744
27803
  deviceId: number(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-matter-broker",
3
- "version": "0.2.38",
3
+ "version": "0.2.40",
4
4
  "description": "Matter broker addon for CamStack — owns a Matter fabric (commissioning + the long-lived controller) via the matter.js controller and brokers commissioned Matter nodes into CamStack",
5
5
  "keywords": [
6
6
  "camstack",