@camstack/addon-pipeline 1.2.227 → 1.2.228

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.
Files changed (30) hide show
  1. package/dist/audio-analyzer/index.js +2 -2
  2. package/dist/audio-analyzer/index.mjs +2 -2
  3. package/dist/{default-detection-model-CNwum1uC.mjs → default-detection-model-C4C723aL.mjs} +1 -1
  4. package/dist/{default-detection-model-C1etqCJk.js → default-detection-model-D0Em2AXV.js} +1 -1
  5. package/dist/detection-pipeline/index.js +4 -4
  6. package/dist/detection-pipeline/index.mjs +4 -4
  7. package/dist/{dist-d1K9t4mU.mjs → dist-Dcp-eVbN.mjs} +167 -11
  8. package/dist/{dist-BGdDektN.js → dist-Dwhv3eOj.js} +167 -11
  9. package/dist/motion-wasm/index.js +1 -1
  10. package/dist/motion-wasm/index.mjs +1 -1
  11. package/dist/{node-CQ5yofm2.js → node-CSDLSs7t.js} +1 -1
  12. package/dist/{node-CpckZhmU.mjs → node-ClxCG7kX.mjs} +1 -1
  13. package/dist/pipeline-runner/index.js +3 -3
  14. package/dist/pipeline-runner/index.mjs +3 -3
  15. package/dist/{process-memory-iUDS4M_G.mjs → process-memory-CJ9kKdO6.mjs} +1 -1
  16. package/dist/{process-memory-D2NCFwt_.js → process-memory-DYCrYZZl.js} +1 -1
  17. package/dist/recorder/index.js +3 -2
  18. package/dist/recorder/index.mjs +3 -2
  19. package/dist/{segment-demux-js-iVyZ1H9j.mjs → segment-demux-js-BWZQJ1AS.mjs} +1 -1
  20. package/dist/{segment-demux-js-Dk_Pvocs.js → segment-demux-js-CelIP7H_.js} +1 -1
  21. package/dist/stream-broker/_stub.js +1 -1
  22. package/dist/stream-broker/{_virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-7qCmXLC3.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-BOpWY0lf.mjs} +3 -3
  23. package/dist/stream-broker/{_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-CUMGe_Dp.mjs → _virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-B84T0KI-.mjs} +1 -1
  24. package/dist/stream-broker/demux-worker-child.js +1 -1
  25. package/dist/stream-broker/demux-worker-child.mjs +1 -1
  26. package/dist/stream-broker/{hostInit-D6wBZr7_.mjs → hostInit-D79Uznvf.mjs} +3 -3
  27. package/dist/stream-broker/index.js +161 -6
  28. package/dist/stream-broker/index.mjs +161 -6
  29. package/dist/stream-broker/remoteEntry.js +1 -1
  30. package/package.json +1 -1
