@camstack/addon-export-hap 1.2.50 → 1.2.53

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.
@@ -14419,6 +14419,50 @@ var NodeProcessSchema = object({
14419
14419
  /** Wall-clock uptime (seconds). Parsed from `ps etime`. */
14420
14420
  uptimeSec: number()
14421
14421
  });
14422
+ /**
14423
+ * One retained container-memory reading.
14424
+ *
14425
+ * `atMs` is the timestamp of the PROCESS snapshot taken in the same tick, not
14426
+ * a second clock: that is what makes "processes sum to X, container says Y"
14427
+ * subtractable per point rather than an eyeballed comparison of two series
14428
+ * sampled at different instants.
14429
+ *
14430
+ * A reduced window keeps the sample with the LARGEST `currentBytes` in each
14431
+ * bucket, WHOLE. Taking a per-field maximum would synthesise a row whose parts
14432
+ * never coexisted, and a mean would smear away the peak this exists to find.
14433
+ */
14434
+ var ContainerMemoryPointSchema = object({
14435
+ /** Which hierarchy answered, so a reading is never ambiguous. */
14436
+ source: _enum(["cgroup-v2", "cgroup-v1"]),
14437
+ /** `memory.current` (v2) / `memory.usage_in_bytes` (v1). Always known. */
14438
+ currentBytes: number(),
14439
+ /** The cgroup's ceiling. `null` = NO LIMIT — never a sentinel, never zero. */
14440
+ limitBytes: number().nullable(),
14441
+ /** Anonymous pages: the closest thing to "what the processes allocated". */
14442
+ anonBytes: number().nullable(),
14443
+ /** Page cache. Charged to the cgroup, owned by no process. */
14444
+ fileBytes: number().nullable(),
14445
+ /**
14446
+ * Shared memory — and the field that explained the largest single surprise.
14447
+ * The i915 driver backs GPU buffers with shmem, so an inference pool or a
14448
+ * hardware-decode session holding DRM objects is charged HERE and appears
14449
+ * nowhere in a `ps` scan.
14450
+ */
14451
+ shmemBytes: number().nullable(),
14452
+ /** Kernel slab charged to this cgroup. `null` on v1, which never publishes it. */
14453
+ slabBytes: number().nullable(),
14454
+ /**
14455
+ * Shrinkable i915 GEM object bytes, from debugfs.
14456
+ *
14457
+ * **Host-wide across every DRM client, NOT cgroup-scoped.** It is not a
14458
+ * component of `currentBytes` and must not be subtracted from it; it says
14459
+ * what put the shmem there, where `shmemBytes` only says how much.
14460
+ *
14461
+ * `null` wherever debugfs is not mounted — which is inside every camstack
14462
+ * container today — and on any node with no Intel GPU.
14463
+ */
14464
+ gpuShmemBytes: number().nullable()
14465
+ }).extend({ atMs: number() });
14422
14466
  var DumpHeapSnapshotInputSchema = object({
14423
14467
  /** The addon whose runner should dump a heap snapshot. */
14424
14468
  addonId: string() });
