@camstack/addon-provider-hikvision 1.2.47 → 1.2.49

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
@@ -14189,6 +14189,50 @@ var NodeProcessSchema = object({
14189
14189
  /** Wall-clock uptime (seconds). Parsed from `ps etime`. */
14190
14190
  uptimeSec: number()
14191
14191
  });
14192
+ /**
14193
+ * One retained container-memory reading.
14194
+ *
14195
+ * `atMs` is the timestamp of the PROCESS snapshot taken in the same tick, not
14196
+ * a second clock: that is what makes "processes sum to X, container says Y"
14197
+ * subtractable per point rather than an eyeballed comparison of two series
14198
+ * sampled at different instants.
14199
+ *
14200
+ * A reduced window keeps the sample with the LARGEST `currentBytes` in each
14201
+ * bucket, WHOLE. Taking a per-field maximum would synthesise a row whose parts
14202
+ * never coexisted, and a mean would smear away the peak this exists to find.
14203
+ */
14204
+ var ContainerMemoryPointSchema = object({
14205
+ /** Which hierarchy answered, so a reading is never ambiguous. */
14206
+ source: _enum(["cgroup-v2", "cgroup-v1"]),
14207
+ /** `memory.current` (v2) / `memory.usage_in_bytes` (v1). Always known. */
14208
+ currentBytes: number(),
14209
+ /** The cgroup's ceiling. `null` = NO LIMIT — never a sentinel, never zero. */
14210
+ limitBytes: number().nullable(),
14211
+ /** Anonymous pages: the closest thing to "what the processes allocated". */
14212
+ anonBytes: number().nullable(),
14213
+ /** Page cache. Charged to the cgroup, owned by no process. */
14214
+ fileBytes: number().nullable(),
14215
+ /**
14216
+ * Shared memory — and the field that explained the largest single surprise.
14217
+ * The i915 driver backs GPU buffers with shmem, so an inference pool or a
14218
+ * hardware-decode session holding DRM objects is charged HERE and appears
14219
+ * nowhere in a `ps` scan.
14220
+ */
14221
+ shmemBytes: number().nullable(),
14222
+ /** Kernel slab charged to this cgroup. `null` on v1, which never publishes it. */
14223
+ slabBytes: number().nullable(),
14224
+ /**
14225
+ * Shrinkable i915 GEM object bytes, from debugfs.
14226
+ *
14227
+ * **Host-wide across every DRM client, NOT cgroup-scoped.** It is not a
14228
+ * component of `currentBytes` and must not be subtracted from it; it says
14229
+ * what put the shmem there, where `shmemBytes` only says how much.
14230
+ *
14231
+ * `null` wherever debugfs is not mounted — which is inside every camstack
14232
+ * container today — and on any node with no Intel GPU.
14233
+ */
14234
+ gpuShmemBytes: number().nullable()
14235
+ }).extend({ atMs: number() });
14192
14236
  var DumpHeapSnapshotInputSchema = object({
14193
14237
  /** The addon whose runner should dump a heap snapshot. */
14194
14238
  addonId: string() });
