@camstack/addon-mqtt-broker 1.2.39 → 1.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.
@@ -13696,6 +13696,50 @@ var NodeProcessSchema = object({
13696
13696
  /** Wall-clock uptime (seconds). Parsed from `ps etime`. */
13697
13697
  uptimeSec: number()
13698
13698
  });
13699
+ /**
13700
+ * One retained container-memory reading.
13701
+ *
13702
+ * `atMs` is the timestamp of the PROCESS snapshot taken in the same tick, not
13703
+ * a second clock: that is what makes "processes sum to X, container says Y"
13704
+ * subtractable per point rather than an eyeballed comparison of two series
13705
+ * sampled at different instants.
13706
+ *
13707
+ * A reduced window keeps the sample with the LARGEST `currentBytes` in each
13708
+ * bucket, WHOLE. Taking a per-field maximum would synthesise a row whose parts
13709
+ * never coexisted, and a mean would smear away the peak this exists to find.
13710
+ */
13711
+ var ContainerMemoryPointSchema = object({
13712
+ /** Which hierarchy answered, so a reading is never ambiguous. */
13713
+ source: _enum(["cgroup-v2", "cgroup-v1"]),
13714
+ /** `memory.current` (v2) / `memory.usage_in_bytes` (v1). Always known. */
13715
+ currentBytes: number(),
13716
+ /** The cgroup's ceiling. `null` = NO LIMIT — never a sentinel, never zero. */
13717
+ limitBytes: number().nullable(),
13718
+ /** Anonymous pages: the closest thing to "what the processes allocated". */
13719
+ anonBytes: number().nullable(),
13720
+ /** Page cache. Charged to the cgroup, owned by no process. */
13721
+ fileBytes: number().nullable(),
13722
+ /**
13723
+ * Shared memory — and the field that explained the largest single surprise.
13724
+ * The i915 driver backs GPU buffers with shmem, so an inference pool or a
13725
+ * hardware-decode session holding DRM objects is charged HERE and appears
13726
+ * nowhere in a `ps` scan.
13727
+ */
13728
+ shmemBytes: number().nullable(),
13729
+ /** Kernel slab charged to this cgroup. `null` on v1, which never publishes it. */
13730
+ slabBytes: number().nullable(),
13731
+ /**
13732
+ * Shrinkable i915 GEM object bytes, from debugfs.
13733
+ *
13734
+ * **Host-wide across every DRM client, NOT cgroup-scoped.** It is not a
13735
+ * component of `currentBytes` and must not be subtracted from it; it says
13736
+ * what put the shmem there, where `shmemBytes` only says how much.
13737
+ *
13738
+ * `null` wherever debugfs is not mounted — which is inside every camstack
13739
+ * container today — and on any node with no Intel GPU.
13740
+ */
13741
+ gpuShmemBytes: number().nullable()
13742
+ }).extend({ atMs: number() });
13699
13743
  var DumpHeapSnapshotInputSchema = object({
13700
13744
  /** The addon whose runner should dump a heap snapshot. */
13701
13745
  addonId: string() });
