@camstack/addon-post-analysis 1.2.141 → 1.2.143

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.
@@ -8038,11 +8038,10 @@ var DetectionCatalogClassMapSchema = object({
8038
8038
  * timestamp + postMs]`). Matches the admin-ui clip window (−5s/+10s).
8039
8039
  *
8040
8040
  * Every consumer derives from this ONE constant so event↔footage boundaries
8041
- * agree everywhere (C1):
8042
- * - the `videoclips` default provider (addon-post-analysis) pads its clip
8043
- * windows with it;
8044
- * - the recorder's ephemeral in-RAM `EventMap` markers (addon-pipeline) pad
8045
- * their `startMs/endMs` with it.
8041
+ * agree everywhere (C1): today that is the `videoclips` default provider
8042
+ * (addon-post-analysis), which pads its clip windows with it. The recorder used
8043
+ * to pad in-RAM playback markers with it too; those markers had no reader
8044
+ * anywhere in the repo and were deleted on 2026-08-29.
8046
8045
  *
8047
8046
  * NOTE: this is a UI/JOIN convention, NOT the `events`-band keep/discard gate —
8048
8047
  * that uses the per-device `preBufferSec`/`postBufferSec` config.
@@ -14285,6 +14284,50 @@ var NodeProcessSchema = object({
14285
14284
  /** Wall-clock uptime (seconds). Parsed from `ps etime`. */
14286
14285
  uptimeSec: number()
14287
14286
  });
14287
+ /**
14288
+ * One retained container-memory reading.
14289
+ *
14290
+ * `atMs` is the timestamp of the PROCESS snapshot taken in the same tick, not
14291
+ * a second clock: that is what makes "processes sum to X, container says Y"
14292
+ * subtractable per point rather than an eyeballed comparison of two series
14293
+ * sampled at different instants.
14294
+ *
14295
+ * A reduced window keeps the sample with the LARGEST `currentBytes` in each
14296
+ * bucket, WHOLE. Taking a per-field maximum would synthesise a row whose parts
14297
+ * never coexisted, and a mean would smear away the peak this exists to find.
14298
+ */
14299
+ var ContainerMemoryPointSchema = object({
14300
+ /** Which hierarchy answered, so a reading is never ambiguous. */
14301
+ source: _enum(["cgroup-v2", "cgroup-v1"]),
14302
+ /** `memory.current` (v2) / `memory.usage_in_bytes` (v1). Always known. */
14303
+ currentBytes: number(),
14304
+ /** The cgroup's ceiling. `null` = NO LIMIT — never a sentinel, never zero. */
14305
+ limitBytes: number().nullable(),
14306
+ /** Anonymous pages: the closest thing to "what the processes allocated". */
14307
+ anonBytes: number().nullable(),
14308
+ /** Page cache. Charged to the cgroup, owned by no process. */
14309
+ fileBytes: number().nullable(),
14310
+ /**
14311
+ * Shared memory — and the field that explained the largest single surprise.
14312
+ * The i915 driver backs GPU buffers with shmem, so an inference pool or a
14313
+ * hardware-decode session holding DRM objects is charged HERE and appears
14314
+ * nowhere in a `ps` scan.
14315
+ */
14316
+ shmemBytes: number().nullable(),
14317
+ /** Kernel slab charged to this cgroup. `null` on v1, which never publishes it. */
14318
+ slabBytes: number().nullable(),
14319
+ /**
14320
+ * Shrinkable i915 GEM object bytes, from debugfs.
14321
+ *
14322
+ * **Host-wide across every DRM client, NOT cgroup-scoped.** It is not a
14323
+ * component of `currentBytes` and must not be subtracted from it; it says
14324
+ * what put the shmem there, where `shmemBytes` only says how much.
14325
+ *
14326
+ * `null` wherever debugfs is not mounted — which is inside every camstack
14327
+ * container today — and on any node with no Intel GPU.
14328
+ */
14329
+ gpuShmemBytes: number().nullable()
14330
+ }).extend({ atMs: number() });
14288
14331
  var DumpHeapSnapshotInputSchema = object({
14289
14332
  /** The addon whose runner should dump a heap snapshot. */
14290
14333
  addonId: string() });
@@ -14348,6 +14391,21 @@ var NodeLoadSeriesSchema = object({
14348
14391
  /** One entry per function seen in the window, heaviest-first. */
14349
14392
  series: array(LoadFunctionSeriesSchema).readonly(),
14350
14393
  /**
14394
+ * The CONTAINER's memory over the same window, oldest-first.
14395
+ *
14396
+ * Sits next to `series` rather than in a method of its own because the whole
14397
+ * question is a subtraction: the per-process rows in `series` sum to one
14398
+ * number and this one is another, and an operator who has to issue two calls
14399
+ * to compare them will compare two different instants. Same reader, same
14400
+ * `sinceMs`, same `bucketMs`, same timestamps.
14401
+ *
14402
+ * **EMPTY means ABSENT, never zero.** A node with no cgroup — a developer
14403
+ * Mac, a bare-metal host, a container with the hierarchy hidden — reports no
14404
+ * points at all. A zero here would be indistinguishable from a healthy
14405
+ * container and is precisely the lie this field exists to avoid.
14406
+ */
14407
+ containerMemory: array(ContainerMemoryPointSchema).readonly(),
14408
+ /**
14351
14409
  * Width of one returned bucket, in ms. Equals the sampling cadence when no
14352
14410
  * reduction was needed — so a caller can always say what one point covers
14353
14411
  * without having to know whether it was reduced.
@@ -29213,10 +29271,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
29213
29271
  * recording config. NOTE on events (source of truth, R5/C3): this cap carries
29214
29272
  * NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
29215
29273
  * events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
29216
- * rows); the recorder's internal EventMap markers are ephemeral in-RAM
29217
- * annotations that are not exposed here and must not be treated as an event
29218
- * feed. Event<->footage joins are by time, padded with the shared `EVENT_PAD_MS`
29219
- * (`interfaces/recording-config.ts`).
29274
+ * rows) and are the ONLY event surface — the recorder has none. The in-RAM
29275
+ * playback markers it used to build were deleted on 2026-08-29 because nothing
29276
+ * ever read them. Event<->footage joins are by time, padded with the shared
29277
+ * `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
29220
29278
  */
29221
29279
  var RecordingStatusSchema = object({
29222
29280
  deviceId: number(),
@@ -8007,11 +8007,10 @@ var DetectionCatalogClassMapSchema = object({
8007
8007
  * timestamp + postMs]`). Matches the admin-ui clip window (−5s/+10s).
8008
8008
  *
8009
8009
  * Every consumer derives from this ONE constant so event↔footage boundaries
8010
- * agree everywhere (C1):
8011
- * - the `videoclips` default provider (addon-post-analysis) pads its clip
8012
- * windows with it;
8013
- * - the recorder's ephemeral in-RAM `EventMap` markers (addon-pipeline) pad
8014
- * their `startMs/endMs` with it.
8010
+ * agree everywhere (C1): today that is the `videoclips` default provider
8011
+ * (addon-post-analysis), which pads its clip windows with it. The recorder used
8012
+ * to pad in-RAM playback markers with it too; those markers had no reader
8013
+ * anywhere in the repo and were deleted on 2026-08-29.
8015
8014
  *
8016
8015
  * NOTE: this is a UI/JOIN convention, NOT the `events`-band keep/discard gate —
8017
8016
  * that uses the per-device `preBufferSec`/`postBufferSec` config.
@@ -14254,6 +14253,50 @@ var NodeProcessSchema = object({
14254
14253
  /** Wall-clock uptime (seconds). Parsed from `ps etime`. */
14255
14254
  uptimeSec: number()
14256
14255
  });
14256
+ /**
14257
+ * One retained container-memory reading.
14258
+ *
14259
+ * `atMs` is the timestamp of the PROCESS snapshot taken in the same tick, not
14260
+ * a second clock: that is what makes "processes sum to X, container says Y"
14261
+ * subtractable per point rather than an eyeballed comparison of two series
14262
+ * sampled at different instants.
14263
+ *
14264
+ * A reduced window keeps the sample with the LARGEST `currentBytes` in each
14265
+ * bucket, WHOLE. Taking a per-field maximum would synthesise a row whose parts
14266
+ * never coexisted, and a mean would smear away the peak this exists to find.
14267
+ */
14268
+ var ContainerMemoryPointSchema = object({
14269
+ /** Which hierarchy answered, so a reading is never ambiguous. */
14270
+ source: _enum(["cgroup-v2", "cgroup-v1"]),
14271
+ /** `memory.current` (v2) / `memory.usage_in_bytes` (v1). Always known. */
14272
+ currentBytes: number(),
14273
+ /** The cgroup's ceiling. `null` = NO LIMIT — never a sentinel, never zero. */
14274
+ limitBytes: number().nullable(),
14275
+ /** Anonymous pages: the closest thing to "what the processes allocated". */
14276
+ anonBytes: number().nullable(),
14277
+ /** Page cache. Charged to the cgroup, owned by no process. */
14278
+ fileBytes: number().nullable(),
14279
+ /**
14280
+ * Shared memory — and the field that explained the largest single surprise.
14281
+ * The i915 driver backs GPU buffers with shmem, so an inference pool or a
14282
+ * hardware-decode session holding DRM objects is charged HERE and appears
14283
+ * nowhere in a `ps` scan.
14284
+ */
14285
+ shmemBytes: number().nullable(),
14286
+ /** Kernel slab charged to this cgroup. `null` on v1, which never publishes it. */
14287
+ slabBytes: number().nullable(),
14288
+ /**
14289
+ * Shrinkable i915 GEM object bytes, from debugfs.
14290
+ *
14291
+ * **Host-wide across every DRM client, NOT cgroup-scoped.** It is not a
14292
+ * component of `currentBytes` and must not be subtracted from it; it says
14293
+ * what put the shmem there, where `shmemBytes` only says how much.
14294
+ *
14295
+ * `null` wherever debugfs is not mounted — which is inside every camstack
14296
+ * container today — and on any node with no Intel GPU.
14297
+ */
14298
+ gpuShmemBytes: number().nullable()
14299
+ }).extend({ atMs: number() });
14257
14300
  var DumpHeapSnapshotInputSchema = object({
14258
14301
  /** The addon whose runner should dump a heap snapshot. */
14259
14302
  addonId: string() });
@@ -14317,6 +14360,21 @@ var NodeLoadSeriesSchema = object({
14317
14360
  /** One entry per function seen in the window, heaviest-first. */
14318
14361
  series: array(LoadFunctionSeriesSchema).readonly(),
14319
14362
  /**
14363
+ * The CONTAINER's memory over the same window, oldest-first.
14364
+ *
14365
+ * Sits next to `series` rather than in a method of its own because the whole
14366
+ * question is a subtraction: the per-process rows in `series` sum to one
14367
+ * number and this one is another, and an operator who has to issue two calls
14368
+ * to compare them will compare two different instants. Same reader, same
14369
+ * `sinceMs`, same `bucketMs`, same timestamps.
14370
+ *
14371
+ * **EMPTY means ABSENT, never zero.** A node with no cgroup — a developer
14372
+ * Mac, a bare-metal host, a container with the hierarchy hidden — reports no
14373
+ * points at all. A zero here would be indistinguishable from a healthy
14374
+ * container and is precisely the lie this field exists to avoid.
14375
+ */
14376
+ containerMemory: array(ContainerMemoryPointSchema).readonly(),
14377
+ /**
14320
14378
  * Width of one returned bucket, in ms. Equals the sampling cadence when no
14321
14379
  * reduction was needed — so a caller can always say what one point covers
14322
14380
  * without having to know whether it was reduced.
@@ -29182,10 +29240,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
29182
29240
  * recording config. NOTE on events (source of truth, R5/C3): this cap carries
29183
29241
  * NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
29184
29242
  * events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
29185
- * rows); the recorder's internal EventMap markers are ephemeral in-RAM
29186
- * annotations that are not exposed here and must not be treated as an event
29187
- * feed. Event<->footage joins are by time, padded with the shared `EVENT_PAD_MS`
29188
- * (`interfaces/recording-config.ts`).
29243
+ * rows) and are the ONLY event surface — the recorder has none. The in-RAM
29244
+ * playback markers it used to build were deleted on 2026-08-29 because nothing
29245
+ * ever read them. Event<->footage joins are by time, padded with the shared
29246
+ * `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
29189
29247
  */
29190
29248
  var RecordingStatusSchema = object({
29191
29249
  deviceId: number(),
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_dist = require("../dist-C6oVj0QW.js");
5
+ const require_dist = require("../dist-BBDJh7ln.js");
6
6
  let node_fs = require("node:fs");
7
7
  node_fs = require_dist.__toESM(node_fs);
8
8
  let node_path = require("node:path");
@@ -1,4 +1,4 @@
1
- import { Dt as BaseAddon, P as PoolMemoryWatchdog, ct as hfModelUrl, it as embeddingEncoderCapability, pt as parseProcStatus, yt as resolvePoolMemoryPolicy } from "../dist-CQGjLREi.mjs";
1
+ import { Dt as BaseAddon, P as PoolMemoryWatchdog, ct as hfModelUrl, it as embeddingEncoderCapability, pt as parseProcStatus, yt as resolvePoolMemoryPolicy } from "../dist-J3TQ_8D1.mjs";
2
2
  import { createRequire } from "node:module";
3
3
  import * as fs from "node:fs";
4
4
  import * as path$1 from "node:path";
@@ -3,7 +3,7 @@ import "./dist-CYZr2fwk.mjs";
3
3
  var e = {
4
4
  "@camstack/sdk": {
5
5
  name: "@camstack/sdk",
6
- version: "1.2.42",
6
+ version: "1.2.44",
7
7
  scope: ["default"],
8
8
  loaded: !1,
9
9
  from: "addon_pipeline_analytics_widgets",
@@ -18,7 +18,7 @@ var e = {
18
18
  },
19
19
  "@camstack/types": {
20
20
  name: "@camstack/types",
21
- version: "1.2.120",
21
+ version: "1.2.122",
22
22
  scope: ["default"],
23
23
  loaded: !1,
24
24
  from: "addon_pipeline_analytics_widgets",
@@ -33,7 +33,7 @@ var e = {
33
33
  },
34
34
  "@camstack/ui-library": {
35
35
  name: "@camstack/ui-library",
36
- version: "1.2.83",
36
+ version: "1.2.85",
37
37
  scope: ["default"],
38
38
  loaded: !1,
39
39
  from: "addon_pipeline_analytics_widgets",
@@ -36,7 +36,7 @@ async function r() {
36
36
  }
37
37
  },
38
38
  "@camstack/types": {
39
- version: "1.2.120",
39
+ version: "1.2.122",
40
40
  scope: "default",
41
41
  shareConfig: {
42
42
  singleton: !0,
@@ -45,7 +45,7 @@ async function r() {
45
45
  }
46
46
  },
47
47
  "@camstack/sdk": {
48
- version: "1.2.42",
48
+ version: "1.2.44",
49
49
  scope: "default",
50
50
  shareConfig: {
51
51
  singleton: !0,
@@ -81,7 +81,7 @@ async function r() {
81
81
  }
82
82
  },
83
83
  "@camstack/ui-library": {
84
- version: "1.2.83",
84
+ version: "1.2.85",
85
85
  scope: "default",
86
86
  shareConfig: {
87
87
  singleton: !0,
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_dist = require("../dist-C6oVj0QW.js");
5
+ const require_dist = require("../dist-BBDJh7ln.js");
6
6
  let node_fs = require("node:fs");
7
7
  node_fs = require_dist.__toESM(node_fs, 1);
8
8
  let node_path = require("node:path");
@@ -1,4 +1,4 @@
1
- import { $ as buildEventKindDescriptor, A as NcSnoozeSuppressedSchema, At as hydrateSchema, B as SCENE_DIVERGED, Bt as object, C as NcRuleInputSchema, Ct as vectorDimFromBase64, D as NcScheduleSchema, Dt as BaseAddon, E as NcRuleTargetSchema, Et as errMsg, F as RECORDING_EXPORT_MAX_READ_BYTES, Ft as array, G as TimelapseRuleSchema, Gt as EventCategory, H as TIMELAPSE_DENSE_FLOOR_SEC, Ht as record, I as RetrainStatusSchema, It as boolean, J as addonWidgetsSourceCapability, K as TrackSourceSchema, Lt as discriminatedUnion, M as NcTaxonomySchema, Mt as nodePin, N as OpsLogEntrySchema, Nt as sleep, O as NcSnoozeInputSchema, Ot as DeviceType, Pt as _enum, Q as audioModeOf, R as SCENE_DEFAULT_ANCHOR_THRESHOLD, Rt as literal, S as NcConditionDescriptorSchema, St as systemEventFilterApplies, T as NcRuleSchema, Tt as zoneAnalyticsCapability, U as TimelapseRuleInputSchema, Ut as string, V as SceneMonitorSchema, Vt as partialRecord, W as TimelapseRulePatchSchema, Wt as unknown, X as assertTimelapseCadences, Y as alarmPanelCapability, Z as audioMetricsCapability, _ as NC_ALARM_SYSTEM_EVENT_KINDS, _t as readDeviceStateFrom, a as COCO_TO_MACRO, at as encodeVectorBase64, bt as sceneMonitorCapability, c as DETECTION_MACRO_CLASSES, d as EVENT_KIND_BY_CAP, dt as kebabToCamel, et as cosineSimilarity$1, f as EVENT_PAD_MS, ft as notificationRulesCapability, g as MACRO_LABELS, gt as plateGalleryCapability, h as LabelAttributionSchema, ht as pipelineAnalyticsCapability, i as CLUSTER_MODEL_SCOPED_STEPS, j as NcSystemEventKindSchema, jt as isDeviceScopedCap, k as NcSnoozeSchema, kt as createEvent, lt as isDetectionMacroClass, m as FailureCounters, mt as pickClusterStepModels, n as AnalyticsGroupRecordSchema, nt as defineCustomActions, o as DEFAULT_EVENT_COLOR, ot as faceGalleryCapability, p as FULL_IMAGE_BBOX, q as VISIT_MERGE_GAP_MS, r as BaseDevice, rt as deriveRecordingMode, st as failureContributionCapability, t as AnalyticsGroupDetailSchema, tt as customAction, u as DeclaredDevices, ut as isScheduleActive, v as NC_CONDITION_CATALOG, vt as readTimelapseGeneratedAt, w as NcRulePatchSchema, wt as videoclipsCapability, x as NC_TAXONOMY, xt as subKindsOf, y as NC_DEFAULT_SNOOZE_MINUTES, z as SCENE_DEFAULT_UNCOVERED_POLICY, zt as number } from "../dist-CQGjLREi.mjs";
1
+ import { $ as buildEventKindDescriptor, A as NcSnoozeSuppressedSchema, At as hydrateSchema, B as SCENE_DIVERGED, Bt as object, C as NcRuleInputSchema, Ct as vectorDimFromBase64, D as NcScheduleSchema, Dt as BaseAddon, E as NcRuleTargetSchema, Et as errMsg, F as RECORDING_EXPORT_MAX_READ_BYTES, Ft as array, G as TimelapseRuleSchema, Gt as EventCategory, H as TIMELAPSE_DENSE_FLOOR_SEC, Ht as record, I as RetrainStatusSchema, It as boolean, J as addonWidgetsSourceCapability, K as TrackSourceSchema, Lt as discriminatedUnion, M as NcTaxonomySchema, Mt as nodePin, N as OpsLogEntrySchema, Nt as sleep, O as NcSnoozeInputSchema, Ot as DeviceType, Pt as _enum, Q as audioModeOf, R as SCENE_DEFAULT_ANCHOR_THRESHOLD, Rt as literal, S as NcConditionDescriptorSchema, St as systemEventFilterApplies, T as NcRuleSchema, Tt as zoneAnalyticsCapability, U as TimelapseRuleInputSchema, Ut as string, V as SceneMonitorSchema, Vt as partialRecord, W as TimelapseRulePatchSchema, Wt as unknown, X as assertTimelapseCadences, Y as alarmPanelCapability, Z as audioMetricsCapability, _ as NC_ALARM_SYSTEM_EVENT_KINDS, _t as readDeviceStateFrom, a as COCO_TO_MACRO, at as encodeVectorBase64, bt as sceneMonitorCapability, c as DETECTION_MACRO_CLASSES, d as EVENT_KIND_BY_CAP, dt as kebabToCamel, et as cosineSimilarity$1, f as EVENT_PAD_MS, ft as notificationRulesCapability, g as MACRO_LABELS, gt as plateGalleryCapability, h as LabelAttributionSchema, ht as pipelineAnalyticsCapability, i as CLUSTER_MODEL_SCOPED_STEPS, j as NcSystemEventKindSchema, jt as isDeviceScopedCap, k as NcSnoozeSchema, kt as createEvent, lt as isDetectionMacroClass, m as FailureCounters, mt as pickClusterStepModels, n as AnalyticsGroupRecordSchema, nt as defineCustomActions, o as DEFAULT_EVENT_COLOR, ot as faceGalleryCapability, p as FULL_IMAGE_BBOX, q as VISIT_MERGE_GAP_MS, r as BaseDevice, rt as deriveRecordingMode, st as failureContributionCapability, t as AnalyticsGroupDetailSchema, tt as customAction, u as DeclaredDevices, ut as isScheduleActive, v as NC_CONDITION_CATALOG, vt as readTimelapseGeneratedAt, w as NcRulePatchSchema, wt as videoclipsCapability, x as NC_TAXONOMY, xt as subKindsOf, y as NC_DEFAULT_SNOOZE_MINUTES, z as SCENE_DEFAULT_UNCOVERED_POLICY, zt as number } from "../dist-J3TQ_8D1.mjs";
2
2
  import { t as __exportAll } from "../embedding-encoder/index.mjs";
3
3
  import * as fs from "node:fs";
4
4
  import { promises } from "node:fs";
@@ -30,7 +30,7 @@ async function d(e) {
30
30
  }
31
31
  }
32
32
  async function f() {
33
- return l ||= d(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_analytics_widgets-zZNZEbxQ.mjs")).catch((e) => {
33
+ return l ||= d(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_analytics_widgets-BjletSHg.mjs")).catch((e) => {
34
34
  throw l = void 0, e;
35
35
  }), l;
36
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-post-analysis",
3
- "version": "1.2.141",
3
+ "version": "1.2.143",
4
4
  "description": "Post-Analysis bundle — enrichment, embedding-encoder, pipeline-analytics. Multi-entry npm package shipping addons that consume pipeline output.",
5
5
  "keywords": [
6
6
  "camstack",