camstack 1.2.145 → 1.2.146

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.
@@ -14522,7 +14522,7 @@ function date4(params) {
14522
14522
  // ../../node_modules/zod/v4/classic/external.js
14523
14523
  config(en_default());
14524
14524
 
14525
- // ../types/dist/sleep-CnLyvg3w.mjs
14525
+ // ../types/dist/sleep-DBKu2-U5.mjs
14526
14526
  var AUDIO_CHUNK_FORMATS = [
14527
14527
  "f32le",
14528
14528
  "pcmu",
@@ -15384,7 +15384,7 @@ function sleep(ms) {
15384
15384
  return new Promise((resolve) => setTimeout(resolve, Math.max(0, ms)));
15385
15385
  }
15386
15386
 
15387
- // ../types/dist/canonical-hash-rO1sRmEK.mjs
15387
+ // ../types/dist/canonical-hash-Ch5bSjFG.mjs
15388
15388
  import { createHash } from "crypto";
15389
15389
  var DEFAULT_MAX_UNIT_BYTES = 16 * 1024 * 1024;
15390
15390
 
@@ -15447,7 +15447,23 @@ var VideoEncodeSchema = external_exports.object({
15447
15447
  "zerolatency",
15448
15448
  "film",
15449
15449
  "animation"
15450
- ]).optional()
15450
+ ]).optional(),
15451
+ /**
15452
+ * ONE slice per access unit.
15453
+ *
15454
+ * `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
15455
+ * the encoder as five NAL slices that share one RTP timestamp and carry one
15456
+ * marker bit. A libwebrtc depacketiser sees five frame-starts and one
15457
+ * frame-end per frame: the first pictures render and the video then freezes
15458
+ * for good while the audio, on its own plane, plays on. Measured on this hub
15459
+ * 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
15460
+ *
15461
+ * A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
15462
+ * `outputArgs` on purpose: an opaque array is part of the sharing key, so two
15463
+ * consumers meaning the same thing spelled differently would stop sharing one
15464
+ * child. Absent means "whatever the encoder does" — today's behaviour.
15465
+ */
15466
+ singleSlicePerFrame: external_exports.boolean().optional()
15451
15467
  });
