@camstack/addon-provider-tuya 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
@@ -14719,6 +14719,50 @@ var NodeProcessSchema = object({
14719
14719
  /** Wall-clock uptime (seconds). Parsed from `ps etime`. */
14720
14720
  uptimeSec: number()
14721
14721
  });
14722
+ /**
14723
+ * One retained container-memory reading.
14724
+ *
14725
+ * `atMs` is the timestamp of the PROCESS snapshot taken in the same tick, not
14726
+ * a second clock: that is what makes "processes sum to X, container says Y"
14727
+ * subtractable per point rather than an eyeballed comparison of two series
14728
+ * sampled at different instants.
14729
+ *
14730
+ * A reduced window keeps the sample with the LARGEST `currentBytes` in each
14731
+ * bucket, WHOLE. Taking a per-field maximum would synthesise a row whose parts
14732
+ * never coexisted, and a mean would smear away the peak this exists to find.
14733
+ */
14734
+ var ContainerMemoryPointSchema = object({
14735
+ /** Which hierarchy answered, so a reading is never ambiguous. */
14736
+ source: _enum(["cgroup-v2", "cgroup-v1"]),
14737
+ /** `memory.current` (v2) / `memory.usage_in_bytes` (v1). Always known. */
14738
+ currentBytes: number(),
14739
+ /** The cgroup's ceiling. `null` = NO LIMIT — never a sentinel, never zero. */
14740
+ limitBytes: number().nullable(),
14741
+ /** Anonymous pages: the closest thing to "what the processes allocated". */
14742
+ anonBytes: number().nullable(),
14743
+ /** Page cache. Charged to the cgroup, owned by no process. */
14744
+ fileBytes: number().nullable(),
14745
+ /**
14746
+ * Shared memory — and the field that explained the largest single surprise.
14747
+ * The i915 driver backs GPU buffers with shmem, so an inference pool or a
14748
+ * hardware-decode session holding DRM objects is charged HERE and appears
14749
+ * nowhere in a `ps` scan.
14750
+ */
14751
+ shmemBytes: number().nullable(),
14752
+ /** Kernel slab charged to this cgroup. `null` on v1, which never publishes it. */
14753
+ slabBytes: number().nullable(),
14754
+ /**
14755
+ * Shrinkable i915 GEM object bytes, from debugfs.
14756
+ *
14757
+ * **Host-wide across every DRM client, NOT cgroup-scoped.** It is not a
14758
+ * component of `currentBytes` and must not be subtracted from it; it says
14759
+ * what put the shmem there, where `shmemBytes` only says how much.
14760
+ *
14761
+ * `null` wherever debugfs is not mounted — which is inside every camstack
14762
+ * container today — and on any node with no Intel GPU.
14763
+ */
14764
+ gpuShmemBytes: number().nullable()
14765
+ }).extend({ atMs: number() });
14722
14766
  var DumpHeapSnapshotInputSchema = object({
14723
14767
  /** The addon whose runner should dump a heap snapshot. */
14724
14768
  addonId: string() });
