@camstack/addon-pipeline 1.2.189 → 1.2.191

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 (126) hide show
  1. package/dist/audio-analyzer/index.js +2 -2
  2. package/dist/audio-analyzer/index.mjs +2 -2
  3. package/dist/detection-pipeline/index.js +5 -5
  4. package/dist/detection-pipeline/index.mjs +4 -4
  5. package/dist/{dist-CxYG8IUX.mjs → dist-Cjazw3T-.mjs} +348 -1
  6. package/dist/{dist-CKr6Q6Qu.js → dist-PQArEi7A.js} +348 -1
  7. package/dist/{lazy-sharp-D-HdRPo5.js → lazy-sharp-DfnnPeG5.js} +1 -1
  8. package/dist/{local-frame-registry-DP5yyEWE.mjs → local-frame-registry-CrLITJ5O.mjs} +1 -1
  9. package/dist/{local-frame-registry-B4Bd4tnU.js → local-frame-registry-DNVTAOrZ.js} +1 -1
  10. package/dist/motion-wasm/index.js +2 -2
  11. package/dist/motion-wasm/index.mjs +1 -1
  12. package/dist/{node-DhccO0of.mjs → node-KFUZT2L-.mjs} +1 -1
  13. package/dist/{node-CmRTB9W4.js → node-wFmd_eR_.js} +1 -1
  14. package/dist/pipeline-runner/index.js +64 -34
  15. package/dist/pipeline-runner/index.mjs +63 -33
  16. package/dist/{process-memory-BW7XFoPY.js → process-memory-B4o15Ps9.js} +1 -1
  17. package/dist/{process-memory-L6mHI28P.mjs → process-memory-BgX9_XQ5.mjs} +1 -1
  18. package/dist/recorder/index.js +2 -2
  19. package/dist/recorder/index.mjs +2 -2
  20. package/dist/{segment-demux-js-BTSHcSwg.js → segment-demux-js-C36b7S82.js} +1 -1
  21. package/dist/{segment-demux-js-D2zZJQU4.mjs → segment-demux-js-Cgz-NlSg.mjs} +1 -1
  22. package/dist/session-decode/decode-worker-child.js +44 -6
  23. package/dist/session-decode/decode-worker-child.mjs +43 -5
  24. package/dist/stream-broker/_stub.js +2 -2
  25. package/dist/stream-broker/{_virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-BttlkJ1n.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-YWGmRusr.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-D8AK-_F6.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-CkCh5TvE.mjs +26 -0
  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-BlXTzO4s.mjs → hostInit-CuZBoqi0.mjs} +3 -3
  31. package/dist/stream-broker/index.js +3 -3
  32. package/dist/stream-broker/index.mjs +3 -3
  33. package/dist/stream-broker/remoteEntry.js +1 -1
  34. package/dist/{worker-protocol-C8ZBUm08.js → worker-protocol-BulRQMSK.js} +1 -1
  35. package/dist/{worker-protocol-Br-omhiX.mjs → worker-protocol-n4hf2NsC.mjs} +1 -1
  36. package/package.json +1 -1
  37. package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BFlcZNb6.mjs +0 -26
  38. package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-ZzdpzejS.mjs +0 -26
  39. package/python/__pycache__/inference_pool.cpython-312.pyc +0 -0
  40. package/python/__pycache__/inference_pool.cpython-313.pyc +0 -0
  41. package/python/__pycache__/inference_pool.cpython-314.pyc +0 -0
  42. package/python/__pycache__/test_inference_pool_backpressure.cpython-312-pytest-9.1.1.pyc +0 -0
  43. package/python/__pycache__/test_inference_pool_backpressure.cpython-312.pyc +0 -0
  44. package/python/__pycache__/test_inference_pool_backpressure.cpython-314.pyc +0 -0
  45. package/python/__pycache__/test_inference_pool_coreml_cache.cpython-312-pytest-9.1.1.pyc +0 -0
  46. package/python/__pycache__/test_inference_pool_coreml_cache.cpython-312.pyc +0 -0
  47. package/python/__pycache__/test_inference_pool_coreml_cache.cpython-314.pyc +0 -0
  48. package/python/__pycache__/test_inference_pool_deadline.cpython-314.pyc +0 -0
  49. package/python/__pycache__/test_inference_pool_device_selection.cpython-312-pytest-9.1.1.pyc +0 -0
  50. package/python/__pycache__/test_inference_pool_device_selection.cpython-312.pyc +0 -0
  51. package/python/__pycache__/test_inference_pool_device_selection.cpython-314.pyc +0 -0
  52. package/python/__pycache__/test_inference_pool_layout.cpython-312-pytest-9.1.1.pyc +0 -0
  53. package/python/__pycache__/test_inference_pool_layout.cpython-314.pyc +0 -0
  54. package/python/__pycache__/test_inference_pool_memstats.cpython-312-pytest-9.1.1.pyc +0 -0
  55. package/python/__pycache__/test_inference_pool_memstats.cpython-312.pyc +0 -0
  56. package/python/__pycache__/test_inference_pool_memstats.cpython-314.pyc +0 -0
  57. package/python/__pycache__/test_inference_pool_ov_ppp.cpython-312-pytest-9.1.1.pyc +0 -0
  58. package/python/__pycache__/test_inference_pool_ov_ppp.cpython-312.pyc +0 -0
  59. package/python/__pycache__/test_inference_pool_ov_ppp.cpython-314.pyc +0 -0
  60. package/python/__pycache__/test_inference_pool_preprocess.cpython-312-pytest-9.1.1.pyc +0 -0
  61. package/python/__pycache__/test_inference_pool_preprocess.cpython-314.pyc +0 -0
  62. package/python/__pycache__/test_inference_pool_reconfigure.cpython-314.pyc +0 -0
  63. package/python/__pycache__/test_inference_pool_static_batch.cpython-312-pytest-9.1.1.pyc +0 -0
  64. package/python/__pycache__/test_inference_pool_static_batch.cpython-312.pyc +0 -0
  65. package/python/__pycache__/test_inference_pool_static_batch.cpython-314.pyc +0 -0
  66. package/python/__pycache__/yamnet_audio.cpython-314.pyc +0 -0
  67. package/python/postprocessors/__pycache__/__init__.cpython-312.pyc +0 -0
  68. package/python/postprocessors/__pycache__/__init__.cpython-313.pyc +0 -0
  69. package/python/postprocessors/__pycache__/__init__.cpython-314.pyc +0 -0
  70. package/python/postprocessors/__pycache__/_safety.cpython-313.pyc +0 -0
  71. package/python/postprocessors/__pycache__/arcface.cpython-312.pyc +0 -0
  72. package/python/postprocessors/__pycache__/arcface.cpython-313.pyc +0 -0
  73. package/python/postprocessors/__pycache__/arcface.cpython-314.pyc +0 -0
  74. package/python/postprocessors/__pycache__/clip.cpython-312.pyc +0 -0
  75. package/python/postprocessors/__pycache__/clip.cpython-313.pyc +0 -0
  76. package/python/postprocessors/__pycache__/clip.cpython-314.pyc +0 -0
  77. package/python/postprocessors/__pycache__/ctc.cpython-312.pyc +0 -0
  78. package/python/postprocessors/__pycache__/ctc.cpython-313.pyc +0 -0
  79. package/python/postprocessors/__pycache__/ctc.cpython-314.pyc +0 -0
  80. package/python/postprocessors/__pycache__/plate_slots.cpython-312.pyc +0 -0
  81. package/python/postprocessors/__pycache__/plate_slots.cpython-314.pyc +0 -0
  82. package/python/postprocessors/__pycache__/rfdetr.cpython-312.pyc +0 -0
  83. package/python/postprocessors/__pycache__/rfdetr.cpython-314.pyc +0 -0
  84. package/python/postprocessors/__pycache__/saliency.cpython-312.pyc +0 -0
  85. package/python/postprocessors/__pycache__/saliency.cpython-313.pyc +0 -0
  86. package/python/postprocessors/__pycache__/saliency.cpython-314.pyc +0 -0
  87. package/python/postprocessors/__pycache__/scrfd.cpython-312.pyc +0 -0
  88. package/python/postprocessors/__pycache__/scrfd.cpython-313.pyc +0 -0
  89. package/python/postprocessors/__pycache__/scrfd.cpython-314.pyc +0 -0
  90. package/python/postprocessors/__pycache__/softmax.cpython-312.pyc +0 -0
  91. package/python/postprocessors/__pycache__/softmax.cpython-313.pyc +0 -0
  92. package/python/postprocessors/__pycache__/softmax.cpython-314.pyc +0 -0
  93. package/python/postprocessors/__pycache__/ssd.cpython-312.pyc +0 -0
  94. package/python/postprocessors/__pycache__/ssd.cpython-313.pyc +0 -0
  95. package/python/postprocessors/__pycache__/ssd.cpython-314.pyc +0 -0
  96. package/python/postprocessors/__pycache__/test_clip.cpython-312-pytest-9.1.1.pyc +0 -0
  97. package/python/postprocessors/__pycache__/test_clip.cpython-313-pytest-9.1.1.pyc +0 -0
  98. package/python/postprocessors/__pycache__/test_ctc.cpython-312-pytest-9.1.1.pyc +0 -0
  99. package/python/postprocessors/__pycache__/test_ctc.cpython-312.pyc +0 -0
  100. package/python/postprocessors/__pycache__/test_ctc.cpython-313-pytest-9.1.1.pyc +0 -0
  101. package/python/postprocessors/__pycache__/test_ctc.cpython-313.pyc +0 -0
  102. package/python/postprocessors/__pycache__/test_ctc.cpython-314.pyc +0 -0
  103. package/python/postprocessors/__pycache__/test_plate_slots.cpython-312-pytest-9.1.1.pyc +0 -0
  104. package/python/postprocessors/__pycache__/test_rfdetr.cpython-312-pytest-9.1.1.pyc +0 -0
  105. package/python/postprocessors/__pycache__/test_rfdetr.cpython-314.pyc +0 -0
  106. package/python/postprocessors/__pycache__/test_saliency.cpython-312-pytest-9.1.1.pyc +0 -0
  107. package/python/postprocessors/__pycache__/test_saliency.cpython-313-pytest-9.1.1.pyc +0 -0
  108. package/python/postprocessors/__pycache__/test_saliency.cpython-314.pyc +0 -0
  109. package/python/postprocessors/__pycache__/test_softmax.cpython-312-pytest-9.1.1.pyc +0 -0
  110. package/python/postprocessors/__pycache__/test_softmax.cpython-314.pyc +0 -0
  111. package/python/postprocessors/__pycache__/test_yolo_nms.cpython-312-pytest-9.1.1.pyc +0 -0
  112. package/python/postprocessors/__pycache__/test_yolo_nms.cpython-314.pyc +0 -0
  113. package/python/postprocessors/__pycache__/test_yolo_nms.cpython-39.pyc +0 -0
  114. package/python/postprocessors/__pycache__/test_yolonas.cpython-312-pytest-9.1.1.pyc +0 -0
  115. package/python/postprocessors/__pycache__/yamnet.cpython-312.pyc +0 -0
  116. package/python/postprocessors/__pycache__/yamnet.cpython-313.pyc +0 -0
  117. package/python/postprocessors/__pycache__/yamnet.cpython-314.pyc +0 -0
  118. package/python/postprocessors/__pycache__/yolo.cpython-312.pyc +0 -0
  119. package/python/postprocessors/__pycache__/yolo.cpython-313.pyc +0 -0
  120. package/python/postprocessors/__pycache__/yolo.cpython-314.pyc +0 -0
  121. package/python/postprocessors/__pycache__/yolo.cpython-39.pyc +0 -0
  122. package/python/postprocessors/__pycache__/yolo_seg.cpython-312.pyc +0 -0
  123. package/python/postprocessors/__pycache__/yolo_seg.cpython-313.pyc +0 -0
  124. package/python/postprocessors/__pycache__/yolo_seg.cpython-314.pyc +0 -0
  125. package/python/postprocessors/__pycache__/yolonas.cpython-312.pyc +0 -0
  126. package/python/postprocessors/__pycache__/yolonas.cpython-314.pyc +0 -0
