@camstack/addon-pipeline 1.2.615 → 1.2.616

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 (38) hide show
  1. package/THIRD_PARTY_MODELS.md +2 -2
  2. package/dist/audio-analyzer/index.js +3 -3
  3. package/dist/audio-analyzer/index.mjs +3 -3
  4. package/dist/{custom-model-catalog-DFuM_m3D.js → custom-model-catalog-D0EZW4Xb.js} +3 -3
  5. package/dist/{custom-model-catalog-BmJXsT0k.mjs → custom-model-catalog-D3NopOC9.mjs} +3 -3
  6. package/dist/detection-pipeline/index.js +114 -6
  7. package/dist/detection-pipeline/index.mjs +114 -6
  8. package/dist/{dist-CfOv146z.mjs → dist-BWPVIuD_.mjs} +114 -61
  9. package/dist/{dist-B_1t8oSg.js → dist-D2aJhYm7.js} +114 -61
  10. package/dist/{model-catalogs-Dr-_ANpG.js → model-catalogs-BDJEmiKm.js} +14 -4
  11. package/dist/{model-catalogs-Dnj7Cr3q.mjs → model-catalogs-CYoIeMo4.mjs} +14 -4
  12. package/dist/motion-wasm/index.js +1 -1
  13. package/dist/motion-wasm/index.mjs +1 -1
  14. package/dist/{node-D82_5p1M.js → node-BKs5_GlD.js} +1 -1
  15. package/dist/{node-tn9-iwDj.mjs → node-D48F38hW.mjs} +1 -1
  16. package/dist/pipeline-runner/index.js +3 -3
  17. package/dist/pipeline-runner/index.mjs +3 -3
  18. package/dist/{process-memory-CD5f3ehN.mjs → process-memory-58pkBnTk.mjs} +1 -1
  19. package/dist/{process-memory-BlkUi_7x.js → process-memory-BY-1p6rF.js} +1 -1
  20. package/dist/recorder/index.js +80 -5
  21. package/dist/recorder/index.mjs +80 -5
  22. package/dist/{segment-demux-js-uWcwFqRL.js → segment-demux-js-DbM8w1dc.js} +1 -1
  23. package/dist/{segment-demux-js-Cx61fdp7.mjs → segment-demux-js-VeHvPIJe.mjs} +1 -1
  24. package/dist/stream-broker/_stub.js +2 -2
  25. package/dist/stream-broker/{_virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-dldjR7yB.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-B6vm1OlX.mjs} +3 -3
  26. package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-qcb2Czgh.mjs +26 -0
  27. package/dist/stream-broker/{_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-BvJiBUdN.mjs → _virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-TnEvW5tZ.mjs} +1 -1
  28. package/dist/stream-broker/demux-worker-child.js +1 -1
  29. package/dist/stream-broker/demux-worker-child.mjs +1 -1
  30. package/dist/stream-broker/{hostInit-Bo0bh2FZ.mjs → hostInit-BnK9Yje5.mjs} +3 -3
  31. package/dist/stream-broker/index.js +38 -5
  32. package/dist/stream-broker/index.mjs +38 -5
  33. package/dist/stream-broker/remoteEntry.js +1 -1
  34. package/package.json +1 -1
  35. package/python/inference_pool.py +33 -0
  36. package/python/openvino_compile_probe.py +245 -0
  37. package/python/test_openvino_compile_probe.py +298 -0
  38. package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-D4kDfIKO.mjs +0 -26
@@ -1,5 +1,5 @@
1
1
  import { createHash } from "node:crypto";
2
- //#region ../types/dist/event-category-7pZEBmVg.mjs
2
+ //#region ../types/dist/event-category-BfJwUd2S.mjs
3
3
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4
4
  EventCategory["SystemBoot"] = "system.boot";
5
5
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -316,6 +316,15 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
316
316
  */
317
317
  EventCategory["PipelineDetectionBlind"] = "pipeline.detection-blind";
