@camstack/addon-terminal 0.1.44 → 0.1.46

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
@@ -13926,6 +13926,50 @@ var NodeProcessSchema = object({
13926
13926
  /** Wall-clock uptime (seconds). Parsed from `ps etime`. */
13927
13927
  uptimeSec: number()
13928
13928
  });
13929
+ /**
13930
+ * One retained container-memory reading.
13931
+ *
13932
+ * `atMs` is the timestamp of the PROCESS snapshot taken in the same tick, not
13933
+ * a second clock: that is what makes "processes sum to X, container says Y"
13934
+ * subtractable per point rather than an eyeballed comparison of two series
13935
+ * sampled at different instants.
13936
+ *
13937
+ * A reduced window keeps the sample with the LARGEST `currentBytes` in each
13938
+ * bucket, WHOLE. Taking a per-field maximum would synthesise a row whose parts
13939
+ * never coexisted, and a mean would smear away the peak this exists to find.
13940
+ */
13941
+ var ContainerMemoryPointSchema = object({
13942
+ /** Which hierarchy answered, so a reading is never ambiguous. */
13943
+ source: _enum(["cgroup-v2", "cgroup-v1"]),
13944
+ /** `memory.current` (v2) / `memory.usage_in_bytes` (v1). Always known. */
13945
+ currentBytes: number(),
13946
+ /** The cgroup's ceiling. `null` = NO LIMIT — never a sentinel, never zero. */
13947
+ limitBytes: number().nullable(),
13948
+ /** Anonymous pages: the closest thing to "what the processes allocated". */
13949
+ anonBytes: number().nullable(),
13950
+ /** Page cache. Charged to the cgroup, owned by no process. */
13951
+ fileBytes: number().nullable(),
13952
+ /**
13953
+ * Shared memory — and the field that explained the largest single surprise.
13954
+ * The i915 driver backs GPU buffers with shmem, so an inference pool or a
13955
+ * hardware-decode session holding DRM objects is charged HERE and appears
13956
+ * nowhere in a `ps` scan.
13957
+ */
13958
+ shmemBytes: number().nullable(),
13959
+ /** Kernel slab charged to this cgroup. `null` on v1, which never publishes it. */
13960
+ slabBytes: number().nullable(),
13961
+ /**
13962
+ * Shrinkable i915 GEM object bytes, from debugfs.
13963
+ *
13964
+ * **Host-wide across every DRM client, NOT cgroup-scoped.** It is not a
13965
+ * component of `currentBytes` and must not be subtracted from it; it says
13966
+ * what put the shmem there, where `shmemBytes` only says how much.
13967
+ *
13968
+ * `null` wherever debugfs is not mounted — which is inside every camstack
13969
+ * container today — and on any node with no Intel GPU.
13970
+ */
13971
+ gpuShmemBytes: number().nullable()
13972
+ }).extend({ atMs: number() });
13929
13973
  var DumpHeapSnapshotInputSchema = object({
13930
13974
  /** The addon whose runner should dump a heap snapshot. */
13931
13975
  addonId: string() });