@@ -2,8 +2,8 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_dist = require("../dist-CKr6Q6Qu.js");
6
- const require_process_memory = require("../process-memory-BW7XFoPY.js");
5
+ const require_dist = require("../dist-PQArEi7A.js");
6
+ const require_process_memory = require("../process-memory-B4o15Ps9.js");
7
7
  let node_fs = require("node:fs");
8
8
  node_fs = require_dist.__toESM(node_fs);
9
9
  let node_path = require("node:path");
@@ -1,6 +1,6 @@
1
1
  import { n as __require } from "../chunk-DnnnRqeS.mjs";
2
- import { A as audioAnalysisCapability, It as hydrateSchema, S as PoolMemoryWatchdog, _t as resolvePoolMemoryPolicy, j as audioAnalyzerCapability, jt as BaseAddon, n as AUDIO_BACKEND_CHOICES, nt as mapAudioLabelToMacro, s as DEFAULT_AUDIO_ANALYZER_CONFIG, v as HF_BASE_URL, wt as errMsg } from "../dist-CxYG8IUX.mjs";
3
- import { n as pickNodePlatformArch, t as readProcessMemory } from "../process-memory-L6mHI28P.mjs";
2
+ import { A as audioAnalysisCapability, It as hydrateSchema, S as PoolMemoryWatchdog, _t as resolvePoolMemoryPolicy, j as audioAnalyzerCapability, jt as BaseAddon, n as AUDIO_BACKEND_CHOICES, nt as mapAudioLabelToMacro, s as DEFAULT_AUDIO_ANALYZER_CONFIG, v as HF_BASE_URL, wt as errMsg } from "../dist-Cjazw3T-.mjs";
3
+ import { n as pickNodePlatformArch, t as readProcessMemory } from "../process-memory-BgX9_XQ5.mjs";
4
4
  import * as fs from "node:fs";