318
318
  /**
319
+ * A camera's motion source has fired constantly with no subject for an hour
320
+ * (motion duty or session count over the bar, zero detections) — it is not
321
+ * blind, its motion zones or sensitivity want tuning (D907). Paired with
322
+ * {@link PipelineMotionCalm}.
323
+ */
324
+ EventCategory["PipelineMotionNoisy"] = "pipeline.motion-noisy";
325
+ /** The recovery edge of {@link PipelineMotionNoisy}: the motion fell back, or a detection arrived. */
326
+ EventCategory["PipelineMotionCalm"] = "pipeline.motion-calm";
327
+ /**
319
328
  * Per-camera pipeline config was mutated by the orchestrator
320
329
  * (3-level settings change via `setAgentAddonDefaults` /
321
330
  * `setCameraStepToggle` / `setCameraPipelineForAgent` or a
@@ -5555,7 +5564,7 @@ var ZodIssueCode = {
5555
5564
  var ZodFirstPartyTypeKind;
5556
5565
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5557
5566
  //#endregion
5558
- //#region ../types/dist/sleep-CueztlR1.mjs
5567
+ //#region ../types/dist/sleep-DJFUfKvA.mjs
5559
5568
  /**
5560
5569
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5561
5570
  * window to float samples (D455).
@@ -8195,7 +8204,7 @@ var EntryDescriptorSchema = object({
8195
8204
  /** JSON Schema of the entry body; `secret: true` marks a password field. */
8196
8205
  fields: record(string(), unknown())
8197
8206
  }).strict();
