@camstack/addon-provider-dreame 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
@@ -64404,6 +64404,50 @@ var NodeProcessSchema = object({
64404
64404
  /** Wall-clock uptime (seconds). Parsed from `ps etime`. */
64405
64405
  uptimeSec: number()
64406
64406
  });
64407
+ /**
64408
+ * One retained container-memory reading.
64409
+ *
64410
+ * `atMs` is the timestamp of the PROCESS snapshot taken in the same tick, not
64411
+ * a second clock: that is what makes "processes sum to X, container says Y"
64412
+ * subtractable per point rather than an eyeballed comparison of two series
64413
+ * sampled at different instants.
64414
+ *
64415
+ * A reduced window keeps the sample with the LARGEST `currentBytes` in each
64416
+ * bucket, WHOLE. Taking a per-field maximum would synthesise a row whose parts
64417
+ * never coexisted, and a mean would smear away the peak this exists to find.
64418
+ */
64419
+ var ContainerMemoryPointSchema = object({
64420
+ /** Which hierarchy answered, so a reading is never ambiguous. */
64421
+ source: _enum(["cgroup-v2", "cgroup-v1"]),
64422
+ /** `memory.current` (v2) / `memory.usage_in_bytes` (v1). Always known. */
64423
+ currentBytes: number(),
64424
+ /** The cgroup's ceiling. `null` = NO LIMIT — never a sentinel, never zero. */
64425
+ limitBytes: number().nullable(),
64426
+ /** Anonymous pages: the closest thing to "what the processes allocated". */
64427
+ anonBytes: number().nullable(),
64428
+ /** Page cache. Charged to the cgroup, owned by no process. */
64429
+ fileBytes: number().nullable(),
64430
+ /**
64431
+ * Shared memory — and the field that explained the largest single surprise.
64432
+ * The i915 driver backs GPU buffers with shmem, so an inference pool or a
64433
+ * hardware-decode session holding DRM objects is charged HERE and appears
64434
+ * nowhere in a `ps` scan.
64435
+ */
64436
+ shmemBytes: number().nullable(),
64437
+ /** Kernel slab charged to this cgroup. `null` on v1, which never publishes it. */
64438
+ slabBytes: number().nullable(),
64439
+ /**
64440
+ * Shrinkable i915 GEM object bytes, from debugfs.
64441
+ *
64442
+ * **Host-wide across every DRM client, NOT cgroup-scoped.** It is not a
64443
+ * component of `currentBytes` and must not be subtracted from it; it says
64444
+ * what put the shmem there, where `shmemBytes` only says how much.
64445
+ *
64446
+ * `null` wherever debugfs is not mounted — which is inside every camstack
64447
+ * container today — and on any node with no Intel GPU.
64448
+ */
64449
+ gpuShmemBytes: number().nullable()
64450
+ }).extend({ atMs: number() });
64407
64451
  var DumpHeapSnapshotInputSchema = object({
64408
64452
  /** The addon whose runner should dump a heap snapshot. */
64409
64453
  addonId: string() });