@@ -13989,6 +14033,21 @@ var NodeLoadSeriesSchema = object({
13989
14033
  /** One entry per function seen in the window, heaviest-first. */
13990
14034
  series: array(LoadFunctionSeriesSchema).readonly(),
13991
14035
  /**
14036
+ * The CONTAINER's memory over the same window, oldest-first.
14037
+ *
14038
+ * Sits next to `series` rather than in a method of its own because the whole
14039
+ * question is a subtraction: the per-process rows in `series` sum to one
14040
+ * number and this one is another, and an operator who has to issue two calls
14041
+ * to compare them will compare two different instants. Same reader, same
14042
+ * `sinceMs`, same `bucketMs`, same timestamps.
14043
+ *
14044
+ * **EMPTY means ABSENT, never zero.** A node with no cgroup — a developer
14045
+ * Mac, a bare-metal host, a container with the hierarchy hidden — reports no
14046
+ * points at all. A zero here would be indistinguishable from a healthy
14047
+ * container and is precisely the lie this field exists to avoid.
14048
+ */
14049
+ containerMemory: array(ContainerMemoryPointSchema).readonly(),
14050
+ /**
13992
14051
  * Width of one returned bucket, in ms. Equals the sampling cadence when no
13993
14052
  * reduction was needed — so a caller can always say what one point covers
13994
14053
  * without having to know whether it was reduced.
@@ -27832,10 +27891,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
27832
27891
  * recording config. NOTE on events (source of truth, R5/C3): this cap carries
27833
27892
  * NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
27834
27893
  * events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
27835
- * rows); the recorder's internal EventMap markers are ephemeral in-RAM
27836
- * annotations that are not exposed here and must not be treated as an event
27837
- * feed. Event<->footage joins are by time, padded with the shared `EVENT_PAD_MS`
27838
- * (`interfaces/recording-config.ts`).
27894
+ * rows) and are the ONLY event surface the recorder has none. The in-RAM
27895
+ * playback markers it used to build were deleted on 2026-08-29 because nothing
27896
+ * ever read them. Event<->footage joins are by time, padded with the shared
27897
+ * `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
27839
27898
  */
27840
27899
  var RecordingStatusSchema = object({
27841
27900
  deviceId: number(),
package/dist/addon.mjs CHANGED
@@ -13903,6 +13903,50 @@ var NodeProcessSchema = object({
13903
13903
  /** Wall-clock uptime (seconds). Parsed from `ps etime`. */
13904
13904
  uptimeSec: number()
13905
13905
  });
13906
+ /**
13907
+ * One retained container-memory reading.
13908
+ *
13909
+ * `atMs` is the timestamp of the PROCESS snapshot taken in the same tick, not
13910
+ * a second clock: that is what makes "processes sum to X, container says Y"
13911
+ * subtractable per point rather than an eyeballed comparison of two series
13912
+ * sampled at different instants.
13913
+ *
13914
+ * A reduced window keeps the sample with the LARGEST `currentBytes` in each
13915
+ * bucket, WHOLE. Taking a per-field maximum would synthesise a row whose parts
13916
+ * never coexisted, and a mean would smear away the peak this exists to find.
13917
+ */
13918
+ var ContainerMemoryPointSchema = object({
13919
+ /** Which hierarchy answered, so a reading is never ambiguous. */
13920
+ source: _enum(["cgroup-v2", "cgroup-v1"]),
13921
+ /** `memory.current` (v2) / `memory.usage_in_bytes` (v1). Always known. */
13922
+ currentBytes: number(),
13923
+ /** The cgroup's ceiling. `null` = NO LIMIT — never a sentinel, never zero. */
13924
+ limitBytes: number().nullable(),
13925
+ /** Anonymous pages: the closest thing to "what the processes allocated". */
13926
+ anonBytes: number().nullable(),
13927
+ /** Page cache. Charged to the cgroup, owned by no process. */
13928
+ fileBytes: number().nullable(),
13929
+ /**
13930
+ * Shared memory — and the field that explained the largest single surprise.
13931
+ * The i915 driver backs GPU buffers with shmem, so an inference pool or a
13932
+ * hardware-decode session holding DRM objects is charged HERE and appears
13933
+ * nowhere in a `ps` scan.
13934
+ */
13935
+ shmemBytes: number().nullable(),
13936
+ /** Kernel slab charged to this cgroup. `null` on v1, which never publishes it. */
13937
+ slabBytes: number().nullable(),
13938
+ /**
13939
+ * Shrinkable i915 GEM object bytes, from debugfs.
13940
+ *
13941
+ * **Host-wide across every DRM client, NOT cgroup-scoped.** It is not a
13942
+ * component of `currentBytes` and must not be subtracted from it; it says
13943
+ * what put the shmem there, where `shmemBytes` only says how much.
13944
+ *
13945
+ * `null` wherever debugfs is not mounted — which is inside every camstack
13946
+ * container today — and on any node with no Intel GPU.
13947
+ */
13948
+ gpuShmemBytes: number().nullable()
13949
+ }).extend({ atMs: number() });
13906
13950
  var DumpHeapSnapshotInputSchema = object({
13907
13951
  /** The addon whose runner should dump a heap snapshot. */
13908
13952
  addonId: string() });
@@ -13966,6 +14010,21 @@ var NodeLoadSeriesSchema = object({
13966
14010
  /** One entry per function seen in the window, heaviest-first. */
13967
14011
  series: array(LoadFunctionSeriesSchema).readonly(),
13968
14012
  /**
14013
+ * The CONTAINER's memory over the same window, oldest-first.
14014
+ *
14015
+ * Sits next to `series` rather than in a method of its own because the whole
14016
+ * question is a subtraction: the per-process rows in `series` sum to one
14017
+ * number and this one is another, and an operator who has to issue two calls
14018
+ * to compare them will compare two different instants. Same reader, same
14019
+ * `sinceMs`, same `bucketMs`, same timestamps.
14020
+ *
14021
+ * **EMPTY means ABSENT, never zero.** A node with no cgroup — a developer
14022
+ * Mac, a bare-metal host, a container with the hierarchy hidden — reports no
14023
+ * points at all. A zero here would be indistinguishable from a healthy
14024
+ * container and is precisely the lie this field exists to avoid.
14025
+ */
14026
+ containerMemory: array(ContainerMemoryPointSchema).readonly(),
14027
+ /**
13969
14028
  * Width of one returned bucket, in ms. Equals the sampling cadence when no
13970
14029
  * reduction was needed — so a caller can always say what one point covers
13971
14030
  * without having to know whether it was reduced.
@@ -27809,10 +27868,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
27809
27868
  * recording config. NOTE on events (source of truth, R5/C3): this cap carries
27810
27869
  * NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
27811
27870
  * events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
27812
- * rows); the recorder's internal EventMap markers are ephemeral in-RAM
27813
- * annotations that are not exposed here and must not be treated as an event
27814
- * feed. Event<->footage joins are by time, padded with the shared `EVENT_PAD_MS`
27815
- * (`interfaces/recording-config.ts`).
27871
+ * rows) and are the ONLY event surface the recorder has none. The in-RAM
27872
+ * playback markers it used to build were deleted on 2026-08-29 because nothing
27873
+ * ever read them. Event<->footage joins are by time, padded with the shared
27874
+ * `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
27816
27875
  */
27817
27876
  var RecordingStatusSchema = object({
27818
27877
  deviceId: number(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-terminal",
3
- "version": "0.1.44",
3
+ "version": "0.1.46",
4
4
  "description": "Interactive terminal sessions (pty + xterm) as a CamStack addon",
5
5
  "keywords": [
6
6
  "camstack",