@@ -14782,6 +14826,21 @@ var NodeLoadSeriesSchema = object({
14782
14826
  /** One entry per function seen in the window, heaviest-first. */
14783
14827
  series: array(LoadFunctionSeriesSchema).readonly(),
14784
14828
  /**
14829
+ * The CONTAINER's memory over the same window, oldest-first.
14830
+ *
14831
+ * Sits next to `series` rather than in a method of its own because the whole
14832
+ * question is a subtraction: the per-process rows in `series` sum to one
14833
+ * number and this one is another, and an operator who has to issue two calls
14834
+ * to compare them will compare two different instants. Same reader, same
14835
+ * `sinceMs`, same `bucketMs`, same timestamps.
14836
+ *
14837
+ * **EMPTY means ABSENT, never zero.** A node with no cgroup — a developer
14838
+ * Mac, a bare-metal host, a container with the hierarchy hidden — reports no
14839
+ * points at all. A zero here would be indistinguishable from a healthy
14840
+ * container and is precisely the lie this field exists to avoid.
14841
+ */
14842
+ containerMemory: array(ContainerMemoryPointSchema).readonly(),
14843
+ /**
14785
14844
  * Width of one returned bucket, in ms. Equals the sampling cadence when no
14786
14845
  * reduction was needed — so a caller can always say what one point covers
14787
14846
  * without having to know whether it was reduced.
@@ -28485,10 +28544,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
28485
28544
  * recording config. NOTE on events (source of truth, R5/C3): this cap carries
28486
28545
  * NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
28487
28546
  * events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
28488
- * rows); the recorder's internal EventMap markers are ephemeral in-RAM
28489
- * annotations that are not exposed here and must not be treated as an event
28490
- * feed. Event<->footage joins are by time, padded with the shared `EVENT_PAD_MS`
28491
- * (`interfaces/recording-config.ts`).
28547
+ * rows) and are the ONLY event surface — the recorder has none. The in-RAM
28548
+ * playback markers it used to build were deleted on 2026-08-29 because nothing
28549
+ * ever read them. Event<->footage joins are by time, padded with the shared
28550
+ * `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
28492
28551
  */
28493
28552
  var RecordingStatusSchema = object({
28494
28553
  deviceId: number(),
package/dist/addon.mjs CHANGED
@@ -14718,6 +14718,50 @@ var NodeProcessSchema = object({
14718
14718
  /** Wall-clock uptime (seconds). Parsed from `ps etime`. */
14719
14719
  uptimeSec: number()
14720
14720
  });
14721
+ /**
14722
+ * One retained container-memory reading.
14723
+ *
14724
+ * `atMs` is the timestamp of the PROCESS snapshot taken in the same tick, not
14725
+ * a second clock: that is what makes "processes sum to X, container says Y"
14726
+ * subtractable per point rather than an eyeballed comparison of two series
14727
+ * sampled at different instants.
14728
+ *
14729
+ * A reduced window keeps the sample with the LARGEST `currentBytes` in each
14730
+ * bucket, WHOLE. Taking a per-field maximum would synthesise a row whose parts
14731
+ * never coexisted, and a mean would smear away the peak this exists to find.
14732
+ */
14733
+ var ContainerMemoryPointSchema = object({
14734
+ /** Which hierarchy answered, so a reading is never ambiguous. */
14735
+ source: _enum(["cgroup-v2", "cgroup-v1"]),
14736
+ /** `memory.current` (v2) / `memory.usage_in_bytes` (v1). Always known. */
14737
+ currentBytes: number(),
14738
+ /** The cgroup's ceiling. `null` = NO LIMIT — never a sentinel, never zero. */
14739
+ limitBytes: number().nullable(),
14740
+ /** Anonymous pages: the closest thing to "what the processes allocated". */
14741
+ anonBytes: number().nullable(),
14742
+ /** Page cache. Charged to the cgroup, owned by no process. */
14743
+ fileBytes: number().nullable(),
14744
+ /**
14745
+ * Shared memory — and the field that explained the largest single surprise.
14746
+ * The i915 driver backs GPU buffers with shmem, so an inference pool or a
14747
+ * hardware-decode session holding DRM objects is charged HERE and appears
14748
+ * nowhere in a `ps` scan.
14749
+ */
14750
+ shmemBytes: number().nullable(),
14751
+ /** Kernel slab charged to this cgroup. `null` on v1, which never publishes it. */
14752
+ slabBytes: number().nullable(),
14753
+ /**
14754
+ * Shrinkable i915 GEM object bytes, from debugfs.
14755
+ *
14756
+ * **Host-wide across every DRM client, NOT cgroup-scoped.** It is not a
14757
+ * component of `currentBytes` and must not be subtracted from it; it says
14758
+ * what put the shmem there, where `shmemBytes` only says how much.
14759
+ *
14760
+ * `null` wherever debugfs is not mounted — which is inside every camstack
14761
+ * container today — and on any node with no Intel GPU.
14762
+ */
14763
+ gpuShmemBytes: number().nullable()
14764
+ }).extend({ atMs: number() });
14721
14765
  var DumpHeapSnapshotInputSchema = object({
14722
14766
  /** The addon whose runner should dump a heap snapshot. */
14723
14767
  addonId: string() });
@@ -14781,6 +14825,21 @@ var NodeLoadSeriesSchema = object({
14781
14825
  /** One entry per function seen in the window, heaviest-first. */
14782
14826
  series: array(LoadFunctionSeriesSchema).readonly(),
14783
14827
  /**
14828
+ * The CONTAINER's memory over the same window, oldest-first.
14829
+ *
14830
+ * Sits next to `series` rather than in a method of its own because the whole
14831
+ * question is a subtraction: the per-process rows in `series` sum to one
14832
+ * number and this one is another, and an operator who has to issue two calls
14833
+ * to compare them will compare two different instants. Same reader, same
14834
+ * `sinceMs`, same `bucketMs`, same timestamps.
14835
+ *
14836
+ * **EMPTY means ABSENT, never zero.** A node with no cgroup — a developer
14837
+ * Mac, a bare-metal host, a container with the hierarchy hidden — reports no
14838
+ * points at all. A zero here would be indistinguishable from a healthy
14839
+ * container and is precisely the lie this field exists to avoid.
14840
+ */
14841
+ containerMemory: array(ContainerMemoryPointSchema).readonly(),
14842
+ /**
14784
14843
  * Width of one returned bucket, in ms. Equals the sampling cadence when no
14785
14844
  * reduction was needed — so a caller can always say what one point covers
14786
14845
  * without having to know whether it was reduced.
@@ -28484,10 +28543,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
28484
28543
  * recording config. NOTE on events (source of truth, R5/C3): this cap carries
28485
28544
  * NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
28486
28545
  * events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
28487
- * rows); the recorder's internal EventMap markers are ephemeral in-RAM
28488
- * annotations that are not exposed here and must not be treated as an event
28489
- * feed. Event<->footage joins are by time, padded with the shared `EVENT_PAD_MS`
28490
- * (`interfaces/recording-config.ts`).
28546
+ * rows) and are the ONLY event surface — the recorder has none. The in-RAM
28547
+ * playback markers it used to build were deleted on 2026-08-29 because nothing
28548
+ * ever read them. Event<->footage joins are by time, padded with the shared
28549
+ * `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
28491
28550
  */
28492
28551
  var RecordingStatusSchema = object({
28493
28552
  deviceId: number(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-tuya",
3
- "version": "0.2.39",
3
+ "version": "0.2.41",
4
4
  "description": "Tuya / Smart Life device-provider addon for CamStack — account-onboarded (Tuya IoT cloud fetch of device localKeys) + LOCAL DP control via the @apocaliss92/nodetuya encrypted-LAN client, exposing switch / water-heater-family kettle entities",
5
5
  "keywords": [
6
6
  "camstack",