@camstack/addon-pipeline-orchestrator 1.2.155 → 1.2.157

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 (19) hide show
  1. package/assets/viewer/.viewer-current-files.json +5 -5
  2. package/assets/viewer/.viewer-version +1 -1
  3. package/assets/viewer/_expo/static/js/web/Clipboard-0ad1283b2f72f6313b2d8bb1d2306893.js +8 -0
  4. package/assets/viewer/_expo/static/js/web/Haptics-a4c018f6b624c003e69527312a0499f6.js +3 -0
  5. package/assets/viewer/_expo/static/js/web/index-73eeb42ae400e1ba348734708a437d48.js +3676 -0
  6. package/assets/viewer/_expo/static/js/web/node-fs-877950a91dc1a7e99d7bbccbd5d2d76d.js +1 -0
  7. package/assets/viewer/_expo/static/js/web/node-path-80152226e0c2d06a96fc7dd4bb153d05.js +1 -0
  8. package/assets/viewer/index.html +1 -1
  9. package/dist/_stub.js +2 -2
  10. package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_orchestrator_widgets-BOf7GO1V.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_orchestrator_widgets-BlCdhEUD.mjs} +3 -3
  11. package/dist/_virtual_mf___mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BeFrCpMD.mjs +26 -0
  12. package/dist/_virtual_mf___mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-CPl8KXva.mjs +26 -0
  13. package/dist/{hostInit-XEl2iqFg.mjs → hostInit-CiOO7oNa.mjs} +3 -3
  14. package/dist/index.js +348 -1
  15. package/dist/index.mjs +348 -1
  16. package/dist/remoteEntry.js +1 -1
  17. package/package.json +1 -1
  18. package/dist/_virtual_mf___mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-D5G3kOI3.mjs +0 -26
  19. package/dist/_virtual_mf___mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-HpCSXGt7.mjs +0 -26
package/dist/index.js CHANGED
@@ -30,7 +30,7 @@ node_fs = __toESM(node_fs);
30
30
  let node_path = require("node:path");
31
31
  node_path = __toESM(node_path);
32
32
  let node_url = require("node:url");
33
- //#region ../types/dist/event-category-BZL-fdNj.mjs
33
+ //#region ../types/dist/event-category-zAv7pMUz.mjs
34
34
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
35
35
  EventCategory["SystemBoot"] = "system.boot";
36
36
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -402,6 +402,13 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
402
402
  */
403
403
  EventCategory["BatteryOnStatusChanged"] = "battery.onStatusChanged";
