@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
@@ -22,7 +22,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
22
22
  }) : target, mod));
23
23
  //#endregion
24
24
  let node_crypto = require("node:crypto");
25
- //#region ../types/dist/event-category-BZL-fdNj.mjs
25
+ //#region ../types/dist/event-category-zAv7pMUz.mjs
26
26
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
27
27
  EventCategory["SystemBoot"] = "system.boot";
28
28
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -394,6 +394,13 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
394
394
  */
395
395
  EventCategory["BatteryOnStatusChanged"] = "battery.onStatusChanged";
396
396
  /**
397
+ * Cap event fired by every device that registers the `network-link`
398
+ * capability. Mirrors the cap definition's `onStatusChanged`. Carries
399
+ * `{ deviceId, status: NetworkLinkStatus }` — a link switch or a signal
400
+ * reading that moved.
401
+ */
402
+ EventCategory["NetworkLinkOnStatusChanged"] = "network-link.onStatusChanged";
403
+ /**
397
404
  * Emitted by the battery cap provider WHEN `wakeForStream` enters the
398
405
  * "wake in progress" window — between the Baichuan wake-up issue and
399
406
  * the camera's first dialed-back RTP packet. The stream-broker
@@ -26013,6 +26020,39 @@ onStatusChanged: { data: object({
26013
26020
  * whether persisting is worth a SQLite commit. */
26014
26021
  volatileStateFields: ["lastUpdated"]
26015
26022
  };