5
5
  import * as path$1 from "node:path";
6
6
  import { downloadFile } from "@camstack/system/addon-utils";
@@ -2,12 +2,12 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_dist = require("../dist-CKr6Q6Qu.js");
6
- const require_node = require("../node-CmRTB9W4.js");
7
- const require_local_frame_registry = require("../local-frame-registry-B4Bd4tnU.js");
8
- const require_lazy_sharp = require("../lazy-sharp-D-HdRPo5.js");
5
+ const require_dist = require("../dist-PQArEi7A.js");
6
+ const require_node = require("../node-wFmd_eR_.js");
7
+ const require_local_frame_registry = require("../local-frame-registry-DNVTAOrZ.js");
8
+ const require_lazy_sharp = require("../lazy-sharp-DfnnPeG5.js");
9
9
  const require_event_loop_stall_monitor = require("../event-loop-stall-monitor-DaUBcb13.js");
10
- const require_process_memory = require("../process-memory-BW7XFoPY.js");
10
+ const require_process_memory = require("../process-memory-B4o15Ps9.js");
11
11
  let node_fs = require("node:fs");
12
12
  node_fs = require_dist.__toESM(node_fs);
13
13
  let node_path = require("node:path");
@@ -1,10 +1,10 @@
1
1
  import { n as __require } from "../chunk-DnnnRqeS.mjs";