@@ -3,8 +3,8 @@ Object.defineProperties(exports, {
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
5
  const require_chunk = require("../chunk-emK7D4bc.js");
6
- const require_dist = require("../dist-BGdDektN.js");
7
- const require_process_memory = require("../process-memory-D2NCFwt_.js");
6
+ const require_dist = require("../dist-Dwhv3eOj.js");
7
+ const require_process_memory = require("../process-memory-DYCrYZZl.js");
8
8
  let node_fs = require("node:fs");
9
9
  node_fs = require_chunk.__toESM(node_fs);
10
10
  let node_path = require("node:path");
@@ -1,6 +1,6 @@
1
1
  import { n as __require } from "../chunk-DnnnRqeS.mjs";
2
- import { Gt as BaseAddon, N as audioAnalysisCapability, P as audioAnalyzerCapability, Qt as hydrateSchema, Rt as errMsg, Yt as audioChunkBytesPerSample, Zt as expandAudioChunkToF32le, ct as mapAudioLabelToMacro, kt as resolvePoolMemoryPolicy, n as AUDIO_BACKEND_CHOICES, nn as nodePin, s as DEFAULT_AUDIO_ANALYZER_CONFIG, w as PoolMemoryWatchdog, y as HF_BASE_URL, yn as EventCategory } from "../dist-d1K9t4mU.mjs";
3
- import { n as pickNodePlatformArch, t as readProcessMemory } from "../process-memory-iUDS4M_G.mjs";
2
+ import { Gt as BaseAddon, N as audioAnalysisCapability, P as audioAnalyzerCapability, Qt as hydrateSchema, Rt as errMsg, Yt as audioChunkBytesPerSample, Zt as expandAudioChunkToF32le, ct as mapAudioLabelToMacro, kt as resolvePoolMemoryPolicy, n as AUDIO_BACKEND_CHOICES, nn as nodePin, s as DEFAULT_AUDIO_ANALYZER_CONFIG, w as PoolMemoryWatchdog, y as HF_BASE_URL, yn as EventCategory } from "../dist-Dcp-eVbN.mjs";
3
+ import { n as pickNodePlatformArch, t as readProcessMemory } from "../process-memory-CJ9kKdO6.mjs";
4
4
  import * as fs from "node:fs";
5
5
  import * as path$1 from "node:path";
6
6
  import { downloadFile } from "@camstack/system/addon-utils";
@@ -1,4 +1,4 @@
1
- import { F as audioKindId, a as COCO_80_LABELS, o as COCO_TO_MACRO, r as AUDIO_MACRO_LABELS, rt as hfModelUrl } from "./dist-d1K9t4mU.mjs";
1
+ import { F as audioKindId, a as COCO_80_LABELS, o as COCO_TO_MACRO, r as AUDIO_MACRO_LABELS, rt as hfModelUrl } from "./dist-Dcp-eVbN.mjs";
2
2
  import { randomUUID } from "node:crypto";
3
3
  //#region src/detection-pipeline/pipeline/landmark-precision-gate.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- const require_dist = require("./dist-BGdDektN.js");
1
+ const require_dist = require("./dist-Dwhv3eOj.js");
2
2
  let node_crypto = require("node:crypto");
3
3
  //#region src/detection-pipeline/pipeline/landmark-precision-gate.ts
4
4
  /**
@@ -3,11 +3,11 @@ Object.defineProperties(exports, {
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
5
  const require_chunk = require("../chunk-emK7D4bc.js");
6
- const require_dist = require("../dist-BGdDektN.js");
7
- const require_node = require("../node-CQ5yofm2.js");
8
- const require_default_detection_model = require("../default-detection-model-C1etqCJk.js");
6
+ const require_dist = require("../dist-Dwhv3eOj.js");
7
+ const require_node = require("../node-CSDLSs7t.js");
8
+ const require_default_detection_model = require("../default-detection-model-D0Em2AXV.js");
9
9
  const require_lazy_sharp = require("../lazy-sharp-BuwKlQLR.js");
10
- const require_process_memory = require("../process-memory-D2NCFwt_.js");
10
+ const require_process_memory = require("../process-memory-DYCrYZZl.js");
11
11
  let node_os = require("node:os");
12
12
  node_os = require_chunk.__toESM(node_os);
13
13
  let node_fs = require("node:fs");
@@ -1,9 +1,9 @@
1
1
  import { n as __require } from "../chunk-DnnnRqeS.mjs";
2
- import { Et as resolveClusterStepModelId, Gt as BaseAddon, H as defaultDeviceFor$1, It as supportedRuntimes$1, Q as evaluateZoneRules, Qt as hydrateSchema, Rt as errMsg, X as enumerateInferenceDevices, Xt as createEvent, _n as string, _t as pickClusterStepModels, c as DEFAULT_CLUSTER_STEP_MODELS, cn as array, ht as overlayClusterStepSettings, it as inferModelProvider, j as YAMNET_TO_MACRO, jt as runtimeDevices$1, kt as resolvePoolMemoryPolicy, l as DEFAULT_CLUSTER_STEP_SETTINGS, m as DEVICE_BACKEND_TO_FORMAT, mn as object, nn as nodePin, on as sleep, ot as loadContributionCapability, q as detectionPipelineCapability, rn as parseJsonUnknown, t as APPLE_SA_TO_MACRO, vn as union, vt as pickClusterStepSettings, w as PoolMemoryWatchdog, xt as pipelineExecutorCapability, yn as EventCategory } from "../dist-d1K9t4mU.mjs";
3
- import { o as readProcessCost } from "../node-CpckZhmU.mjs";
4
- import { a as ALL_PIPELINE_STEPS, c as getStep, d as landmarkPrecisionVerdict, l as getStepDefinition, n as resolveDefaultDetectionModel, o as ALL_STEPS, r as localFrameRegistry, s as getDefaultModelForFormat, u as resolveModelForFormat } from "../default-detection-model-CNwum1uC.mjs";
2
+ import { Et as resolveClusterStepModelId, Gt as BaseAddon, H as defaultDeviceFor$1, It as supportedRuntimes$1, Q as evaluateZoneRules, Qt as hydrateSchema, Rt as errMsg, X as enumerateInferenceDevices, Xt as createEvent, _n as string, _t as pickClusterStepModels, c as DEFAULT_CLUSTER_STEP_MODELS, cn as array, ht as overlayClusterStepSettings, it as inferModelProvider, j as YAMNET_TO_MACRO, jt as runtimeDevices$1, kt as resolvePoolMemoryPolicy, l as DEFAULT_CLUSTER_STEP_SETTINGS, m as DEVICE_BACKEND_TO_FORMAT, mn as object, nn as nodePin, on as sleep, ot as loadContributionCapability, q as detectionPipelineCapability, rn as parseJsonUnknown, t as APPLE_SA_TO_MACRO, vn as union, vt as pickClusterStepSettings, w as PoolMemoryWatchdog, xt as pipelineExecutorCapability, yn as EventCategory } from "../dist-Dcp-eVbN.mjs";
3
+ import { o as readProcessCost } from "../node-ClxCG7kX.mjs";
4
+ import { a as ALL_PIPELINE_STEPS, c as getStep, d as landmarkPrecisionVerdict, l as getStepDefinition, n as resolveDefaultDetectionModel, o as ALL_STEPS, r as localFrameRegistry, s as getDefaultModelForFormat, u as resolveModelForFormat } from "../default-detection-model-C4C723aL.mjs";
5
5
  import { t as getSharp } from "../lazy-sharp-DXsqwpph.mjs";
6
- import { n as pickNodePlatformArch, t as readProcessMemory } from "../process-memory-iUDS4M_G.mjs";
6
+ import { n as pickNodePlatformArch, t as readProcessMemory } from "../process-memory-CJ9kKdO6.mjs";
7
7
  import * as os from "node:os";
8
8
  import * as fs from "node:fs";
9
9
  import * as path$1 from "node:path";
@@ -5346,7 +5346,7 @@ var ZodIssueCode = {
5346
5346
  var ZodFirstPartyTypeKind;
5347
5347
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5348
5348
  //#endregion
5349
- //#region ../types/dist/sleep-CnLyvg3w.mjs
5349
+ //#region ../types/dist/sleep-DBKu2-U5.mjs
5350
5350
  /**
5351
5351
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5352
5352
  * window to float samples (D455).
@@ -7541,7 +7541,7 @@ function sleep(ms) {
7541
7541
  return new Promise((resolve) => setTimeout(resolve, Math.max(0, ms)));
7542
7542
  }
7543
7543
  //#endregion
7544
- //#region ../types/dist/canonical-hash-rO1sRmEK.mjs
7544
+ //#region ../types/dist/canonical-hash-Ch5bSjFG.mjs
7545
7545
  var AUDIO_ENCODER_BY_CODEC = {
7546
7546
  opus: "libopus",
7547
7547
  aac: "aac",
@@ -7644,6 +7644,7 @@ function buildVideoArgs(video, outputArgs) {
7644
7644
  ];
7645
7645
  if (video.preset !== void 0) args.push("-preset", video.preset);
7646
7646
  if (video.tune !== void 0) args.push("-tune", video.tune);
7647
+ if (video.singleSlicePerFrame === true && video.encoder === "libx264") args.push("-x264-params", "sliced-threads=0");
7647
7648
  if (video.profile !== void 0) args.push("-profile:v", video.profile);
7648
7649
  if (video.level !== void 0) args.push("-level", video.level);
7649
7650
  if (video.pixelFormat !== void 0) args.push("-pix_fmt", video.pixelFormat);
@@ -7918,6 +7919,7 @@ function invocationFromEncodeProfile(input) {
7918
7919
  scale,
7919
7920
  ...v.preset !== void 0 ? { preset: v.preset } : {},
7920
7921
  ...v.tune !== void 0 ? { tune: v.tune } : {},
7922
+ ...v.singleSlicePerFrame !== void 0 ? { singleSlicePerFrame: v.singleSlicePerFrame } : {},
7921
7923
  ...v.profile !== void 0 ? { profile: v.profile } : {},
7922
7924
  ...v.level !== void 0 ? { level: v.level } : {},
7923
7925
  ...input.pixelFormat !== void 0 ? { pixelFormat: input.pixelFormat } : {},
@@ -8233,7 +8235,23 @@ var EncodeProfileSchema = object({
8233
8235
  "zerolatency",
8234
8236
  "film",
8235
8237
  "animation"
8236
- ]).optional()
8238
+ ]).optional(),
8239
+ /**
8240
+ * ONE slice per access unit.
8241
+ *
8242
+ * `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
8243
+ * the encoder as five NAL slices that share one RTP timestamp and carry one
8244
+ * marker bit. A libwebrtc depacketiser sees five frame-starts and one
8245
+ * frame-end per frame: the first pictures render and the video then freezes
8246
+ * for good while the audio, on its own plane, plays on. Measured on this hub
8247
+ * 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
8248
+ *
8249
+ * A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
8250
+ * `outputArgs` on purpose: an opaque array is part of the sharing key, so two
8251
+ * consumers meaning the same thing spelled differently would stop sharing one
8252
+ * child. Absent means "whatever the encoder does" — today's behaviour.
8253
+ */
8254
+ singleSlicePerFrame: boolean().optional()
8237
8255
  }),