404
404
  /**
405
+ * Cap event fired by every device that registers the `network-link`
406
+ * capability. Mirrors the cap definition's `onStatusChanged`. Carries
407
+ * `{ deviceId, status: NetworkLinkStatus }` — a link switch or a signal
408
+ * reading that moved.
409
+ */
410
+ EventCategory["NetworkLinkOnStatusChanged"] = "network-link.onStatusChanged";
411
+ /**
405
412
  * Emitted by the battery cap provider WHEN `wakeForStream` enters the
406
413
  * "wake in progress" window — between the Baichuan wake-up issue and
407
414
  * the camera's first dialed-back RTP packet. The stream-broker
@@ -24848,6 +24855,39 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, meth
24848
24855
  deviceId: number(),
24849
24856
  status: BatteryStatusSchema
24850
24857
  });
24858
+ /**
24859
+ * Network-link snapshot. Same shape for every provider (a Reolink wifi
24860
+ * camera, a Home Assistant device with a signal-strength sensor, a Tapo
24861
+ * plug): one slice under `device.runtimeState['network-link']`, one badge,
24862
+ * one Home Assistant projection.
24863
+ */
24864
+ var NetworkLinkStatusSchema = object({
24865
+ /** The link the device is on. `'unknown'` = not read yet, not "no link". */
24866
+ type: _enum([
24867
+ "wifi",
24868
+ "ethernet",
24869
+ "cellular",
24870
+ "unknown"
24871
+ ]),
24872
+ /**
24873
+ * Link quality, 0..100 inclusive, normalised by the provider from whatever
24874
+ * the firmware reports (bars, RSSI, a vendor scale). **`null` means NOT
24875
+ * KNOWN or NOT APPLICABLE** — a wired link has no signal, and a wireless
24876
+ * one whose reading has not landed must not be drawn at 0 %. Consumers
24877
+ * SKIP a null rather than coerce it.
24878
+ */
24879
+ signalPercent: number().min(0).max(100).nullable(),
24880
+ /** Raw received signal strength in dBm, when the firmware reports one. */
24881
+ rssiDbm: number().optional(),
24882
+ /** Network name of a wireless link, when the firmware reports it. */
24883
+ ssid: string().optional(),
24884
+ /** Ms epoch of the last observation. Lets consumers reason about freshness. */
24885
+ lastUpdated: number()
24886
+ });
24887
+ DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.Light, DeviceType.Lock, DeviceType.Siren, object({
24888
+ deviceId: number(),
24889
+ status: NetworkLinkStatusSchema
24890
+ });
24851
24891
  object({
24852
24892
  on: boolean(),
24853
24893
  /** Ms epoch of the last transition. 0 if never observed. */
@@ -28442,6 +28482,203 @@ DeviceType.Camera, method(object({ deviceId: number() }), PtzAutotrackStatusSche
28442
28482
  deviceId: number(),
28443
28483
  status: PtzAutotrackStatusSchema
28444
28484
  });
28485
+ /**
28486
+ * `navigation` — a device-scoped capability that natively expresses the FULL
28487
+ * navigation / action surface of a robot that DRIVES ITSELF and carries an
28488
+ * on-board camera (the Dreame robot-vacuum camera is the first provider).
28489
+ *
28490
+ * Why a NEW cap rather than overloading `ptz`:
28491
+ * - `ptz` moves a *gimbal* on a fixed camera (pan/tilt/zoom of the lens). A
28492
+ * robot vacuum has no gimbal — the whole chassis drives, turns and spins.
28493
+ * The two are different physical models: PTZ is absolute-position + presets,
28494
+ * navigation is momentary drive nudges + discrete robot ACTIONS
28495
+ * (dock / spot-clean / follow-pet / go-to-point / …).
28496
+ * - This cap is the SOURCE OF TRUTH. Two consumers adapt from it rather than
28497
+ * the reverse:
28498
+ * 1. a native CamStack navigation panel (data-driven from `listActions`
28499
+ * / `getOptions`), and
28500
+ * 2. the PTZ surface — a thin adapter mimics `ptz` from `navigation` so a
28501
+ * robot camera shows up in the existing PTZ control path without every
28502
+ * PTZ provider learning about robots. The mapping lives in the adapter,
28503
+ * not here (see the addon design note):
28504
+ * ptz.continuousMove({pan,tilt}) → navigation.move({pan,tilt})
28505
+ * ptz.stop() → navigation.stop()
28506
+ * ptz.goHome() → navigation.runAction('goHome')
28507
+ * ptz.getPresets() → navigation.listActions() (id→preset)
28508
+ * ptz.goToPreset(id) → navigation.runAction(id)
28509
+ *
28510
+ * ## Continuous drive
28511
+ *
28512
+ * `move` is MOMENTARY. Fluid navigation comes from the UI (or the PTZ adapter)
28513
+ * sending `move({pan,tilt})` REPEATEDLY at ~1 Hz while a direction is held, and
28514
+ * one `stop()` on release — exactly like the robot app's remote-drive joystick.
28515
+ * The provider forwards EACH `move` to one drive write; it must NOT debounce or
28516
+ * coalesce them. The UI owns the cadence.
28517
+ *
28518
+ * ## The action dictionary
28519
+ *
28520
+ * The discrete controls (dock / locate / spot-clean / follow / flash / sounds)
28521
+ * are a DATA-DRIVEN dictionary the cap exposes via `listActions()`. Each entry
28522
+ * carries `{ id, kind, label, icon }` (plus `soundId` for sound entries) so the
28523
+ * native panel AND the PTZ mimic render buttons WITHOUT hardcoding a
28524
+ * vendor-specific list. `kind: 'action'` entries are triggered with
28525
+ * `runAction({ actionId })`; `kind: 'sound'` entries with `playSound({ soundId })`
28526
+ * (the entry carries the `soundId` to pass). The general primitives — `move`,
28527
+ * `stop`, `goToPoint` — stay as first-class methods, not dictionary entries.
28528
+ *
28529
+ * NOTE (provider wiring): the first provider (Dreame) drives this with the RAW
28530
+ * `callAction(siid,aiid,in)` / `setProperty({siid,piid,value})` MIoT primitives
28531
+ * that the currently-published `@apocaliss92/nodedreame` already exposes on
28532
+ * every device handle. A future nodedreame publish adds a typed
28533
+ * `DreameCameraController` (drive / playPetSound / spotClean / findPet / …); the
28534
+ * provider can then swap the raw calls for the typed methods with no change to
28535
+ * THIS contract.
28536
+ */
28537
+ /**
28538
+ * A momentary drive nudge. The robot MOVES (no gimbal) for as long as the caller
28539
+ * keeps sending nudges (~1 Hz); an explicit `stop` (or letting the nudges lapse)
28540
+ * halts it.
28541
+ *
28542
+ * - `pan` — turn: negative = left, positive = right, 0 = straight.
28543
+ * - `tilt` — throttle: positive = forward, negative = spin / turn-around.
28544
+ * - `speed` — optional intensity hint [0, 1]; the provider may scale the drive
28545
+ * vector by it (drivers without proportional drive ignore it).
28546
+ *
28547
+ * `pan` / `tilt` are normalized [-1, 1]. Both optional so a caller can nudge one
28548
+ * axis alone; an all-undefined nudge is a no-op.
28549
+ */
28550
+ var NavigationMoveCommandSchema = object({
28551
+ pan: number().min(-1).max(1).optional(),
28552
+ tilt: number().min(-1).max(1).optional(),
28553
+ speed: number().min(0).max(1).optional()
28554
+ });
28555
+ /**
28556
+ * The enumerated discrete actions a navigation-capable robot can perform via
28557
+ * `runAction`. This is the CLOSED vocabulary; a given device advertises the
28558
+ * subset it supports through `listActions`. Sounds are NOT here — they go through
28559
+ * `playSound` (see the `sound` dictionary entries).
28560
+ */
28561
+ var NavigationActionIdSchema = _enum([
28562
+ "goHome",
28563
+ "locate",
28564
+ "spotClean",
28565
+ "findPet",
28566
+ "personFollow",
28567
+ "stop",
28568
+ "startClean",
28569
+ "pauseClean",
28570
+ "dockWash",
28571
+ "autoEmpty",
28572
+ "flashOn",
28573
+ "flashOff"
28574
+ ]);
28575
+ /** Whether a dictionary entry is a `runAction` action or a `playSound` sound. */
28576
+ var NavigationEntryKindSchema = _enum(["action", "sound"]);
28577
+ /**
28578
+ * One entry in the navigation action dictionary — the DATA-DRIVEN unit both the
28579
+ * native panel and the PTZ mimic render as a button.
28580
+ *
28581
+ * - `id` — stable id. For `kind:'action'` it is a {@link NavigationActionId}
28582
+ * (pass to `runAction`); for `kind:'sound'` it is a namespaced id
28583
+ * (`sound:meow`) whose `soundId` is passed to `playSound`.
28584
+ * - `icon` — icon HINT (lucide-style name; the UI maps it to its own set).
28585
+ * - `label` — operator-facing English label.
28586
+ * - `soundId` — wire sound id, present only on `kind:'sound'` entries.
28587
+ * - `enabled` — per-device FEATURE FLAG. `listActions` reports it so the UI /
28588
+ * PTZ render ONLY enabled entries. Data-driven: the provider
28589
+ * flips it from config, never by editing code.
28590
+ */
28591
+ var NavigationActionEntrySchema = object({
28592
+ id: string(),
28593
+ kind: NavigationEntryKindSchema,
28594
+ label: string(),
28595
+ icon: string(),
28596
+ /** Present only on `kind:'sound'` entries — the id to pass to `playSound`. */
28597
+ soundId: number().int().optional(),
28598
+ /** Per-device feature flag — render this entry only when true. */
28599
+ enabled: boolean()
28600
+ });
28601
+ /** Coordinates for `goToPoint` — a point on the robot's live map. */
28602
+ var NavigationPointSchema = object({
28603
+ x: number(),
28604
+ y: number()
28605
+ });
28606
+ /**
28607
+ * Per-device FEATURE-FLAG report for the general (non-dictionary) primitives.
28608
+ * The cap reports which are enabled so the UI / PTZ render only the controls
28609
+ * that are turned on for THIS device. Data-driven: the provider derives these
28610
+ * from config + probe, never hardcoded in the UI. The per-DICTIONARY-entry flags
28611
+ * live on {@link NavigationActionEntrySchema.enabled}; these gate the primitives
28612
+ * that are not dictionary entries.
28613
+ *
28614
+ * - `move` / `stop` — the momentary drive joystick.
28615
+ * - `goToPoint` — send-to-map-coordinate. Ships OFF on Dreame until the
28616
+ * map-coordinate plumbing is wired.
28617
+ * - `runAction` — the discrete action buttons (dictionary `kind:'action'`).
28618
+ * - `playSound` — the sound buttons (dictionary `kind:'sound'`).
28619
+ * - `light` — the on/off fill-light toggle (works anytime).
28620
+ * - `lightMode` — the auto/manual selector + manual level slider (a
28621
+ * camera-service control; needs an active stream).
28622
+ */
28623
+ var NavigationFeaturesSchema = object({
28624
+ move: boolean(),
28625
+ stop: boolean(),
28626
+ goToPoint: boolean(),
28627
+ runAction: boolean(),
28628
+ playSound: boolean(),
28629
+ light: boolean(),
28630
+ lightMode: boolean()
28631
+ });
28632
+ /** Light mode: `auto` lets the camera choose brightness; `manual` uses `level`. */
28633
+ var NavigationLightModeSchema = _enum(["auto", "manual"]);
28634
+ /**
28635
+ * Live navigation state so the UI can reflect what the robot is doing:
28636
+ * - `mode` — coarse activity (idle / cleaning / following / …).
28637
+ * - `following` — person/pet follow is currently armed.
28638
+ * - `flash` — the on-camera fill light is on.
28639
+ * - `lightMode` — auto vs manual fill-light mode.
28640
+ * - `lightLevel` — manual fill-light level (40..100); meaningful when
28641
+ * `lightMode === 'manual'`.
28642
+ */
28643
+ var NavigationStatusSchema = object({
28644
+ mode: _enum([
28645
+ "idle",
28646
+ "cleaning",
28647
+ "spot",
28648
+ "following",
28649
+ "goto",
28650
+ "returning",
28651
+ "paused",
28652
+ "unknown"
28653
+ ]),
28654
+ following: boolean(),
28655
+ flash: boolean(),
28656
+ lightMode: NavigationLightModeSchema,
28657
+ lightLevel: number().min(40).max(100),
28658
+ /** Ms epoch when the slice was last updated. */
28659
+ lastChangedAt: number()
28660
+ });
28661
+ NavigationStatusSchema.extend({ lastFetchedAt: number() });
28662
+ 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({
28663
+ deviceId: number(),
28664
+ actionId: NavigationActionIdSchema
28665
+ }), _void(), { kind: "mutation" }), method(object({
28666
+ deviceId: number(),
28667
+ soundId: number().int()
28668
+ }), _void(), { kind: "mutation" }), method(object({
28669
+ deviceId: number(),
28670
+ on: boolean()
28671
+ }), _void(), { kind: "mutation" }), method(object({
28672
+ deviceId: number(),
28673
+ mode: NavigationLightModeSchema,
28674
+ level: number().min(40).max(100).optional()
28675
+ }), _void(), { kind: "mutation" }), method(object({
28676
+ deviceId: number(),
28677
+ level: number().min(40).max(100)
28678
+ }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), NavigationFeaturesSchema), object({
28679
+ deviceId: number(),
28680
+ status: NavigationStatusSchema
28681
+ });
28445
28682
  DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