@@ -64467,6 +64511,21 @@ var NodeLoadSeriesSchema = object({
64467
64511
  /** One entry per function seen in the window, heaviest-first. */
64468
64512
  series: array(LoadFunctionSeriesSchema).readonly(),
64469
64513
  /**
64514
+ * The CONTAINER's memory over the same window, oldest-first.
64515
+ *
64516
+ * Sits next to `series` rather than in a method of its own because the whole
64517
+ * question is a subtraction: the per-process rows in `series` sum to one
64518
+ * number and this one is another, and an operator who has to issue two calls
64519
+ * to compare them will compare two different instants. Same reader, same
64520
+ * `sinceMs`, same `bucketMs`, same timestamps.
64521
+ *
64522
+ * **EMPTY means ABSENT, never zero.** A node with no cgroup — a developer
64523
+ * Mac, a bare-metal host, a container with the hierarchy hidden — reports no
64524
+ * points at all. A zero here would be indistinguishable from a healthy
64525
+ * container and is precisely the lie this field exists to avoid.
64526
+ */
64527
+ containerMemory: array(ContainerMemoryPointSchema).readonly(),
64528
+ /**
64470
64529
  * Width of one returned bucket, in ms. Equals the sampling cadence when no
64471
64530
  * reduction was needed — so a caller can always say what one point covers
64472
64531
  * without having to know whether it was reduced.
@@ -78187,10 +78246,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
78187
78246
  * recording config. NOTE on events (source of truth, R5/C3): this cap carries
78188
78247
  * NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
78189
78248
  * events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
78190
- * rows); the recorder's internal EventMap markers are ephemeral in-RAM
78191
- * annotations that are not exposed here and must not be treated as an event
78192
- * feed. Event<->footage joins are by time, padded with the shared `EVENT_PAD_MS`
78193
- * (`interfaces/recording-config.ts`).
78249
+ * rows) and are the ONLY event surface — the recorder has none. The in-RAM
78250
+ * playback markers it used to build were deleted on 2026-08-29 because nothing
78251
+ * ever read them. Event<->footage joins are by time, padded with the shared
78252
+ * `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
78194
78253
  */
78195
78254
  var RecordingStatusSchema = object({
78196
78255
  deviceId: number(),
package/dist/addon.mjs CHANGED
@@ -64404,6 +64404,50 @@ var NodeProcessSchema = object({
64404
64404
  /** Wall-clock uptime (seconds). Parsed from `ps etime`. */
64405
64405
  uptimeSec: number()
64406
64406
  });
64407
+ /**
64408
+ * One retained container-memory reading.
64409
+ *
64410
+ * `atMs` is the timestamp of the PROCESS snapshot taken in the same tick, not
64411
+ * a second clock: that is what makes "processes sum to X, container says Y"
64412
+ * subtractable per point rather than an eyeballed comparison of two series
64413
+ * sampled at different instants.
64414
+ *
64415
+ * A reduced window keeps the sample with the LARGEST `currentBytes` in each
64416
+ * bucket, WHOLE. Taking a per-field maximum would synthesise a row whose parts
64417
+ * never coexisted, and a mean would smear away the peak this exists to find.
64418
+ */
64419
+ var ContainerMemoryPointSchema = object({
64420
+ /** Which hierarchy answered, so a reading is never ambiguous. */
64421
+ source: _enum(["cgroup-v2", "cgroup-v1"]),
64422
+ /** `memory.current` (v2) / `memory.usage_in_bytes` (v1). Always known. */
64423
+ currentBytes: number(),
64424
+ /** The cgroup's ceiling. `null` = NO LIMIT — never a sentinel, never zero. */
64425
+ limitBytes: number().nullable(),
64426
+ /** Anonymous pages: the closest thing to "what the processes allocated". */
64427
+ anonBytes: number().nullable(),
64428
+ /** Page cache. Charged to the cgroup, owned by no process. */
64429
+ fileBytes: number().nullable(),
64430
+ /**
64431
+ * Shared memory — and the field that explained the largest single surprise.
64432
+ * The i915 driver backs GPU buffers with shmem, so an inference pool or a
64433
+ * hardware-decode session holding DRM objects is charged HERE and appears
64434
+ * nowhere in a `ps` scan.
64435
+ */
64436
+ shmemBytes: number().nullable(),
64437
+ /** Kernel slab charged to this cgroup. `null` on v1, which never publishes it. */
64438
+ slabBytes: number().nullable(),
64439
+ /**
64440
+ * Shrinkable i915 GEM object bytes, from debugfs.
64441
+ *
64442
+ * **Host-wide across every DRM client, NOT cgroup-scoped.** It is not a
64443
+ * component of `currentBytes` and must not be subtracted from it; it says
64444
+ * what put the shmem there, where `shmemBytes` only says how much.
64445
+ *
64446
+ * `null` wherever debugfs is not mounted — which is inside every camstack
64447
+ * container today — and on any node with no Intel GPU.
64448
+ */
64449
+ gpuShmemBytes: number().nullable()
64450
+ }).extend({ atMs: number() });
64407
64451
  var DumpHeapSnapshotInputSchema = object({
64408
64452
  /** The addon whose runner should dump a heap snapshot. */
64409
64453
  addonId: string() });
@@ -64467,6 +64511,21 @@ var NodeLoadSeriesSchema = object({
64467
64511
  /** One entry per function seen in the window, heaviest-first. */
64468
64512
  series: array(LoadFunctionSeriesSchema).readonly(),
64469
64513
  /**
64514
+ * The CONTAINER's memory over the same window, oldest-first.
64515
+ *
64516
+ * Sits next to `series` rather than in a method of its own because the whole
64517
+ * question is a subtraction: the per-process rows in `series` sum to one
64518
+ * number and this one is another, and an operator who has to issue two calls
64519
+ * to compare them will compare two different instants. Same reader, same
64520
+ * `sinceMs`, same `bucketMs`, same timestamps.
64521
+ *
64522
+ * **EMPTY means ABSENT, never zero.** A node with no cgroup — a developer
64523
+ * Mac, a bare-metal host, a container with the hierarchy hidden — reports no
64524
+ * points at all. A zero here would be indistinguishable from a healthy
64525
+ * container and is precisely the lie this field exists to avoid.
64526
+ */
64527
+ containerMemory: array(ContainerMemoryPointSchema).readonly(),
64528
+ /**
64470
64529
  * Width of one returned bucket, in ms. Equals the sampling cadence when no
64471
64530
  * reduction was needed — so a caller can always say what one point covers
64472
64531
  * without having to know whether it was reduced.
@@ -78187,10 +78246,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
78187
78246
  * recording config. NOTE on events (source of truth, R5/C3): this cap carries
78188
78247
  * NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
78189
78248
  * events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
78190
- * rows); the recorder's internal EventMap markers are ephemeral in-RAM
78191
- * annotations that are not exposed here and must not be treated as an event
78192
- * feed. Event<->footage joins are by time, padded with the shared `EVENT_PAD_MS`
78193
- * (`interfaces/recording-config.ts`).
78249
+ * rows) and are the ONLY event surface — the recorder has none. The in-RAM
78250
+ * playback markers it used to build were deleted on 2026-08-29 because nothing
78251
+ * ever read them. Event<->footage joins are by time, padded with the shared
78252
+ * `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
78194
78253
  */
78195
78254
  var RecordingStatusSchema = object({
78196
78255
  deviceId: number(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-dreame",
3
- "version": "0.2.39",
3
+ "version": "0.2.41",
4
4
  "description": "Dreame robot-vacuum / lawn-mower device-provider addon for CamStack — wraps the @apocaliss92/nodedreame Dreamehome cloud client",
5
5
  "keywords": [
6
6
  "camstack",