@@ -13759,6 +13803,21 @@ var NodeLoadSeriesSchema = object({
13759
13803
  /** One entry per function seen in the window, heaviest-first. */
13760
13804
  series: array(LoadFunctionSeriesSchema).readonly(),
13761
13805
  /**
13806
+ * The CONTAINER's memory over the same window, oldest-first.
13807
+ *
13808
+ * Sits next to `series` rather than in a method of its own because the whole
13809
+ * question is a subtraction: the per-process rows in `series` sum to one
13810
+ * number and this one is another, and an operator who has to issue two calls
13811
+ * to compare them will compare two different instants. Same reader, same
13812
+ * `sinceMs`, same `bucketMs`, same timestamps.
13813
+ *
13814
+ * **EMPTY means ABSENT, never zero.** A node with no cgroup — a developer
13815
+ * Mac, a bare-metal host, a container with the hierarchy hidden — reports no
13816
+ * points at all. A zero here would be indistinguishable from a healthy
13817
+ * container and is precisely the lie this field exists to avoid.
13818
+ */
13819
+ containerMemory: array(ContainerMemoryPointSchema).readonly(),
13820
+ /**
13762
13821
  * Width of one returned bucket, in ms. Equals the sampling cadence when no
13763
13822
  * reduction was needed — so a caller can always say what one point covers
13764
13823
  * without having to know whether it was reduced.
@@ -25707,10 +25766,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
25707
25766
  * recording config. NOTE on events (source of truth, R5/C3): this cap carries
25708
25767
  * NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
25709
25768
  * events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
25710
- * rows); the recorder's internal EventMap markers are ephemeral in-RAM
25711
- * annotations that are not exposed here and must not be treated as an event
25712
- * feed. Event<->footage joins are by time, padded with the shared `EVENT_PAD_MS`
25713
- * (`interfaces/recording-config.ts`).
25769
+ * rows) and are the ONLY event surface — the recorder has none. The in-RAM
25770
+ * playback markers it used to build were deleted on 2026-08-29 because nothing
25771
+ * ever read them. Event<->footage joins are by time, padded with the shared
25772
+ * `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
25714
25773
  */
25715
25774
  var RecordingStatusSchema = object({
25716
25775
  deviceId: number(),
@@ -13691,6 +13691,50 @@ var NodeProcessSchema = object({
13691
13691
  /** Wall-clock uptime (seconds). Parsed from `ps etime`. */
13692
13692
  uptimeSec: number()
13693
13693
  });
13694
+ /**
13695
+ * One retained container-memory reading.
13696
+ *
13697
+ * `atMs` is the timestamp of the PROCESS snapshot taken in the same tick, not
13698
+ * a second clock: that is what makes "processes sum to X, container says Y"
13699
+ * subtractable per point rather than an eyeballed comparison of two series
13700
+ * sampled at different instants.
13701
+ *
13702
+ * A reduced window keeps the sample with the LARGEST `currentBytes` in each
13703
+ * bucket, WHOLE. Taking a per-field maximum would synthesise a row whose parts
13704
+ * never coexisted, and a mean would smear away the peak this exists to find.
13705
+ */
13706
+ var ContainerMemoryPointSchema = object({
13707
+ /** Which hierarchy answered, so a reading is never ambiguous. */
13708
+ source: _enum(["cgroup-v2", "cgroup-v1"]),
13709
+ /** `memory.current` (v2) / `memory.usage_in_bytes` (v1). Always known. */
13710
+ currentBytes: number(),
13711
+ /** The cgroup's ceiling. `null` = NO LIMIT — never a sentinel, never zero. */
13712
+ limitBytes: number().nullable(),
13713
+ /** Anonymous pages: the closest thing to "what the processes allocated". */
13714
+ anonBytes: number().nullable(),
13715
+ /** Page cache. Charged to the cgroup, owned by no process. */
13716
+ fileBytes: number().nullable(),
13717
+ /**
13718
+ * Shared memory — and the field that explained the largest single surprise.
13719
+ * The i915 driver backs GPU buffers with shmem, so an inference pool or a
13720
+ * hardware-decode session holding DRM objects is charged HERE and appears
13721
+ * nowhere in a `ps` scan.
13722
+ */
13723
+ shmemBytes: number().nullable(),
13724
+ /** Kernel slab charged to this cgroup. `null` on v1, which never publishes it. */
13725
+ slabBytes: number().nullable(),
13726
+ /**
13727
+ * Shrinkable i915 GEM object bytes, from debugfs.
13728
+ *
13729
+ * **Host-wide across every DRM client, NOT cgroup-scoped.** It is not a
13730
+ * component of `currentBytes` and must not be subtracted from it; it says
13731
+ * what put the shmem there, where `shmemBytes` only says how much.
13732
+ *
13733
+ * `null` wherever debugfs is not mounted — which is inside every camstack
13734
+ * container today — and on any node with no Intel GPU.
13735
+ */
13736
+ gpuShmemBytes: number().nullable()
13737
+ }).extend({ atMs: number() });
13694
13738
  var DumpHeapSnapshotInputSchema = object({
13695
13739
  /** The addon whose runner should dump a heap snapshot. */
13696
13740
  addonId: string() });
@@ -13754,6 +13798,21 @@ var NodeLoadSeriesSchema = object({
13754
13798
  /** One entry per function seen in the window, heaviest-first. */
13755
13799
  series: array(LoadFunctionSeriesSchema).readonly(),
13756
13800
  /**
13801
+ * The CONTAINER's memory over the same window, oldest-first.
13802
+ *
13803
+ * Sits next to `series` rather than in a method of its own because the whole
13804
+ * question is a subtraction: the per-process rows in `series` sum to one
13805
+ * number and this one is another, and an operator who has to issue two calls
13806
+ * to compare them will compare two different instants. Same reader, same
13807
+ * `sinceMs`, same `bucketMs`, same timestamps.
13808
+ *
13809
+ * **EMPTY means ABSENT, never zero.** A node with no cgroup — a developer
13810
+ * Mac, a bare-metal host, a container with the hierarchy hidden — reports no
13811
+ * points at all. A zero here would be indistinguishable from a healthy
13812
+ * container and is precisely the lie this field exists to avoid.
13813
+ */
13814
+ containerMemory: array(ContainerMemoryPointSchema).readonly(),
13815
+ /**
13757
13816
  * Width of one returned bucket, in ms. Equals the sampling cadence when no
13758
13817
  * reduction was needed — so a caller can always say what one point covers
13759
13818
  * without having to know whether it was reduced.
@@ -25702,10 +25761,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
25702
25761
  * recording config. NOTE on events (source of truth, R5/C3): this cap carries
25703
25762
  * NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
25704
25763
  * events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
25705
- * rows); the recorder's internal EventMap markers are ephemeral in-RAM
25706
- * annotations that are not exposed here and must not be treated as an event
25707
- * feed. Event<->footage joins are by time, padded with the shared `EVENT_PAD_MS`
25708
- * (`interfaces/recording-config.ts`).
25764
+ * rows) and are the ONLY event surface — the recorder has none. The in-RAM
25765
+ * playback markers it used to build were deleted on 2026-08-29 because nothing
25766
+ * ever read them. Event<->footage joins are by time, padded with the shared
25767
+ * `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
25709
25768
  */
25710
25769
  var RecordingStatusSchema = object({
25711
25770
  deviceId: number(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-mqtt-broker",
3
- "version": "1.2.39",
3
+ "version": "1.2.41",
4
4
  "description": "MQTT broker registry addon for CamStack — manages external broker entries + an optional embedded aedes broker. Consumers spin up their own `mqtt.js` clients via the `mqtt-broker` cap.",
5
5
  "keywords": [
6
6
  "camstack",