@camstack/addon-tailscale 1.2.70 → 1.2.71

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.
@@ -24,7 +24,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
24
24
  enumerable: true
25
25
  }) : target, mod));
26
26
  //#endregion
27
- const require_dist = require("../dist-BoE-0P-g.js");
27
+ const require_dist = require("../dist-B4NWlEs4.js");
28
28
  let node_child_process = require("node:child_process");
29
29
  let node_util = require("node:util");
30
30
  let node_fs = require("node:fs");
@@ -1,4 +1,4 @@
1
- import { a as EventCategory, i as BaseAddon, n as networkAccessCapability, r as BOOT_RECOVERY_BACKOFF_MS, t as meshNetworkCapability } from "../dist-BI0_HzJ1.mjs";
1
+ import { a as EventCategory, i as BaseAddon, n as networkAccessCapability, r as BOOT_RECOVERY_BACKOFF_MS, t as meshNetworkCapability } from "../dist-CQNpm4VU.mjs";
2
2
  import { execFile, spawn } from "node:child_process";
3
3
  import { promisify } from "node:util";
4
4
  import * as fs from "node:fs";
@@ -26910,6 +26910,203 @@ DeviceType.Camera, method(object({ deviceId: number() }), PtzAutotrackStatusSche
26910
26910
  deviceId: number(),
26911
26911
  status: PtzAutotrackStatusSchema
26912
26912
  });
