@camstack/addon-pipeline 1.2.615 → 1.2.617

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-BmJXsT0k.mjs → custom-model-catalog-BT8HKaes.mjs} +3 -3
  5. package/dist/{custom-model-catalog-DFuM_m3D.js → custom-model-catalog-Yu1sxc4A.js} +3 -3
  6. package/dist/detection-pipeline/index.js +114 -6
  7. package/dist/detection-pipeline/index.mjs +114 -6
  8. package/dist/{dist-B_1t8oSg.js → dist-CGDR6bSg.js} +114 -67
  9. package/dist/{dist-CfOv146z.mjs → dist-OImyOnr3.mjs} +114 -67
  10. package/dist/{model-catalogs-Dnj7Cr3q.mjs → model-catalogs-Cj101H8x.mjs} +14 -4
  11. package/dist/{model-catalogs-Dr-_ANpG.js → model-catalogs-DV562sqJ.js} +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-CSFdbFlw.js} +1 -1
  15. package/dist/{node-tn9-iwDj.mjs → node-DciF_ZRl.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-BlkUi_7x.js → process-memory-CJEkTpRM.js} +1 -1
  19. package/dist/{process-memory-CD5f3ehN.mjs → process-memory-DjIov9TF.mjs} +1 -1
  20. package/dist/recorder/index.js +80 -5
  21. package/dist/recorder/index.mjs +80 -5
  22. package/dist/{segment-demux-js-Cx61fdp7.mjs → segment-demux-js-B5PU-E-G.mjs} +1 -1
  23. package/dist/{segment-demux-js-uWcwFqRL.js → segment-demux-js-BsqG99U7.js} +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-BVGTBmAI.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-BubwMH51.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-CMCfVKgd.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
  let node_crypto = require("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",
@@ -51560,7 +51584,6 @@ var RecommendationReasonSchema = discriminatedUnion("kind", [
51560
51584
  modelId: string()
51561
51585
  }),
51562
51586
  object({ kind: literal("cpu-device") }),
51563
- object({ kind: literal("coral-untouched") }),
51564
51587
  object({ kind: literal("device-disabled") }),
51565
51588
  object({ kind: literal("device-unavailable") }),
51566
51589
  object({ kind: literal("node-offline") }),
@@ -51658,11 +51681,6 @@ var AutoTuneWarningSchema = discriminatedUnion("kind", [
51658
51681
  kind: literal("detector-store-unreadable"),
51659
51682
  error: string()
51660
51683
  }),
51661
- object({
51662
- kind: literal("coral-enabled"),
51663
- nodeId: string(),
51664
- deviceKey: string()
51665
- }),
51666
51684
  object({
51667
51685
  kind: literal("custom-pin-kept"),
51668
51686
  nodeId: string(),
@@ -59166,6 +59184,16 @@ object({
59166
59184
  powerState: string().nullable(),
59167
59185
  saltLevel: DishwasherConsumableLevelSchema.nullable(),
59168
59186
  rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
59187
+ /**
59188
+ * True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
59189
+ * combined care-and-filter reminder raised); false when every such reminder reads clear; null
59190
+ * when none is reported. A cleared reminder is not an unknown one.
59191
+ */
59192
+ filterCleaningDue: boolean().nullable(),
59193
+ /** True while the machine-care (descaling / cleaning-program) reminder is raised; false when clear; null when not reported. */
59194
+ machineCareDue: boolean().nullable(),
59195
+ /** Program runs left before the machine-care reminder is due; null when the appliance does not say. */
59196
+ machineCareRemainingRuns: number().int().nonnegative().nullable(),
59169
59197
  /** Option states: null when the appliance does not expose the option or has not said. */
59170
59198
  halfLoad: boolean().nullable(),
59171
59199
  hygienePlus: boolean().nullable(),
@@ -66307,16 +66335,6 @@ var UpdateUserInputSchema = object({
66307
66335
  allowedDevices: record(string(), union([array(string()), literal("*")])).optional(),
66308
66336
  scopes: array(TokenScopeSchema).optional()
66309
66337
  });
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
66338
  var OauthSessionSummarySchema = object({
66321
66339
  id: string(),
66322
66340
  userId: string(),
@@ -66338,8 +66356,7 @@ var TotpStatusSchema = object({
66338
66356
  confirmedAt: number().nullable()
66339
66357
  });
66340
66358
  /**
66341
- * user-management — singleton capability for user accounts and the
66342
- * legacy API-key rows.
66359
+ * user-management — singleton capability for user accounts.
66343
66360
  *
66344
66361
  * v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
66345
66362
  * — the subset check on `setUserScopes` is moot
@@ -66395,10 +66412,6 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
66395
66412
  }), UserSummarySchema.extend({ passwordHash: string() }).nullable(), {
66396
66413
  kind: "mutation",
66397
66414
  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
66415
  }), method(object({ userId: string() }), TotpSetupResultSchema, {
66403
66416
  kind: "mutation",
66404
66417
  auth: "admin",
@@ -73929,6 +73942,12 @@ Object.freeze({
73929
73942
  addonId: null,
73930
73943
  access: "view"
73931
73944
  },
73945
+ "records.transact": {
73946
+ capName: "records",
73947
+ capScope: "system",
73948
+ addonId: null,
73949
+ access: "create"
73950
+ },
73932
73951
  "sceneMonitor.captureReference": {
73933
73952
  capName: "scene-monitor",
73934
73953
  capScope: "device",
@@ -75261,12 +75280,6 @@ Object.freeze({
75261
75280
  addonId: null,
75262
75281
  access: "view"
75263
75282
  },
75264
- "userManagement.listApiKeys": {
75265
- capName: "user-management",
75266
- capScope: "system",
75267
- addonId: null,
75268
- access: "view"
75269
- },
75270
75283
  "userManagement.listExternalIdentities": {
75271
75284
  capName: "user-management",
75272
75285
  capScope: "system",
@@ -75321,12 +75334,6 @@ Object.freeze({
75321
75334
  addonId: null,
75322
75335
  access: "create"
75323
75336
  },
75324
- "userManagement.revokeApiKey": {
75325
- capName: "user-management",
75326
- capScope: "system",
75327
- addonId: null,
75328
- access: "delete"
75329
- },
75330
75337
  "userManagement.revokeOauthSession": {
75331
75338
  capName: "user-management",
75332
75339
  capScope: "system",
@@ -78741,9 +78748,13 @@ new Map(Object.entries({
78741
78748
  "stream-online": "device-events",
78742
78749
  "stream-offline": "device-events",
78743
78750
  "detection-blind": "device-events",
78751
+ "motion-noisy": "device-events",
78752
+ "motion-calm": "device-events",
78744
78753
  "recording-stalled": "device-events",
78745
78754
  "recording-healthy": "device-events",
78746
78755
  "recording-degraded": "device-events",
78756
+ "device-attention-required": "device-events",
78757
+ "device-attention-resolved": "device-events",
78747
78758
  "node-online": "system",
78748
78759
  "node-offline": "system",
78749
78760
  "node-restarting": "system",
@@ -78826,6 +78837,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
78826
78837
  label: "Detecting nothing",
78827
78838
  kinds: ["detection-blind"]
78828
78839
  },
78840
+ {
78841
+ id: "motion-noise",
78842
+ family: "device-events",
78843
+ label: "Motion without a subject",
78844
+ kinds: ["motion-noisy", "motion-calm"]
78845
+ },
78829
78846
  {
78830
78847
  id: "recording",
78831
78848
  family: "device-events",
@@ -78836,6 +78853,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
78836
78853
  "recording-degraded"
78837
78854
  ]
78838
78855
  },
78856
+ {
78857
+ id: "device-attention",
78858
+ family: "device-events",
78859
+ label: "Needs attention",
78860
+ kinds: ["device-attention-required", "device-attention-resolved"]
78861
+ },
78839
78862
  {
78840
78863
  id: "nodes",
78841
78864
  family: "system",
@@ -78975,6 +78998,7 @@ var ALERT_EPISODE = [
78975
78998
  "alert-error",
78976
78999
  "alert-critical-resolved"
78977
79000
  ];
79001
+ var DEVICE_ATTENTION = ["device-attention-required", "device-attention-resolved"];
78978
79002
  var UPDATES = [
78979
79003
  "addon-update-available",
78980
79004
  "server-update-available",
@@ -79004,9 +79028,12 @@ var DEVICE_EVENTS = [
79004
79028
  "stream-online",
79005
79029
  "stream-offline",
79006
79030
  "detection-blind",
79031
+ "motion-noisy",
79032
+ "motion-calm",
79007
79033
  "recording-stalled",
79008
79034
  "recording-healthy",
79009
79035
  "recording-degraded",
79036
+ ...DEVICE_ATTENTION,
79010
79037
  ...ALARM
79011
79038
  ];
79012
79039
  /** Every kind a summary may speak about — the two summarisable families. */
@@ -79174,7 +79201,9 @@ var STATE_SUMMARY_VARS = [
79174
79201
  [...RULE_TEXT],
79175
79202
  [...RULE_TEXT],
79176
79203
  [...RULE_TEXT],
79177
- ([...RULE_TEXT], [...ALERT_EPISODE]),
79204
+ [...RULE_TEXT],
79205
+ [...RULE_TEXT],
79206
+ ([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
79178
79207
  [...RULE_TEXT],
79179
79208
  [...RULE_TEXT],
79180
79209
  [...RULE_TEXT],
@@ -79196,11 +79225,11 @@ var STATE_SUMMARY_VARS = [
79196
79225
  [...RULE_TEXT],
79197
79226
  [...RULE_TEXT],
79198
79227
  [...RULE_TEXT],
79228
+ ([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
79199
79229
  ([...RULE_TEXT], [...ALERT_EPISODE]),
79230
+ ([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
79200
79231
  ([...RULE_TEXT], [...ALERT_EPISODE]),
79201
- ([...RULE_TEXT], [...ALERT_EPISODE]),
79202
- ([...RULE_TEXT], [...ALERT_EPISODE]),
79203
- ([...RULE_TEXT], [...ALERT_EPISODE]),
79232
+ ([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
79204
79233
  [...RULE_TEXT],
79205
79234
  [...RULE_TEXT],
79206
79235
  [...RULE_TEXT],
@@ -79276,6 +79305,15 @@ new Map([
79276
79305
  snapshotLabel: "Tanks low or full now",
79277
79306
  snapshotSection: "tanks"
79278
79307
  },
79308
+ {
79309
+ id: "motion-noise",
79310
+ family: "device-events",
79311
+ label: "Motion without a subject (constant / calm again)",
79312
+ bad: ["motion-noisy"],
79313
+ recovery: ["motion-calm"],
79314
+ snapshotLabel: "Cameras with constant motion now",
79315
+ snapshotSection: null
79316
+ },
79279
79317
  {
79280
79318
  id: "recording-health",
79281
79319
  family: "device-events",
@@ -79285,6 +79323,15 @@ new Map([
79285
79323
  snapshotLabel: "Recordings stalled now",
79286
79324
  snapshotSection: null
79287
79325
  },
79326
+ {
79327
+ id: "device-attention",
79328
+ family: "device-events",
79329
+ label: "Device needs attention (raised / resolved)",
79330
+ bad: ["device-attention-required"],
79331
+ recovery: ["device-attention-resolved"],
79332
+ snapshotLabel: "Devices needing attention now",
79333
+ snapshotSection: null
79334
+ },
79288
79335
  {
79289
79336
  id: "node-connectivity",
79290
79337
  family: "system",