@camstack/addon-export-hap 1.2.50 → 1.2.52
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/hap-export.addon.js +63 -4
- package/dist/hap-export.addon.mjs +63 -4
- package/package.json +1 -1
package/dist/hap-export.addon.js
CHANGED
|
@@ -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.
|
|
@@ -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)
|
|
26463
|
-
*
|
|
26464
|
-
*
|
|
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.
|
|
@@ -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)
|
|
26451
|
-
*
|
|
26452
|
-
*
|
|
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.
|
|
3
|
+
"version": "1.2.52",
|
|
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",
|