@camstack/addon-export-google 0.1.3 → 0.1.6

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.
@@ -13884,6 +13884,50 @@ var NodeProcessSchema = object({
13884
13884
  /** Wall-clock uptime (seconds). Parsed from `ps etime`. */
13885
13885
  uptimeSec: number()
13886
13886
  });
13887
+ /**
13888
+ * One retained container-memory reading.
13889
+ *
13890
+ * `atMs` is the timestamp of the PROCESS snapshot taken in the same tick, not
13891
+ * a second clock: that is what makes "processes sum to X, container says Y"
13892
+ * subtractable per point rather than an eyeballed comparison of two series
13893
+ * sampled at different instants.
13894
+ *
13895
+ * A reduced window keeps the sample with the LARGEST `currentBytes` in each
13896
+ * bucket, WHOLE. Taking a per-field maximum would synthesise a row whose parts
13897
+ * never coexisted, and a mean would smear away the peak this exists to find.
13898
+ */
13899
+ var ContainerMemoryPointSchema = object({
13900
+ /** Which hierarchy answered, so a reading is never ambiguous. */
13901
+ source: _enum(["cgroup-v2", "cgroup-v1"]),
13902
+ /** `memory.current` (v2) / `memory.usage_in_bytes` (v1). Always known. */
13903
+ currentBytes: number(),
13904
+ /** The cgroup's ceiling. `null` = NO LIMIT — never a sentinel, never zero. */
13905
+ limitBytes: number().nullable(),
13906
+ /** Anonymous pages: the closest thing to "what the processes allocated". */
13907
+ anonBytes: number().nullable(),
13908
+ /** Page cache. Charged to the cgroup, owned by no process. */
13909
+ fileBytes: number().nullable(),
13910
+ /**
13911
+ * Shared memory — and the field that explained the largest single surprise.
13912
+ * The i915 driver backs GPU buffers with shmem, so an inference pool or a
13913
+ * hardware-decode session holding DRM objects is charged HERE and appears
13914
+ * nowhere in a `ps` scan.
13915
+ */
13916
+ shmemBytes: number().nullable(),
13917
+ /** Kernel slab charged to this cgroup. `null` on v1, which never publishes it. */
13918
+ slabBytes: number().nullable(),
13919
+ /**
13920
+ * Shrinkable i915 GEM object bytes, from debugfs.
13921
+ *
13922
+ * **Host-wide across every DRM client, NOT cgroup-scoped.** It is not a
13923
+ * component of `currentBytes` and must not be subtracted from it; it says
13924
+ * what put the shmem there, where `shmemBytes` only says how much.
13925
+ *
13926
+ * `null` wherever debugfs is not mounted — which is inside every camstack
13927
+ * container today — and on any node with no Intel GPU.
13928
+ */
13929
+ gpuShmemBytes: number().nullable()
13930
+ }).extend({ atMs: number() });
13887
13931
  var DumpHeapSnapshotInputSchema = object({
13888
13932
  /** The addon whose runner should dump a heap snapshot. */
13889
13933
  addonId: string() });