26913
+ /**
26914
+ * `navigation` — a device-scoped capability that natively expresses the FULL
26915
+ * navigation / action surface of a robot that DRIVES ITSELF and carries an
26916
+ * on-board camera (the Dreame robot-vacuum camera is the first provider).
26917
+ *
26918
+ * Why a NEW cap rather than overloading `ptz`:
26919
+ * - `ptz` moves a *gimbal* on a fixed camera (pan/tilt/zoom of the lens). A
26920
+ * robot vacuum has no gimbal — the whole chassis drives, turns and spins.
26921
+ * The two are different physical models: PTZ is absolute-position + presets,
26922
+ * navigation is momentary drive nudges + discrete robot ACTIONS
26923
+ * (dock / spot-clean / follow-pet / go-to-point / …).
26924
+ * - This cap is the SOURCE OF TRUTH. Two consumers adapt from it rather than
26925
+ * the reverse:
26926
+ * 1. a native CamStack navigation panel (data-driven from `listActions`
26927
+ * / `getOptions`), and
26928
+ * 2. the PTZ surface — a thin adapter mimics `ptz` from `navigation` so a
26929
+ * robot camera shows up in the existing PTZ control path without every
26930
+ * PTZ provider learning about robots. The mapping lives in the adapter,
26931
+ * not here (see the addon design note):
26932
+ * ptz.continuousMove({pan,tilt}) → navigation.move({pan,tilt})
26933
+ * ptz.stop() → navigation.stop()
26934
+ * ptz.goHome() → navigation.runAction('goHome')
26935
+ * ptz.getPresets() → navigation.listActions() (id→preset)
26936
+ * ptz.goToPreset(id) → navigation.runAction(id)
26937
+ *
26938
+ * ## Continuous drive
26939
+ *
26940
+ * `move` is MOMENTARY. Fluid navigation comes from the UI (or the PTZ adapter)
26941
+ * sending `move({pan,tilt})` REPEATEDLY at ~1 Hz while a direction is held, and
26942
+ * one `stop()` on release — exactly like the robot app's remote-drive joystick.
26943
+ * The provider forwards EACH `move` to one drive write; it must NOT debounce or
26944
+ * coalesce them. The UI owns the cadence.
26945
+ *
26946
+ * ## The action dictionary
26947
+ *
26948
+ * The discrete controls (dock / locate / spot-clean / follow / flash / sounds)
26949
+ * are a DATA-DRIVEN dictionary the cap exposes via `listActions()`. Each entry
26950
+ * carries `{ id, kind, label, icon }` (plus `soundId` for sound entries) so the
26951
+ * native panel AND the PTZ mimic render buttons WITHOUT hardcoding a
26952
+ * vendor-specific list. `kind: 'action'` entries are triggered with
26953
+ * `runAction({ actionId })`; `kind: 'sound'` entries with `playSound({ soundId })`
26954
+ * (the entry carries the `soundId` to pass). The general primitives — `move`,
26955
+ * `stop`, `goToPoint` — stay as first-class methods, not dictionary entries.
26956
+ *
26957
+ * NOTE (provider wiring): the first provider (Dreame) drives this with the RAW
26958
+ * `callAction(siid,aiid,in)` / `setProperty({siid,piid,value})` MIoT primitives
26959
+ * that the currently-published `@apocaliss92/nodedreame` already exposes on
26960
+ * every device handle. A future nodedreame publish adds a typed
26961
+ * `DreameCameraController` (drive / playPetSound / spotClean / findPet / …); the
26962
+ * provider can then swap the raw calls for the typed methods with no change to
26963
+ * THIS contract.
26964
+ */
26965
+ /**
26966
+ * A momentary drive nudge. The robot MOVES (no gimbal) for as long as the caller
26967
+ * keeps sending nudges (~1 Hz); an explicit `stop` (or letting the nudges lapse)
26968
+ * halts it.
26969
+ *
26970
+ * - `pan` — turn: negative = left, positive = right, 0 = straight.
26971
+ * - `tilt` — throttle: positive = forward, negative = spin / turn-around.
26972
+ * - `speed` — optional intensity hint [0, 1]; the provider may scale the drive
26973
+ * vector by it (drivers without proportional drive ignore it).
26974
+ *
26975
+ * `pan` / `tilt` are normalized [-1, 1]. Both optional so a caller can nudge one
26976
+ * axis alone; an all-undefined nudge is a no-op.
26977
+ */
26978
+ var NavigationMoveCommandSchema = object({
26979
+ pan: number().min(-1).max(1).optional(),
26980
+ tilt: number().min(-1).max(1).optional(),
26981
+ speed: number().min(0).max(1).optional()
26982
+ });
26983
+ /**
26984
+ * The enumerated discrete actions a navigation-capable robot can perform via
26985
+ * `runAction`. This is the CLOSED vocabulary; a given device advertises the
26986
+ * subset it supports through `listActions`. Sounds are NOT here — they go through
26987
+ * `playSound` (see the `sound` dictionary entries).
26988
+ */
26989
+ var NavigationActionIdSchema = _enum([
26990
+ "goHome",
26991
+ "locate",
26992
+ "spotClean",
26993
+ "findPet",
26994
+ "personFollow",
26995
+ "stop",
26996
+ "startClean",
26997
+ "pauseClean",
26998
+ "dockWash",
26999
+ "autoEmpty",
27000
+ "flashOn",
27001
+ "flashOff"
27002
+ ]);
27003
+ /** Whether a dictionary entry is a `runAction` action or a `playSound` sound. */
27004
+ var NavigationEntryKindSchema = _enum(["action", "sound"]);
27005
+ /**
27006
+ * One entry in the navigation action dictionary — the DATA-DRIVEN unit both the
27007
+ * native panel and the PTZ mimic render as a button.
27008
+ *
27009
+ * - `id` — stable id. For `kind:'action'` it is a {@link NavigationActionId}
27010
+ * (pass to `runAction`); for `kind:'sound'` it is a namespaced id
27011
+ * (`sound:meow`) whose `soundId` is passed to `playSound`.
27012
+ * - `icon` — icon HINT (lucide-style name; the UI maps it to its own set).
27013
+ * - `label` — operator-facing English label.
27014
+ * - `soundId` — wire sound id, present only on `kind:'sound'` entries.
27015
+ * - `enabled` — per-device FEATURE FLAG. `listActions` reports it so the UI /
27016
+ * PTZ render ONLY enabled entries. Data-driven: the provider
27017
+ * flips it from config, never by editing code.
27018
+ */
27019
+ var NavigationActionEntrySchema = object({
27020
+ id: string(),
27021
+ kind: NavigationEntryKindSchema,
27022
+ label: string(),
27023
+ icon: string(),
27024
+ /** Present only on `kind:'sound'` entries — the id to pass to `playSound`. */
27025
+ soundId: number().int().optional(),
27026
+ /** Per-device feature flag — render this entry only when true. */
27027
+ enabled: boolean()
27028
+ });
27029
+ /** Coordinates for `goToPoint` — a point on the robot's live map. */
27030
+ var NavigationPointSchema = object({
27031
+ x: number(),
27032
+ y: number()
27033
+ });
27034
+ /**
27035
+ * Per-device FEATURE-FLAG report for the general (non-dictionary) primitives.
27036
+ * The cap reports which are enabled so the UI / PTZ render only the controls
27037
+ * that are turned on for THIS device. Data-driven: the provider derives these
27038
+ * from config + probe, never hardcoded in the UI. The per-DICTIONARY-entry flags
27039
+ * live on {@link NavigationActionEntrySchema.enabled}; these gate the primitives
27040
+ * that are not dictionary entries.
27041
+ *
27042
+ * - `move` / `stop` — the momentary drive joystick.
27043
+ * - `goToPoint` — send-to-map-coordinate. Ships OFF on Dreame until the
27044
+ * map-coordinate plumbing is wired.
27045
+ * - `runAction` — the discrete action buttons (dictionary `kind:'action'`).
27046
+ * - `playSound` — the sound buttons (dictionary `kind:'sound'`).
27047
+ * - `light` — the on/off fill-light toggle (works anytime).
27048
+ * - `lightMode` — the auto/manual selector + manual level slider (a
27049
+ * camera-service control; needs an active stream).
27050
+ */
27051
+ var NavigationFeaturesSchema = object({
27052
+ move: boolean(),
27053
+ stop: boolean(),
27054
+ goToPoint: boolean(),
27055
+ runAction: boolean(),
27056
+ playSound: boolean(),
27057
+ light: boolean(),
27058
+ lightMode: boolean()
27059
+ });
27060
+ /** Light mode: `auto` lets the camera choose brightness; `manual` uses `level`. */
27061
+ var NavigationLightModeSchema = _enum(["auto", "manual"]);
27062
+ /**
27063
+ * Live navigation state so the UI can reflect what the robot is doing:
27064
+ * - `mode` — coarse activity (idle / cleaning / following / …).
27065
+ * - `following` — person/pet follow is currently armed.
27066
+ * - `flash` — the on-camera fill light is on.
27067
+ * - `lightMode` — auto vs manual fill-light mode.
27068
+ * - `lightLevel` — manual fill-light level (40..100); meaningful when
27069
+ * `lightMode === 'manual'`.
27070
+ */
27071
+ var NavigationStatusSchema = object({
27072
+ mode: _enum([
27073
+ "idle",
27074
+ "cleaning",
27075
+ "spot",
27076
+ "following",
27077
+ "goto",
27078
+ "returning",
27079
+ "paused",
27080
+ "unknown"
27081
+ ]),
27082
+ following: boolean(),
27083
+ flash: boolean(),
27084
+ lightMode: NavigationLightModeSchema,
27085
+ lightLevel: number().min(40).max(100),
27086
+ /** Ms epoch when the slice was last updated. */
27087
+ lastChangedAt: number()
27088
+ });
27089
+ NavigationStatusSchema.extend({ lastFetchedAt: number() });
27090
+ 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({
27091
+ deviceId: number(),
27092
+ actionId: NavigationActionIdSchema
27093
+ }), _void(), { kind: "mutation" }), method(object({
27094
+ deviceId: number(),
27095
+ soundId: number().int()
27096
+ }), _void(), { kind: "mutation" }), method(object({
27097
+ deviceId: number(),
27098
+ on: boolean()
27099
+ }), _void(), { kind: "mutation" }), method(object({
27100
+ deviceId: number(),
27101
+ mode: NavigationLightModeSchema,
27102
+ level: number().min(40).max(100).optional()
27103
+ }), _void(), { kind: "mutation" }), method(object({
27104
+ deviceId: number(),
27105
+ level: number().min(40).max(100)
27106
+ }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), NavigationFeaturesSchema), object({
27107
+ deviceId: number(),
27108
+ status: NavigationStatusSchema
27109
+ });
26913
27110
  DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
