@camstack/addon-terminal 0.1.91 → 0.1.92

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/addon.js CHANGED
@@ -7726,6 +7726,35 @@ var CameraSwitchGroupSchema = object({
7726
7726
  */
7727
7727
  var DETECTION_PIPELINE_CAP_NAME = "detection-pipeline";
7728
7728
  var AUDIO_ANALYSIS_CAP_NAME = "audio-analysis";
7729
+ /** One archived note — the operator's words plus enough context to find what
7730
+ * they were looking at, after the track itself is gone. */
7731
+ var ArchivedDebugNoteSchema = object({
7732
+ /** Archive row id. Derived from `(sourceTrackId, note)`, so re-archiving the
7733
+ * same sentence about the same track lands on the row already there. */
7734
+ id: string(),
7735
+ /** The operator's own words, verbatim. */
7736
+ note: string(),
7737
+ /** The camera. Required — every question here is asked per-camera. */
7738
+ deviceId: number().int(),
7739
+ /** The track the note was written on. PROVENANCE, not ownership: the track
7740
+ * is expected to be gone, and this row is not a reference to it. */
7741
+ sourceTrackId: string(),
7742
+ /** Epoch ms the note was moved here, i.e. when the operator reviewed it. */
7743
+ archivedAt: number().int(),
7744
+ /** The track's `firstSeen`, when the row still knew it; `null` otherwise. */
7745
+ trackStartedAt: number().int().nullable(),
7746
+ /** The track's detector class (`person`, `car`, …); `null` when unknown. */
7747
+ trackClass: string().nullable(),
7748
+ /** The track's display label at review time; `null` when it had none. */
7749
+ trackLabel: string().nullable()
7750
+ });
7751
+ /** Query input for `listArchivedDebugNotes` — newest first, one camera or all. */
7752
+ var ArchivedDebugNoteQueryInputSchema = object({
7753
+ /** Restrict to a single camera; omit for every row. */
7754
+ deviceId: number().int().optional(),
7755
+ /** Max rows returned, newest-first. */
7756
+ limit: number().int().min(1).max(1e3).optional()
7757
+ });
7729
7758
  /**
7730
7759
  * Ops-log — the durable, append-only operations audit shared by the
7731
7760
  * recordings and events management surfaces.
@@ -20108,7 +20137,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
20108
20137
  deviceId: number(),
20109
20138
  trackId: string(),
20110
20139
  flags: TrackFlagsPatchSchema
20111
- }), TrackFlagsSchema, { kind: "mutation" }), method(object({}), EventStoreFootprintSchema, {
20140
+ }), TrackFlagsSchema, { kind: "mutation" }), method(ArchivedDebugNoteQueryInputSchema, array(ArchivedDebugNoteSchema).readonly(), { kind: "query" }), method(object({}), EventStoreFootprintSchema, {
20112
20141
  kind: "query",
20113
20142
  auth: "admin"
20114
20143
  }), method(object({ deviceId: number().int().optional() }), EventMediaKindBreakdownSchema, {
@@ -37232,6 +37261,12 @@ Object.freeze({
37232
37261
  addonId: null,
37233
37262
  access: "view"
37234
37263
  },
37264
+ "pipelineAnalytics.listArchivedDebugNotes": {
37265
+ capName: "pipeline-analytics",
37266
+ capScope: "device",
37267
+ addonId: null,
37268
+ access: "view"
37269
+ },
37235
37270
  "pipelineAnalytics.listEventKinds": {
37236
37271
  capName: "pipeline-analytics",
37237
37272
  capScope: "device",
@@ -41019,6 +41054,11 @@ Object.freeze({
41019
41054
  form: "array",
41020
41055
  optional: true
41021
41056
  }],
41057
+ "pipelineAnalytics.listArchivedDebugNotes": [{
41058
+ name: "deviceId",
41059
+ form: "single",
41060
+ optional: true
41061
+ }],
41022
41062
  "pipelineAnalytics.listEventKinds": [{
41023
41063
  name: "deviceId",
41024
41064
  form: "single",
package/dist/addon.mjs CHANGED
@@ -7703,6 +7703,35 @@ var CameraSwitchGroupSchema = object({
7703
7703
  */
7704
7704
  var DETECTION_PIPELINE_CAP_NAME = "detection-pipeline";
7705
7705
  var AUDIO_ANALYSIS_CAP_NAME = "audio-analysis";
7706
+ /** One archived note — the operator's words plus enough context to find what
7707
+ * they were looking at, after the track itself is gone. */
7708
+ var ArchivedDebugNoteSchema = object({
7709
+ /** Archive row id. Derived from `(sourceTrackId, note)`, so re-archiving the
7710
+ * same sentence about the same track lands on the row already there. */
7711
+ id: string(),
7712
+ /** The operator's own words, verbatim. */
7713
+ note: string(),
7714
+ /** The camera. Required — every question here is asked per-camera. */
7715
+ deviceId: number().int(),
7716
+ /** The track the note was written on. PROVENANCE, not ownership: the track
7717
+ * is expected to be gone, and this row is not a reference to it. */
7718
+ sourceTrackId: string(),
7719
+ /** Epoch ms the note was moved here, i.e. when the operator reviewed it. */
7720
+ archivedAt: number().int(),
7721
+ /** The track's `firstSeen`, when the row still knew it; `null` otherwise. */
7722
+ trackStartedAt: number().int().nullable(),
7723
+ /** The track's detector class (`person`, `car`, …); `null` when unknown. */
7724
+ trackClass: string().nullable(),
7725
+ /** The track's display label at review time; `null` when it had none. */
7726
+ trackLabel: string().nullable()
7727
+ });
7728
+ /** Query input for `listArchivedDebugNotes` — newest first, one camera or all. */
7729
+ var ArchivedDebugNoteQueryInputSchema = object({
7730
+ /** Restrict to a single camera; omit for every row. */
7731
+ deviceId: number().int().optional(),
7732
+ /** Max rows returned, newest-first. */
7733
+ limit: number().int().min(1).max(1e3).optional()
7734
+ });
7706
7735
  /**
7707
7736
  * Ops-log — the durable, append-only operations audit shared by the
7708
7737
  * recordings and events management surfaces.
@@ -20085,7 +20114,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
20085
20114
  deviceId: number(),
20086
20115
  trackId: string(),
20087
20116
  flags: TrackFlagsPatchSchema
20088
- }), TrackFlagsSchema, { kind: "mutation" }), method(object({}), EventStoreFootprintSchema, {
20117
+ }), TrackFlagsSchema, { kind: "mutation" }), method(ArchivedDebugNoteQueryInputSchema, array(ArchivedDebugNoteSchema).readonly(), { kind: "query" }), method(object({}), EventStoreFootprintSchema, {
20089
20118
  kind: "query",
20090
20119
  auth: "admin"
20091
20120
  }), method(object({ deviceId: number().int().optional() }), EventMediaKindBreakdownSchema, {
@@ -37209,6 +37238,12 @@ Object.freeze({
37209
37238
  addonId: null,
37210
37239
  access: "view"
37211
37240
  },
37241
+ "pipelineAnalytics.listArchivedDebugNotes": {
37242
+ capName: "pipeline-analytics",
37243
+ capScope: "device",
37244
+ addonId: null,
37245
+ access: "view"
37246
+ },
37212
37247
  "pipelineAnalytics.listEventKinds": {
37213
37248
  capName: "pipeline-analytics",
37214
37249
  capScope: "device",
@@ -40996,6 +41031,11 @@ Object.freeze({
40996
41031
  form: "array",
40997
41032
  optional: true
40998
41033
  }],
41034
+ "pipelineAnalytics.listArchivedDebugNotes": [{
41035
+ name: "deviceId",
41036
+ form: "single",
41037
+ optional: true
41038
+ }],
40999
41039
  "pipelineAnalytics.listEventKinds": [{
41000
41040
  name: "deviceId",
41001
41041
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-terminal",
3
- "version": "0.1.91",
3
+ "version": "0.1.92",
4
4
  "description": "Interactive terminal sessions (pty + xterm) as a CamStack addon",
5
5
  "keywords": [
6
6
  "camstack",