@@ -14482,6 +14526,21 @@ var NodeLoadSeriesSchema = object({
14482
14526
  /** One entry per function seen in the window, heaviest-first. */
14483
14527
  series: array(LoadFunctionSeriesSchema).readonly(),
14484
14528
  /**
14529
+ * The CONTAINER's memory over the same window, oldest-first.
14530
+ *
14531
+ * Sits next to `series` rather than in a method of its own because the whole
14532
+ * question is a subtraction: the per-process rows in `series` sum to one
14533
+ * number and this one is another, and an operator who has to issue two calls
14534
+ * to compare them will compare two different instants. Same reader, same
14535
+ * `sinceMs`, same `bucketMs`, same timestamps.
14536
+ *
14537
+ * **EMPTY means ABSENT, never zero.** A node with no cgroup — a developer
14538
+ * Mac, a bare-metal host, a container with the hierarchy hidden — reports no
14539
+ * points at all. A zero here would be indistinguishable from a healthy
14540
+ * container and is precisely the lie this field exists to avoid.
14541
+ */
14542
+ containerMemory: array(ContainerMemoryPointSchema).readonly(),
14543
+ /**
14485
14544
  * Width of one returned bucket, in ms. Equals the sampling cadence when no
14486
14545
  * reduction was needed — so a caller can always say what one point covers
14487
14546
  * without having to know whether it was reduced.
@@ -24396,23 +24455,23 @@ DeviceType.Camera, method(object({ deviceId: number() }), object({
24396
24455
  sdpOffer: string()
24397
24456
  }), {
24398
24457
  kind: "mutation",
24399
- auth: "admin"
24458
+ auth: "protected"
24400
24459
  }), method(object({
24401
24460
  deviceId: number(),
24402
24461
  sessionId: string(),
24403
24462
  sdpAnswer: string()
24404
24463
  }), _void(), {
24405
24464
  kind: "mutation",
24406
- auth: "admin"
24465
+ auth: "protected"
24407
24466
  }), method(object({
24408
24467
  deviceId: number(),
24409
24468
  sessionId: string()
24410
24469
  }), _void(), {
24411
24470
  kind: "mutation",
24412
- auth: "admin"
24471
+ auth: "protected"
24413
24472
  }), method(object({ deviceId: number() }), object({ sessionId: string() }), {
24414
24473
  kind: "mutation",
24415
- auth: "admin"
24474
+ auth: "protected"
24416
24475
  }), method(object({
24417
24476
  deviceId: number(),
24418
24477
  /** Audio bytes for ONE frame, base64-encoded so the payload
@@ -24431,10 +24490,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), object({
24431
24490
  sequenceNumber: number().int()
24432
24491
  }), object({ accepted: boolean() }), {
24433
24492
  kind: "mutation",
24434
- auth: "admin"
24493
+ auth: "protected"
24435
24494
  }), method(object({ deviceId: number() }), _void(), {
24436
24495
  kind: "mutation",
24437
- auth: "admin"
24496
+ auth: "protected"
24438
24497
  }), object({
24439
24498
  deviceId: number(),
24440
24499
  status: IntercomStatusSchema
@@ -26459,10 +26518,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
26459
26518
  * recording config. NOTE on events (source of truth, R5/C3): this cap carries
26460
26519
  * NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
26461
26520
  * events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
26462
- * rows); the recorder's internal EventMap markers are ephemeral in-RAM
26463
- * annotations that are not exposed here and must not be treated as an event
26464
- * feed. Event<->footage joins are by time, padded with the shared `EVENT_PAD_MS`
26465
- * (`interfaces/recording-config.ts`).
26521
+ * rows) and are the ONLY event surface the recorder has none. The in-RAM
26522
+ * playback markers it used to build were deleted on 2026-08-29 because nothing
26523
+ * ever read them. Event<->footage joins are by time, padded with the shared
26524
+ * `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
26466
26525
  */
26467
26526
  var RecordingStatusSchema = object({
26468
26527
  deviceId: number(),
@@ -14407,6 +14407,50 @@ var NodeProcessSchema = object({
14407
14407
  /** Wall-clock uptime (seconds). Parsed from `ps etime`. */
14408
14408
  uptimeSec: number()
14409
14409
  });
14410
+ /**
14411
+ * One retained container-memory reading.
14412
+ *
14413
+ * `atMs` is the timestamp of the PROCESS snapshot taken in the same tick, not
14414
+ * a second clock: that is what makes "processes sum to X, container says Y"
14415
+ * subtractable per point rather than an eyeballed comparison of two series
14416
+ * sampled at different instants.
14417
+ *
14418
+ * A reduced window keeps the sample with the LARGEST `currentBytes` in each
14419
+ * bucket, WHOLE. Taking a per-field maximum would synthesise a row whose parts
14420
+ * never coexisted, and a mean would smear away the peak this exists to find.
14421
+ */
14422
+ var ContainerMemoryPointSchema = object({
14423
+ /** Which hierarchy answered, so a reading is never ambiguous. */
14424
+ source: _enum(["cgroup-v2", "cgroup-v1"]),
14425
+ /** `memory.current` (v2) / `memory.usage_in_bytes` (v1). Always known. */
14426
+ currentBytes: number(),
14427
+ /** The cgroup's ceiling. `null` = NO LIMIT — never a sentinel, never zero. */
14428
+ limitBytes: number().nullable(),
14429
+ /** Anonymous pages: the closest thing to "what the processes allocated". */
14430
+ anonBytes: number().nullable(),
14431
+ /** Page cache. Charged to the cgroup, owned by no process. */
14432
+ fileBytes: number().nullable(),
14433
+ /**
14434
+ * Shared memory — and the field that explained the largest single surprise.
14435
+ * The i915 driver backs GPU buffers with shmem, so an inference pool or a
14436
+ * hardware-decode session holding DRM objects is charged HERE and appears
14437
+ * nowhere in a `ps` scan.
14438
+ */
14439
+ shmemBytes: number().nullable(),
14440
+ /** Kernel slab charged to this cgroup. `null` on v1, which never publishes it. */
14441
+ slabBytes: number().nullable(),
14442
+ /**
14443
+ * Shrinkable i915 GEM object bytes, from debugfs.
14444
+ *
14445
+ * **Host-wide across every DRM client, NOT cgroup-scoped.** It is not a
14446
+ * component of `currentBytes` and must not be subtracted from it; it says
14447
+ * what put the shmem there, where `shmemBytes` only says how much.
14448
+ *
14449
+ * `null` wherever debugfs is not mounted — which is inside every camstack
14450
+ * container today — and on any node with no Intel GPU.
14451
+ */
14452
+ gpuShmemBytes: number().nullable()
14453
+ }).extend({ atMs: number() });
14410
14454
  var DumpHeapSnapshotInputSchema = object({
14411
14455
  /** The addon whose runner should dump a heap snapshot. */
14412
14456
  addonId: string() });
@@ -14470,6 +14514,21 @@ var NodeLoadSeriesSchema = object({
14470
14514
  /** One entry per function seen in the window, heaviest-first. */
14471
14515
  series: array(LoadFunctionSeriesSchema).readonly(),
14472
14516
  /**
14517
+ * The CONTAINER's memory over the same window, oldest-first.
14518
+ *
14519
+ * Sits next to `series` rather than in a method of its own because the whole
14520
+ * question is a subtraction: the per-process rows in `series` sum to one
14521
+ * number and this one is another, and an operator who has to issue two calls
14522
+ * to compare them will compare two different instants. Same reader, same
14523
+ * `sinceMs`, same `bucketMs`, same timestamps.
14524
+ *
14525
+ * **EMPTY means ABSENT, never zero.** A node with no cgroup — a developer
14526
+ * Mac, a bare-metal host, a container with the hierarchy hidden — reports no
14527
+ * points at all. A zero here would be indistinguishable from a healthy
14528
+ * container and is precisely the lie this field exists to avoid.
14529
+ */
14530
+ containerMemory: array(ContainerMemoryPointSchema).readonly(),
14531
+ /**
14473
14532
  * Width of one returned bucket, in ms. Equals the sampling cadence when no
14474
14533
  * reduction was needed — so a caller can always say what one point covers
14475
14534
  * without having to know whether it was reduced.
@@ -24384,23 +24443,23 @@ DeviceType.Camera, method(object({ deviceId: number() }), object({
24384
24443
  sdpOffer: string()
24385
24444
  }), {
24386
24445
  kind: "mutation",
24387
- auth: "admin"
24446
+ auth: "protected"
24388
24447
  }), method(object({
24389
24448
  deviceId: number(),
24390
24449
  sessionId: string(),
24391
24450
  sdpAnswer: string()
24392
24451
  }), _void(), {
24393
24452
  kind: "mutation",
24394
- auth: "admin"
24453
+ auth: "protected"
24395
24454
  }), method(object({
24396
24455
  deviceId: number(),
24397
24456
  sessionId: string()
24398
24457
  }), _void(), {
24399
24458
  kind: "mutation",
24400
- auth: "admin"
24459
+ auth: "protected"
24401
24460
  }), method(object({ deviceId: number() }), object({ sessionId: string() }), {
24402
24461
  kind: "mutation",
24403
- auth: "admin"
24462
+ auth: "protected"
24404
24463
  }), method(object({
24405
24464
  deviceId: number(),
24406
24465
  /** Audio bytes for ONE frame, base64-encoded so the payload
@@ -24419,10 +24478,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), object({
24419
24478
  sequenceNumber: number().int()
24420
24479
  }), object({ accepted: boolean() }), {
24421
24480
  kind: "mutation",
24422
- auth: "admin"
24481
+ auth: "protected"
24423
24482
  }), method(object({ deviceId: number() }), _void(), {
24424
24483
  kind: "mutation",
24425
- auth: "admin"
24484
+ auth: "protected"
24426
24485
  }), object({
24427
24486
  deviceId: number(),
24428
24487
  status: IntercomStatusSchema
@@ -26447,10 +26506,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
26447
26506
  * recording config. NOTE on events (source of truth, R5/C3): this cap carries
26448
26507
  * NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
26449
26508
  * events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
26450
- * rows); the recorder's internal EventMap markers are ephemeral in-RAM
26451
- * annotations that are not exposed here and must not be treated as an event
26452
- * feed. Event<->footage joins are by time, padded with the shared `EVENT_PAD_MS`
26453
- * (`interfaces/recording-config.ts`).
26509
+ * rows) and are the ONLY event surface the recorder has none. The in-RAM
26510
+ * playback markers it used to build were deleted on 2026-08-29 because nothing
26511
+ * ever read them. Event<->footage joins are by time, padded with the shared
26512
+ * `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
26454
26513
  */
26455
26514
  var RecordingStatusSchema = object({
26456
26515
  deviceId: number(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-export-hap",
3
- "version": "1.2.50",
3
+ "version": "1.2.53",
4
4
  "description": "HomeKit (HAP) exporter for CamStack devices. Publishes each exposed device as its own HomeKit accessory: cameras and doorbells with SRTP streaming, HomeKit Secure Video, motion, two-way audio, PTZ and battery; switches, lights, locks and sensors through a capability→service table.",
5
5
  "keywords": [
6
6
  "camstack",