8198
- /** What crosses the wire and sits in the engine's catalog: JSON only, no Zod. */
8207
+ /** What crosses the wire from an addon: JSON only, no Zod. An unknown key is refused. */
8199
8208
  var RecordKindDeclarationSchema = object({
8200
8209
  database: _enum(RECORD_DATABASES).default("settings"),
8201
8210
  class: _enum(RECORD_CLASSES),
@@ -8214,14 +8223,6 @@ var RecordKindDeclarationSchema = object({
8214
8223
  secretPaths: array(string().min(1)).default([]),
8215
8224
  /** The id key of each array that carries a secret (`{ headers: 'name' }`). */
8216
8225
  secretArrayKeys: record(string(), string()).default({}),
8217
- /**
8218
- * RETIRED (D900): the legacy table a kind adopted from during the records
8219
- * migration. Nothing declares it any more and nothing reads it; the schema
8220
- * still ACCEPTS it because the catalog rows the migration wrote carry it
8221
- * (an orphaned kind is never redeclared) and an addon built before the
8222
- * removal still sends it. Never set it.
8223
- */
8224
- adoptsFrom: string().min(1).optional(),
8225
8226
  /** Kinds that must agree through `transact` sit in one file under one family name. */
8226
8227
  transactFamily: string().min(1).optional(),
8227
8228
  entry: EntryDescriptorSchema.optional()
@@ -15471,17 +15472,6 @@ object({
15471
15472
  createdAt: number(),
15472
15473
  updatedAt: number()
15473
15474
  });
15474
- object({
15475
- id: string(),
15476
- label: string(),
15477
- isAdmin: boolean().default(false),
15478
- allowedProviders: AllowedProviderSchema,
15479
- allowedDevices: AllowedDevicesSchema,
15480
- tokenHash: string(),
15481
- tokenPrefix: string(),
15482
- createdAt: number(),
15483
- lastUsedAt: number().optional()
15484
- });
15485
15475
  object({
15486
15476
  id: string(),
15487
15477
  userId: string(),
@@ -19829,16 +19819,36 @@ var RecordKindStateSchema = _enum([
19829
19819
  var DeclareKindResultSchema = object({
19830
19820
  kindId: number().int(),
19831
19821
  state: RecordKindStateSchema,
19832
- createdIndexes: array(string()),
19833
- /**
19834
- * RETIRED (D900): always `null`. It carried the records-migration boot guard;
19835
- * it stays on the wire, null, because an addon built before the removal reads
19836
- * an ABSENT field as "adoption pending" and refuses to start.
19837
- */
19838
- adoptionPending: _null()
19822
+ createdIndexes: array(string())
19839
19823
  });
19840
19824
  /** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
19841
19825
  var SecretRefsList = array(string());
19826
+ /**
19827
+ * One op of a `transact`: the single-row writes, each on a kind of the caller.
19828
+ * All ops of one call share ONE database file and ONE `transactFamily`.
19829
+ */
19830
+ var RecordTransactOpSchema = discriminatedUnion("op", [
19831
+ object({
19832
+ op: literal("put"),
19833
+ kind: RecordKindNameSchema,
19834
+ record: RecordInputSchema,
19835
+ ifRev: number().int().min(0).optional()
19836
+ }),
19837
+ object({
19838
+ op: literal("patch"),
19839
+ kind: RecordKindNameSchema,
19840
+ id: RecordIdSchema,
19841
+ data: RecordBodySchema,
19842
+ at: number().int().nullable().optional(),
19843
+ expiresAt: number().int().nullable().optional(),
19844
+ ifRev: number().int().min(1).optional()
19845
+ }),
19846
+ object({
19847
+ op: literal("delete"),
19848
+ kind: RecordKindNameSchema,
19849
+ id: RecordIdSchema
19850
+ })
19851
+ ]);
19842
19852
  var RecordSecretRefsSchema = record(string(), record(string(), string()));
19843
19853
  method(object({ kinds: record(RecordKindNameSchema, RecordKindDeclarationSchema) }), object({ kinds: record(string(), DeclareKindResultSchema) }), {
19844
19854
  kind: "mutation",
@@ -19945,6 +19955,16 @@ method(object({ kinds: record(RecordKindNameSchema, RecordKindDeclarationSchema)
19945
19955
  }), {
19946
19956
  kind: "mutation",
19947
19957
  auth: "admin"
19958
+ }), method(object({ ops: array(RecordTransactOpSchema).min(1).max(RECORD_BATCH_MAX) }), object({
19959
+ results: array(object({
19960
+ rev: number().int().nullable(),
19961
+ deleted: boolean()
19962
+ })),
19963
+ releasedRefs: SecretRefsList,
19964
+ secretRefs: SecretRefsList
19965
+ }), {
19966
+ kind: "mutation",
19967
+ auth: "admin"
19948
19968
  }), method(object({
19949
19969
  deviceId: number().int(),
19950
19970
  kinds: array(RecordKindNameSchema).optional()
@@ -45748,9 +45768,13 @@ var NcSystemEventKindSchema = _enum([
45748
45768
  "node-updating",
45749
45769
  "node-inference-unavailable",
45750
45770
  "detection-blind",
45771
+ "motion-noisy",
45772
+ "motion-calm",
45751
45773
  "recording-stalled",
45752
45774
  "recording-healthy",
45753
45775
  "recording-degraded",
45776
+ "device-attention-required",
45777
+ "device-attention-resolved",
45754
45778
  "storage-location-low",
45755
45779
  "storage-location-critical",
45756
45780
  "storage-location-ok",
@@ -59166,6 +59190,16 @@ object({
59166
59190
  powerState: string().nullable(),
59167
59191
  saltLevel: DishwasherConsumableLevelSchema.nullable(),
59168
59192
  rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
59193
+ /**
59194
+ * True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
59195
+ * combined care-and-filter reminder raised); false when every such reminder reads clear; null
59196
+ * when none is reported. A cleared reminder is not an unknown one.
59197
+ */
59198
+ filterCleaningDue: boolean().nullable(),
59199
+ /** True while the machine-care (descaling / cleaning-program) reminder is raised; false when clear; null when not reported. */
59200
+ machineCareDue: boolean().nullable(),
59201
+ /** Program runs left before the machine-care reminder is due; null when the appliance does not say. */
59202
+ machineCareRemainingRuns: number().int().nonnegative().nullable(),
59169
59203
  /** Option states: null when the appliance does not expose the option or has not said. */
59170
59204
  halfLoad: boolean().nullable(),
59171
59205
  hygienePlus: boolean().nullable(),
@@ -66307,16 +66341,6 @@ var UpdateUserInputSchema = object({
66307
66341
  allowedDevices: record(string(), union([array(string()), literal("*")])).optional(),
66308
66342
  scopes: array(TokenScopeSchema).optional()
66309
66343
  });
66310
- var ApiKeySummarySchema = object({
66311
- id: string(),
66312
- label: string(),
66313
- isAdmin: boolean().default(false),
66314
- allowedProviders: union([array(string()), literal("*")]).optional(),
66315
- allowedDevices: record(string(), union([array(string()), literal("*")])).optional(),
66316
- tokenPrefix: string(),
66317
- createdAt: number(),
66318
- lastUsedAt: number().optional()
66319
- });
66320
66344
  var OauthSessionSummarySchema = object({
66321
66345
  id: string(),
66322
66346
  userId: string(),
@@ -66338,8 +66362,7 @@ var TotpStatusSchema = object({
66338
66362
  confirmedAt: number().nullable()
66339
66363
  });
66340
66364
  /**
66341
- * user-management — singleton capability for user accounts and the
66342
- * legacy API-key rows.
66365
+ * user-management — singleton capability for user accounts.
66343
66366
  *
66344
66367
  * v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
66345
66368
  * — the subset check on `setUserScopes` is moot
@@ -66395,10 +66418,6 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
66395
66418
  }), UserSummarySchema.extend({ passwordHash: string() }).nullable(), {
66396
66419
  kind: "mutation",
66397
66420
  access: "view"
66398
- }), method(_void(), array(ApiKeySummarySchema), { auth: "admin" }), method(object({ id: string() }), object({ success: literal(true) }), {
66399
- kind: "mutation",
66400
- auth: "admin",
66401
- access: "delete"
66402
66421
  }), method(object({ userId: string() }), TotpSetupResultSchema, {
66403
66422
  kind: "mutation",
66404
66423
  auth: "admin",
@@ -73929,6 +73948,12 @@ Object.freeze({
73929
73948
  addonId: null,
73930
73949
  access: "view"
73931
73950
  },
73951
+ "records.transact": {
73952
+ capName: "records",
73953
+ capScope: "system",
73954
+ addonId: null,
73955
+ access: "create"
73956
+ },
73932
73957
  "sceneMonitor.captureReference": {
73933
73958
  capName: "scene-monitor",
73934
73959
  capScope: "device",
@@ -75261,12 +75286,6 @@ Object.freeze({
75261
75286
  addonId: null,
75262
75287
  access: "view"
75263
75288
  },
75264
- "userManagement.listApiKeys": {
75265
- capName: "user-management",
75266
- capScope: "system",
75267
- addonId: null,
75268
- access: "view"
75269
- },
75270
75289
  "userManagement.listExternalIdentities": {
75271
75290
  capName: "user-management",
75272
75291
  capScope: "system",
@@ -75321,12 +75340,6 @@ Object.freeze({
75321
75340
  addonId: null,
75322
75341
  access: "create"
75323
75342
  },
75324
- "userManagement.revokeApiKey": {
75325
- capName: "user-management",
75326
- capScope: "system",
75327
- addonId: null,
75328
- access: "delete"
75329
- },
75330
75343
  "userManagement.revokeOauthSession": {
75331
75344
  capName: "user-management",
75332
75345
  capScope: "system",
@@ -78741,9 +78754,13 @@ new Map(Object.entries({
78741
78754
  "stream-online": "device-events",
78742
78755
  "stream-offline": "device-events",
78743
78756
  "detection-blind": "device-events",
78757
+ "motion-noisy": "device-events",
78758
+ "motion-calm": "device-events",
78744
78759
  "recording-stalled": "device-events",
78745
78760
  "recording-healthy": "device-events",
78746
78761
  "recording-degraded": "device-events",
78762
+ "device-attention-required": "device-events",
78763
+ "device-attention-resolved": "device-events",
78747
78764
  "node-online": "system",
78748
78765
  "node-offline": "system",
78749
78766
  "node-restarting": "system",
@@ -78826,6 +78843,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
78826
78843
  label: "Detecting nothing",
78827
78844
  kinds: ["detection-blind"]
78828
78845
  },
78846
+ {
78847
+ id: "motion-noise",
78848
+ family: "device-events",
78849
+ label: "Motion without a subject",
78850
+ kinds: ["motion-noisy", "motion-calm"]
78851
+ },
78829
78852
  {
78830
78853
  id: "recording",
78831
78854
  family: "device-events",
@@ -78836,6 +78859,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
78836
78859
  "recording-degraded"
78837
78860
  ]
78838
78861
  },
78862
+ {
78863
+ id: "device-attention",
78864
+ family: "device-events",
78865
+ label: "Needs attention",
78866
+ kinds: ["device-attention-required", "device-attention-resolved"]
78867
+ },
78839
78868
  {
78840
78869
  id: "nodes",
78841
78870
  family: "system",
@@ -78975,6 +79004,7 @@ var ALERT_EPISODE = [
78975
79004
  "alert-error",
78976
79005
  "alert-critical-resolved"
78977
79006
  ];
79007
+ var DEVICE_ATTENTION = ["device-attention-required", "device-attention-resolved"];
78978
79008
  var UPDATES = [
78979
79009
  "addon-update-available",
78980
79010
  "server-update-available",
@@ -79004,9 +79034,12 @@ var DEVICE_EVENTS = [
79004
79034
  "stream-online",
79005
79035
  "stream-offline",
79006
79036
  "detection-blind",
79037
+ "motion-noisy",
79038
+ "motion-calm",
79007
79039
  "recording-stalled",
79008
79040
  "recording-healthy",
79009
79041
  "recording-degraded",
79042
+ ...DEVICE_ATTENTION,
79010
79043
  ...ALARM
79011
79044
  ];
79012
79045
  /** Every kind a summary may speak about — the two summarisable families. */
@@ -79174,7 +79207,9 @@ var STATE_SUMMARY_VARS = [
79174
79207
  [...RULE_TEXT],
79175
79208
  [...RULE_TEXT],
79176
79209
  [...RULE_TEXT],
79177
- ([...RULE_TEXT], [...ALERT_EPISODE]),
79210
+ [...RULE_TEXT],
79211
+ [...RULE_TEXT],
79212
+ ([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
79178
79213
  [...RULE_TEXT],
79179
79214
  [...RULE_TEXT],
79180
79215
  [...RULE_TEXT],
@@ -79196,11 +79231,11 @@ var STATE_SUMMARY_VARS = [
79196
79231
  [...RULE_TEXT],
79197
79232
  [...RULE_TEXT],
79198
79233
  [...RULE_TEXT],
79234
+ ([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
79199
79235
  ([...RULE_TEXT], [...ALERT_EPISODE]),
79236
+ ([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
79200
79237
  ([...RULE_TEXT], [...ALERT_EPISODE]),
79201
- ([...RULE_TEXT], [...ALERT_EPISODE]),
79202
- ([...RULE_TEXT], [...ALERT_EPISODE]),
79203
- ([...RULE_TEXT], [...ALERT_EPISODE]),
79238
+ ([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
79204
79239
  [...RULE_TEXT],
79205
79240
  [...RULE_TEXT],
79206
79241
  [...RULE_TEXT],
@@ -79276,6 +79311,15 @@ new Map([
79276
79311
  snapshotLabel: "Tanks low or full now",
79277
79312
  snapshotSection: "tanks"
79278
79313
  },
79314
+ {
79315
+ id: "motion-noise",
79316
+ family: "device-events",
79317
+ label: "Motion without a subject (constant / calm again)",
79318
+ bad: ["motion-noisy"],
79319
+ recovery: ["motion-calm"],
79320
+ snapshotLabel: "Cameras with constant motion now",
79321
+ snapshotSection: null
79322
+ },
79279
79323
  {
79280
79324
  id: "recording-health",
79281
79325
  family: "device-events",
@@ -79285,6 +79329,15 @@ new Map([
79285
79329
  snapshotLabel: "Recordings stalled now",
79286
79330
  snapshotSection: null
79287
79331
  },
79332
+ {
79333
+ id: "device-attention",
79334
+ family: "device-events",
79335
+ label: "Device needs attention (raised / resolved)",
79336
+ bad: ["device-attention-required"],
79337
+ recovery: ["device-attention-resolved"],
79338
+ snapshotLabel: "Devices needing attention now",
79339
+ snapshotSection: null
79340
+ },
79288
79341
  {
79289
79342
  id: "node-connectivity",
79290
79343
  family: "system",