@camstack/addon-provider-petkit 0.2.39 → 0.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.
package/dist/addon.js CHANGED
@@ -15001,6 +15001,50 @@ var NodeProcessSchema = object({
15001
15001
  /** Wall-clock uptime (seconds). Parsed from `ps etime`. */
15002
15002
  uptimeSec: number()
15003
15003
  });
15004
+ /**
15005
+ * One retained container-memory reading.
15006
+ *
15007
+ * `atMs` is the timestamp of the PROCESS snapshot taken in the same tick, not
15008
+ * a second clock: that is what makes "processes sum to X, container says Y"
15009
+ * subtractable per point rather than an eyeballed comparison of two series
15010
+ * sampled at different instants.
15011
+ *
15012
+ * A reduced window keeps the sample with the LARGEST `currentBytes` in each
15013
+ * bucket, WHOLE. Taking a per-field maximum would synthesise a row whose parts
15014
+ * never coexisted, and a mean would smear away the peak this exists to find.
15015
+ */
15016
+ var ContainerMemoryPointSchema = object({
15017
+ /** Which hierarchy answered, so a reading is never ambiguous. */
15018
+ source: _enum(["cgroup-v2", "cgroup-v1"]),
15019
+ /** `memory.current` (v2) / `memory.usage_in_bytes` (v1). Always known. */
15020
+ currentBytes: number(),
15021
+ /** The cgroup's ceiling. `null` = NO LIMIT — never a sentinel, never zero. */
15022
+ limitBytes: number().nullable(),
15023
+ /** Anonymous pages: the closest thing to "what the processes allocated". */
15024
+ anonBytes: number().nullable(),
15025
+ /** Page cache. Charged to the cgroup, owned by no process. */
15026
+ fileBytes: number().nullable(),
15027
+ /**
15028
+ * Shared memory — and the field that explained the largest single surprise.
15029
+ * The i915 driver backs GPU buffers with shmem, so an inference pool or a
15030
+ * hardware-decode session holding DRM objects is charged HERE and appears
15031
+ * nowhere in a `ps` scan.
15032
+ */
15033
+ shmemBytes: number().nullable(),
15034
+ /** Kernel slab charged to this cgroup. `null` on v1, which never publishes it. */
15035
+ slabBytes: number().nullable(),
15036
+ /**
15037
+ * Shrinkable i915 GEM object bytes, from debugfs.
15038
+ *
15039
+ * **Host-wide across every DRM client, NOT cgroup-scoped.** It is not a
15040
+ * component of `currentBytes` and must not be subtracted from it; it says
15041
+ * what put the shmem there, where `shmemBytes` only says how much.
15042
+ *
15043
+ * `null` wherever debugfs is not mounted — which is inside every camstack
15044
+ * container today — and on any node with no Intel GPU.
15045
+ */
15046
+ gpuShmemBytes: number().nullable()
15047
+ }).extend({ atMs: number() });
15004
15048
  var DumpHeapSnapshotInputSchema = object({
15005
15049
  /** The addon whose runner should dump a heap snapshot. */
15006
15050
  addonId: string() });