26023
+ /**
26024
+ * Network-link snapshot. Same shape for every provider (a Reolink wifi
26025
+ * camera, a Home Assistant device with a signal-strength sensor, a Tapo
26026
+ * plug): one slice under `device.runtimeState['network-link']`, one badge,
26027
+ * one Home Assistant projection.
26028
+ */
26029
+ var NetworkLinkStatusSchema = object({
26030
+ /** The link the device is on. `'unknown'` = not read yet, not "no link". */
26031
+ type: _enum([
26032
+ "wifi",
26033
+ "ethernet",
26034
+ "cellular",
26035
+ "unknown"
26036
+ ]),
26037
+ /**
26038
+ * Link quality, 0..100 inclusive, normalised by the provider from whatever
26039
+ * the firmware reports (bars, RSSI, a vendor scale). **`null` means NOT
26040
+ * KNOWN or NOT APPLICABLE** — a wired link has no signal, and a wireless
26041
+ * one whose reading has not landed must not be drawn at 0 %. Consumers
26042
+ * SKIP a null rather than coerce it.
26043
+ */
26044
+ signalPercent: number().min(0).max(100).nullable(),
26045
+ /** Raw received signal strength in dBm, when the firmware reports one. */
26046
+ rssiDbm: number().optional(),
26047
+ /** Network name of a wireless link, when the firmware reports it. */
26048
+ ssid: string().optional(),
26049
+ /** Ms epoch of the last observation. Lets consumers reason about freshness. */
26050
+ lastUpdated: number()
26051
+ });
26052
+ DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.Light, DeviceType.Lock, DeviceType.Siren, object({
26053
+ deviceId: number(),
26054
+ status: NetworkLinkStatusSchema
26055
+ });
26016
26056
  object({
26017
26057
  on: boolean(),
26018
26058
  /** Ms epoch of the last transition. 0 if never observed. */
@@ -29607,6 +29647,203 @@ DeviceType.Camera, method(object({ deviceId: number() }), PtzAutotrackStatusSche
29607
29647
  deviceId: number(),
29608
29648
  status: PtzAutotrackStatusSchema
29609
29649
  });
29650
+ /**
29651
+ * `navigation` — a device-scoped capability that natively expresses the FULL
29652
+ * navigation / action surface of a robot that DRIVES ITSELF and carries an
29653
+ * on-board camera (the Dreame robot-vacuum camera is the first provider).
29654
+ *
29655
+ * Why a NEW cap rather than overloading `ptz`:
29656
+ * - `ptz` moves a *gimbal* on a fixed camera (pan/tilt/zoom of the lens). A
29657
+ * robot vacuum has no gimbal — the whole chassis drives, turns and spins.
29658
+ * The two are different physical models: PTZ is absolute-position + presets,
29659
+ * navigation is momentary drive nudges + discrete robot ACTIONS
29660
+ * (dock / spot-clean / follow-pet / go-to-point / …).
29661
+ * - This cap is the SOURCE OF TRUTH. Two consumers adapt from it rather than
29662
+ * the reverse:
29663
+ * 1. a native CamStack navigation panel (data-driven from `listActions`
29664
+ * / `getOptions`), and
29665
+ * 2. the PTZ surface — a thin adapter mimics `ptz` from `navigation` so a
29666
+ * robot camera shows up in the existing PTZ control path without every
29667
+ * PTZ provider learning about robots. The mapping lives in the adapter,
29668
+ * not here (see the addon design note):
29669
+ * ptz.continuousMove({pan,tilt}) → navigation.move({pan,tilt})
29670
+ * ptz.stop() → navigation.stop()
29671
+ * ptz.goHome() → navigation.runAction('goHome')
29672
+ * ptz.getPresets() → navigation.listActions() (id→preset)
29673
+ * ptz.goToPreset(id) → navigation.runAction(id)
29674
+ *
29675
+ * ## Continuous drive
29676
+ *
29677
+ * `move` is MOMENTARY. Fluid navigation comes from the UI (or the PTZ adapter)
29678
+ * sending `move({pan,tilt})` REPEATEDLY at ~1 Hz while a direction is held, and
29679
+ * one `stop()` on release — exactly like the robot app's remote-drive joystick.
29680
+ * The provider forwards EACH `move` to one drive write; it must NOT debounce or
29681
+ * coalesce them. The UI owns the cadence.
29682
+ *
29683
+ * ## The action dictionary
29684
+ *
29685
+ * The discrete controls (dock / locate / spot-clean / follow / flash / sounds)
29686
+ * are a DATA-DRIVEN dictionary the cap exposes via `listActions()`. Each entry
29687
+ * carries `{ id, kind, label, icon }` (plus `soundId` for sound entries) so the
29688
+ * native panel AND the PTZ mimic render buttons WITHOUT hardcoding a
29689
+ * vendor-specific list. `kind: 'action'` entries are triggered with
29690
+ * `runAction({ actionId })`; `kind: 'sound'` entries with `playSound({ soundId })`
29691
+ * (the entry carries the `soundId` to pass). The general primitives — `move`,
29692
+ * `stop`, `goToPoint` — stay as first-class methods, not dictionary entries.
29693
+ *
29694
+ * NOTE (provider wiring): the first provider (Dreame) drives this with the RAW
29695
+ * `callAction(siid,aiid,in)` / `setProperty({siid,piid,value})` MIoT primitives
29696
+ * that the currently-published `@apocaliss92/nodedreame` already exposes on
29697
+ * every device handle. A future nodedreame publish adds a typed
29698
+ * `DreameCameraController` (drive / playPetSound / spotClean / findPet / …); the
29699
+ * provider can then swap the raw calls for the typed methods with no change to
29700
+ * THIS contract.
29701
+ */
29702
+ /**
29703
+ * A momentary drive nudge. The robot MOVES (no gimbal) for as long as the caller
29704
+ * keeps sending nudges (~1 Hz); an explicit `stop` (or letting the nudges lapse)
29705
+ * halts it.
29706
+ *
29707
+ * - `pan` — turn: negative = left, positive = right, 0 = straight.
29708
+ * - `tilt` — throttle: positive = forward, negative = spin / turn-around.
29709
+ * - `speed` — optional intensity hint [0, 1]; the provider may scale the drive
29710
+ * vector by it (drivers without proportional drive ignore it).
29711
+ *
29712
+ * `pan` / `tilt` are normalized [-1, 1]. Both optional so a caller can nudge one
29713
+ * axis alone; an all-undefined nudge is a no-op.
29714
+ */
29715
+ var NavigationMoveCommandSchema = object({
29716
+ pan: number().min(-1).max(1).optional(),
29717
+ tilt: number().min(-1).max(1).optional(),
29718
+ speed: number().min(0).max(1).optional()
29719
+ });
29720
+ /**
29721
+ * The enumerated discrete actions a navigation-capable robot can perform via
29722
+ * `runAction`. This is the CLOSED vocabulary; a given device advertises the
29723
+ * subset it supports through `listActions`. Sounds are NOT here — they go through
29724
+ * `playSound` (see the `sound` dictionary entries).
29725
+ */
29726
+ var NavigationActionIdSchema = _enum([
29727
+ "goHome",
29728
+ "locate",
29729
+ "spotClean",
29730
+ "findPet",
29731
+ "personFollow",
29732
+ "stop",
29733
+ "startClean",
29734
+ "pauseClean",
29735
+ "dockWash",
29736
+ "autoEmpty",
29737
+ "flashOn",
29738
+ "flashOff"
29739
+ ]);
29740
+ /** Whether a dictionary entry is a `runAction` action or a `playSound` sound. */
29741
+ var NavigationEntryKindSchema = _enum(["action", "sound"]);
29742
+ /**
29743
+ * One entry in the navigation action dictionary — the DATA-DRIVEN unit both the
29744
+ * native panel and the PTZ mimic render as a button.
29745
+ *
29746
+ * - `id` — stable id. For `kind:'action'` it is a {@link NavigationActionId}
29747
+ * (pass to `runAction`); for `kind:'sound'` it is a namespaced id
29748
+ * (`sound:meow`) whose `soundId` is passed to `playSound`.
29749
+ * - `icon` — icon HINT (lucide-style name; the UI maps it to its own set).
29750
+ * - `label` — operator-facing English label.
29751
+ * - `soundId` — wire sound id, present only on `kind:'sound'` entries.
29752
+ * - `enabled` — per-device FEATURE FLAG. `listActions` reports it so the UI /
29753
+ * PTZ render ONLY enabled entries. Data-driven: the provider
29754
+ * flips it from config, never by editing code.
29755
+ */
29756
+ var NavigationActionEntrySchema = object({
29757
+ id: string(),
29758
+ kind: NavigationEntryKindSchema,
29759
+ label: string(),
29760
+ icon: string(),
29761
+ /** Present only on `kind:'sound'` entries — the id to pass to `playSound`. */
29762
+ soundId: number().int().optional(),
29763
+ /** Per-device feature flag — render this entry only when true. */
29764
+ enabled: boolean()
29765
+ });
29766
+ /** Coordinates for `goToPoint` — a point on the robot's live map. */
29767
+ var NavigationPointSchema = object({
29768
+ x: number(),
29769
+ y: number()
29770
+ });
29771
+ /**
29772
+ * Per-device FEATURE-FLAG report for the general (non-dictionary) primitives.
29773
+ * The cap reports which are enabled so the UI / PTZ render only the controls
29774
+ * that are turned on for THIS device. Data-driven: the provider derives these
29775
+ * from config + probe, never hardcoded in the UI. The per-DICTIONARY-entry flags
29776
+ * live on {@link NavigationActionEntrySchema.enabled}; these gate the primitives
29777
+ * that are not dictionary entries.
29778
+ *
29779
+ * - `move` / `stop` — the momentary drive joystick.
29780
+ * - `goToPoint` — send-to-map-coordinate. Ships OFF on Dreame until the
29781
+ * map-coordinate plumbing is wired.
29782
+ * - `runAction` — the discrete action buttons (dictionary `kind:'action'`).
29783
+ * - `playSound` — the sound buttons (dictionary `kind:'sound'`).
29784
+ * - `light` — the on/off fill-light toggle (works anytime).
29785
+ * - `lightMode` — the auto/manual selector + manual level slider (a
29786
+ * camera-service control; needs an active stream).
29787
+ */
29788
+ var NavigationFeaturesSchema = object({
29789
+ move: boolean(),
29790
+ stop: boolean(),
29791
+ goToPoint: boolean(),
29792
+ runAction: boolean(),
29793
+ playSound: boolean(),
29794
+ light: boolean(),
29795
+ lightMode: boolean()
29796
+ });
29797
+ /** Light mode: `auto` lets the camera choose brightness; `manual` uses `level`. */
29798
+ var NavigationLightModeSchema = _enum(["auto", "manual"]);
29799
+ /**
29800
+ * Live navigation state so the UI can reflect what the robot is doing:
29801
+ * - `mode` — coarse activity (idle / cleaning / following / …).
29802
+ * - `following` — person/pet follow is currently armed.
29803
+ * - `flash` — the on-camera fill light is on.
29804
+ * - `lightMode` — auto vs manual fill-light mode.
29805
+ * - `lightLevel` — manual fill-light level (40..100); meaningful when
29806
+ * `lightMode === 'manual'`.
29807
+ */
29808
+ var NavigationStatusSchema = object({
29809
+ mode: _enum([
29810
+ "idle",
29811
+ "cleaning",
29812
+ "spot",
29813
+ "following",
29814
+ "goto",
29815
+ "returning",
29816
+ "paused",
29817
+ "unknown"
29818
+ ]),
29819
+ following: boolean(),
29820
+ flash: boolean(),
29821
+ lightMode: NavigationLightModeSchema,
29822
+ lightLevel: number().min(40).max(100),
29823
+ /** Ms epoch when the slice was last updated. */
29824
+ lastChangedAt: number()
29825
+ });
29826
+ NavigationStatusSchema.extend({ lastFetchedAt: number() });
29827
+ 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({
29828
+ deviceId: number(),
29829
+ actionId: NavigationActionIdSchema
29830
+ }), _void(), { kind: "mutation" }), method(object({
29831
+ deviceId: number(),
29832
+ soundId: number().int()
29833
+ }), _void(), { kind: "mutation" }), method(object({
29834
+ deviceId: number(),
29835
+ on: boolean()
29836
+ }), _void(), { kind: "mutation" }), method(object({
29837
+ deviceId: number(),
29838
+ mode: NavigationLightModeSchema,
29839
+ level: number().min(40).max(100).optional()
29840
+ }), _void(), { kind: "mutation" }), method(object({
29841
+ deviceId: number(),
29842
+ level: number().min(40).max(100)
29843
+ }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), NavigationFeaturesSchema), object({
29844
+ deviceId: number(),
29845
+ status: NavigationStatusSchema
29846
+ });
29610
29847
  DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