8238
8256
  audio: union([literal("passthrough"), object({
8239
8257
  codec: _enum([
@@ -8283,7 +8301,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
8283
8301
  audio: "passthrough"
8284
8302
  };
8285
8303
  ({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
8286
- ({ ...BASE_LIVE_EGRESS_PROFILE });
8304
+ ({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
8287
8305
  /** VBV window for a consumer whose budget is enforced per second (HomeKit). */
8288
8306
  var RATE_CONTROL_TIGHT = {
8289
8307
  kind: "cbr",
@@ -8392,7 +8410,8 @@ function canonicalVideo(video) {
8392
8410
  gopFrames: video.gopFrames ?? -1,
8393
8411
  bf: video.bf ?? -1,
8394
8412
  preset: video.preset ?? UNSET,
8395
- tune: video.tune ?? UNSET
8413
+ tune: video.tune ?? UNSET,
8414
+ singleSlicePerFrame: video.singleSlicePerFrame === void 0 ? UNSET : String(video.singleSlicePerFrame)
8396
8415
  };
8397
8416
  }
8398
8417
  function canonicalAudio(audio) {
@@ -22523,13 +22542,109 @@ var SummariesQueryInput = object({
22523
22542
  deviceIds: array(number()).min(1),
22524
22543
  since: number().optional(),
22525
22544
  until: number().optional(),
22526
- limit: number().int().min(1).max(200).default(50)
22545
+ limit: number().int().min(1).max(200).default(50),
22546
+ /** The same member-wise filter {@link listRecentSummaries} takes — one
22547
+ * meaning of "dog" on every summary surface. */
22548
+ classes: array(string().min(1).max(60)).max(40).optional()
22527
22549
  });
22528
- var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
22529
22550
  var SummaryDetailSchema = object({
22530
22551
  summary: SummarySchema,
22531
- /** Member track ids, in absorption order. */
22532
- trackIds: array(string()).readonly()
22552
+ /** Members in absorption order, oldest join first. */
22553
+ members: array(object({
22554
+ trackId: string(),
22555
+ /**
22556
+ * The track's class at the time it JOINED, or `null` when it was unresolved
22557
+ * and the track no longer exists to fill it.
22558
+ *
22559
+ * The join, not the latest opinion: class voting can re-decide a track's
22560
+ * class afterwards, and a group's composition is the history of who came
22561
+ * together. A consumer counts these to badge a thumbnail — "two people and a
22562
+ * dog" — rather than being handed a second, denormalised tally that would
22563
+ * drift from the members it claims to describe.
22564
+ */
22565
+ className: string().nullable(),
22566
+ /** `primary` is the one member that carries the group's identity. */
22567
+ role: _enum([
22568
+ "primary",
22569
+ "sibling",
22570
+ "child"
22571
+ ]).nullable(),
22572
+ joinedAt: number(),
22573
+ /** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
22574
+ * at read time. Absent when nothing resolved, never an empty string. */
22575
+ label: string().optional(),
22576
+ /** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
22577
+ * recognised nobody, and absent for a member whose track has been pruned —
22578
+ * a thumbnail that names the wrong person is worse than one naming nobody. */
22579
+ subLabel: string().optional()
22580
+ })).readonly()
22581
+ });
22582
+ /**
22583
+ * What a LIST of groups carries: the envelope plus what it is MADE OF.
22584
+ *
22585
+ * Coarse on purpose — the operator's rule is "only the rough data on the list,
22586
+ * we extend when we notice we need more". Enough to draw the card ("two people
22587
+ * and a dog") and no more. The MEMBERS, their names and the per-member links
22588
+ * are on {@link getSummary}: shipping every member of every group so a client
22589
+ * can count them turns a page of two hundred groups into a thousand records to
22590
+ * draw two hundred badges.
22591
+ */
22592
+ var SummaryListItemSchema = object({
22593
+ summary: SummarySchema,
22594
+ /** Class counts, most numerous first; `className: null` is a member whose
22595
+ * class never resolved, counted so the counts add up to `memberCount`. */
22596
+ classes: array(object({
22597
+ className: string().nullable(),
22598
+ count: number().int().positive()
22599
+ })).readonly()
22600
+ });
22601
+ var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
22602
+ /**
22603
+ * The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
22604
+ *
22605
+ * The reel on the cameras page and the Events gallery both ride a cursor, so a
22606
+ * summaries feed that could only answer "the last N for these cameras"
22607
+ * (`listSummaries`) would make groups available in the timeline and nowhere
22608
+ * else. Two feeds with different ordering contracts would be two ideas of what
22609
+ * "newest" means, on one screen.
22610
+ */
22611
+ var RecentSummariesQueryInput = object({
22612
+ /** Devices to merge. An empty array yields an empty page. */
22613
+ deviceIds: array(number()),
22614
+ /** Window lower bound on `lastActiveAt` (inclusive). */
22615
+ since: number().optional(),
22616
+ /** Window upper bound on `lastActiveAt` (inclusive). */
22617
+ until: number().optional(),
22618
+ limit: number().int().min(1).max(500).default(100),
22619
+ /** Opaque continuation cursor from a previous page's `nextCursor`. */
22620
+ cursor: string().optional(),
22621
+ /**
22622
+ * Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
22623
+ * deliberately the same name: the events filter tree emits one list of ticked
22624
+ * taxonomy nodes, and a summaries feed that called it something else would
22625
+ * make the operator's one filter component produce two shapes.
22626
+ *
22627
+ * A question about the MEMBERS: a group matches when ANY of them does. "Show
22628
+ * me the arrivals with a dog" has to return the group of four people who had
22629
+ * one with them; a filter on the group's own fields could only ever answer
22630
+ * about its primary.
22631
+ *
22632
+ * Matched against all THREE tiers of a member — the class (`animal`), the
22633
+ * sub-class (`dog`) and the instance (a name, a plate) — because which tier a
22634
+ * ticked node lives on is the taxonomy's business, not the caller's. `dog` is
22635
+ * an event kind in the tree and a tier-1 label on an `animal` track; a filter
22636
+ * that read only the class would answer "animal" and never "dog".
22637
+ *
22638
+ * ABSENT or EMPTY means no filter — absent is not a selection of none.
22639
+ */
22640
+ classes: array(string().min(1).max(60)).max(40).optional()
22641
+ });
22642
+ var RecentSummariesPageSchema = object({
22643
+ /** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
22644
+ * {@link listSummaries} — one list shape, so a card renders the same
22645
+ * whichever feed drew it. */
22646
+ summaries: array(SummaryListItemSchema).readonly(),
22647
+ nextCursor: string().nullable()
22533
22648
  });
22534
22649
  var RecentTracksPageSchema = object({
22535
22650
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -22943,7 +23058,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
22943
23058
  classes: array(string()).optional(),
22944
23059
  /** See {@link ExcludeSourcesDoc}. */
22945
23060
  excludeSources: array(TrackSourceSchema).optional()
22946
- }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
23061
+ }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
22947
23062
  kind: "mutation",
22948
23063
  auth: "admin"
22949
23064
  }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({ deviceId: number() }), array(EventKindDescriptorSchema).readonly()), method(object({ deviceIds: array(number()).min(1).max(200) }), array(EventKindsForDeviceSchema).readonly()), method(object({
@@ -33194,7 +33309,29 @@ var LoggingSettingsPatchSchema = object({
33194
33309
  * disarmed the channels it did not mention would make the Levels page and
33195
33310
  * the Diagnostics page fight over the same value.
33196
33311
  */
33197
- channels: array(LogChannelWindowPatchSchema).readonly().optional()
33312
+ channels: array(LogChannelWindowPatchSchema).readonly().optional(),
33313
+ /**
33314
+ * How many days the analytics OPS LOG is kept — the audit trail of what
33315
+ * retention actually deleted.
33316
+ *
33317
+ * It lives HERE, on the logging document, and not on the analytics addon's
33318
+ * settings form, on the operator's instruction: every other log-ish window in
33319
+ * this system is configured through this one document, and a retention audit
33320
+ * configured somewhere else is a second place to look when the question is
33321
+ * "what happened to my data".
33322
+ *
33323
+ * That placement has a cost worth stating: this document ships in the
33324
+ * framework closure, so this knob needs a published `@camstack/server` while
33325
+ * the four windows beside it (D485) reach a node on `camstack deploy`.
33326
+ *
33327
+ * `retention-model.ts` argued this one must NOT follow a device window,
33328
+ * because the audit trail is the history of the SWEEP and not of the camera.
33329
+ * That argument stands and is untouched — what changes is that 30 days stops
33330
+ * being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
33331
+ * rather than 0-as-delete: an audit log truncated to nothing is precisely the
33332
+ * state in which the next 9.5 GiB leak cannot be explained.
33333
+ */
33334
+ opsLogRetentionDays: number().int().min(0).max(3650).optional()
33198
33335
  });
33199
33336
  /**
33200
33337
  * Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
@@ -33267,6 +33404,14 @@ var LoggingSettingsStateSchema = object({
33267
33404
  channels: array(LogChannelDescriptorSchema).readonly(),
33268
33405
  /** The channels ARMED right now, each with its deadline. */
33269
33406
  activeChannels: array(LogChannelWindowStateSchema).readonly(),
33407
+ /**
33408
+ * The ops-log window in days, as it is in force. `0` = kept forever.
33409
+ *
33410
+ * Reported rather than left to the caller's memory of what it wrote: this is
33411
+ * the value the analytics sweep will actually use, and an operator asking how
33412
+ * long their audit trail lives should not have to infer it from a default.
33413
+ */
33414
+ opsLogRetentionDays: number().int().min(0),
33270
33415
  persisted: boolean()
33271
33416
  });
33272
33417
  method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), method(_void(), FeatureManifestSchema), method(_void(), array(NetworkAddressSchema).readonly()), method(_void(), unknown().nullable(), { auth: "admin" }), method(record(string(), unknown()), _null(), {
@@ -37585,6 +37730,12 @@ Object.freeze({
37585
37730
  addonId: null,
37586
37731
  access: "view"
37587
37732
  },
37733
+ "pipelineAnalytics.listRecentSummaries": {
37734
+ capName: "pipeline-analytics",
37735
+ capScope: "device",
37736
+ addonId: null,
37737
+ access: "view"
37738
+ },
37588
37739
  "pipelineAnalytics.listRecentTracks": {
37589
37740
  capName: "pipeline-analytics",
37590
37741
  capScope: "device",
@@ -41412,6 +41563,11 @@ Object.freeze({
41412
41563
  form: "single",
41413
41564
  optional: true
41414
41565
  }],
41566
+ "pipelineAnalytics.listRecentSummaries": [{
41567
+ name: "deviceIds",
41568
+ form: "array",
41569
+ optional: false
41570
+ }],
41415
41571
  "pipelineAnalytics.listRecentTracks": [{
41416
41572
  name: "deviceIds",
41417
41573
  form: "array",
@@ -5346,7 +5346,7 @@ var ZodIssueCode = {
5346
5346
  var ZodFirstPartyTypeKind;
5347
5347
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5348
5348
  //#endregion
5349
- //#region ../types/dist/sleep-CnLyvg3w.mjs
5349
+ //#region ../types/dist/sleep-DBKu2-U5.mjs
5350
5350
  /**
5351
5351
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5352
5352
  * window to float samples (D455).
@@ -7541,7 +7541,7 @@ function sleep(ms) {
7541
7541
  return new Promise((resolve) => setTimeout(resolve, Math.max(0, ms)));
7542
7542
  }
7543
7543
  //#endregion
7544
- //#region ../types/dist/canonical-hash-rO1sRmEK.mjs
7544
+ //#region ../types/dist/canonical-hash-Ch5bSjFG.mjs
7545
7545
  var AUDIO_ENCODER_BY_CODEC = {
7546
7546
  opus: "libopus",
7547
7547
  aac: "aac",
@@ -7644,6 +7644,7 @@ function buildVideoArgs(video, outputArgs) {
7644
7644
  ];
7645
7645
  if (video.preset !== void 0) args.push("-preset", video.preset);
7646
7646
  if (video.tune !== void 0) args.push("-tune", video.tune);
7647
+ if (video.singleSlicePerFrame === true && video.encoder === "libx264") args.push("-x264-params", "sliced-threads=0");
7647
7648
  if (video.profile !== void 0) args.push("-profile:v", video.profile);
7648
7649
  if (video.level !== void 0) args.push("-level", video.level);
7649
7650
  if (video.pixelFormat !== void 0) args.push("-pix_fmt", video.pixelFormat);
@@ -7918,6 +7919,7 @@ function invocationFromEncodeProfile(input) {
7918
7919
  scale,
7919
7920
  ...v.preset !== void 0 ? { preset: v.preset } : {},
7920
7921
  ...v.tune !== void 0 ? { tune: v.tune } : {},
7922
+ ...v.singleSlicePerFrame !== void 0 ? { singleSlicePerFrame: v.singleSlicePerFrame } : {},
7921
7923
  ...v.profile !== void 0 ? { profile: v.profile } : {},
7922
7924
  ...v.level !== void 0 ? { level: v.level } : {},
7923
7925
  ...input.pixelFormat !== void 0 ? { pixelFormat: input.pixelFormat } : {},
@@ -8233,7 +8235,23 @@ var EncodeProfileSchema = object({
8233
8235
  "zerolatency",
8234
8236
  "film",
8235
8237
  "animation"
8236
- ]).optional()
8238
+ ]).optional(),
8239
+ /**
8240
+ * ONE slice per access unit.
8241
+ *
8242
+ * `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
8243
+ * the encoder as five NAL slices that share one RTP timestamp and carry one
8244
+ * marker bit. A libwebrtc depacketiser sees five frame-starts and one
8245
+ * frame-end per frame: the first pictures render and the video then freezes
8246
+ * for good while the audio, on its own plane, plays on. Measured on this hub
8247
+ * 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
8248
+ *
8249
+ * A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
8250
+ * `outputArgs` on purpose: an opaque array is part of the sharing key, so two
8251
+ * consumers meaning the same thing spelled differently would stop sharing one
8252
+ * child. Absent means "whatever the encoder does" — today's behaviour.
8253
+ */
8254
+ singleSlicePerFrame: boolean().optional()
8237
8255
  }),
8238
8256
  audio: union([literal("passthrough"), object({
8239
8257
  codec: _enum([
@@ -8283,7 +8301,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
8283
8301
  audio: "passthrough"
8284
8302
  };
8285
8303
  ({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
8286
- ({ ...BASE_LIVE_EGRESS_PROFILE });
8304
+ ({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
8287
8305
  /** VBV window for a consumer whose budget is enforced per second (HomeKit). */
8288
8306
  var RATE_CONTROL_TIGHT = {
8289
8307
  kind: "cbr",
@@ -8392,7 +8410,8 @@ function canonicalVideo(video) {
8392
8410
  gopFrames: video.gopFrames ?? -1,
8393
8411
  bf: video.bf ?? -1,
8394
8412
  preset: video.preset ?? UNSET,
8395
- tune: video.tune ?? UNSET
8413
+ tune: video.tune ?? UNSET,
8414
+ singleSlicePerFrame: video.singleSlicePerFrame === void 0 ? UNSET : String(video.singleSlicePerFrame)
8396
8415
  };
8397
8416
  }
8398
8417
  function canonicalAudio(audio) {
@@ -22523,13 +22542,109 @@ var SummariesQueryInput = object({
22523
22542
  deviceIds: array(number()).min(1),
22524
22543
  since: number().optional(),
22525
22544
  until: number().optional(),
22526
- limit: number().int().min(1).max(200).default(50)
22545
+ limit: number().int().min(1).max(200).default(50),
22546
+ /** The same member-wise filter {@link listRecentSummaries} takes — one
22547
+ * meaning of "dog" on every summary surface. */
22548
+ classes: array(string().min(1).max(60)).max(40).optional()
22527
22549
  });
22528
- var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
22529
22550
  var SummaryDetailSchema = object({
22530
22551
  summary: SummarySchema,
22531
- /** Member track ids, in absorption order. */
22532
- trackIds: array(string()).readonly()
22552
+ /** Members in absorption order, oldest join first. */
22553
+ members: array(object({
22554
+ trackId: string(),
22555
+ /**
22556
+ * The track's class at the time it JOINED, or `null` when it was unresolved
22557
+ * and the track no longer exists to fill it.
22558
+ *
22559
+ * The join, not the latest opinion: class voting can re-decide a track's
22560
+ * class afterwards, and a group's composition is the history of who came
22561
+ * together. A consumer counts these to badge a thumbnail — "two people and a
22562
+ * dog" — rather than being handed a second, denormalised tally that would
22563
+ * drift from the members it claims to describe.
22564
+ */
22565
+ className: string().nullable(),
22566
+ /** `primary` is the one member that carries the group's identity. */
22567
+ role: _enum([
22568
+ "primary",
22569
+ "sibling",
22570
+ "child"
22571
+ ]).nullable(),
22572
+ joinedAt: number(),
22573
+ /** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
22574
+ * at read time. Absent when nothing resolved, never an empty string. */
22575
+ label: string().optional(),
22576
+ /** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
22577
+ * recognised nobody, and absent for a member whose track has been pruned —
22578
+ * a thumbnail that names the wrong person is worse than one naming nobody. */
22579
+ subLabel: string().optional()
22580
+ })).readonly()
22581
+ });
22582
+ /**
22583
+ * What a LIST of groups carries: the envelope plus what it is MADE OF.
22584
+ *
22585
+ * Coarse on purpose — the operator's rule is "only the rough data on the list,
22586
+ * we extend when we notice we need more". Enough to draw the card ("two people
22587
+ * and a dog") and no more. The MEMBERS, their names and the per-member links
22588
+ * are on {@link getSummary}: shipping every member of every group so a client
22589
+ * can count them turns a page of two hundred groups into a thousand records to
22590
+ * draw two hundred badges.
22591
+ */
22592
+ var SummaryListItemSchema = object({
22593
+ summary: SummarySchema,
22594
+ /** Class counts, most numerous first; `className: null` is a member whose
22595
+ * class never resolved, counted so the counts add up to `memberCount`. */
22596
+ classes: array(object({
22597
+ className: string().nullable(),
22598
+ count: number().int().positive()
22599
+ })).readonly()
22600
+ });
22601
+ var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
22602
+ /**
22603
+ * The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
22604
+ *
22605
+ * The reel on the cameras page and the Events gallery both ride a cursor, so a
22606
+ * summaries feed that could only answer "the last N for these cameras"
22607
+ * (`listSummaries`) would make groups available in the timeline and nowhere
22608
+ * else. Two feeds with different ordering contracts would be two ideas of what
22609
+ * "newest" means, on one screen.
22610
+ */
22611
+ var RecentSummariesQueryInput = object({
22612
+ /** Devices to merge. An empty array yields an empty page. */
22613
+ deviceIds: array(number()),
22614
+ /** Window lower bound on `lastActiveAt` (inclusive). */
22615
+ since: number().optional(),
22616
+ /** Window upper bound on `lastActiveAt` (inclusive). */
22617
+ until: number().optional(),
22618
+ limit: number().int().min(1).max(500).default(100),
22619
+ /** Opaque continuation cursor from a previous page's `nextCursor`. */
22620
+ cursor: string().optional(),
22621
+ /**
22622
+ * Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
22623
+ * deliberately the same name: the events filter tree emits one list of ticked
22624
+ * taxonomy nodes, and a summaries feed that called it something else would
22625
+ * make the operator's one filter component produce two shapes.
22626
+ *
22627
+ * A question about the MEMBERS: a group matches when ANY of them does. "Show
22628
+ * me the arrivals with a dog" has to return the group of four people who had
22629
+ * one with them; a filter on the group's own fields could only ever answer
22630
+ * about its primary.
22631
+ *
22632
+ * Matched against all THREE tiers of a member — the class (`animal`), the
22633
+ * sub-class (`dog`) and the instance (a name, a plate) — because which tier a
22634
+ * ticked node lives on is the taxonomy's business, not the caller's. `dog` is
22635
+ * an event kind in the tree and a tier-1 label on an `animal` track; a filter
22636
+ * that read only the class would answer "animal" and never "dog".
22637
+ *
22638
+ * ABSENT or EMPTY means no filter — absent is not a selection of none.
22639
+ */
22640
+ classes: array(string().min(1).max(60)).max(40).optional()
22641
+ });
22642
+ var RecentSummariesPageSchema = object({
22643
+ /** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
22644
+ * {@link listSummaries} — one list shape, so a card renders the same
22645
+ * whichever feed drew it. */
22646
+ summaries: array(SummaryListItemSchema).readonly(),
22647
+ nextCursor: string().nullable()
22533
22648
  });
22534
22649
  var RecentTracksPageSchema = object({
22535
22650
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -22943,7 +23058,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
22943
23058
  classes: array(string()).optional(),
22944
23059
  /** See {@link ExcludeSourcesDoc}. */
22945
23060
  excludeSources: array(TrackSourceSchema).optional()
22946
- }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
23061
+ }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
22947
23062
  kind: "mutation",
22948
23063
  auth: "admin"
22949
23064
  }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({ deviceId: number() }), array(EventKindDescriptorSchema).readonly()), method(object({ deviceIds: array(number()).min(1).max(200) }), array(EventKindsForDeviceSchema).readonly()), method(object({
@@ -33194,7 +33309,29 @@ var LoggingSettingsPatchSchema = object({
33194
33309
  * disarmed the channels it did not mention would make the Levels page and
33195
33310
  * the Diagnostics page fight over the same value.
33196
33311
  */
33197
- channels: array(LogChannelWindowPatchSchema).readonly().optional()
33312
+ channels: array(LogChannelWindowPatchSchema).readonly().optional(),
33313
+ /**
33314
+ * How many days the analytics OPS LOG is kept — the audit trail of what
33315
+ * retention actually deleted.
33316
+ *
33317
+ * It lives HERE, on the logging document, and not on the analytics addon's
33318
+ * settings form, on the operator's instruction: every other log-ish window in
33319
+ * this system is configured through this one document, and a retention audit
33320
+ * configured somewhere else is a second place to look when the question is
33321
+ * "what happened to my data".
33322
+ *
33323
+ * That placement has a cost worth stating: this document ships in the
33324
+ * framework closure, so this knob needs a published `@camstack/server` while
33325
+ * the four windows beside it (D485) reach a node on `camstack deploy`.
33326
+ *
33327
+ * `retention-model.ts` argued this one must NOT follow a device window,
33328
+ * because the audit trail is the history of the SWEEP and not of the camera.
33329
+ * That argument stands and is untouched — what changes is that 30 days stops
33330
+ * being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
33331
+ * rather than 0-as-delete: an audit log truncated to nothing is precisely the
33332
+ * state in which the next 9.5 GiB leak cannot be explained.
33333
+ */
33334
+ opsLogRetentionDays: number().int().min(0).max(3650).optional()
33198
33335
  });
33199
33336
  /**
33200
33337
  * Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
@@ -33267,6 +33404,14 @@ var LoggingSettingsStateSchema = object({
33267
33404
  channels: array(LogChannelDescriptorSchema).readonly(),
33268
33405
  /** The channels ARMED right now, each with its deadline. */
33269
33406
  activeChannels: array(LogChannelWindowStateSchema).readonly(),
33407
+ /**
33408
+ * The ops-log window in days, as it is in force. `0` = kept forever.
33409
+ *
33410
+ * Reported rather than left to the caller's memory of what it wrote: this is
33411
+ * the value the analytics sweep will actually use, and an operator asking how
33412
+ * long their audit trail lives should not have to infer it from a default.
33413
+ */
33414
+ opsLogRetentionDays: number().int().min(0),
33270
33415
  persisted: boolean()
33271
33416
  });
33272
33417
  method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), method(_void(), FeatureManifestSchema), method(_void(), array(NetworkAddressSchema).readonly()), method(_void(), unknown().nullable(), { auth: "admin" }), method(record(string(), unknown()), _null(), {
@@ -37585,6 +37730,12 @@ Object.freeze({
37585
37730
  addonId: null,
37586
37731
  access: "view"
37587
37732
  },
37733
+ "pipelineAnalytics.listRecentSummaries": {
37734
+ capName: "pipeline-analytics",
37735
+ capScope: "device",
37736
+ addonId: null,
37737
+ access: "view"
37738
+ },
37588
37739
  "pipelineAnalytics.listRecentTracks": {
37589
37740
  capName: "pipeline-analytics",
37590
37741
  capScope: "device",
@@ -41412,6 +41563,11 @@ Object.freeze({
41412
41563
  form: "single",
41413
41564
  optional: true
41414
41565
  }],
41566
+ "pipelineAnalytics.listRecentSummaries": [{
41567
+ name: "deviceIds",
41568
+ form: "array",
41569
+ optional: false
41570
+ }],
41415
41571
  "pipelineAnalytics.listRecentTracks": [{
41416
41572
  name: "deviceIds",
41417
41573
  form: "array",
@@ -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-BGdDektN.js");
5
+ const require_dist = require("../dist-Dwhv3eOj.js");
6
6
  const require_lazy_sharp = require("../lazy-sharp-BuwKlQLR.js");
7
7
  let node_fs = require("node:fs");
8
8
  let node_path = require("node:path");
@@ -1,4 +1,4 @@
1
- import { Gt as BaseAddon, Jt as DeviceType, Q as evaluateZoneRules, Qt as hydrateSchema, mt as motionDetectionCapability } from "../dist-d1K9t4mU.mjs";
1
+ import { Gt as BaseAddon, Jt as DeviceType, Q as evaluateZoneRules, Qt as hydrateSchema, mt as motionDetectionCapability } from "../dist-Dcp-eVbN.mjs";
2
2
  import { t as getSharp } from "../lazy-sharp-DXsqwpph.mjs";
3
3
  import { readFileSync } from "node:fs";
4
4
  import { join } from "node:path";
@@ -1,5 +1,5 @@
1
1
  const require_chunk = require("./chunk-emK7D4bc.js");
2
- const require_dist = require("./dist-BGdDektN.js");
2
+ const require_dist = require("./dist-Dwhv3eOj.js");
3
3
  let node_crypto = require("node:crypto");
4
4
  let node_fs = require("node:fs");
5
5
  node_fs = require_chunk.__toESM(node_fs, 1);
@@ -1,4 +1,4 @@
1
- import { Bt as Fmp4BoxSplitter, Rt as errMsg, Ut as isSoftwareDecode, Vt as buildFfmpegArgs } from "./dist-d1K9t4mU.mjs";
1
+ import { Bt as Fmp4BoxSplitter, Rt as errMsg, Ut as isSoftwareDecode, Vt as buildFfmpegArgs } from "./dist-Dcp-eVbN.mjs";
2
2
  import { randomUUID } from "node:crypto";
3
3
  import { realpathSync } from "node:fs";
4
4
  import path from "node:path";
@@ -3,9 +3,9 @@ Object.defineProperties(exports, {
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
5
  const require_chunk = require("../chunk-emK7D4bc.js");
6
- const require_dist = require("../dist-BGdDektN.js");
7
- const require_node = require("../node-CQ5yofm2.js");
8
- const require_default_detection_model = require("../default-detection-model-C1etqCJk.js");
6
+ const require_dist = require("../dist-Dwhv3eOj.js");
7
+ const require_node = require("../node-CSDLSs7t.js");
8
+ const require_default_detection_model = require("../default-detection-model-D0Em2AXV.js");
9
9
  const require_worker_protocol = require("../worker-protocol-B2MfQLlu.js");
10
10
  const require_hub_hostname = require("../hub-hostname-DAJXlOgV.js");
11
11
  const require_lazy_sharp = require("../lazy-sharp-BuwKlQLR.js");