28446
28683
  kind: "mutation",
28447
28684
  auth: "admin"
@@ -33590,6 +33827,66 @@ Object.freeze({
33590
33827
  addonId: null,
33591
33828
  access: "create"
33592
33829
  },
33830
+ "navigation.getFeatures": {
33831
+ capName: "navigation",
33832
+ capScope: "device",
33833
+ addonId: null,
33834
+ access: "view"
33835
+ },
33836
+ "navigation.goToPoint": {
33837
+ capName: "navigation",
33838
+ capScope: "device",
33839
+ addonId: null,
33840
+ access: "create"
33841
+ },
33842
+ "navigation.listActions": {
33843
+ capName: "navigation",
33844
+ capScope: "device",
33845
+ addonId: null,
33846
+ access: "view"
33847
+ },
33848
+ "navigation.move": {
33849
+ capName: "navigation",
33850
+ capScope: "device",
33851
+ addonId: null,
33852
+ access: "create"
33853
+ },
33854
+ "navigation.playSound": {
33855
+ capName: "navigation",
33856
+ capScope: "device",
33857
+ addonId: null,
33858
+ access: "create"
33859
+ },
33860
+ "navigation.runAction": {
33861
+ capName: "navigation",
33862
+ capScope: "device",
33863
+ addonId: null,
33864
+ access: "create"
33865
+ },
33866
+ "navigation.setLightLevel": {
33867
+ capName: "navigation",
33868
+ capScope: "device",
33869
+ addonId: null,
33870
+ access: "create"
33871
+ },
33872
+ "navigation.setLightMode": {
33873
+ capName: "navigation",
33874
+ capScope: "device",
33875
+ addonId: null,
33876
+ access: "create"
33877
+ },
33878
+ "navigation.setLightOn": {
33879
+ capName: "navigation",
33880
+ capScope: "device",
33881
+ addonId: null,
33882
+ access: "create"
33883
+ },
33884
+ "navigation.stop": {
33885
+ capName: "navigation",
33886
+ capScope: "device",
33887
+ addonId: null,
33888
+ access: "create"
33889
+ },
33593
33890
  "networkAccess.getEndpoint": {
33594
33891
  capName: "network-access",
33595
33892
  capScope: "system",
@@ -37685,6 +37982,56 @@ Object.freeze({
37685
37982
  form: "single",
37686
37983
  optional: false
37687
37984
  }],
37985
+ "navigation.getFeatures": [{
37986
+ name: "deviceId",
37987
+ form: "single",
37988
+ optional: false
37989
+ }],
37990
+ "navigation.goToPoint": [{
37991
+ name: "deviceId",
37992
+ form: "single",
37993
+ optional: false
37994
+ }],
37995
+ "navigation.listActions": [{
37996
+ name: "deviceId",
37997
+ form: "single",
37998
+ optional: false
37999
+ }],
38000
+ "navigation.move": [{
38001
+ name: "deviceId",
38002
+ form: "single",
38003
+ optional: false
38004
+ }],
38005
+ "navigation.playSound": [{
38006
+ name: "deviceId",
38007
+ form: "single",
38008
+ optional: false
38009
+ }],
38010
+ "navigation.runAction": [{
38011
+ name: "deviceId",
38012
+ form: "single",
38013
+ optional: false
38014
+ }],
38015
+ "navigation.setLightLevel": [{
38016
+ name: "deviceId",
38017
+ form: "single",
38018
+ optional: false
38019
+ }],
38020
+ "navigation.setLightMode": [{
38021
+ name: "deviceId",
38022
+ form: "single",
38023
+ optional: false
38024
+ }],
38025
+ "navigation.setLightOn": [{
38026
+ name: "deviceId",
38027
+ form: "single",
38028
+ optional: false
38029
+ }],
38030
+ "navigation.stop": [{
38031
+ name: "deviceId",
38032
+ form: "single",
38033
+ optional: false
38034
+ }],
37688
38035
  "networkQuality.getDeviceStats": [{
37689
38036
  name: "deviceId",
37690
38037
  form: "single",