26914
27111
  kind: "mutation",
26915
27112
  auth: "admin"
@@ -31974,6 +32171,66 @@ Object.freeze({
31974
32171
  addonId: null,
31975
32172
  access: "create"
31976
32173
  },
32174
+ "navigation.getFeatures": {
32175
+ capName: "navigation",
32176
+ capScope: "device",
32177
+ addonId: null,
32178
+ access: "view"
32179
+ },
32180
+ "navigation.goToPoint": {
32181
+ capName: "navigation",
32182
+ capScope: "device",
32183
+ addonId: null,
32184
+ access: "create"
32185
+ },
32186
+ "navigation.listActions": {
32187
+ capName: "navigation",
32188
+ capScope: "device",
32189
+ addonId: null,
32190
+ access: "view"
32191
+ },
32192
+ "navigation.move": {
32193
+ capName: "navigation",
32194
+ capScope: "device",
32195
+ addonId: null,
32196
+ access: "create"
32197
+ },
32198
+ "navigation.playSound": {
32199
+ capName: "navigation",
32200
+ capScope: "device",
32201
+ addonId: null,
32202
+ access: "create"
32203
+ },
32204
+ "navigation.runAction": {
32205
+ capName: "navigation",
32206
+ capScope: "device",
32207
+ addonId: null,
32208
+ access: "create"
32209
+ },
32210
+ "navigation.setLightLevel": {
32211
+ capName: "navigation",
32212
+ capScope: "device",
32213
+ addonId: null,
32214
+ access: "create"
32215
+ },
32216
+ "navigation.setLightMode": {
32217
+ capName: "navigation",
32218
+ capScope: "device",
32219
+ addonId: null,
32220
+ access: "create"
32221
+ },
32222
+ "navigation.setLightOn": {
32223
+ capName: "navigation",
32224
+ capScope: "device",
32225
+ addonId: null,
32226
+ access: "create"
32227
+ },
32228
+ "navigation.stop": {
32229
+ capName: "navigation",
32230
+ capScope: "device",
32231
+ addonId: null,
32232
+ access: "create"
32233
+ },
31977
32234
  "networkAccess.getEndpoint": {
31978
32235
  capName: "network-access",
31979
32236
  capScope: "system",
@@ -36069,6 +36326,56 @@ Object.freeze({
36069
36326
  form: "single",
36070
36327
  optional: false
36071
36328
  }],
36329
+ "navigation.getFeatures": [{
36330
+ name: "deviceId",
36331
+ form: "single",
36332
+ optional: false
36333
+ }],
36334
+ "navigation.goToPoint": [{
36335
+ name: "deviceId",
36336
+ form: "single",
36337
+ optional: false
36338
+ }],
36339
+ "navigation.listActions": [{
36340
+ name: "deviceId",
36341
+ form: "single",
36342
+ optional: false
36343
+ }],
36344
+ "navigation.move": [{
36345
+ name: "deviceId",
36346
+ form: "single",
36347
+ optional: false
36348
+ }],
36349
+ "navigation.playSound": [{
36350
+ name: "deviceId",
36351
+ form: "single",
36352
+ optional: false
36353
+ }],
36354
+ "navigation.runAction": [{
36355
+ name: "deviceId",
36356
+ form: "single",
36357
+ optional: false
36358
+ }],
36359
+ "navigation.setLightLevel": [{
36360
+ name: "deviceId",
36361
+ form: "single",
36362
+ optional: false
36363
+ }],
36364
+ "navigation.setLightMode": [{
36365
+ name: "deviceId",
36366
+ form: "single",
36367
+ optional: false
36368
+ }],
36369
+ "navigation.setLightOn": [{
36370
+ name: "deviceId",
36371
+ form: "single",
36372
+ optional: false
36373
+ }],
36374
+ "navigation.stop": [{
36375
+ name: "deviceId",
36376
+ form: "single",
36377
+ optional: false
36378
+ }],
36072
36379
  "networkQuality.getDeviceStats": [{
36073
36380
  name: "deviceId",
36074
36381
  form: "single",
@@ -26910,6 +26910,203 @@ DeviceType.Camera, method(object({ deviceId: number() }), PtzAutotrackStatusSche
26910
26910
  deviceId: number(),
26911
26911
  status: PtzAutotrackStatusSchema
26912
26912
  });
26913
+ /**
26914
+ * `navigation` — a device-scoped capability that natively expresses the FULL
26915
+ * navigation / action surface of a robot that DRIVES ITSELF and carries an
26916
+ * on-board camera (the Dreame robot-vacuum camera is the first provider).
26917
+ *
26918
+ * Why a NEW cap rather than overloading `ptz`:
26919
+ * - `ptz` moves a *gimbal* on a fixed camera (pan/tilt/zoom of the lens). A
26920
+ * robot vacuum has no gimbal — the whole chassis drives, turns and spins.
26921
+ * The two are different physical models: PTZ is absolute-position + presets,
26922
+ * navigation is momentary drive nudges + discrete robot ACTIONS
26923
+ * (dock / spot-clean / follow-pet / go-to-point / …).
26924
+ * - This cap is the SOURCE OF TRUTH. Two consumers adapt from it rather than
26925
+ * the reverse:
26926
+ * 1. a native CamStack navigation panel (data-driven from `listActions`
26927
+ * / `getOptions`), and
26928
+ * 2. the PTZ surface — a thin adapter mimics `ptz` from `navigation` so a
26929
+ * robot camera shows up in the existing PTZ control path without every
26930
+ * PTZ provider learning about robots. The mapping lives in the adapter,
26931
+ * not here (see the addon design note):
26932
+ * ptz.continuousMove({pan,tilt}) → navigation.move({pan,tilt})
26933
+ * ptz.stop() → navigation.stop()
26934
+ * ptz.goHome() → navigation.runAction('goHome')
26935
+ * ptz.getPresets() → navigation.listActions() (id→preset)
26936
+ * ptz.goToPreset(id) → navigation.runAction(id)
26937
+ *
26938
+ * ## Continuous drive
26939
+ *
26940
+ * `move` is MOMENTARY. Fluid navigation comes from the UI (or the PTZ adapter)
26941
+ * sending `move({pan,tilt})` REPEATEDLY at ~1 Hz while a direction is held, and
26942
+ * one `stop()` on release — exactly like the robot app's remote-drive joystick.
26943
+ * The provider forwards EACH `move` to one drive write; it must NOT debounce or
26944
+ * coalesce them. The UI owns the cadence.
26945
+ *
26946
+ * ## The action dictionary
26947
+ *
26948
+ * The discrete controls (dock / locate / spot-clean / follow / flash / sounds)
26949
+ * are a DATA-DRIVEN dictionary the cap exposes via `listActions()`. Each entry
26950
+ * carries `{ id, kind, label, icon }` (plus `soundId` for sound entries) so the
26951
+ * native panel AND the PTZ mimic render buttons WITHOUT hardcoding a
26952
+ * vendor-specific list. `kind: 'action'` entries are triggered with
26953
+ * `runAction({ actionId })`; `kind: 'sound'` entries with `playSound({ soundId })`
26954
+ * (the entry carries the `soundId` to pass). The general primitives — `move`,
26955
+ * `stop`, `goToPoint` — stay as first-class methods, not dictionary entries.
26956
+ *
26957
+ * NOTE (provider wiring): the first provider (Dreame) drives this with the RAW
26958
+ * `callAction(siid,aiid,in)` / `setProperty({siid,piid,value})` MIoT primitives
26959
+ * that the currently-published `@apocaliss92/nodedreame` already exposes on
26960
+ * every device handle. A future nodedreame publish adds a typed
26961
+ * `DreameCameraController` (drive / playPetSound / spotClean / findPet / …); the
26962
+ * provider can then swap the raw calls for the typed methods with no change to
26963
+ * THIS contract.
26964
+ */
26965
+ /**
26966
+ * A momentary drive nudge. The robot MOVES (no gimbal) for as long as the caller
26967
+ * keeps sending nudges (~1 Hz); an explicit `stop` (or letting the nudges lapse)
26968
+ * halts it.
26969
+ *
26970
+ * - `pan` — turn: negative = left, positive = right, 0 = straight.
26971
+ * - `tilt` — throttle: positive = forward, negative = spin / turn-around.
26972
+ * - `speed` — optional intensity hint [0, 1]; the provider may scale the drive
26973
+ * vector by it (drivers without proportional drive ignore it).
26974
+ *
26975
+ * `pan` / `tilt` are normalized [-1, 1]. Both optional so a caller can nudge one
26976
+ * axis alone; an all-undefined nudge is a no-op.
26977
+ */
26978
+ var NavigationMoveCommandSchema = object({
26979
+ pan: number().min(-1).max(1).optional(),
26980
+ tilt: number().min(-1).max(1).optional(),
26981
+ speed: number().min(0).max(1).optional()
26982
+ });
26983
+ /**
26984
+ * The enumerated discrete actions a navigation-capable robot can perform via
26985
+ * `runAction`. This is the CLOSED vocabulary; a given device advertises the
26986
+ * subset it supports through `listActions`. Sounds are NOT here — they go through
26987
+ * `playSound` (see the `sound` dictionary entries).
26988
+ */
26989
+ var NavigationActionIdSchema = _enum([
26990
+ "goHome",
26991
+ "locate",
26992
+ "spotClean",
26993
+ "findPet",
26994
+ "personFollow",
26995
+ "stop",
26996
+ "startClean",
26997
+ "pauseClean",
26998
+ "dockWash",
26999
+ "autoEmpty",
27000
+ "flashOn",
27001
+ "flashOff"
27002
+ ]);
27003
+ /** Whether a dictionary entry is a `runAction` action or a `playSound` sound. */
27004
+ var NavigationEntryKindSchema = _enum(["action", "sound"]);
27005
+ /**
27006
+ * One entry in the navigation action dictionary — the DATA-DRIVEN unit both the
27007
+ * native panel and the PTZ mimic render as a button.
27008
+ *
27009
+ * - `id` — stable id. For `kind:'action'` it is a {@link NavigationActionId}
27010
+ * (pass to `runAction`); for `kind:'sound'` it is a namespaced id
27011
+ * (`sound:meow`) whose `soundId` is passed to `playSound`.
27012
+ * - `icon` — icon HINT (lucide-style name; the UI maps it to its own set).
27013
+ * - `label` — operator-facing English label.
27014
+ * - `soundId` — wire sound id, present only on `kind:'sound'` entries.
27015
+ * - `enabled` — per-device FEATURE FLAG. `listActions` reports it so the UI /
27016
+ * PTZ render ONLY enabled entries. Data-driven: the provider
27017
+ * flips it from config, never by editing code.
27018
+ */
27019
+ var NavigationActionEntrySchema = object({
27020
+ id: string(),
27021
+ kind: NavigationEntryKindSchema,
27022
+ label: string(),
27023
+ icon: string(),
27024
+ /** Present only on `kind:'sound'` entries — the id to pass to `playSound`. */
27025
+ soundId: number().int().optional(),
27026
+ /** Per-device feature flag — render this entry only when true. */
27027
+ enabled: boolean()
27028
+ });
27029
+ /** Coordinates for `goToPoint` — a point on the robot's live map. */
27030
+ var NavigationPointSchema = object({
27031
+ x: number(),
27032
+ y: number()
27033
+ });
27034
+ /**
27035
+ * Per-device FEATURE-FLAG report for the general (non-dictionary) primitives.
27036
+ * The cap reports which are enabled so the UI / PTZ render only the controls
27037
+ * that are turned on for THIS device. Data-driven: the provider derives these
27038
+ * from config + probe, never hardcoded in the UI. The per-DICTIONARY-entry flags
27039
+ * live on {@link NavigationActionEntrySchema.enabled}; these gate the primitives
27040
+ * that are not dictionary entries.
27041
+ *
27042
+ * - `move` / `stop` — the momentary drive joystick.
27043
+ * - `goToPoint` — send-to-map-coordinate. Ships OFF on Dreame until the
27044
+ * map-coordinate plumbing is wired.
27045
+ * - `runAction` — the discrete action buttons (dictionary `kind:'action'`).
27046
+ * - `playSound` — the sound buttons (dictionary `kind:'sound'`).
27047
+ * - `light` — the on/off fill-light toggle (works anytime).
27048
+ * - `lightMode` — the auto/manual selector + manual level slider (a
27049
+ * camera-service control; needs an active stream).
27050
+ */
27051
+ var NavigationFeaturesSchema = object({
27052
+ move: boolean(),
27053
+ stop: boolean(),
27054
+ goToPoint: boolean(),
27055
+ runAction: boolean(),
27056
+ playSound: boolean(),
27057
+ light: boolean(),
27058
+ lightMode: boolean()
27059
+ });
27060
+ /** Light mode: `auto` lets the camera choose brightness; `manual` uses `level`. */
27061
+ var NavigationLightModeSchema = _enum(["auto", "manual"]);
27062
+ /**
27063
+ * Live navigation state so the UI can reflect what the robot is doing:
27064
+ * - `mode` — coarse activity (idle / cleaning / following / …).
27065
+ * - `following` — person/pet follow is currently armed.
27066
+ * - `flash` — the on-camera fill light is on.
27067
+ * - `lightMode` — auto vs manual fill-light mode.
27068
+ * - `lightLevel` — manual fill-light level (40..100); meaningful when
27069
+ * `lightMode === 'manual'`.
27070
+ */
27071
+ var NavigationStatusSchema = object({
27072
+ mode: _enum([
27073
+ "idle",
27074
+ "cleaning",
27075
+ "spot",
27076
+ "following",
27077
+ "goto",
27078
+ "returning",
27079
+ "paused",
27080
+ "unknown"
27081
+ ]),
27082
+ following: boolean(),
27083
+ flash: boolean(),
27084
+ lightMode: NavigationLightModeSchema,
27085
+ lightLevel: number().min(40).max(100),
27086
+ /** Ms epoch when the slice was last updated. */
27087
+ lastChangedAt: number()
27088
+ });
27089
+ NavigationStatusSchema.extend({ lastFetchedAt: number() });
27090
+ 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({
27091
+ deviceId: number(),
27092
+ actionId: NavigationActionIdSchema
27093
+ }), _void(), { kind: "mutation" }), method(object({
27094
+ deviceId: number(),
27095
+ soundId: number().int()
27096
+ }), _void(), { kind: "mutation" }), method(object({
27097
+ deviceId: number(),
27098
+ on: boolean()
27099
+ }), _void(), { kind: "mutation" }), method(object({
27100
+ deviceId: number(),
27101
+ mode: NavigationLightModeSchema,
27102
+ level: number().min(40).max(100).optional()
27103
+ }), _void(), { kind: "mutation" }), method(object({
27104
+ deviceId: number(),
27105
+ level: number().min(40).max(100)
27106
+ }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), NavigationFeaturesSchema), object({
27107
+ deviceId: number(),
27108
+ status: NavigationStatusSchema
27109
+ });
26913
27110
  DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
26914
27111
  kind: "mutation",
26915
27112
  auth: "admin"
@@ -31974,6 +32171,66 @@ Object.freeze({
31974
32171
  addonId: null,
31975
32172
  access: "create"
31976
32173
  },
32174
+ "navigation.getFeatures": {
32175
+ capName: "navigation",
32176
+ capScope: "device",
32177
+ addonId: null,
32178
+ access: "view"
32179
+ },
32180
+ "navigation.goToPoint": {
32181
+ capName: "navigation",
32182
+ capScope: "device",
32183
+ addonId: null,
32184
+ access: "create"
32185
+ },
32186
+ "navigation.listActions": {
32187
+ capName: "navigation",
32188
+ capScope: "device",
32189
+ addonId: null,
32190
+ access: "view"
32191
+ },
32192
+ "navigation.move": {
32193
+ capName: "navigation",
32194
+ capScope: "device",
32195
+ addonId: null,
32196
+ access: "create"
32197
+ },
32198
+ "navigation.playSound": {
32199
+ capName: "navigation",
32200
+ capScope: "device",
32201
+ addonId: null,
32202
+ access: "create"
32203
+ },
32204
+ "navigation.runAction": {
32205
+ capName: "navigation",
32206
+ capScope: "device",
32207
+ addonId: null,
32208
+ access: "create"
32209
+ },
32210
+ "navigation.setLightLevel": {
32211
+ capName: "navigation",
32212
+ capScope: "device",
32213
+ addonId: null,
32214
+ access: "create"
32215
+ },
32216
+ "navigation.setLightMode": {
32217
+ capName: "navigation",
32218
+ capScope: "device",
32219
+ addonId: null,
32220
+ access: "create"
32221
+ },
32222
+ "navigation.setLightOn": {
32223
+ capName: "navigation",
32224
+ capScope: "device",
32225
+ addonId: null,
32226
+ access: "create"
32227
+ },
32228
+ "navigation.stop": {
32229
+ capName: "navigation",
32230
+ capScope: "device",
32231
+ addonId: null,
32232
+ access: "create"
32233
+ },
31977
32234
  "networkAccess.getEndpoint": {
31978
32235
  capName: "network-access",
31979
32236
  capScope: "system",
@@ -36069,6 +36326,56 @@ Object.freeze({
36069
36326
  form: "single",
36070
36327
  optional: false
36071
36328
  }],
36329
+ "navigation.getFeatures": [{
36330
+ name: "deviceId",
36331
+ form: "single",
36332
+ optional: false
36333
+ }],
36334
+ "navigation.goToPoint": [{
36335
+ name: "deviceId",
36336
+ form: "single",
36337
+ optional: false
36338
+ }],
36339
+ "navigation.listActions": [{
36340
+ name: "deviceId",
36341
+ form: "single",
36342
+ optional: false
36343
+ }],
36344
+ "navigation.move": [{
36345
+ name: "deviceId",
36346
+ form: "single",
36347
+ optional: false
36348
+ }],
36349
+ "navigation.playSound": [{
36350
+ name: "deviceId",
36351
+ form: "single",
36352
+ optional: false
36353
+ }],
36354
+ "navigation.runAction": [{
36355
+ name: "deviceId",
36356
+ form: "single",
36357
+ optional: false
36358
+ }],
36359
+ "navigation.setLightLevel": [{
36360
+ name: "deviceId",
36361
+ form: "single",
36362
+ optional: false
36363
+ }],
36364
+ "navigation.setLightMode": [{
36365
+ name: "deviceId",
36366
+ form: "single",
36367
+ optional: false
36368
+ }],
36369
+ "navigation.setLightOn": [{
36370
+ name: "deviceId",
36371
+ form: "single",
36372
+ optional: false
36373
+ }],
36374
+ "navigation.stop": [{
36375
+ name: "deviceId",
36376
+ form: "single",
36377
+ optional: false
36378
+ }],
36072
36379
  "networkQuality.getDeviceStats": [{
36073
36380
  name: "deviceId",
36074
36381
  form: "single",
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_dist = require("../dist-BoE-0P-g.js");
5
+ const require_dist = require("../dist-B4NWlEs4.js");
6
6
  let node_crypto = require("node:crypto");
7
7
  let node_child_process = require("node:child_process");
8
8
  //#region src/ingress/tailscale-cli.ts
@@ -1,4 +1,4 @@
1
- import { a as EventCategory, i as BaseAddon, n as networkAccessCapability } from "../dist-BI0_HzJ1.mjs";
1
+ import { a as EventCategory, i as BaseAddon, n as networkAccessCapability } from "../dist-CQNpm4VU.mjs";
2
2
  import { randomUUID } from "node:crypto";
3
3
  import { execFile } from "node:child_process";
4
4
  import { promisify } from "node:util";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-tailscale",
3
- "version": "1.2.70",
3
+ "version": "1.2.71",
4
4
  "description": "Tailscale bundle for CamStack — joins the host to a tailnet (client) and exposes the hub via Serve/Funnel (ingress). Multi-entry npm package shipping 2 addons under a single bundle.",
5
5
  "keywords": [
6
6
  "camstack",