@camstack/addon-ai 0.4.33 → 0.4.35

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
@@ -13915,6 +13915,50 @@ var NodeProcessSchema = object({
13915
13915
  /** Wall-clock uptime (seconds). Parsed from `ps etime`. */
13916
13916
  uptimeSec: number$1()
13917
13917
  });
13918
+ /**
13919
+ * One retained container-memory reading.
13920
+ *
13921
+ * `atMs` is the timestamp of the PROCESS snapshot taken in the same tick, not
13922
+ * a second clock: that is what makes "processes sum to X, container says Y"
13923
+ * subtractable per point rather than an eyeballed comparison of two series
13924
+ * sampled at different instants.
13925
+ *
13926
+ * A reduced window keeps the sample with the LARGEST `currentBytes` in each
13927
+ * bucket, WHOLE. Taking a per-field maximum would synthesise a row whose parts
13928
+ * never coexisted, and a mean would smear away the peak this exists to find.
13929
+ */
13930
+ var ContainerMemoryPointSchema = object({
13931
+ /** Which hierarchy answered, so a reading is never ambiguous. */
13932
+ source: _enum(["cgroup-v2", "cgroup-v1"]),
13933
+ /** `memory.current` (v2) / `memory.usage_in_bytes` (v1). Always known. */
13934
+ currentBytes: number$1(),
13935
+ /** The cgroup's ceiling. `null` = NO LIMIT — never a sentinel, never zero. */
13936
+ limitBytes: number$1().nullable(),
13937
+ /** Anonymous pages: the closest thing to "what the processes allocated". */
13938
+ anonBytes: number$1().nullable(),
13939
+ /** Page cache. Charged to the cgroup, owned by no process. */
13940
+ fileBytes: number$1().nullable(),
13941
+ /**
13942
+ * Shared memory — and the field that explained the largest single surprise.
13943
+ * The i915 driver backs GPU buffers with shmem, so an inference pool or a
13944
+ * hardware-decode session holding DRM objects is charged HERE and appears
13945
+ * nowhere in a `ps` scan.
13946
+ */
13947
+ shmemBytes: number$1().nullable(),
13948
+ /** Kernel slab charged to this cgroup. `null` on v1, which never publishes it. */
13949
+ slabBytes: number$1().nullable(),
13950
+ /**
13951
+ * Shrinkable i915 GEM object bytes, from debugfs.
13952
+ *
13953
+ * **Host-wide across every DRM client, NOT cgroup-scoped.** It is not a
13954
+ * component of `currentBytes` and must not be subtracted from it; it says
13955
+ * what put the shmem there, where `shmemBytes` only says how much.
13956
+ *
13957
+ * `null` wherever debugfs is not mounted — which is inside every camstack
13958
+ * container today — and on any node with no Intel GPU.
13959
+ */
13960
+ gpuShmemBytes: number$1().nullable()
13961
+ }).extend({ atMs: number$1() });
13918
13962
  var DumpHeapSnapshotInputSchema = object({
13919
13963
  /** The addon whose runner should dump a heap snapshot. */
13920
13964
  addonId: string() });