2
- import { Bt as nodePin, Ft as createEvent, It as hydrateSchema, Kt as array, O as YAMNET_TO_MACRO, Q as inferModelProvider, Qt as object, S as PoolMemoryWatchdog, St as supportedRuntimes$1, Vt as parseJsonUnknown, W as detectionPipelineCapability, Wt as sleep, Y as evaluateZoneRules, _t as resolvePoolMemoryPolicy, at as overlayClusterStepSettings, c as DEFAULT_CLUSTER_STEP_MODELS, ct as pickClusterStepSettings, dt as pipelineExecutorCapability, en as string, et as loadContributionCapability, ht as resolveClusterStepModelId, jt as BaseAddon, l as DEFAULT_CLUSTER_STEP_SETTINGS, m as DEVICE_BACKEND_TO_FORMAT, nn as EventCategory, q as enumerateInferenceDevices, st as pickClusterStepModels, t as APPLE_SA_TO_MACRO, tn as union, wt as errMsg, yt as runtimeDevices$1, z as defaultDeviceFor$1 } from "../dist-CxYG8IUX.mjs";
3
- import { a as readProcessCost } from "../node-DhccO0of.mjs";
4
- import { a as getDefaultModelForFormat, c as getStepDefinition, i as ALL_STEPS, l as resolveModelForFormat, o as getDefaultModelForFormatFromDef, r as ALL_PIPELINE_STEPS, s as getStep, t as localFrameRegistry, u as landmarkPrecisionVerdict } from "../local-frame-registry-DP5yyEWE.mjs";
2
+ import { Bt as nodePin, Ft as createEvent, It as hydrateSchema, Kt as array, O as YAMNET_TO_MACRO, Q as inferModelProvider, Qt as object, S as PoolMemoryWatchdog, St as supportedRuntimes$1, Vt as parseJsonUnknown, W as detectionPipelineCapability, Wt as sleep, Y as evaluateZoneRules, _t as resolvePoolMemoryPolicy, at as overlayClusterStepSettings, c as DEFAULT_CLUSTER_STEP_MODELS, ct as pickClusterStepSettings, dt as pipelineExecutorCapability, en as string, et as loadContributionCapability, ht as resolveClusterStepModelId, jt as BaseAddon, l as DEFAULT_CLUSTER_STEP_SETTINGS, m as DEVICE_BACKEND_TO_FORMAT, nn as EventCategory, q as enumerateInferenceDevices, st as pickClusterStepModels, t as APPLE_SA_TO_MACRO, tn as union, wt as errMsg, yt as runtimeDevices$1, z as defaultDeviceFor$1 } from "../dist-Cjazw3T-.mjs";
3
+ import { a as readProcessCost } from "../node-KFUZT2L-.mjs";
4
+ import { a as getDefaultModelForFormat, c as getStepDefinition, i as ALL_STEPS, l as resolveModelForFormat, o as getDefaultModelForFormatFromDef, r as ALL_PIPELINE_STEPS, s as getStep, t as localFrameRegistry, u as landmarkPrecisionVerdict } from "../local-frame-registry-CrLITJ5O.mjs";
5
5
  import { t as getSharp } from "../lazy-sharp-DXsqwpph.mjs";
6
6
  import { n as startEventLoopStallMonitor } from "../event-loop-stall-monitor-DXLNBMkY.mjs";
