@camstack/addon-agent-ui 1.2.105 → 1.2.106

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 (2) hide show
  1. package/dist/addon.js +163 -10
  2. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -5347,7 +5347,7 @@ var ZodIssueCode = {
5347
5347
  var ZodFirstPartyTypeKind;
5348
5348
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5349
5349
  //#endregion
5350
- //#region ../types/dist/sleep-CnLyvg3w.mjs
5350
+ //#region ../types/dist/sleep-DBKu2-U5.mjs
5351
5351
  /**
5352
5352
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5353
5353
  * window to float samples (D455).
@@ -7378,7 +7378,23 @@ var EncodeProfileSchema = object({
7378
7378
  "zerolatency",
7379
7379
  "film",
7380
7380
  "animation"
7381
- ]).optional()
7381
+ ]).optional(),
7382
+ /**
7383
+ * ONE slice per access unit.
7384
+ *
7385
+ * `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
7386
+ * the encoder as five NAL slices that share one RTP timestamp and carry one
7387
+ * marker bit. A libwebrtc depacketiser sees five frame-starts and one
7388
+ * frame-end per frame: the first pictures render and the video then freezes
7389
+ * for good while the audio, on its own plane, plays on. Measured on this hub
7390
+ * 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
7391
+ *
7392
+ * A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
7393
+ * `outputArgs` on purpose: an opaque array is part of the sharing key, so two
7394
+ * consumers meaning the same thing spelled differently would stop sharing one
7395
+ * child. Absent means "whatever the encoder does" — today's behaviour.
7396
+ */
7397
+ singleSlicePerFrame: boolean().optional()
7382
7398
  }),