@@ -13978,6 +14022,21 @@ var NodeLoadSeriesSchema = object({
13978
14022
  /** One entry per function seen in the window, heaviest-first. */
13979
14023
  series: array(LoadFunctionSeriesSchema).readonly(),
13980
14024
  /**
14025
+ * The CONTAINER's memory over the same window, oldest-first.
14026
+ *
14027
+ * Sits next to `series` rather than in a method of its own because the whole
14028
+ * question is a subtraction: the per-process rows in `series` sum to one
14029
+ * number and this one is another, and an operator who has to issue two calls
14030
+ * to compare them will compare two different instants. Same reader, same
14031
+ * `sinceMs`, same `bucketMs`, same timestamps.
14032
+ *
14033
+ * **EMPTY means ABSENT, never zero.** A node with no cgroup — a developer
14034
+ * Mac, a bare-metal host, a container with the hierarchy hidden — reports no
14035
+ * points at all. A zero here would be indistinguishable from a healthy
14036
+ * container and is precisely the lie this field exists to avoid.
14037
+ */
14038
+ containerMemory: array(ContainerMemoryPointSchema).readonly(),
14039
+ /**
13981
14040
  * Width of one returned bucket, in ms. Equals the sampling cadence when no
13982
14041
  * reduction was needed — so a caller can always say what one point covers
13983
14042
  * without having to know whether it was reduced.
@@ -25907,10 +25966,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
25907
25966
  * recording config. NOTE on events (source of truth, R5/C3): this cap carries
25908
25967
  * NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
25909
25968
  * events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
25910
- * rows); the recorder's internal EventMap markers are ephemeral in-RAM
25911
- * annotations that are not exposed here and must not be treated as an event
25912
- * feed. Event<->footage joins are by time, padded with the shared `EVENT_PAD_MS`
25913
- * (`interfaces/recording-config.ts`).
25969
+ * rows) and are the ONLY event surface — the recorder has none. The in-RAM
25970
+ * playback markers it used to build were deleted on 2026-08-29 because nothing
25971
+ * ever read them. Event<->footage joins are by time, padded with the shared
25972
+ * `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
25914
25973
  */
25915
25974
  var RecordingStatusSchema = object({
25916
25975
  deviceId: number$1(),
package/dist/addon.mjs CHANGED
@@ -13942,6 +13942,50 @@ var NodeProcessSchema = object({
13942
13942
  /** Wall-clock uptime (seconds). Parsed from `ps etime`. */
13943
13943
  uptimeSec: number$1()
13944
13944
  });
13945
+ /**
13946
+ * One retained container-memory reading.
13947
+ *
13948
+ * `atMs` is the timestamp of the PROCESS snapshot taken in the same tick, not
13949
+ * a second clock: that is what makes "processes sum to X, container says Y"
13950
+ * subtractable per point rather than an eyeballed comparison of two series
13951
+ * sampled at different instants.
13952
+ *
13953
+ * A reduced window keeps the sample with the LARGEST `currentBytes` in each
13954
+ * bucket, WHOLE. Taking a per-field maximum would synthesise a row whose parts
13955
+ * never coexisted, and a mean would smear away the peak this exists to find.
13956
+ */
13957
+ var ContainerMemoryPointSchema = object({
13958
+ /** Which hierarchy answered, so a reading is never ambiguous. */
13959
+ source: _enum(["cgroup-v2", "cgroup-v1"]),
13960
+ /** `memory.current` (v2) / `memory.usage_in_bytes` (v1). Always known. */
13961
+ currentBytes: number$1(),
13962
+ /** The cgroup's ceiling. `null` = NO LIMIT — never a sentinel, never zero. */
13963
+ limitBytes: number$1().nullable(),
13964
+ /** Anonymous pages: the closest thing to "what the processes allocated". */
13965
+ anonBytes: number$1().nullable(),
13966
+ /** Page cache. Charged to the cgroup, owned by no process. */
13967
+ fileBytes: number$1().nullable(),
13968
+ /**
13969
+ * Shared memory — and the field that explained the largest single surprise.
13970
+ * The i915 driver backs GPU buffers with shmem, so an inference pool or a
13971
+ * hardware-decode session holding DRM objects is charged HERE and appears
13972
+ * nowhere in a `ps` scan.
13973
+ */
13974
+ shmemBytes: number$1().nullable(),
13975
+ /** Kernel slab charged to this cgroup. `null` on v1, which never publishes it. */
13976
+ slabBytes: number$1().nullable(),
13977
+ /**
13978
+ * Shrinkable i915 GEM object bytes, from debugfs.
13979
+ *
13980
+ * **Host-wide across every DRM client, NOT cgroup-scoped.** It is not a
13981
+ * component of `currentBytes` and must not be subtracted from it; it says
13982
+ * what put the shmem there, where `shmemBytes` only says how much.
13983
+ *
13984
+ * `null` wherever debugfs is not mounted — which is inside every camstack
13985
+ * container today — and on any node with no Intel GPU.
13986
+ */
13987
+ gpuShmemBytes: number$1().nullable()
13988
+ }).extend({ atMs: number$1() });
13945
13989
  var DumpHeapSnapshotInputSchema = object({
13946
13990
  /** The addon whose runner should dump a heap snapshot. */
13947
13991
  addonId: string() });
@@ -14005,6 +14049,21 @@ var NodeLoadSeriesSchema = object({
14005
14049
  /** One entry per function seen in the window, heaviest-first. */
14006
14050
  series: array(LoadFunctionSeriesSchema).readonly(),
14007
14051
  /**
14052
+ * The CONTAINER's memory over the same window, oldest-first.
14053
+ *
14054
+ * Sits next to `series` rather than in a method of its own because the whole
14055
+ * question is a subtraction: the per-process rows in `series` sum to one
14056
+ * number and this one is another, and an operator who has to issue two calls
14057
+ * to compare them will compare two different instants. Same reader, same
14058
+ * `sinceMs`, same `bucketMs`, same timestamps.
14059
+ *
14060
+ * **EMPTY means ABSENT, never zero.** A node with no cgroup — a developer
14061
+ * Mac, a bare-metal host, a container with the hierarchy hidden — reports no
14062
+ * points at all. A zero here would be indistinguishable from a healthy
14063
+ * container and is precisely the lie this field exists to avoid.
14064
+ */
14065
+ containerMemory: array(ContainerMemoryPointSchema).readonly(),
14066
+ /**
14008
14067
  * Width of one returned bucket, in ms. Equals the sampling cadence when no
14009
14068
  * reduction was needed — so a caller can always say what one point covers
14010
14069
  * without having to know whether it was reduced.
@@ -25934,10 +25993,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
25934
25993
  * recording config. NOTE on events (source of truth, R5/C3): this cap carries
25935
25994
  * NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
25936
25995
  * events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
25937
- * rows); the recorder's internal EventMap markers are ephemeral in-RAM
25938
- * annotations that are not exposed here and must not be treated as an event
25939
- * feed. Event<->footage joins are by time, padded with the shared `EVENT_PAD_MS`
25940
- * (`interfaces/recording-config.ts`).
25996
+ * rows) and are the ONLY event surface — the recorder has none. The in-RAM
25997
+ * playback markers it used to build were deleted on 2026-08-29 because nothing
25998
+ * ever read them. Event<->footage joins are by time, padded with the shared
25999
+ * `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
25941
26000
  */
25942
26001
  var RecordingStatusSchema = object({
25943
26002
  deviceId: number$1(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-ai",
3
- "version": "0.4.33",
3
+ "version": "0.4.35",
4
4
  "description": "AI addon for CamStack — the `llm` collection provider (cloud, LAN, and camstack-managed local llama.cpp profiles) plus the per-node `llm-runtime` managed executor.",
5
5
  "keywords": [
6
6
  "camstack",