7
- import { n as pickNodePlatformArch, t as readProcessMemory } from "../process-memory-L6mHI28P.mjs";
7
+ import { n as pickNodePlatformArch, t as readProcessMemory } from "../process-memory-BgX9_XQ5.mjs";
8
8
  import * as fs from "node:fs";
9
9
  import * as path$1 from "node:path";
10
10
  import { dirname, join } from "node:path";
@@ -1,5 +1,5 @@
1
1
  import { createHash } from "node:crypto";
2
- //#region ../types/dist/event-category-BZL-fdNj.mjs
2
+ //#region ../types/dist/event-category-zAv7pMUz.mjs
3
3
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4
4
  EventCategory["SystemBoot"] = "system.boot";
5
5
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -371,6 +371,13 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
371
371
  */
372
372
  EventCategory["BatteryOnStatusChanged"] = "battery.onStatusChanged";
373
373
  /**
374
+ * Cap event fired by every device that registers the `network-link`
375
+ * capability. Mirrors the cap definition's `onStatusChanged`. Carries
376
+ * `{ deviceId, status: NetworkLinkStatus }` — a link switch or a signal
377
+ * reading that moved.
378
+ */
379
+ EventCategory["NetworkLinkOnStatusChanged"] = "network-link.onStatusChanged";
380
+ /**
374
381
  * Emitted by the battery cap provider WHEN `wakeForStream` enters the
375
382
  * "wake in progress" window — between the Baichuan wake-up issue and
376
383
  * the camera's first dialed-back RTP packet. The stream-broker
@@ -25990,6 +25997,39 @@ onStatusChanged: { data: object({
25990
25997
  * whether persisting is worth a SQLite commit. */
25991
25998
  volatileStateFields: ["lastUpdated"]
25992
25999
  };