@@ -15064,6 +15108,21 @@ var NodeLoadSeriesSchema = object({
15064
15108
  /** One entry per function seen in the window, heaviest-first. */
15065
15109
  series: array(LoadFunctionSeriesSchema).readonly(),
15066
15110
  /**
15111
+ * The CONTAINER's memory over the same window, oldest-first.
15112
+ *
15113
+ * Sits next to `series` rather than in a method of its own because the whole
15114
+ * question is a subtraction: the per-process rows in `series` sum to one
15115
+ * number and this one is another, and an operator who has to issue two calls
15116
+ * to compare them will compare two different instants. Same reader, same
15117
+ * `sinceMs`, same `bucketMs`, same timestamps.
15118
+ *
15119
+ * **EMPTY means ABSENT, never zero.** A node with no cgroup — a developer
15120
+ * Mac, a bare-metal host, a container with the hierarchy hidden — reports no
15121
+ * points at all. A zero here would be indistinguishable from a healthy
15122
+ * container and is precisely the lie this field exists to avoid.
15123
+ */
15124
+ containerMemory: array(ContainerMemoryPointSchema).readonly(),
15125
+ /**
15067
15126
  * Width of one returned bucket, in ms. Equals the sampling cadence when no
15068
15127
  * reduction was needed — so a caller can always say what one point covers
15069
15128
  * without having to know whether it was reduced.
@@ -28767,10 +28826,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
28767
28826
  * recording config. NOTE on events (source of truth, R5/C3): this cap carries
28768
28827
  * NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
28769
28828
  * events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
28770
- * rows); the recorder's internal EventMap markers are ephemeral in-RAM
28771
- * annotations that are not exposed here and must not be treated as an event
28772
- * feed. Event<->footage joins are by time, padded with the shared `EVENT_PAD_MS`
28773
- * (`interfaces/recording-config.ts`).
28829
+ * rows) and are the ONLY event surface the recorder has none. The in-RAM
28830
+ * playback markers it used to build were deleted on 2026-08-29 because nothing
28831
+ * ever read them. Event<->footage joins are by time, padded with the shared
28832
+ * `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
28774
28833
  */
28775
28834
  var RecordingStatusSchema = object({
28776
28835
  deviceId: number(),
package/dist/addon.mjs CHANGED
@@ -15000,6 +15000,50 @@ var NodeProcessSchema = object({
15000
15000
  /** Wall-clock uptime (seconds). Parsed from `ps etime`. */
15001
15001
  uptimeSec: number()
15002
15002
  });
15003
+ /**
15004
+ * One retained container-memory reading.
15005
+ *
15006
+ * `atMs` is the timestamp of the PROCESS snapshot taken in the same tick, not
15007
+ * a second clock: that is what makes "processes sum to X, container says Y"
15008
+ * subtractable per point rather than an eyeballed comparison of two series
15009
+ * sampled at different instants.
15010
+ *
15011
+ * A reduced window keeps the sample with the LARGEST `currentBytes` in each
15012
+ * bucket, WHOLE. Taking a per-field maximum would synthesise a row whose parts
15013
+ * never coexisted, and a mean would smear away the peak this exists to find.
15014
+ */
15015
+ var ContainerMemoryPointSchema = object({
15016
+ /** Which hierarchy answered, so a reading is never ambiguous. */
15017
+ source: _enum(["cgroup-v2", "cgroup-v1"]),
15018
+ /** `memory.current` (v2) / `memory.usage_in_bytes` (v1). Always known. */
15019
+ currentBytes: number(),
15020
+ /** The cgroup's ceiling. `null` = NO LIMIT — never a sentinel, never zero. */
15021
+ limitBytes: number().nullable(),
15022
+ /** Anonymous pages: the closest thing to "what the processes allocated". */
15023
+ anonBytes: number().nullable(),
15024
+ /** Page cache. Charged to the cgroup, owned by no process. */
15025
+ fileBytes: number().nullable(),
15026
+ /**
15027
+ * Shared memory — and the field that explained the largest single surprise.
15028
+ * The i915 driver backs GPU buffers with shmem, so an inference pool or a
15029
+ * hardware-decode session holding DRM objects is charged HERE and appears
15030
+ * nowhere in a `ps` scan.
15031
+ */
15032
+ shmemBytes: number().nullable(),
15033
+ /** Kernel slab charged to this cgroup. `null` on v1, which never publishes it. */
15034
+ slabBytes: number().nullable(),
15035
+ /**
15036
+ * Shrinkable i915 GEM object bytes, from debugfs.
15037
+ *
15038
+ * **Host-wide across every DRM client, NOT cgroup-scoped.** It is not a
15039
+ * component of `currentBytes` and must not be subtracted from it; it says
15040
+ * what put the shmem there, where `shmemBytes` only says how much.
15041
+ *
15042
+ * `null` wherever debugfs is not mounted — which is inside every camstack
15043
+ * container today — and on any node with no Intel GPU.
15044
+ */
15045
+ gpuShmemBytes: number().nullable()
15046
+ }).extend({ atMs: number() });
15003
15047
  var DumpHeapSnapshotInputSchema = object({
15004
15048
  /** The addon whose runner should dump a heap snapshot. */
15005
15049
  addonId: string() });
@@ -15063,6 +15107,21 @@ var NodeLoadSeriesSchema = object({
15063
15107
  /** One entry per function seen in the window, heaviest-first. */
15064
15108
  series: array(LoadFunctionSeriesSchema).readonly(),
15065
15109
  /**
15110
+ * The CONTAINER's memory over the same window, oldest-first.
15111
+ *
15112
+ * Sits next to `series` rather than in a method of its own because the whole
15113
+ * question is a subtraction: the per-process rows in `series` sum to one
15114
+ * number and this one is another, and an operator who has to issue two calls
15115
+ * to compare them will compare two different instants. Same reader, same
15116
+ * `sinceMs`, same `bucketMs`, same timestamps.
15117
+ *
15118
+ * **EMPTY means ABSENT, never zero.** A node with no cgroup — a developer
15119
+ * Mac, a bare-metal host, a container with the hierarchy hidden — reports no
15120
+ * points at all. A zero here would be indistinguishable from a healthy
15121
+ * container and is precisely the lie this field exists to avoid.
15122
+ */
15123
+ containerMemory: array(ContainerMemoryPointSchema).readonly(),
15124
+ /**
15066
15125
  * Width of one returned bucket, in ms. Equals the sampling cadence when no
15067
15126
  * reduction was needed — so a caller can always say what one point covers
15068
15127
  * without having to know whether it was reduced.
@@ -28766,10 +28825,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
28766
28825
  * recording config. NOTE on events (source of truth, R5/C3): this cap carries
28767
28826
  * NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
28768
28827
  * events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
28769
- * rows); the recorder's internal EventMap markers are ephemeral in-RAM
28770
- * annotations that are not exposed here and must not be treated as an event
28771
- * feed. Event<->footage joins are by time, padded with the shared `EVENT_PAD_MS`
28772
- * (`interfaces/recording-config.ts`).
28828
+ * rows) and are the ONLY event surface the recorder has none. The in-RAM
28829
+ * playback markers it used to build were deleted on 2026-08-29 because nothing
28830
+ * ever read them. Event<->footage joins are by time, padded with the shared
28831
+ * `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
28773
28832
  */
28774
28833
  var RecordingStatusSchema = object({
28775
28834
  deviceId: number(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-petkit",
3
- "version": "0.2.39",
3
+ "version": "0.2.41",
4
4
  "description": "PetKit smart-feeder device-provider addon for CamStack — wraps the @apocaliss92/nodepetkit PetKit cloud client",
5
5
  "keywords": [
6
6
  "camstack",