@camstack/addon-agent-ui 1.2.40 → 1.2.42

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.
Files changed (2) hide show
  1. package/dist/addon.js +64 -5
  2. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -13621,6 +13621,50 @@ var NodeProcessSchema = object({
13621
13621
  /** Wall-clock uptime (seconds). Parsed from `ps etime`. */
13622
13622
  uptimeSec: number()
13623
13623
  });
13624
+ /**
13625
+ * One retained container-memory reading.
13626
+ *
13627
+ * `atMs` is the timestamp of the PROCESS snapshot taken in the same tick, not
13628
+ * a second clock: that is what makes "processes sum to X, container says Y"
13629
+ * subtractable per point rather than an eyeballed comparison of two series
13630
+ * sampled at different instants.
13631
+ *
13632
+ * A reduced window keeps the sample with the LARGEST `currentBytes` in each
13633
+ * bucket, WHOLE. Taking a per-field maximum would synthesise a row whose parts
13634
+ * never coexisted, and a mean would smear away the peak this exists to find.
13635
+ */
13636
+ var ContainerMemoryPointSchema = object({
13637
+ /** Which hierarchy answered, so a reading is never ambiguous. */
13638
+ source: _enum(["cgroup-v2", "cgroup-v1"]),
13639
+ /** `memory.current` (v2) / `memory.usage_in_bytes` (v1). Always known. */
13640
+ currentBytes: number(),
13641
+ /** The cgroup's ceiling. `null` = NO LIMIT — never a sentinel, never zero. */
13642
+ limitBytes: number().nullable(),
13643
+ /** Anonymous pages: the closest thing to "what the processes allocated". */
13644
+ anonBytes: number().nullable(),
13645
+ /** Page cache. Charged to the cgroup, owned by no process. */
13646
+ fileBytes: number().nullable(),
13647
+ /**
13648
+ * Shared memory — and the field that explained the largest single surprise.
13649
+ * The i915 driver backs GPU buffers with shmem, so an inference pool or a
13650
+ * hardware-decode session holding DRM objects is charged HERE and appears
13651
+ * nowhere in a `ps` scan.
13652
+ */
13653
+ shmemBytes: number().nullable(),
13654
+ /** Kernel slab charged to this cgroup. `null` on v1, which never publishes it. */
13655
+ slabBytes: number().nullable(),
13656
+ /**
13657
+ * Shrinkable i915 GEM object bytes, from debugfs.
13658
+ *
13659
+ * **Host-wide across every DRM client, NOT cgroup-scoped.** It is not a
13660
+ * component of `currentBytes` and must not be subtracted from it; it says
13661
+ * what put the shmem there, where `shmemBytes` only says how much.
13662
+ *
13663
+ * `null` wherever debugfs is not mounted — which is inside every camstack
13664
+ * container today — and on any node with no Intel GPU.
13665
+ */
13666
+ gpuShmemBytes: number().nullable()
13667
+ }).extend({ atMs: number() });
13624
13668
  var DumpHeapSnapshotInputSchema = object({
13625
13669
  /** The addon whose runner should dump a heap snapshot. */
13626
13670
  addonId: string() });
@@ -13684,6 +13728,21 @@ var NodeLoadSeriesSchema = object({
13684
13728
  /** One entry per function seen in the window, heaviest-first. */
13685
13729
  series: array(LoadFunctionSeriesSchema).readonly(),
13686
13730
  /**
13731
+ * The CONTAINER's memory over the same window, oldest-first.
13732
+ *
13733
+ * Sits next to `series` rather than in a method of its own because the whole
13734
+ * question is a subtraction: the per-process rows in `series` sum to one
13735
+ * number and this one is another, and an operator who has to issue two calls
13736
+ * to compare them will compare two different instants. Same reader, same
13737
+ * `sinceMs`, same `bucketMs`, same timestamps.
13738
+ *
13739
+ * **EMPTY means ABSENT, never zero.** A node with no cgroup — a developer
13740
+ * Mac, a bare-metal host, a container with the hierarchy hidden — reports no
13741
+ * points at all. A zero here would be indistinguishable from a healthy
13742
+ * container and is precisely the lie this field exists to avoid.
13743
+ */
13744
+ containerMemory: array(ContainerMemoryPointSchema).readonly(),
13745
+ /**
13687
13746
  * Width of one returned bucket, in ms. Equals the sampling cadence when no
13688
13747
  * reduction was needed — so a caller can always say what one point covers
13689
13748
  * without having to know whether it was reduced.
@@ -25613,10 +25672,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
25613
25672
  * recording config. NOTE on events (source of truth, R5/C3): this cap carries
25614
25673
  * NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
25615
25674
  * events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
25616
- * rows); the recorder's internal EventMap markers are ephemeral in-RAM
25617
- * annotations that are not exposed here and must not be treated as an event
25618
- * feed. Event<->footage joins are by time, padded with the shared `EVENT_PAD_MS`
25619
- * (`interfaces/recording-config.ts`).
25675
+ * rows) and are the ONLY event surface the recorder has none. The in-RAM
25676
+ * playback markers it used to build were deleted on 2026-08-29 because nothing
25677
+ * ever read them. Event<->footage joins are by time, padded with the shared
25678
+ * `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
25620
25679
  */
25621
25680
  var RecordingStatusSchema = object({
25622
25681
  deviceId: number(),
@@ -35938,7 +35997,7 @@ var AgentUIAddon = class extends BaseAddon {
35938
35997
  capability: adminUiCapability,
35939
35998
  provider: {
35940
35999
  getStaticDir: async () => ({ staticDir: path.resolve(__dirname) }),
35941
- getVersion: async () => ({ version: "1.2.40" })
36000
+ getVersion: async () => ({ version: "1.2.42" })
35942
36001
  }
35943
36002
  }];
35944
36003
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-agent-ui",
3
- "version": "1.2.40",
3
+ "version": "1.2.42",
4
4
  "description": "Agent UI — lightweight status dashboard served by every agent node",
5
5
  "keywords": [
6
6
  "camstack",