26000
+ /**
26001
+ * Network-link snapshot. Same shape for every provider (a Reolink wifi
26002
+ * camera, a Home Assistant device with a signal-strength sensor, a Tapo
26003
+ * plug): one slice under `device.runtimeState['network-link']`, one badge,
26004
+ * one Home Assistant projection.
26005
+ */
26006
+ var NetworkLinkStatusSchema = object({
26007
+ /** The link the device is on. `'unknown'` = not read yet, not "no link". */
26008
+ type: _enum([
26009
+ "wifi",
26010
+ "ethernet",
26011
+ "cellular",
26012
+ "unknown"
26013
+ ]),
26014
+ /**
26015
+ * Link quality, 0..100 inclusive, normalised by the provider from whatever
26016
+ * the firmware reports (bars, RSSI, a vendor scale). **`null` means NOT
26017
+ * KNOWN or NOT APPLICABLE** — a wired link has no signal, and a wireless
26018
+ * one whose reading has not landed must not be drawn at 0 %. Consumers
26019
+ * SKIP a null rather than coerce it.
26020
+ */
26021
+ signalPercent: number().min(0).max(100).nullable(),
26022
+ /** Raw received signal strength in dBm, when the firmware reports one. */
26023
+ rssiDbm: number().optional(),
26024
+ /** Network name of a wireless link, when the firmware reports it. */
26025
+ ssid: string().optional(),
26026
+ /** Ms epoch of the last observation. Lets consumers reason about freshness. */
26027
+ lastUpdated: number()
26028
+ });
26029
+ DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.Light, DeviceType.Lock, DeviceType.Siren, object({
26030
+ deviceId: number(),
26031
+ status: NetworkLinkStatusSchema
26032
+ });
25993
26033
  object({
25994
26034
  on: boolean(),
25995
26035
  /** Ms epoch of the last transition. 0 if never observed. */
@@ -29584,6 +29624,203 @@ DeviceType.Camera, method(object({ deviceId: number() }), PtzAutotrackStatusSche
29584
29624
  deviceId: number(),
29585
29625
  status: PtzAutotrackStatusSchema
29586
29626
  });
29627
+ /**
29628
+ * `navigation` — a device-scoped capability that natively expresses the FULL
29629
+ * navigation / action surface of a robot that DRIVES ITSELF and carries an
29630
+ * on-board camera (the Dreame robot-vacuum camera is the first provider).
29631
+ *
29632
+ * Why a NEW cap rather than overloading `ptz`:
29633
+ * - `ptz` moves a *gimbal* on a fixed camera (pan/tilt/zoom of the lens). A
29634
+ * robot vacuum has no gimbal — the whole chassis drives, turns and spins.
29635
+ * The two are different physical models: PTZ is absolute-position + presets,
29636
+ * navigation is momentary drive nudges + discrete robot ACTIONS
29637
+ * (dock / spot-clean / follow-pet / go-to-point / …).
29638
+ * - This cap is the SOURCE OF TRUTH. Two consumers adapt from it rather than
29639
+ * the reverse:
29640
+ * 1. a native CamStack navigation panel (data-driven from `listActions`
29641
+ * / `getOptions`), and
29642
+ * 2. the PTZ surface — a thin adapter mimics `ptz` from `navigation` so a
29643
+ * robot camera shows up in the existing PTZ control path without every
29644
+ * PTZ provider learning about robots. The mapping lives in the adapter,
29645
+ * not here (see the addon design note):
29646
+ * ptz.continuousMove({pan,tilt}) → navigation.move({pan,tilt})
29647
+ * ptz.stop() → navigation.stop()
29648
+ * ptz.goHome() → navigation.runAction('goHome')
29649
+ * ptz.getPresets() → navigation.listActions() (id→preset)
29650
+ * ptz.goToPreset(id) → navigation.runAction(id)
29651
+ *
29652
+ * ## Continuous drive
29653
+ *
29654
+ * `move` is MOMENTARY. Fluid navigation comes from the UI (or the PTZ adapter)
29655
+ * sending `move({pan,tilt})` REPEATEDLY at ~1 Hz while a direction is held, and
29656
+ * one `stop()` on release — exactly like the robot app's remote-drive joystick.
29657
+ * The provider forwards EACH `move` to one drive write; it must NOT debounce or
29658
+ * coalesce them. The UI owns the cadence.
29659
+ *
29660
+ * ## The action dictionary
29661
+ *
29662
+ * The discrete controls (dock / locate / spot-clean / follow / flash / sounds)
29663
+ * are a DATA-DRIVEN dictionary the cap exposes via `listActions()`. Each entry
29664
+ * carries `{ id, kind, label, icon }` (plus `soundId` for sound entries) so the
29665
+ * native panel AND the PTZ mimic render buttons WITHOUT hardcoding a
29666
+ * vendor-specific list. `kind: 'action'` entries are triggered with
29667
+ * `runAction({ actionId })`; `kind: 'sound'` entries with `playSound({ soundId })`
29668
+ * (the entry carries the `soundId` to pass). The general primitives — `move`,
29669
+ * `stop`, `goToPoint` — stay as first-class methods, not dictionary entries.
29670
+ *
29671
+ * NOTE (provider wiring): the first provider (Dreame) drives this with the RAW
29672
+ * `callAction(siid,aiid,in)` / `setProperty({siid,piid,value})` MIoT primitives
29673
+ * that the currently-published `@apocaliss92/nodedreame` already exposes on
29674
+ * every device handle. A future nodedreame publish adds a typed
29675
+ * `DreameCameraController` (drive / playPetSound / spotClean / findPet / …); the
29676
+ * provider can then swap the raw calls for the typed methods with no change to
29677
+ * THIS contract.
29678
+ */
29679
+ /**
29680
+ * A momentary drive nudge. The robot MOVES (no gimbal) for as long as the caller
29681
+ * keeps sending nudges (~1 Hz); an explicit `stop` (or letting the nudges lapse)
29682
+ * halts it.
29683
+ *
29684
+ * - `pan` — turn: negative = left, positive = right, 0 = straight.
29685
+ * - `tilt` — throttle: positive = forward, negative = spin / turn-around.
29686
+ * - `speed` — optional intensity hint [0, 1]; the provider may scale the drive
29687
+ * vector by it (drivers without proportional drive ignore it).
29688
+ *
29689
+ * `pan` / `tilt` are normalized [-1, 1]. Both optional so a caller can nudge one
29690
+ * axis alone; an all-undefined nudge is a no-op.
29691
+ */
29692
+ var NavigationMoveCommandSchema = object({
29693
+ pan: number().min(-1).max(1).optional(),
29694
+ tilt: number().min(-1).max(1).optional(),
29695
+ speed: number().min(0).max(1).optional()
29696
+ });
29697
+ /**
29698
+ * The enumerated discrete actions a navigation-capable robot can perform via
29699
+ * `runAction`. This is the CLOSED vocabulary; a given device advertises the
29700
+ * subset it supports through `listActions`. Sounds are NOT here — they go through
29701
+ * `playSound` (see the `sound` dictionary entries).
29702
+ */
29703
+ var NavigationActionIdSchema = _enum([
29704
+ "goHome",
29705
+ "locate",
29706
+ "spotClean",
29707
+ "findPet",
29708
+ "personFollow",
29709
+ "stop",
29710
+ "startClean",
29711
+ "pauseClean",
29712
+ "dockWash",
29713
+ "autoEmpty",
29714
+ "flashOn",
29715
+ "flashOff"
29716
+ ]);
29717
+ /** Whether a dictionary entry is a `runAction` action or a `playSound` sound. */
29718
+ var NavigationEntryKindSchema = _enum(["action", "sound"]);
29719
+ /**
29720
+ * One entry in the navigation action dictionary — the DATA-DRIVEN unit both the
29721
+ * native panel and the PTZ mimic render as a button.
29722
+ *
29723
+ * - `id` — stable id. For `kind:'action'` it is a {@link NavigationActionId}
29724
+ * (pass to `runAction`); for `kind:'sound'` it is a namespaced id
29725
+ * (`sound:meow`) whose `soundId` is passed to `playSound`.
29726
+ * - `icon` — icon HINT (lucide-style name; the UI maps it to its own set).
29727
+ * - `label` — operator-facing English label.
29728
+ * - `soundId` — wire sound id, present only on `kind:'sound'` entries.
29729
+ * - `enabled` — per-device FEATURE FLAG. `listActions` reports it so the UI /
29730
+ * PTZ render ONLY enabled entries. Data-driven: the provider
29731
+ * flips it from config, never by editing code.
29732
+ */
29733
+ var NavigationActionEntrySchema = object({
29734
+ id: string(),
29735
+ kind: NavigationEntryKindSchema,
29736
+ label: string(),
29737
+ icon: string(),
29738
+ /** Present only on `kind:'sound'` entries — the id to pass to `playSound`. */
29739
+ soundId: number().int().optional(),
29740
+ /** Per-device feature flag — render this entry only when true. */
29741
+ enabled: boolean()
29742
+ });
29743
+ /** Coordinates for `goToPoint` — a point on the robot's live map. */
29744
+ var NavigationPointSchema = object({
29745
+ x: number(),
29746
+ y: number()
29747
+ });
29748
+ /**
29749
+ * Per-device FEATURE-FLAG report for the general (non-dictionary) primitives.
29750
+ * The cap reports which are enabled so the UI / PTZ render only the controls
29751
+ * that are turned on for THIS device. Data-driven: the provider derives these
29752
+ * from config + probe, never hardcoded in the UI. The per-DICTIONARY-entry flags
29753
+ * live on {@link NavigationActionEntrySchema.enabled}; these gate the primitives
29754
+ * that are not dictionary entries.
29755
+ *
29756
+ * - `move` / `stop` — the momentary drive joystick.
29757
+ * - `goToPoint` — send-to-map-coordinate. Ships OFF on Dreame until the
29758
+ * map-coordinate plumbing is wired.
29759
+ * - `runAction` — the discrete action buttons (dictionary `kind:'action'`).
29760
+ * - `playSound` — the sound buttons (dictionary `kind:'sound'`).
29761
+ * - `light` — the on/off fill-light toggle (works anytime).
29762
+ * - `lightMode` — the auto/manual selector + manual level slider (a
29763
+ * camera-service control; needs an active stream).
29764
+ */
29765
+ var NavigationFeaturesSchema = object({
29766
+ move: boolean(),
29767
+ stop: boolean(),
29768
+ goToPoint: boolean(),
29769
+ runAction: boolean(),
29770
+ playSound: boolean(),
29771
+ light: boolean(),
29772
+ lightMode: boolean()
29773
+ });
29774
+ /** Light mode: `auto` lets the camera choose brightness; `manual` uses `level`. */
29775
+ var NavigationLightModeSchema = _enum(["auto", "manual"]);
29776
+ /**
29777
+ * Live navigation state so the UI can reflect what the robot is doing:
29778
+ * - `mode` — coarse activity (idle / cleaning / following / …).
29779
+ * - `following` — person/pet follow is currently armed.
29780
+ * - `flash` — the on-camera fill light is on.
29781
+ * - `lightMode` — auto vs manual fill-light mode.
29782
+ * - `lightLevel` — manual fill-light level (40..100); meaningful when
29783
+ * `lightMode === 'manual'`.
29784
+ */
29785
+ var NavigationStatusSchema = object({
29786
+ mode: _enum([
29787
+ "idle",
29788
+ "cleaning",
29789
+ "spot",
29790
+ "following",
29791
+ "goto",
29792
+ "returning",
29793
+ "paused",
29794
+ "unknown"
29795
+ ]),
29796
+ following: boolean(),
29797
+ flash: boolean(),
29798
+ lightMode: NavigationLightModeSchema,
29799
+ lightLevel: number().min(40).max(100),
29800
+ /** Ms epoch when the slice was last updated. */
29801
+ lastChangedAt: number()
29802
+ });
29803
+ NavigationStatusSchema.extend({ lastFetchedAt: number() });
29804
+ DeviceType.Camera, method(NavigationMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(NavigationPointSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(NavigationActionEntrySchema)), method(object({
29805
+ deviceId: number(),
29806
+ actionId: NavigationActionIdSchema
29807
+ }), _void(), { kind: "mutation" }), method(object({
29808
+ deviceId: number(),
29809
+ soundId: number().int()
29810
+ }), _void(), { kind: "mutation" }), method(object({
29811
+ deviceId: number(),
29812
+ on: boolean()
29813
+ }), _void(), { kind: "mutation" }), method(object({
29814
+ deviceId: number(),
29815
+ mode: NavigationLightModeSchema,
29816
+ level: number().min(40).max(100).optional()
29817
+ }), _void(), { kind: "mutation" }), method(object({
29818
+ deviceId: number(),
29819
+ level: number().min(40).max(100)
29820
+ }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), NavigationFeaturesSchema), object({
29821
+ deviceId: number(),
29822
+ status: NavigationStatusSchema
29823
+ });
29587
29824
  DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
29588
29825
  kind: "mutation",
29589
29826
  auth: "admin"
@@ -35032,6 +35269,66 @@ Object.freeze({
35032
35269
  addonId: null,
35033
35270
  access: "create"
35034
35271
  },
35272
+ "navigation.getFeatures": {
35273
+ capName: "navigation",
35274
+ capScope: "device",
35275
+ addonId: null,
35276
+ access: "view"
35277
+ },
35278
+ "navigation.goToPoint": {
35279
+ capName: "navigation",
35280
+ capScope: "device",
35281
+ addonId: null,
35282
+ access: "create"
35283
+ },
35284
+ "navigation.listActions": {
35285
+ capName: "navigation",
35286
+ capScope: "device",
35287
+ addonId: null,
35288
+ access: "view"
35289
+ },
35290
+ "navigation.move": {
35291
+ capName: "navigation",
35292
+ capScope: "device",
35293
+ addonId: null,
35294
+ access: "create"
35295
+ },
35296
+ "navigation.playSound": {
35297
+ capName: "navigation",
35298
+ capScope: "device",
35299
+ addonId: null,
35300
+ access: "create"
35301
+ },
35302
+ "navigation.runAction": {
35303
+ capName: "navigation",
35304
+ capScope: "device",
35305
+ addonId: null,
35306
+ access: "create"
35307
+ },
35308
+ "navigation.setLightLevel": {
35309
+ capName: "navigation",
35310
+ capScope: "device",
35311
+ addonId: null,
35312
+ access: "create"
35313
+ },
35314
+ "navigation.setLightMode": {
35315
+ capName: "navigation",
35316
+ capScope: "device",
35317
+ addonId: null,
35318
+ access: "create"
35319
+ },
35320
+ "navigation.setLightOn": {
35321
+ capName: "navigation",
35322
+ capScope: "device",
35323
+ addonId: null,
35324
+ access: "create"
35325
+ },
35326
+ "navigation.stop": {
35327
+ capName: "navigation",
35328
+ capScope: "device",
35329
+ addonId: null,
35330
+ access: "create"
35331
+ },
35035
35332
  "networkAccess.getEndpoint": {
35036
35333
  capName: "network-access",
35037
35334
  capScope: "system",
@@ -39127,6 +39424,56 @@ Object.freeze({
39127
39424
  form: "single",
39128
39425
  optional: false
39129
39426
  }],
39427
+ "navigation.getFeatures": [{
39428
+ name: "deviceId",
39429
+ form: "single",
39430
+ optional: false
39431
+ }],
39432
+ "navigation.goToPoint": [{
39433
+ name: "deviceId",
39434
+ form: "single",
39435
+ optional: false
39436
+ }],
39437
+ "navigation.listActions": [{
39438
+ name: "deviceId",
39439
+ form: "single",
39440
+ optional: false
39441
+ }],
39442
+ "navigation.move": [{
39443
+ name: "deviceId",
39444
+ form: "single",
39445
+ optional: false
39446
+ }],
39447
+ "navigation.playSound": [{
39448
+ name: "deviceId",
39449
+ form: "single",
39450
+ optional: false
39451
+ }],
39452
+ "navigation.runAction": [{
39453
+ name: "deviceId",
39454
+ form: "single",
39455
+ optional: false
39456
+ }],
39457
+ "navigation.setLightLevel": [{
39458
+ name: "deviceId",
39459
+ form: "single",
39460
+ optional: false
39461
+ }],
39462
+ "navigation.setLightMode": [{
39463
+ name: "deviceId",
39464
+ form: "single",
39465
+ optional: false
39466
+ }],
39467
+ "navigation.setLightOn": [{
39468
+ name: "deviceId",
39469
+ form: "single",
39470
+ optional: false
39471
+ }],
39472
+ "navigation.stop": [{
39473
+ name: "deviceId",
39474
+ form: "single",
39475
+ optional: false
39476
+ }],
39130
39477
  "networkQuality.getDeviceStats": [{
39131
39478
  name: "deviceId",
39132
39479
  form: "single",