7383
7399
  audio: union([literal("passthrough"), object({
7384
7400
  codec: _enum([
@@ -7428,7 +7444,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
7428
7444
  audio: "passthrough"
7429
7445
  };
7430
7446
  ({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
7431
- ({ ...BASE_LIVE_EGRESS_PROFILE });
7447
+ ({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
7432
7448
  /**
7433
7449
  * Deep wiring healthcheck — snapshot of active reachability probes across
7434
7450
  * every declared capability + widget of every installed plugin, on every
@@ -19765,13 +19781,109 @@ var SummariesQueryInput = object({
19765
19781
  deviceIds: array(number()).min(1),
19766
19782
  since: number().optional(),
19767
19783
  until: number().optional(),
19768
- limit: number().int().min(1).max(200).default(50)
19784
+ limit: number().int().min(1).max(200).default(50),
19785
+ /** The same member-wise filter {@link listRecentSummaries} takes — one
19786
+ * meaning of "dog" on every summary surface. */
19787
+ classes: array(string().min(1).max(60)).max(40).optional()
19769
19788
  });
19770
- var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
19771
19789
  var SummaryDetailSchema = object({
19772
19790
  summary: SummarySchema,
19773
- /** Member track ids, in absorption order. */
19774
- trackIds: array(string()).readonly()
19791
+ /** Members in absorption order, oldest join first. */
19792
+ members: array(object({
19793
+ trackId: string(),
19794
+ /**
19795
+ * The track's class at the time it JOINED, or `null` when it was unresolved
19796
+ * and the track no longer exists to fill it.
19797
+ *
19798
+ * The join, not the latest opinion: class voting can re-decide a track's
19799
+ * class afterwards, and a group's composition is the history of who came
19800
+ * together. A consumer counts these to badge a thumbnail — "two people and a
19801
+ * dog" — rather than being handed a second, denormalised tally that would
19802
+ * drift from the members it claims to describe.
19803
+ */
19804
+ className: string().nullable(),
19805
+ /** `primary` is the one member that carries the group's identity. */
19806
+ role: _enum([
19807
+ "primary",
19808
+ "sibling",
19809
+ "child"
19810
+ ]).nullable(),
19811
+ joinedAt: number(),
19812
+ /** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
19813
+ * at read time. Absent when nothing resolved, never an empty string. */
19814
+ label: string().optional(),
19815
+ /** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
19816
+ * recognised nobody, and absent for a member whose track has been pruned —
19817
+ * a thumbnail that names the wrong person is worse than one naming nobody. */
19818
+ subLabel: string().optional()
19819
+ })).readonly()
19820
+ });
19821
+ /**
19822
+ * What a LIST of groups carries: the envelope plus what it is MADE OF.
19823
+ *
19824
+ * Coarse on purpose — the operator's rule is "only the rough data on the list,
19825
+ * we extend when we notice we need more". Enough to draw the card ("two people
19826
+ * and a dog") and no more. The MEMBERS, their names and the per-member links
19827
+ * are on {@link getSummary}: shipping every member of every group so a client
19828
+ * can count them turns a page of two hundred groups into a thousand records to
19829
+ * draw two hundred badges.
19830
+ */
19831
+ var SummaryListItemSchema = object({
19832
+ summary: SummarySchema,
19833
+ /** Class counts, most numerous first; `className: null` is a member whose
19834
+ * class never resolved, counted so the counts add up to `memberCount`. */
19835
+ classes: array(object({
19836
+ className: string().nullable(),
19837
+ count: number().int().positive()
19838
+ })).readonly()
19839
+ });
19840
+ var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
19841
+ /**
19842
+ * The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
19843
+ *
19844
+ * The reel on the cameras page and the Events gallery both ride a cursor, so a
19845
+ * summaries feed that could only answer "the last N for these cameras"
19846
+ * (`listSummaries`) would make groups available in the timeline and nowhere
19847
+ * else. Two feeds with different ordering contracts would be two ideas of what
19848
+ * "newest" means, on one screen.
19849
+ */
19850
+ var RecentSummariesQueryInput = object({
19851
+ /** Devices to merge. An empty array yields an empty page. */
19852
+ deviceIds: array(number()),
19853
+ /** Window lower bound on `lastActiveAt` (inclusive). */
19854
+ since: number().optional(),
19855
+ /** Window upper bound on `lastActiveAt` (inclusive). */
19856
+ until: number().optional(),
19857
+ limit: number().int().min(1).max(500).default(100),
19858
+ /** Opaque continuation cursor from a previous page's `nextCursor`. */
19859
+ cursor: string().optional(),
19860
+ /**
19861
+ * Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
19862
+ * deliberately the same name: the events filter tree emits one list of ticked
19863
+ * taxonomy nodes, and a summaries feed that called it something else would
19864
+ * make the operator's one filter component produce two shapes.
19865
+ *
19866
+ * A question about the MEMBERS: a group matches when ANY of them does. "Show
19867
+ * me the arrivals with a dog" has to return the group of four people who had
19868
+ * one with them; a filter on the group's own fields could only ever answer
19869
+ * about its primary.
19870
+ *
19871
+ * Matched against all THREE tiers of a member — the class (`animal`), the
19872
+ * sub-class (`dog`) and the instance (a name, a plate) — because which tier a
19873
+ * ticked node lives on is the taxonomy's business, not the caller's. `dog` is
19874
+ * an event kind in the tree and a tier-1 label on an `animal` track; a filter
19875
+ * that read only the class would answer "animal" and never "dog".
19876
+ *
19877
+ * ABSENT or EMPTY means no filter — absent is not a selection of none.
19878
+ */
19879
+ classes: array(string().min(1).max(60)).max(40).optional()
19880
+ });
19881
+ var RecentSummariesPageSchema = object({
19882
+ /** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
19883
+ * {@link listSummaries} — one list shape, so a card renders the same
19884
+ * whichever feed drew it. */
19885
+ summaries: array(SummaryListItemSchema).readonly(),
19886
+ nextCursor: string().nullable()
19775
19887
  });
19776
19888
  var RecentTracksPageSchema = object({
19777
19889
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -20185,7 +20297,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
20185
20297
  classes: array(string()).optional(),
20186
20298
  /** See {@link ExcludeSourcesDoc}. */
20187
20299
  excludeSources: array(TrackSourceSchema).optional()
20188
- }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
20300
+ }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
20189
20301
  kind: "mutation",
20190
20302
  auth: "admin"
20191
20303
  }), 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({
@@ -29791,7 +29903,29 @@ var LoggingSettingsPatchSchema = object({
29791
29903
  * disarmed the channels it did not mention would make the Levels page and
29792
29904
  * the Diagnostics page fight over the same value.
29793
29905
  */
29794
- channels: array(LogChannelWindowPatchSchema).readonly().optional()
29906
+ channels: array(LogChannelWindowPatchSchema).readonly().optional(),
29907
+ /**
29908
+ * How many days the analytics OPS LOG is kept — the audit trail of what
29909
+ * retention actually deleted.
29910
+ *
29911
+ * It lives HERE, on the logging document, and not on the analytics addon's
29912
+ * settings form, on the operator's instruction: every other log-ish window in
29913
+ * this system is configured through this one document, and a retention audit
29914
+ * configured somewhere else is a second place to look when the question is
29915
+ * "what happened to my data".
29916
+ *
29917
+ * That placement has a cost worth stating: this document ships in the
29918
+ * framework closure, so this knob needs a published `@camstack/server` while
29919
+ * the four windows beside it (D485) reach a node on `camstack deploy`.
29920
+ *
29921
+ * `retention-model.ts` argued this one must NOT follow a device window,
29922
+ * because the audit trail is the history of the SWEEP and not of the camera.
29923
+ * That argument stands and is untouched — what changes is that 30 days stops
29924
+ * being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
29925
+ * rather than 0-as-delete: an audit log truncated to nothing is precisely the
29926
+ * state in which the next 9.5 GiB leak cannot be explained.
29927
+ */
29928
+ opsLogRetentionDays: number().int().min(0).max(3650).optional()
29795
29929
  });
29796
29930
  /**
29797
29931
  * Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
@@ -29864,6 +29998,14 @@ var LoggingSettingsStateSchema = object({
29864
29998
  channels: array(LogChannelDescriptorSchema).readonly(),
29865
29999
  /** The channels ARMED right now, each with its deadline. */
29866
30000
  activeChannels: array(LogChannelWindowStateSchema).readonly(),
30001
+ /**
30002
+ * The ops-log window in days, as it is in force. `0` = kept forever.
30003
+ *
30004
+ * Reported rather than left to the caller's memory of what it wrote: this is
30005
+ * the value the analytics sweep will actually use, and an operator asking how
30006
+ * long their audit trail lives should not have to infer it from a default.
30007
+ */
30008
+ opsLogRetentionDays: number().int().min(0),
29867
30009
  persisted: boolean()
29868
30010
  });
29869
30011
  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(), {
@@ -34023,6 +34165,12 @@ Object.freeze({
34023
34165
  addonId: null,
34024
34166
  access: "view"
34025
34167
  },
34168
+ "pipelineAnalytics.listRecentSummaries": {
34169
+ capName: "pipeline-analytics",
34170
+ capScope: "device",
34171
+ addonId: null,
34172
+ access: "view"
34173
+ },
34026
34174
  "pipelineAnalytics.listRecentTracks": {
34027
34175
  capName: "pipeline-analytics",
34028
34176
  capScope: "device",
@@ -37850,6 +37998,11 @@ Object.freeze({
37850
37998
  form: "single",
37851
37999
  optional: true
37852
38000
  }],
38001
+ "pipelineAnalytics.listRecentSummaries": [{
38002
+ name: "deviceIds",
38003
+ form: "array",
38004
+ optional: false
38005
+ }],
37853
38006
  "pipelineAnalytics.listRecentTracks": [{
37854
38007
  name: "deviceIds",
37855
38008
  form: "array",
@@ -39215,7 +39368,7 @@ var AgentUIAddon = class extends BaseAddon {
39215
39368
  capability: adminUiCapability,
39216
39369
  provider: {
39217
39370
  getStaticDir: async () => ({ staticDir: path.resolve(__dirname) }),
39218
- getVersion: async () => ({ version: "1.2.105" })
39371
+ getVersion: async () => ({ version: "1.2.106" })
39219
39372
  }
39220
39373
  }];
39221
39374
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-agent-ui",
3
- "version": "1.2.105",
3
+ "version": "1.2.106",
4
4
  "description": "Agent UI — lightweight status dashboard served by every agent node",
5
5
  "keywords": [
6
6
  "camstack",