@@ -13947,6 +13991,21 @@ var NodeLoadSeriesSchema = object({
13947
13991
  /** One entry per function seen in the window, heaviest-first. */
13948
13992
  series: array(LoadFunctionSeriesSchema).readonly(),
13949
13993
  /**
13994
+ * The CONTAINER's memory over the same window, oldest-first.
13995
+ *
13996
+ * Sits next to `series` rather than in a method of its own because the whole
13997
+ * question is a subtraction: the per-process rows in `series` sum to one
13998
+ * number and this one is another, and an operator who has to issue two calls
13999
+ * to compare them will compare two different instants. Same reader, same
14000
+ * `sinceMs`, same `bucketMs`, same timestamps.
14001
+ *
14002
+ * **EMPTY means ABSENT, never zero.** A node with no cgroup — a developer
14003
+ * Mac, a bare-metal host, a container with the hierarchy hidden — reports no
14004
+ * points at all. A zero here would be indistinguishable from a healthy
14005
+ * container and is precisely the lie this field exists to avoid.
14006
+ */
14007
+ containerMemory: array(ContainerMemoryPointSchema).readonly(),
14008
+ /**
13950
14009
  * Width of one returned bucket, in ms. Equals the sampling cadence when no
13951
14010
  * reduction was needed — so a caller can always say what one point covers
13952
14011
  * without having to know whether it was reduced.
@@ -23853,23 +23912,23 @@ DeviceType.Camera, method(object({ deviceId: number() }), object({
23853
23912
  sdpOffer: string()
23854
23913
  }), {
23855
23914
  kind: "mutation",
23856
- auth: "admin"
23915
+ auth: "protected"
23857
23916
  }), method(object({
23858
23917
  deviceId: number(),
23859
23918
  sessionId: string(),
23860
23919
  sdpAnswer: string()
23861
23920
  }), _void(), {
23862
23921
  kind: "mutation",
23863
- auth: "admin"
23922
+ auth: "protected"
23864
23923
  }), method(object({
23865
23924
  deviceId: number(),
23866
23925
  sessionId: string()
23867
23926
  }), _void(), {
23868
23927
  kind: "mutation",
23869
- auth: "admin"
23928
+ auth: "protected"
23870
23929
  }), method(object({ deviceId: number() }), object({ sessionId: string() }), {
23871
23930
  kind: "mutation",
23872
- auth: "admin"
23931
+ auth: "protected"
23873
23932
  }), method(object({
23874
23933
  deviceId: number(),
23875
23934
  /** Audio bytes for ONE frame, base64-encoded so the payload
@@ -23888,10 +23947,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), object({
23888
23947
  sequenceNumber: number().int()
23889
23948
  }), object({ accepted: boolean() }), {
23890
23949
  kind: "mutation",
23891
- auth: "admin"
23950
+ auth: "protected"
23892
23951
  }), method(object({ deviceId: number() }), _void(), {
23893
23952
  kind: "mutation",
23894
- auth: "admin"
23953
+ auth: "protected"
23895
23954
  }), object({
23896
23955
  deviceId: number(),
23897
23956
  status: IntercomStatusSchema
@@ -25904,10 +25963,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
25904
25963
  * recording config. NOTE on events (source of truth, R5/C3): this cap carries
25905
25964
  * NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
25906
25965
  * events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
25907
- * rows); the recorder's internal EventMap markers are ephemeral in-RAM
25908
- * annotations that are not exposed here and must not be treated as an event
25909
- * feed. Event<->footage joins are by time, padded with the shared `EVENT_PAD_MS`
25910
- * (`interfaces/recording-config.ts`).
25966
+ * rows) and are the ONLY event surface the recorder has none. The in-RAM
25967
+ * playback markers it used to build were deleted on 2026-08-29 because nothing
25968
+ * ever read them. Event<->footage joins are by time, padded with the shared
25969
+ * `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
25911
25970
  */
25912
25971
  var RecordingStatusSchema = object({
25913
25972
  deviceId: number(),
@@ -13880,6 +13880,50 @@ var NodeProcessSchema = object({
13880
13880
  /** Wall-clock uptime (seconds). Parsed from `ps etime`. */
13881
13881
  uptimeSec: number()
13882
13882
  });
13883
+ /**
13884
+ * One retained container-memory reading.
13885
+ *
13886
+ * `atMs` is the timestamp of the PROCESS snapshot taken in the same tick, not
13887
+ * a second clock: that is what makes "processes sum to X, container says Y"
13888
+ * subtractable per point rather than an eyeballed comparison of two series
13889
+ * sampled at different instants.
13890
+ *
13891
+ * A reduced window keeps the sample with the LARGEST `currentBytes` in each
13892
+ * bucket, WHOLE. Taking a per-field maximum would synthesise a row whose parts
13893
+ * never coexisted, and a mean would smear away the peak this exists to find.
13894
+ */
13895
+ var ContainerMemoryPointSchema = object({
13896
+ /** Which hierarchy answered, so a reading is never ambiguous. */
13897
+ source: _enum(["cgroup-v2", "cgroup-v1"]),
13898
+ /** `memory.current` (v2) / `memory.usage_in_bytes` (v1). Always known. */
13899
+ currentBytes: number(),
13900
+ /** The cgroup's ceiling. `null` = NO LIMIT — never a sentinel, never zero. */
13901
+ limitBytes: number().nullable(),
13902
+ /** Anonymous pages: the closest thing to "what the processes allocated". */
13903
+ anonBytes: number().nullable(),
13904
+ /** Page cache. Charged to the cgroup, owned by no process. */
13905
+ fileBytes: number().nullable(),
13906
+ /**
13907
+ * Shared memory — and the field that explained the largest single surprise.
13908
+ * The i915 driver backs GPU buffers with shmem, so an inference pool or a
13909
+ * hardware-decode session holding DRM objects is charged HERE and appears
13910
+ * nowhere in a `ps` scan.
13911
+ */
13912
+ shmemBytes: number().nullable(),
13913
+ /** Kernel slab charged to this cgroup. `null` on v1, which never publishes it. */
13914
+ slabBytes: number().nullable(),
13915
+ /**
13916
+ * Shrinkable i915 GEM object bytes, from debugfs.
13917
+ *
13918
+ * **Host-wide across every DRM client, NOT cgroup-scoped.** It is not a
13919
+ * component of `currentBytes` and must not be subtracted from it; it says
13920
+ * what put the shmem there, where `shmemBytes` only says how much.
13921
+ *
13922
+ * `null` wherever debugfs is not mounted — which is inside every camstack
13923
+ * container today — and on any node with no Intel GPU.
13924
+ */
13925
+ gpuShmemBytes: number().nullable()
13926
+ }).extend({ atMs: number() });
13883
13927
  var DumpHeapSnapshotInputSchema = object({
13884
13928
  /** The addon whose runner should dump a heap snapshot. */
13885
13929
  addonId: string() });
@@ -13943,6 +13987,21 @@ var NodeLoadSeriesSchema = object({
13943
13987
  /** One entry per function seen in the window, heaviest-first. */
13944
13988
  series: array(LoadFunctionSeriesSchema).readonly(),
13945
13989
  /**
13990
+ * The CONTAINER's memory over the same window, oldest-first.
13991
+ *
13992
+ * Sits next to `series` rather than in a method of its own because the whole
13993
+ * question is a subtraction: the per-process rows in `series` sum to one
13994
+ * number and this one is another, and an operator who has to issue two calls
13995
+ * to compare them will compare two different instants. Same reader, same
13996
+ * `sinceMs`, same `bucketMs`, same timestamps.
13997
+ *
13998
+ * **EMPTY means ABSENT, never zero.** A node with no cgroup — a developer
13999
+ * Mac, a bare-metal host, a container with the hierarchy hidden — reports no
14000
+ * points at all. A zero here would be indistinguishable from a healthy
14001
+ * container and is precisely the lie this field exists to avoid.
14002
+ */
14003
+ containerMemory: array(ContainerMemoryPointSchema).readonly(),
14004
+ /**
13946
14005
  * Width of one returned bucket, in ms. Equals the sampling cadence when no
13947
14006
  * reduction was needed — so a caller can always say what one point covers
13948
14007
  * without having to know whether it was reduced.
@@ -23849,23 +23908,23 @@ DeviceType.Camera, method(object({ deviceId: number() }), object({
23849
23908
  sdpOffer: string()
23850
23909
  }), {
23851
23910
  kind: "mutation",
23852
- auth: "admin"
23911
+ auth: "protected"
23853
23912
  }), method(object({
23854
23913
  deviceId: number(),
23855
23914
  sessionId: string(),
23856
23915
  sdpAnswer: string()
23857
23916
  }), _void(), {
23858
23917
  kind: "mutation",
23859
- auth: "admin"
23918
+ auth: "protected"
23860
23919
  }), method(object({
23861
23920
  deviceId: number(),
23862
23921
  sessionId: string()
23863
23922
  }), _void(), {
23864
23923
  kind: "mutation",
23865
- auth: "admin"
23924
+ auth: "protected"
23866
23925
  }), method(object({ deviceId: number() }), object({ sessionId: string() }), {
23867
23926
  kind: "mutation",
23868
- auth: "admin"
23927
+ auth: "protected"
23869
23928
  }), method(object({
23870
23929
  deviceId: number(),
23871
23930
  /** Audio bytes for ONE frame, base64-encoded so the payload
@@ -23884,10 +23943,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), object({
23884
23943
  sequenceNumber: number().int()
23885
23944
  }), object({ accepted: boolean() }), {
23886
23945
  kind: "mutation",
23887
- auth: "admin"
23946
+ auth: "protected"
23888
23947
  }), method(object({ deviceId: number() }), _void(), {
23889
23948
  kind: "mutation",
23890
- auth: "admin"
23949
+ auth: "protected"
23891
23950
  }), object({
23892
23951
  deviceId: number(),
23893
23952
  status: IntercomStatusSchema
@@ -25900,10 +25959,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
25900
25959
  * recording config. NOTE on events (source of truth, R5/C3): this cap carries
25901
25960
  * NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
25902
25961
  * events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
25903
- * rows); the recorder's internal EventMap markers are ephemeral in-RAM
25904
- * annotations that are not exposed here and must not be treated as an event
25905
- * feed. Event<->footage joins are by time, padded with the shared `EVENT_PAD_MS`
25906
- * (`interfaces/recording-config.ts`).
25962
+ * rows) and are the ONLY event surface the recorder has none. The in-RAM
25963
+ * playback markers it used to build were deleted on 2026-08-29 because nothing
25964
+ * ever read them. Event<->footage joins are by time, padded with the shared
25965
+ * `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
25907
25966
  */
25908
25967
  var RecordingStatusSchema = object({
25909
25968
  deviceId: number(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-export-google",
3
- "version": "0.1.3",
3
+ "version": "0.1.6",
4
4
  "description": "Google Home export — hub-side smart-home fulfillment (SYNC / QUERY / EXECUTE / DISCONNECT) for the non-camera fleet, served over the hub's own OAuth account link. No Google credential is stored, sent or required.",
5
5
  "keywords": [
6
6
  "camstack",