29611
29848
  kind: "mutation",
29612
29849
  auth: "admin"
@@ -35055,6 +35292,66 @@ Object.freeze({
35055
35292
  addonId: null,
35056
35293
  access: "create"
35057
35294
  },
35295
+ "navigation.getFeatures": {
35296
+ capName: "navigation",
35297
+ capScope: "device",
35298
+ addonId: null,
35299
+ access: "view"
35300
+ },
35301
+ "navigation.goToPoint": {
35302
+ capName: "navigation",
35303
+ capScope: "device",
35304
+ addonId: null,
35305
+ access: "create"
35306
+ },
35307
+ "navigation.listActions": {
35308
+ capName: "navigation",
35309
+ capScope: "device",
35310
+ addonId: null,
35311
+ access: "view"
35312
+ },
35313
+ "navigation.move": {
35314
+ capName: "navigation",
35315
+ capScope: "device",
35316
+ addonId: null,
35317
+ access: "create"
35318
+ },
35319
+ "navigation.playSound": {
35320
+ capName: "navigation",
35321
+ capScope: "device",
35322
+ addonId: null,
35323
+ access: "create"
35324
+ },
35325
+ "navigation.runAction": {
35326
+ capName: "navigation",
35327
+ capScope: "device",
35328
+ addonId: null,
35329
+ access: "create"
35330
+ },
35331
+ "navigation.setLightLevel": {
35332
+ capName: "navigation",
35333
+ capScope: "device",
35334
+ addonId: null,
35335
+ access: "create"
35336
+ },
35337
+ "navigation.setLightMode": {
35338
+ capName: "navigation",
35339
+ capScope: "device",
35340
+ addonId: null,
35341
+ access: "create"
35342
+ },
35343
+ "navigation.setLightOn": {
35344
+ capName: "navigation",
35345
+ capScope: "device",
35346
+ addonId: null,
35347
+ access: "create"
35348
+ },
35349
+ "navigation.stop": {
35350
+ capName: "navigation",
35351
+ capScope: "device",
35352
+ addonId: null,
35353
+ access: "create"
35354
+ },
35058
35355
  "networkAccess.getEndpoint": {
35059
35356
  capName: "network-access",
35060
35357
  capScope: "system",
@@ -39150,6 +39447,56 @@ Object.freeze({
39150
39447
  form: "single",
39151
39448
  optional: false
39152
39449
  }],
39450
+ "navigation.getFeatures": [{
39451
+ name: "deviceId",
39452
+ form: "single",
39453
+ optional: false
39454
+ }],
39455
+ "navigation.goToPoint": [{
39456
+ name: "deviceId",
39457
+ form: "single",
39458
+ optional: false
39459
+ }],
39460
+ "navigation.listActions": [{
39461
+ name: "deviceId",
39462
+ form: "single",
39463
+ optional: false
39464
+ }],
39465
+ "navigation.move": [{
39466
+ name: "deviceId",
39467
+ form: "single",
39468
+ optional: false
39469
+ }],
39470
+ "navigation.playSound": [{
39471
+ name: "deviceId",
39472
+ form: "single",
39473
+ optional: false
39474
+ }],
39475
+ "navigation.runAction": [{
39476
+ name: "deviceId",
39477
+ form: "single",
39478
+ optional: false
39479
+ }],
39480
+ "navigation.setLightLevel": [{
39481
+ name: "deviceId",
39482
+ form: "single",
39483
+ optional: false
39484
+ }],
39485
+ "navigation.setLightMode": [{
39486
+ name: "deviceId",
39487
+ form: "single",
39488
+ optional: false
39489
+ }],
39490
+ "navigation.setLightOn": [{
39491
+ name: "deviceId",
39492
+ form: "single",
39493
+ optional: false
39494
+ }],
39495
+ "navigation.stop": [{
39496
+ name: "deviceId",
39497
+ form: "single",
39498
+ optional: false
39499
+ }],
39153
39500
  "networkQuality.getDeviceStats": [{
39154
39501
  name: "deviceId",
39155
39502
  form: "single",
@@ -1,4 +1,4 @@
1
- const require_dist = require("./dist-CKr6Q6Qu.js");
1
+ const require_dist = require("./dist-PQArEi7A.js");
2
2
  let node_path = require("node:path");
3
3
  node_path = require_dist.__toESM(node_path);
4
4
  let node_url = require("node:url");
@@ -1,4 +1,4 @@
1
- import { M as audioKindId, Z as hfModelUrl, a as COCO_80_LABELS, o as COCO_TO_MACRO, r as AUDIO_MACRO_LABELS } from "./dist-CxYG8IUX.mjs";
1
+ import { M as audioKindId, Z as hfModelUrl, a as COCO_80_LABELS, o as COCO_TO_MACRO, r as AUDIO_MACRO_LABELS } from "./dist-Cjazw3T-.mjs";
2
2
  import { randomUUID } from "node:crypto";
3
3
  //#region src/detection-pipeline/registry/model-catalogs.ts
4
4
  var HF_REPO = "camstack/camstack-models";
@@ -1,4 +1,4 @@
1
- const require_dist = require("./dist-CKr6Q6Qu.js");
1
+ const require_dist = require("./dist-PQArEi7A.js");
2
2
  let node_crypto = require("node:crypto");
3
3
  //#region src/detection-pipeline/registry/model-catalogs.ts
4
4
  var HF_REPO = "camstack/camstack-models";
@@ -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_lazy_sharp = require("../lazy-sharp-D-HdRPo5.js");
5
+ const require_dist = require("../dist-PQArEi7A.js");
6
+ const require_lazy_sharp = require("../lazy-sharp-DfnnPeG5.js");
7
7
  let node_fs = require("node:fs");
8
8
  let node_path = require("node:path");
9
9
  //#region src/motion-wasm/wasm-motion-detector.ts
@@ -1,4 +1,4 @@
1
- import { It as hydrateSchema, Pt as DeviceType, Y as evaluateZoneRules, it as motionDetectionCapability, jt as BaseAddon } from "../dist-CxYG8IUX.mjs";
1
+ import { It as hydrateSchema, Pt as DeviceType, Y as evaluateZoneRules, it as motionDetectionCapability, jt as BaseAddon } from "../dist-Cjazw3T-.mjs";
2
2
  import { t as getSharp } from "../lazy-sharp-DXsqwpph.mjs";
3
3
  import { readFileSync } from "node:fs";
4
4
  import { join } from "node:path";
@@ -1,4 +1,4 @@
1
- import { Dt as buildFfmpegArgs, Et as Fmp4BoxSplitter, kt as isSoftwareDecode, wt as errMsg } from "./dist-CxYG8IUX.mjs";
1
+ import { Dt as buildFfmpegArgs, Et as Fmp4BoxSplitter, kt as isSoftwareDecode, wt as errMsg } from "./dist-Cjazw3T-.mjs";
2
2
  import { randomUUID } from "node:crypto";
3
3
  import "node:fs";
4
4
  import "node:path";
@@ -1,4 +1,4 @@
1
- const require_dist = require("./dist-CKr6Q6Qu.js");
1
+ const require_dist = require("./dist-PQArEi7A.js");
2
2
  let node_crypto = require("node:crypto");
3
3
  let node_fs = require("node:fs");
4
4
  node_fs = require_dist.__toESM(node_fs, 1);
@@ -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_worker_protocol = require("../worker-protocol-C8ZBUm08.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_worker_protocol = require("../worker-protocol-BulRQMSK.js");
9
9
  const require_hub_hostname = require("../hub-hostname-DAJXlOgV.js");
10
- const require_lazy_sharp = require("../lazy-sharp-D-HdRPo5.js");
10
+ const require_lazy_sharp = require("../lazy-sharp-DfnnPeG5.js");
11
11
  const require_restream_intent = require("../restream-intent-Cv9x3jmu.js");
12
12
  const require_event_loop_stall_monitor = require("../event-loop-stall-monitor-DaUBcb13.js");
13
13
  const require_remote_restream = require("../remote-restream-CO36Sr30.js");
@@ -928,6 +928,55 @@ function cropRgb(frame, bbox, maxWidth) {
928
928
  };
929
929
  }
930
930
  //#endregion
931
+ //#region src/pipeline-runner/frame-cutter-binding.ts
932
+ /** The per-frame binding key — the same identity the retention handle carries. */
933
+ function frameCutterKey(handle) {
934
+ return `${handle.shmId}#${handle.slot}#${handle.seq}`;
935
+ }
936
+ var FrameCutterBinding = class {
937
+ max;
938
+ map = /* @__PURE__ */ new Map();
939
+ constructor(max) {
940
+ this.max = max;
941
+ }
942
+ /** Bind at delivery. Re-binding the same handle replaces without stranding the first. */
943
+ bind(handle, cutter) {
944
+ const key = frameCutterKey(handle);
945
+ this.map.delete(key);
946
+ this.map.set(key, cutter);
947
+ while (this.map.size > this.max) {
948
+ const oldest = this.map.keys().next().value;
949
+ if (oldest === void 0) break;
950
+ const stale = this.map.get(oldest);
951
+ this.map.delete(oldest);
952
+ release(stale);
953
+ }
954
+ }
955
+ /** Consume the binding for a frame whose result arrived. `undefined` when already ended. */
956
+ take(handle) {
957
+ const key = frameCutterKey(handle);
958
+ const cutter = this.map.get(key);
959
+ this.map.delete(key);
960
+ return cutter;
961
+ }
962
+ /**
963
+ * End the hold of a frame the runner let go without a result. A no-op for a
964
+ * frame whose result already consumed the binding, so the two paths cannot
965
+ * double-release.
966
+ */
967
+ drop(handle) {
968
+ release(this.take(handle));
969
+ }
970
+ get size() {
971
+ return this.map.size;
972
+ }
973
+ };
974
+ function release(cutter) {
975
+ try {
976
+ cutter?.release();
977
+ } catch {}
978
+ }
979
+ //#endregion
931
980
  //#region src/session-decode/session-decode-coordinator.ts
932
981
  /** How long to wait after `kill()` before escalating to `kill('SIGKILL')`. */
933
982
  var SIGKILL_FALLBACK_MS = 1e3;
@@ -5237,10 +5286,6 @@ var PACKAGE_ZONE_UNION_TTL_MS = 6e4;
5237
5286
  var MAX_BOUND_FRAME_CUTTERS = 256;
5238
5287
  /** How often a camera reports its undispatched cuts. */
5239
5288
  var TILE_CUT_DROP_LOG_INTERVAL_MS = 6e4;
5240
- /** The per-frame binding key — the same identity the retention handle carries. */
5241
- function frameCutterKey(handle) {
5242
- return `${handle.shmId}#${handle.slot}#${handle.seq}`;
5243
- }
5244
5289
  var DEFAULT_CONFIG = {
5245
5290
  maxQueueDepth: 30,
5246
5291
  maxConcurrentInferences: 16,
@@ -5593,16 +5638,11 @@ var PipelineRunnerAddon = class PipelineRunnerAddon extends require_dist.BaseAdd
5593
5638
  */
5594
5639
  nativeCropRegistry = new NativeCropRegistry();
5595
5640
  /**
5596
- * Per-frame cutter bindings — handle key → the requester that can cut this
5597
- * frame's subject tiles and end its hold.
5598
- *
5599
- * Deliberately NOT `nativeCropRegistry`. That one is a node-wide LRU capped
5600
- * at 256 and shared by every camera to serve LATE cross-process crops; on the
5601
- * live hub it sits pinned at its cap, so an entry's lifetime depends on how
5602
- * busy the OTHER cameras are. Ending a frame's hold is a per-frame lifecycle
5603
- * event and cannot be allowed to depend on that.
5641
+ * Per-frame cutter bindings — the requester that can cut a frame's subject
5642
+ * tiles and end its hold, ended by its result, by a drop, or by the bound.
5643
+ * See `frame-cutter-binding.ts` for why this is not `nativeCropRegistry`.
5604
5644
  */
5605
- frameCutters = /* @__PURE__ */ new Map();
5645
+ frameCutters = new FrameCutterBinding(MAX_BOUND_FRAME_CUTTERS);
5606
5646
  /** Per-camera tally of cuts that could not be dispatched, and why. */
5607
5647
  tileCutDrops = /* @__PURE__ */ new Map();
5608
5648
  tileCutDropLoggedAt = /* @__PURE__ */ new Map();
@@ -5829,7 +5869,10 @@ var PipelineRunnerAddon = class PipelineRunnerAddon extends require_dist.BaseAdd
5829
5869
  processFrame: (deviceId, frame, handle) => this.runInference(deviceId, frame, handle),
5830
5870
  analyzeMotion: (deviceId, frame, handle) => this.runMotionAnalysis(deviceId, frame, handle),
5831
5871
  releaseFrameRef: (ref, reason) => require_local_frame_registry.localFrameRegistry.release(ref, reason),
5832
- releaseRetention: (handle, reason) => this.retention?.release(handle, reason),
5872
+ releaseRetention: (handle, reason) => {
5873
+ this.retention?.release(handle, reason);
5874
+ this.frameCutters.drop(handle);
5875
+ },
5833
5876
  hydrateRetainedFrame: (handle) => this.retainedFrames?.ensureContent(handle) ?? Promise.resolve(null),
5834
5877
  onPhaseChanged: (deviceId, phase, meta) => this.handlePhaseChanged(deviceId, phase, meta),
5835
5878
  logger: this.ctx.logger,
@@ -6813,9 +6856,7 @@ var PipelineRunnerAddon = class PipelineRunnerAddon extends require_dist.BaseAdd
6813
6856
  */
6814
6857
  dispatchSubjectTiles(result, handle) {
6815
6858
  if (!handle) return "handleless";
6816
- const key = frameCutterKey(handle);
6817
- const cutter = this.frameCutters.get(key);
6818
- this.frameCutters.delete(key);
6859
+ const cutter = this.frameCutters.take(handle);
6819
6860
  if (!cutter) return "unbound";
6820
6861
  const boxes = planTileCuts(result.detections ?? [], {
6821
6862
  width: result.width,
@@ -6839,18 +6880,7 @@ var PipelineRunnerAddon = class PipelineRunnerAddon extends require_dist.BaseAdd
6839
6880
  * runner stopped answering" rather than "the runner forgot".
6840
6881
  */
6841
6882
  bindFrameCutter(handle, cutter) {
6842
- const key = frameCutterKey(handle);
6843
- this.frameCutters.delete(key);
6844
- this.frameCutters.set(key, cutter);
6845
- while (this.frameCutters.size > MAX_BOUND_FRAME_CUTTERS) {
6846
- const oldest = this.frameCutters.keys().next().value;
6847
- if (oldest === void 0) break;
6848
- const stale = this.frameCutters.get(oldest);
6849
- this.frameCutters.delete(oldest);
6850
- try {
6851
- stale?.release();
6852
- } catch {}
6853
- }
6883
+ this.frameCutters.bind(handle, cutter);
6854
6884
  }
6855
6885
  /**
6856
6886
  * The native-lease half of {@link getNativeCrop}, extracted so the DETAIL path