@@ -14252,6 +14296,21 @@ var NodeLoadSeriesSchema = object({
14252
14296
  /** One entry per function seen in the window, heaviest-first. */
14253
14297
  series: array(LoadFunctionSeriesSchema).readonly(),
14254
14298
  /**
14299
+ * The CONTAINER's memory over the same window, oldest-first.
14300
+ *
14301
+ * Sits next to `series` rather than in a method of its own because the whole
14302
+ * question is a subtraction: the per-process rows in `series` sum to one
14303
+ * number and this one is another, and an operator who has to issue two calls
14304
+ * to compare them will compare two different instants. Same reader, same
14305
+ * `sinceMs`, same `bucketMs`, same timestamps.
14306
+ *
14307
+ * **EMPTY means ABSENT, never zero.** A node with no cgroup — a developer
14308
+ * Mac, a bare-metal host, a container with the hierarchy hidden — reports no
14309
+ * points at all. A zero here would be indistinguishable from a healthy
14310
+ * container and is precisely the lie this field exists to avoid.
14311
+ */
14312
+ containerMemory: array(ContainerMemoryPointSchema).readonly(),
14313
+ /**
14255
14314
  * Width of one returned bucket, in ms. Equals the sampling cadence when no
14256
14315
  * reduction was needed — so a caller can always say what one point covers
14257
14316
  * without having to know whether it was reduced.
@@ -28184,10 +28243,10 @@ var rebootCapability = {
28184
28243
  * recording config. NOTE on events (source of truth, R5/C3): this cap carries
28185
28244
  * NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
28186
28245
  * events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
28187
- * rows); the recorder's internal EventMap markers are ephemeral in-RAM
28188
- * annotations that are not exposed here and must not be treated as an event
28189
- * feed. Event<->footage joins are by time, padded with the shared `EVENT_PAD_MS`
28190
- * (`interfaces/recording-config.ts`).
28246
+ * rows) and are the ONLY event surface the recorder has none. The in-RAM
28247
+ * playback markers it used to build were deleted on 2026-08-29 because nothing
28248
+ * ever read them. Event<->footage joins are by time, padded with the shared
28249
+ * `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
28191
28250
  */
28192
28251
  var RecordingStatusSchema = object({
28193
28252
  deviceId: number(),
package/dist/addon.mjs CHANGED
@@ -14190,6 +14190,50 @@ var NodeProcessSchema = object({
14190
14190
  /** Wall-clock uptime (seconds). Parsed from `ps etime`. */
14191
14191
  uptimeSec: number()
14192
14192
  });
14193
+ /**
14194
+ * One retained container-memory reading.
14195
+ *
14196
+ * `atMs` is the timestamp of the PROCESS snapshot taken in the same tick, not
14197
+ * a second clock: that is what makes "processes sum to X, container says Y"
14198
+ * subtractable per point rather than an eyeballed comparison of two series
14199
+ * sampled at different instants.
14200
+ *
14201
+ * A reduced window keeps the sample with the LARGEST `currentBytes` in each
14202
+ * bucket, WHOLE. Taking a per-field maximum would synthesise a row whose parts
14203
+ * never coexisted, and a mean would smear away the peak this exists to find.
14204
+ */
14205
+ var ContainerMemoryPointSchema = object({
14206
+ /** Which hierarchy answered, so a reading is never ambiguous. */
14207
+ source: _enum(["cgroup-v2", "cgroup-v1"]),
14208
+ /** `memory.current` (v2) / `memory.usage_in_bytes` (v1). Always known. */
14209
+ currentBytes: number(),
14210
+ /** The cgroup's ceiling. `null` = NO LIMIT — never a sentinel, never zero. */
14211
+ limitBytes: number().nullable(),
14212
+ /** Anonymous pages: the closest thing to "what the processes allocated". */
14213
+ anonBytes: number().nullable(),
14214
+ /** Page cache. Charged to the cgroup, owned by no process. */
14215
+ fileBytes: number().nullable(),
14216
+ /**
14217
+ * Shared memory — and the field that explained the largest single surprise.
14218
+ * The i915 driver backs GPU buffers with shmem, so an inference pool or a
14219
+ * hardware-decode session holding DRM objects is charged HERE and appears
14220
+ * nowhere in a `ps` scan.
14221
+ */
14222
+ shmemBytes: number().nullable(),
14223
+ /** Kernel slab charged to this cgroup. `null` on v1, which never publishes it. */
14224
+ slabBytes: number().nullable(),
14225
+ /**
14226
+ * Shrinkable i915 GEM object bytes, from debugfs.
14227
+ *
14228
+ * **Host-wide across every DRM client, NOT cgroup-scoped.** It is not a
14229
+ * component of `currentBytes` and must not be subtracted from it; it says
14230
+ * what put the shmem there, where `shmemBytes` only says how much.
14231
+ *
14232
+ * `null` wherever debugfs is not mounted — which is inside every camstack
14233
+ * container today — and on any node with no Intel GPU.
14234
+ */
14235
+ gpuShmemBytes: number().nullable()
14236
+ }).extend({ atMs: number() });
14193
14237
  var DumpHeapSnapshotInputSchema = object({
14194
14238
  /** The addon whose runner should dump a heap snapshot. */
14195
14239
  addonId: string() });
@@ -14253,6 +14297,21 @@ var NodeLoadSeriesSchema = object({
14253
14297
  /** One entry per function seen in the window, heaviest-first. */
14254
14298
  series: array(LoadFunctionSeriesSchema).readonly(),
14255
14299
  /**
14300
+ * The CONTAINER's memory over the same window, oldest-first.
14301
+ *
14302
+ * Sits next to `series` rather than in a method of its own because the whole
14303
+ * question is a subtraction: the per-process rows in `series` sum to one
14304
+ * number and this one is another, and an operator who has to issue two calls
14305
+ * to compare them will compare two different instants. Same reader, same
14306
+ * `sinceMs`, same `bucketMs`, same timestamps.
14307
+ *
14308
+ * **EMPTY means ABSENT, never zero.** A node with no cgroup — a developer
14309
+ * Mac, a bare-metal host, a container with the hierarchy hidden — reports no
14310
+ * points at all. A zero here would be indistinguishable from a healthy
14311
+ * container and is precisely the lie this field exists to avoid.
14312
+ */
14313
+ containerMemory: array(ContainerMemoryPointSchema).readonly(),
14314
+ /**
14256
14315
  * Width of one returned bucket, in ms. Equals the sampling cadence when no
14257
14316
  * reduction was needed — so a caller can always say what one point covers
14258
14317
  * without having to know whether it was reduced.
@@ -28185,10 +28244,10 @@ var rebootCapability = {
28185
28244
  * recording config. NOTE on events (source of truth, R5/C3): this cap carries
28186
28245
  * NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
28187
28246
  * events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
28188
- * rows); the recorder's internal EventMap markers are ephemeral in-RAM
28189
- * annotations that are not exposed here and must not be treated as an event
28190
- * feed. Event<->footage joins are by time, padded with the shared `EVENT_PAD_MS`
28191
- * (`interfaces/recording-config.ts`).
28247
+ * rows) and are the ONLY event surface the recorder has none. The in-RAM
28248
+ * playback markers it used to build were deleted on 2026-08-29 because nothing
28249
+ * ever read them. Event<->footage joins are by time, padded with the shared
28250
+ * `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
28192
28251
  */
28193
28252
  var RecordingStatusSchema = object({
28194
28253
  deviceId: number(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-hikvision",
3
- "version": "1.2.47",
3
+ "version": "1.2.49",
4
4
  "description": "Hikvision camera device provider addon for CamStack — ISAPI over HTTP(S) with digest auth (snapshot, alarm stream, RTSP discovery)",
5
5
  "keywords": [
6
6
  "camstack",