15452
15468
  var AudioEncodeSchema = external_exports.union([external_exports.literal("passthrough"), external_exports.object({
15453
15469
  codec: external_exports.enum([
@@ -15506,7 +15522,11 @@ var WEBRTC_EGRESS_PROFILE = {
15506
15522
  };
15507
15523
  var ALEXA_EGRESS_PROFILE = {
15508
15524
  ...BASE_LIVE_EGRESS_PROFILE,
15509
- audio: { codec: "opus" }
15525
+ audio: { codec: "opus" },
15526
+ video: {
15527
+ ...BASE_LIVE_EGRESS_PROFILE.video,
15528
+ singleSlicePerFrame: true
15529
+ }
15510
15530
  };
15511
15531
  var wiringProbeKindSchema = external_exports.enum([
15512
15532
  "singleton",
@@ -27320,13 +27340,91 @@ var SummariesQueryInput = external_exports.object({
27320
27340
  deviceIds: external_exports.array(external_exports.number()).min(1),
27321
27341
  since: external_exports.number().optional(),
27322
27342
  until: external_exports.number().optional(),
27323
- limit: external_exports.number().int().min(1).max(200).default(50)
27343
+ limit: external_exports.number().int().min(1).max(200).default(50),
27344
+ /** The same member-wise filter {@link listRecentSummaries} takes — one
27345
+ * meaning of "dog" on every summary surface. */
27346
+ classes: external_exports.array(external_exports.string().min(1).max(60)).max(40).optional()
27347
+ });
27348
+ var SummaryMemberSchema = external_exports.object({
27349
+ trackId: external_exports.string(),
27350
+ /**
27351
+ * The track's class at the time it JOINED, or `null` when it was unresolved
27352
+ * and the track no longer exists to fill it.
27353
+ *
27354
+ * The join, not the latest opinion: class voting can re-decide a track's
27355
+ * class afterwards, and a group's composition is the history of who came
27356
+ * together. A consumer counts these to badge a thumbnail — "two people and a
27357
+ * dog" — rather than being handed a second, denormalised tally that would
27358
+ * drift from the members it claims to describe.
27359
+ */
27360
+ className: external_exports.string().nullable(),
27361
+ /** `primary` is the one member that carries the group's identity. */
27362
+ role: external_exports.enum([
27363
+ "primary",
27364
+ "sibling",
27365
+ "child"
27366
+ ]).nullable(),
27367
+ joinedAt: external_exports.number(),
27368
+ /** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
27369
+ * at read time. Absent when nothing resolved, never an empty string. */
27370
+ label: external_exports.string().optional(),
27371
+ /** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
27372
+ * recognised nobody, and absent for a member whose track has been pruned —
27373
+ * a thumbnail that names the wrong person is worse than one naming nobody. */
27374
+ subLabel: external_exports.string().optional()
27324
27375
  });
27325
- var SummariesPageSchema = external_exports.object({ summaries: external_exports.array(SummarySchema).readonly() });
27326
27376
  var SummaryDetailSchema = external_exports.object({
27327
27377
  summary: SummarySchema,
27328
- /** Member track ids, in absorption order. */
27329
- trackIds: external_exports.array(external_exports.string()).readonly()
27378
+ /** Members in absorption order, oldest join first. */
27379
+ members: external_exports.array(SummaryMemberSchema).readonly()
27380
+ });
27381
+ var SummaryListItemSchema = external_exports.object({
27382
+ summary: SummarySchema,
27383
+ /** Class counts, most numerous first; `className: null` is a member whose
27384
+ * class never resolved, counted so the counts add up to `memberCount`. */
27385
+ classes: external_exports.array(external_exports.object({
27386
+ className: external_exports.string().nullable(),
27387
+ count: external_exports.number().int().positive()
27388
+ })).readonly()
27389
+ });
27390
+ var SummariesPageSchema = external_exports.object({ summaries: external_exports.array(SummaryListItemSchema).readonly() });
27391
+ var RecentSummariesQueryInput = external_exports.object({
27392
+ /** Devices to merge. An empty array yields an empty page. */
27393
+ deviceIds: external_exports.array(external_exports.number()),
27394
+ /** Window lower bound on `lastActiveAt` (inclusive). */
27395
+ since: external_exports.number().optional(),
27396
+ /** Window upper bound on `lastActiveAt` (inclusive). */
27397
+ until: external_exports.number().optional(),
27398
+ limit: external_exports.number().int().min(1).max(500).default(100),
27399
+ /** Opaque continuation cursor from a previous page's `nextCursor`. */
27400
+ cursor: external_exports.string().optional(),
27401
+ /**
27402
+ * Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
27403
+ * deliberately the same name: the events filter tree emits one list of ticked
27404
+ * taxonomy nodes, and a summaries feed that called it something else would
27405
+ * make the operator's one filter component produce two shapes.
27406
+ *
27407
+ * A question about the MEMBERS: a group matches when ANY of them does. "Show
27408
+ * me the arrivals with a dog" has to return the group of four people who had
27409
+ * one with them; a filter on the group's own fields could only ever answer
27410
+ * about its primary.
27411
+ *
27412
+ * Matched against all THREE tiers of a member — the class (`animal`), the
27413
+ * sub-class (`dog`) and the instance (a name, a plate) — because which tier a
27414
+ * ticked node lives on is the taxonomy's business, not the caller's. `dog` is
27415
+ * an event kind in the tree and a tier-1 label on an `animal` track; a filter
27416
+ * that read only the class would answer "animal" and never "dog".
27417
+ *
27418
+ * ABSENT or EMPTY means no filter — absent is not a selection of none.
27419
+ */
27420
+ classes: external_exports.array(external_exports.string().min(1).max(60)).max(40).optional()
27421
+ });
27422
+ var RecentSummariesPageSchema = external_exports.object({
27423
+ /** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
27424
+ * {@link listSummaries} — one list shape, so a card renders the same
27425
+ * whichever feed drew it. */
27426
+ summaries: external_exports.array(SummaryListItemSchema).readonly(),
27427
+ nextCursor: external_exports.string().nullable()
27330
27428
  });
27331
27429
  var RecentTracksPageSchema = external_exports.object({
27332
27430
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -27678,6 +27776,11 @@ var pipelineAnalyticsCapability = {
27678
27776
  listRecentTracks: method(RecentTracksQueryInput, RecentTracksPageSchema),
27679
27777
  /** Newest first by `openedAt`, for a camera set, inside an optional window. */
27680
27778
  listSummaries: method(SummariesQueryInput, SummariesPageSchema),
27779
+ /**
27780
+ * The PAGED feed — the reel and the Events gallery. Same cursor contract as
27781
+ * {@link listRecentTracks}, so one screen cannot hold two ideas of newest.
27782
+ */
27783
+ listRecentSummaries: method(RecentSummariesQueryInput, RecentSummariesPageSchema),
27681
27784
  /** One summary with its member track ids; `null` for an id nobody wrote. */
27682
27785
  getSummary: method(external_exports.object({ id: external_exports.string() }), SummaryDetailSchema.nullable()),
27683
27786
  clearTracks: method(external_exports.object({ deviceId: external_exports.number() }), external_exports.void(), {
@@ -39867,7 +39970,29 @@ var LoggingSettingsPatchSchema = external_exports.object({
39867
39970
  * disarmed the channels it did not mention would make the Levels page and
39868
39971
  * the Diagnostics page fight over the same value.
39869
39972
  */
39870
- channels: external_exports.array(LogChannelWindowPatchSchema).readonly().optional()
39973
+ channels: external_exports.array(LogChannelWindowPatchSchema).readonly().optional(),
39974
+ /**
39975
+ * How many days the analytics OPS LOG is kept — the audit trail of what
39976
+ * retention actually deleted.
39977
+ *
39978
+ * It lives HERE, on the logging document, and not on the analytics addon's
39979
+ * settings form, on the operator's instruction: every other log-ish window in
39980
+ * this system is configured through this one document, and a retention audit
39981
+ * configured somewhere else is a second place to look when the question is
39982
+ * "what happened to my data".
39983
+ *
39984
+ * That placement has a cost worth stating: this document ships in the
39985
+ * framework closure, so this knob needs a published `@camstack/server` while
39986
+ * the four windows beside it (D485) reach a node on `camstack deploy`.
39987
+ *
39988
+ * `retention-model.ts` argued this one must NOT follow a device window,
39989
+ * because the audit trail is the history of the SWEEP and not of the camera.
39990
+ * That argument stands and is untouched — what changes is that 30 days stops
39991
+ * being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
39992
+ * rather than 0-as-delete: an audit log truncated to nothing is precisely the
39993
+ * state in which the next 9.5 GiB leak cannot be explained.
39994
+ */
39995
+ opsLogRetentionDays: external_exports.number().int().min(0).max(3650).optional()
39871
39996
  });
39872
39997
  var ReportedLoadContributionSchema = LoadContributionSchema.extend({ addonId: external_exports.string() });
39873
39998
  var ReportedFailureContributionSchema = FailureContributionSchema.extend({ addonId: external_exports.string() });
@@ -39906,6 +40031,14 @@ var LoggingSettingsStateSchema = external_exports.object({
39906
40031
  channels: external_exports.array(LogChannelDescriptorSchema).readonly(),
39907
40032
  /** The channels ARMED right now, each with its deadline. */
39908
40033
  activeChannels: external_exports.array(LogChannelWindowStateSchema).readonly(),
40034
+ /**
40035
+ * The ops-log window in days, as it is in force. `0` = kept forever.
40036
+ *
40037
+ * Reported rather than left to the caller's memory of what it wrote: this is
40038
+ * the value the analytics sweep will actually use, and an operator asking how
40039
+ * long their audit trail lives should not have to infer it from a default.
40040
+ */
40041
+ opsLogRetentionDays: external_exports.number().int().min(0),
39909
40042
  persisted: external_exports.boolean()
39910
40043
  });
39911
40044
  var systemCapability = {
@@ -44435,6 +44568,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
44435
44568
  addonId: null,
44436
44569
  access: "view"
44437
44570
  },
44571
+ "pipelineAnalytics.listRecentSummaries": {
44572
+ capName: "pipeline-analytics",
44573
+ capScope: "device",
44574
+ addonId: null,
44575
+ access: "view"
44576
+ },
44438
44577
  "pipelineAnalytics.listRecentTracks": {
44439
44578
  capName: "pipeline-analytics",
44440
44579
  capScope: "device",
@@ -48262,6 +48401,11 @@ var METHOD_DEVICE_SELECTORS = Object.freeze({
48262
48401
  form: "single",
48263
48402
  optional: true
48264
48403
  }],
48404
+ "pipelineAnalytics.listRecentSummaries": [{
48405
+ name: "deviceIds",
48406
+ form: "array",
48407
+ optional: false
48408
+ }],
48265
48409
  "pipelineAnalytics.listRecentTracks": [{
48266
48410
  name: "deviceIds",
48267
48411
  form: "array",
package/dist/cli.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  runDiscover
4
- } from "./chunk-W67ATFOA.js";
4
+ } from "./chunk-F3AFDVKF.js";
5
5
  import "./chunk-LMMQX4CK.js";
6
6
 
7
7
  // src/cli.ts
@@ -38,7 +38,7 @@ async function runServe(args) {
38
38
  ...typeof values.data === "string" ? { data: values.data } : {}
39
39
  };
40
40
  Object.assign(process.env, buildServeEnv(opts));
41
- await import("./launcher-LICFWRGL.js");
41
+ await import("./launcher-L5YPTDNE.js");
42
42
  }
43
43
 
44
44
  // src/commands/agent.ts
@@ -83,7 +83,7 @@ async function runAgent(args) {
83
83
  ...typeof values.port === "string" ? { port: values.port } : {}
84
84
  };
85
85
  Object.assign(process.env, buildAgentEnv(opts));
86
- await import("./launcher-LICFWRGL.js");
86
+ await import("./launcher-L5YPTDNE.js");
87
87
  }
88
88
 
89
89
  // src/commands/setup.ts
@@ -1140,7 +1140,7 @@ function isUnknown(_value) {
1140
1140
  return true;
1141
1141
  }
1142
1142
  async function resolveServerInteractive(presetNamespace) {
1143
- const { discoverNodes, resolveHubFromDiscovered, filterHubNodes, DEFAULT_HUB_HTTPS_PORT } = await import("./discover-CPDHVQWB.js");
1143
+ const { discoverNodes, resolveHubFromDiscovered, filterHubNodes, DEFAULT_HUB_HTTPS_PORT } = await import("./discover-CLO7P5ID.js");
1144
1144
  if (presetNamespace) {
1145
1145
  const spinner4 = clack.spinner();
1146
1146
  spinner4.start(`Discovering hub on LAN (namespace "${presetNamespace}")`);
@@ -5,7 +5,7 @@ import {
5
5
  filterHubNodes,
6
6
  resolveHubFromDiscovered,
7
7
  runDiscover
8
- } from "./chunk-W67ATFOA.js";
8
+ } from "./chunk-F3AFDVKF.js";
9
9
  import "./chunk-LMMQX4CK.js";
10
10
  export {
11
11
  DEFAULT_HUB_HTTPS_PORT,