@camstack/addon-post-analysis 1.2.186 → 1.2.188
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.
- package/dist/{dist-DgDPocDn.mjs → dist-C0SVTa4b.mjs} +486 -2
- package/dist/{dist-DcN8ngyu.js → dist-CVYf5wQj.js} +486 -2
- package/dist/embedding-encoder/index.js +1 -1
- package/dist/embedding-encoder/index.mjs +1 -1
- package/dist/pipeline-analytics/_stub.js +1 -1
- package/dist/pipeline-analytics/{_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_analytics_widgets-CMUDvcDB.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_analytics_widgets-B2jsciTm.mjs} +3 -3
- package/dist/pipeline-analytics/_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-Ddpv6_VF.mjs +26 -0
- package/dist/pipeline-analytics/{hostInit-DaSbu64C.mjs → hostInit-CRBiLyWX.mjs} +3 -3
- package/dist/pipeline-analytics/index.js +1 -1
- package/dist/pipeline-analytics/index.mjs +1 -1
- package/dist/pipeline-analytics/remoteEntry.js +1 -1
- package/package.json +1 -1
- package/dist/pipeline-analytics/_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-D8ynJUXh.mjs +0 -26
|
@@ -29,7 +29,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
29
29
|
enumerable: true
|
|
30
30
|
}) : target, mod));
|
|
31
31
|
//#endregion
|
|
32
|
-
//#region ../types/dist/event-category-
|
|
32
|
+
//#region ../types/dist/event-category-zAv7pMUz.mjs
|
|
33
33
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
34
34
|
EventCategory["SystemBoot"] = "system.boot";
|
|
35
35
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -401,6 +401,13 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
401
401
|
*/
|
|
402
402
|
EventCategory["BatteryOnStatusChanged"] = "battery.onStatusChanged";
|
|
403
403
|
/**
|
|
404
|
+
* Cap event fired by every device that registers the `network-link`
|
|
405
|
+
* capability. Mirrors the cap definition's `onStatusChanged`. Carries
|
|
406
|
+
* `{ deviceId, status: NetworkLinkStatus }` — a link switch or a signal
|
|
407
|
+
* reading that moved.
|
|
408
|
+
*/
|
|
409
|
+
EventCategory["NetworkLinkOnStatusChanged"] = "network-link.onStatusChanged";
|
|
410
|
+
/**
|
|
404
411
|
* Emitted by the battery cap provider WHEN `wakeForStream` enters the
|
|
405
412
|
* "wake in progress" window — between the Baichuan wake-up issue and
|
|
406
413
|
* the camera's first dialed-back RTP packet. The stream-broker
|
|
@@ -7247,7 +7254,7 @@ method(object({ deviceId: number() }), array(StreamSourceEntrySchema)), method(o
|
|
|
7247
7254
|
* can answer "may a rule actuate this?" without importing the schema barrel
|
|
7248
7255
|
* (~144MB RSS per runner, D28).
|
|
7249
7256
|
*
|
|
7250
|
-
* Coverage:
|
|
7257
|
+
* Coverage: 82 device-scoped capabilities.
|
|
7251
7258
|
*/
|
|
7252
7259
|
var DEVICE_SCOPED_CAPS = new Set([
|
|
7253
7260
|
"accessories",
|
|
@@ -7298,6 +7305,8 @@ var DEVICE_SCOPED_CAPS = new Set([
|
|
|
7298
7305
|
"motion-trigger",
|
|
7299
7306
|
"motion-zones",
|
|
7300
7307
|
"native-object-detection",
|
|
7308
|
+
"navigation",
|
|
7309
|
+
"network-link",
|
|
7301
7310
|
"notifier",
|
|
7302
7311
|
"numeric-sensor",
|
|
7303
7312
|
"osd",
|
|
@@ -25347,6 +25356,88 @@ onStatusChanged: { data: object({
|
|
|
25347
25356
|
volatileStateFields: ["lastUpdated"]
|
|
25348
25357
|
};
|
|
25349
25358
|
/**
|
|
25359
|
+
* Network-link snapshot. Same shape for every provider (a Reolink wifi
|
|
25360
|
+
* camera, a Home Assistant device with a signal-strength sensor, a Tapo
|
|
25361
|
+
* plug): one slice under `device.runtimeState['network-link']`, one badge,
|
|
25362
|
+
* one Home Assistant projection.
|
|
25363
|
+
*/
|
|
25364
|
+
var NetworkLinkStatusSchema = object({
|
|
25365
|
+
/** The link the device is on. `'unknown'` = not read yet, not "no link". */
|
|
25366
|
+
type: _enum([
|
|
25367
|
+
"wifi",
|
|
25368
|
+
"ethernet",
|
|
25369
|
+
"cellular",
|
|
25370
|
+
"unknown"
|
|
25371
|
+
]),
|
|
25372
|
+
/**
|
|
25373
|
+
* Link quality, 0..100 inclusive, normalised by the provider from whatever
|
|
25374
|
+
* the firmware reports (bars, RSSI, a vendor scale). **`null` means NOT
|
|
25375
|
+
* KNOWN or NOT APPLICABLE** — a wired link has no signal, and a wireless
|
|
25376
|
+
* one whose reading has not landed must not be drawn at 0 %. Consumers
|
|
25377
|
+
* SKIP a null rather than coerce it.
|
|
25378
|
+
*/
|
|
25379
|
+
signalPercent: number().min(0).max(100).nullable(),
|
|
25380
|
+
/** Raw received signal strength in dBm, when the firmware reports one. */
|
|
25381
|
+
rssiDbm: number().optional(),
|
|
25382
|
+
/** Network name of a wireless link, when the firmware reports it. */
|
|
25383
|
+
ssid: string().optional(),
|
|
25384
|
+
/** Ms epoch of the last observation. Lets consumers reason about freshness. */
|
|
25385
|
+
lastUpdated: number()
|
|
25386
|
+
});
|
|
25387
|
+
var networkLinkCapability = {
|
|
25388
|
+
name: "network-link",
|
|
25389
|
+
scope: "device",
|
|
25390
|
+
deviceNative: true,
|
|
25391
|
+
mode: "singleton",
|
|
25392
|
+
deviceTypes: [
|
|
25393
|
+
DeviceType.Camera,
|
|
25394
|
+
DeviceType.Sensor,
|
|
25395
|
+
DeviceType.Button,
|
|
25396
|
+
DeviceType.Switch,
|
|
25397
|
+
DeviceType.Light,
|
|
25398
|
+
DeviceType.Lock,
|
|
25399
|
+
DeviceType.Siren
|
|
25400
|
+
],
|
|
25401
|
+
methods: {},
|
|
25402
|
+
events: {
|
|
25403
|
+
/**
|
|
25404
|
+
* Emitted whenever the cached status changes (a link switch, a signal
|
|
25405
|
+
* reading that moved). Mirrored on the parent chain by the
|
|
25406
|
+
* DeviceEventPropagator like `battery.onStatusChanged`.
|
|
25407
|
+
*/
|
|
25408
|
+
onStatusChanged: { data: object({
|
|
25409
|
+
deviceId: number(),
|
|
25410
|
+
status: NetworkLinkStatusSchema
|
|
25411
|
+
}) } },
|
|
25412
|
+
status: {
|
|
25413
|
+
schema: NetworkLinkStatusSchema,
|
|
25414
|
+
kind: "push",
|
|
25415
|
+
empty: {
|
|
25416
|
+
type: "unknown",
|
|
25417
|
+
signalPercent: null,
|
|
25418
|
+
lastUpdated: 0
|
|
25419
|
+
}
|
|
25420
|
+
},
|
|
25421
|
+
/**
|
|
25422
|
+
* Runtime-state slice — every provider stores the same shape under
|
|
25423
|
+
* `device.runtimeState['network-link']`, read once by the badge and the
|
|
25424
|
+
* Home Assistant projector regardless of the driver.
|
|
25425
|
+
*/
|
|
25426
|
+
runtimeState: NetworkLinkStatusSchema,
|
|
25427
|
+
/**
|
|
25428
|
+
* Runtime-state durability: **restored** — a link reading is slow to
|
|
25429
|
+
* change and a sleeping battery camera may not report for hours; the
|
|
25430
|
+
* restored slice is what the badge shows until the next read.
|
|
25431
|
+
*
|
|
25432
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25433
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25434
|
+
*/
|
|
25435
|
+
durability: "restored",
|
|
25436
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25437
|
+
* whether persisting is worth a SQLite commit. */
|
|
25438
|
+
volatileStateFields: ["lastUpdated"]
|
|
25439
|
+
};
|
|
25440
|
+
/**
|
|
25350
25441
|
* Generic boolean sensor — last-resort fallback when no domain-
|
|
25351
25442
|
* specific binary cap fits (Home Assistant `binary_sensor` without a
|
|
25352
25443
|
* known `device_class`, or a domain we haven't typed yet). Pure
|
|
@@ -30516,6 +30607,287 @@ var ptzAutotrackCapability = {
|
|
|
30516
30607
|
*/
|
|
30517
30608
|
durability: "session"
|
|
30518
30609
|
};
|
|
30610
|
+
/**
|
|
30611
|
+
* `navigation` — a device-scoped capability that natively expresses the FULL
|
|
30612
|
+
* navigation / action surface of a robot that DRIVES ITSELF and carries an
|
|
30613
|
+
* on-board camera (the Dreame robot-vacuum camera is the first provider).
|
|
30614
|
+
*
|
|
30615
|
+
* Why a NEW cap rather than overloading `ptz`:
|
|
30616
|
+
* - `ptz` moves a *gimbal* on a fixed camera (pan/tilt/zoom of the lens). A
|
|
30617
|
+
* robot vacuum has no gimbal — the whole chassis drives, turns and spins.
|
|
30618
|
+
* The two are different physical models: PTZ is absolute-position + presets,
|
|
30619
|
+
* navigation is momentary drive nudges + discrete robot ACTIONS
|
|
30620
|
+
* (dock / spot-clean / follow-pet / go-to-point / …).
|
|
30621
|
+
* - This cap is the SOURCE OF TRUTH. Two consumers adapt from it rather than
|
|
30622
|
+
* the reverse:
|
|
30623
|
+
* 1. a native CamStack navigation panel (data-driven from `listActions`
|
|
30624
|
+
* / `getOptions`), and
|
|
30625
|
+
* 2. the PTZ surface — a thin adapter mimics `ptz` from `navigation` so a
|
|
30626
|
+
* robot camera shows up in the existing PTZ control path without every
|
|
30627
|
+
* PTZ provider learning about robots. The mapping lives in the adapter,
|
|
30628
|
+
* not here (see the addon design note):
|
|
30629
|
+
* ptz.continuousMove({pan,tilt}) → navigation.move({pan,tilt})
|
|
30630
|
+
* ptz.stop() → navigation.stop()
|
|
30631
|
+
* ptz.goHome() → navigation.runAction('goHome')
|
|
30632
|
+
* ptz.getPresets() → navigation.listActions() (id→preset)
|
|
30633
|
+
* ptz.goToPreset(id) → navigation.runAction(id)
|
|
30634
|
+
*
|
|
30635
|
+
* ## Continuous drive
|
|
30636
|
+
*
|
|
30637
|
+
* `move` is MOMENTARY. Fluid navigation comes from the UI (or the PTZ adapter)
|
|
30638
|
+
* sending `move({pan,tilt})` REPEATEDLY at ~1 Hz while a direction is held, and
|
|
30639
|
+
* one `stop()` on release — exactly like the robot app's remote-drive joystick.
|
|
30640
|
+
* The provider forwards EACH `move` to one drive write; it must NOT debounce or
|
|
30641
|
+
* coalesce them. The UI owns the cadence.
|
|
30642
|
+
*
|
|
30643
|
+
* ## The action dictionary
|
|
30644
|
+
*
|
|
30645
|
+
* The discrete controls (dock / locate / spot-clean / follow / flash / sounds)
|
|
30646
|
+
* are a DATA-DRIVEN dictionary the cap exposes via `listActions()`. Each entry
|
|
30647
|
+
* carries `{ id, kind, label, icon }` (plus `soundId` for sound entries) so the
|
|
30648
|
+
* native panel AND the PTZ mimic render buttons WITHOUT hardcoding a
|
|
30649
|
+
* vendor-specific list. `kind: 'action'` entries are triggered with
|
|
30650
|
+
* `runAction({ actionId })`; `kind: 'sound'` entries with `playSound({ soundId })`
|
|
30651
|
+
* (the entry carries the `soundId` to pass). The general primitives — `move`,
|
|
30652
|
+
* `stop`, `goToPoint` — stay as first-class methods, not dictionary entries.
|
|
30653
|
+
*
|
|
30654
|
+
* NOTE (provider wiring): the first provider (Dreame) drives this with the RAW
|
|
30655
|
+
* `callAction(siid,aiid,in)` / `setProperty({siid,piid,value})` MIoT primitives
|
|
30656
|
+
* that the currently-published `@apocaliss92/nodedreame` already exposes on
|
|
30657
|
+
* every device handle. A future nodedreame publish adds a typed
|
|
30658
|
+
* `DreameCameraController` (drive / playPetSound / spotClean / findPet / …); the
|
|
30659
|
+
* provider can then swap the raw calls for the typed methods with no change to
|
|
30660
|
+
* THIS contract.
|
|
30661
|
+
*/
|
|
30662
|
+
/**
|
|
30663
|
+
* A momentary drive nudge. The robot MOVES (no gimbal) for as long as the caller
|
|
30664
|
+
* keeps sending nudges (~1 Hz); an explicit `stop` (or letting the nudges lapse)
|
|
30665
|
+
* halts it.
|
|
30666
|
+
*
|
|
30667
|
+
* - `pan` — turn: negative = left, positive = right, 0 = straight.
|
|
30668
|
+
* - `tilt` — throttle: positive = forward, negative = spin / turn-around.
|
|
30669
|
+
* - `speed` — optional intensity hint [0, 1]; the provider may scale the drive
|
|
30670
|
+
* vector by it (drivers without proportional drive ignore it).
|
|
30671
|
+
*
|
|
30672
|
+
* `pan` / `tilt` are normalized [-1, 1]. Both optional so a caller can nudge one
|
|
30673
|
+
* axis alone; an all-undefined nudge is a no-op.
|
|
30674
|
+
*/
|
|
30675
|
+
var NavigationMoveCommandSchema = object({
|
|
30676
|
+
pan: number().min(-1).max(1).optional(),
|
|
30677
|
+
tilt: number().min(-1).max(1).optional(),
|
|
30678
|
+
speed: number().min(0).max(1).optional()
|
|
30679
|
+
});
|
|
30680
|
+
/**
|
|
30681
|
+
* The enumerated discrete actions a navigation-capable robot can perform via
|
|
30682
|
+
* `runAction`. This is the CLOSED vocabulary; a given device advertises the
|
|
30683
|
+
* subset it supports through `listActions`. Sounds are NOT here — they go through
|
|
30684
|
+
* `playSound` (see the `sound` dictionary entries).
|
|
30685
|
+
*/
|
|
30686
|
+
var NavigationActionIdSchema = _enum([
|
|
30687
|
+
"goHome",
|
|
30688
|
+
"locate",
|
|
30689
|
+
"spotClean",
|
|
30690
|
+
"findPet",
|
|
30691
|
+
"personFollow",
|
|
30692
|
+
"stop",
|
|
30693
|
+
"startClean",
|
|
30694
|
+
"pauseClean",
|
|
30695
|
+
"dockWash",
|
|
30696
|
+
"autoEmpty",
|
|
30697
|
+
"flashOn",
|
|
30698
|
+
"flashOff"
|
|
30699
|
+
]);
|
|
30700
|
+
/** Whether a dictionary entry is a `runAction` action or a `playSound` sound. */
|
|
30701
|
+
var NavigationEntryKindSchema = _enum(["action", "sound"]);
|
|
30702
|
+
/**
|
|
30703
|
+
* One entry in the navigation action dictionary — the DATA-DRIVEN unit both the
|
|
30704
|
+
* native panel and the PTZ mimic render as a button.
|
|
30705
|
+
*
|
|
30706
|
+
* - `id` — stable id. For `kind:'action'` it is a {@link NavigationActionId}
|
|
30707
|
+
* (pass to `runAction`); for `kind:'sound'` it is a namespaced id
|
|
30708
|
+
* (`sound:meow`) whose `soundId` is passed to `playSound`.
|
|
30709
|
+
* - `icon` — icon HINT (lucide-style name; the UI maps it to its own set).
|
|
30710
|
+
* - `label` — operator-facing English label.
|
|
30711
|
+
* - `soundId` — wire sound id, present only on `kind:'sound'` entries.
|
|
30712
|
+
* - `enabled` — per-device FEATURE FLAG. `listActions` reports it so the UI /
|
|
30713
|
+
* PTZ render ONLY enabled entries. Data-driven: the provider
|
|
30714
|
+
* flips it from config, never by editing code.
|
|
30715
|
+
*/
|
|
30716
|
+
var NavigationActionEntrySchema = object({
|
|
30717
|
+
id: string(),
|
|
30718
|
+
kind: NavigationEntryKindSchema,
|
|
30719
|
+
label: string(),
|
|
30720
|
+
icon: string(),
|
|
30721
|
+
/** Present only on `kind:'sound'` entries — the id to pass to `playSound`. */
|
|
30722
|
+
soundId: number().int().optional(),
|
|
30723
|
+
/** Per-device feature flag — render this entry only when true. */
|
|
30724
|
+
enabled: boolean()
|
|
30725
|
+
});
|
|
30726
|
+
/** Coordinates for `goToPoint` — a point on the robot's live map. */
|
|
30727
|
+
var NavigationPointSchema = object({
|
|
30728
|
+
x: number(),
|
|
30729
|
+
y: number()
|
|
30730
|
+
});
|
|
30731
|
+
/**
|
|
30732
|
+
* Per-device FEATURE-FLAG report for the general (non-dictionary) primitives.
|
|
30733
|
+
* The cap reports which are enabled so the UI / PTZ render only the controls
|
|
30734
|
+
* that are turned on for THIS device. Data-driven: the provider derives these
|
|
30735
|
+
* from config + probe, never hardcoded in the UI. The per-DICTIONARY-entry flags
|
|
30736
|
+
* live on {@link NavigationActionEntrySchema.enabled}; these gate the primitives
|
|
30737
|
+
* that are not dictionary entries.
|
|
30738
|
+
*
|
|
30739
|
+
* - `move` / `stop` — the momentary drive joystick.
|
|
30740
|
+
* - `goToPoint` — send-to-map-coordinate. Ships OFF on Dreame until the
|
|
30741
|
+
* map-coordinate plumbing is wired.
|
|
30742
|
+
* - `runAction` — the discrete action buttons (dictionary `kind:'action'`).
|
|
30743
|
+
* - `playSound` — the sound buttons (dictionary `kind:'sound'`).
|
|
30744
|
+
* - `light` — the on/off fill-light toggle (works anytime).
|
|
30745
|
+
* - `lightMode` — the auto/manual selector + manual level slider (a
|
|
30746
|
+
* camera-service control; needs an active stream).
|
|
30747
|
+
*/
|
|
30748
|
+
var NavigationFeaturesSchema = object({
|
|
30749
|
+
move: boolean(),
|
|
30750
|
+
stop: boolean(),
|
|
30751
|
+
goToPoint: boolean(),
|
|
30752
|
+
runAction: boolean(),
|
|
30753
|
+
playSound: boolean(),
|
|
30754
|
+
light: boolean(),
|
|
30755
|
+
lightMode: boolean()
|
|
30756
|
+
});
|
|
30757
|
+
/** Light mode: `auto` lets the camera choose brightness; `manual` uses `level`. */
|
|
30758
|
+
var NavigationLightModeSchema = _enum(["auto", "manual"]);
|
|
30759
|
+
/**
|
|
30760
|
+
* Live navigation state so the UI can reflect what the robot is doing:
|
|
30761
|
+
* - `mode` — coarse activity (idle / cleaning / following / …).
|
|
30762
|
+
* - `following` — person/pet follow is currently armed.
|
|
30763
|
+
* - `flash` — the on-camera fill light is on.
|
|
30764
|
+
* - `lightMode` — auto vs manual fill-light mode.
|
|
30765
|
+
* - `lightLevel` — manual fill-light level (40..100); meaningful when
|
|
30766
|
+
* `lightMode === 'manual'`.
|
|
30767
|
+
*/
|
|
30768
|
+
var NavigationStatusSchema = object({
|
|
30769
|
+
mode: _enum([
|
|
30770
|
+
"idle",
|
|
30771
|
+
"cleaning",
|
|
30772
|
+
"spot",
|
|
30773
|
+
"following",
|
|
30774
|
+
"goto",
|
|
30775
|
+
"returning",
|
|
30776
|
+
"paused",
|
|
30777
|
+
"unknown"
|
|
30778
|
+
]),
|
|
30779
|
+
following: boolean(),
|
|
30780
|
+
flash: boolean(),
|
|
30781
|
+
lightMode: NavigationLightModeSchema,
|
|
30782
|
+
lightLevel: number().min(40).max(100),
|
|
30783
|
+
/** Ms epoch when the slice was last updated. */
|
|
30784
|
+
lastChangedAt: number()
|
|
30785
|
+
});
|
|
30786
|
+
/**
|
|
30787
|
+
* Runtime-state slice owned by this cap (kernel-managed: validated, mirrored,
|
|
30788
|
+
* observable). Adds `lastFetchedAt` on top of the status shape per the
|
|
30789
|
+
* convention.
|
|
30790
|
+
*/
|
|
30791
|
+
var NavigationRuntimeStateSchema = NavigationStatusSchema.extend({ lastFetchedAt: number() });
|
|
30792
|
+
var navigationCapability = {
|
|
30793
|
+
name: "navigation",
|
|
30794
|
+
scope: "device",
|
|
30795
|
+
deviceNative: true,
|
|
30796
|
+
mode: "singleton",
|
|
30797
|
+
deviceTypes: [DeviceType.Camera],
|
|
30798
|
+
deviceConfig: { ui: {
|
|
30799
|
+
kind: "widget",
|
|
30800
|
+
widgetId: "host/navigation-panel",
|
|
30801
|
+
tab: "navigation",
|
|
30802
|
+
topTab: true,
|
|
30803
|
+
label: "Navigation",
|
|
30804
|
+
order: 0
|
|
30805
|
+
} },
|
|
30806
|
+
methods: {
|
|
30807
|
+
/**
|
|
30808
|
+
* Momentary drive nudge (the robot moves). `protected` — mirrors
|
|
30809
|
+
* `ptz.continuousMove` so the Viewer navigation panel (and the PTZ-mimic
|
|
30810
|
+
* path) works for any authenticated user, not admin-only. The UI sends
|
|
30811
|
+
* these at ~1 Hz while a control is held; the provider forwards each one to
|
|
30812
|
+
* a single drive write WITHOUT debouncing.
|
|
30813
|
+
*/
|
|
30814
|
+
move: method(NavigationMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }),
|
|
30815
|
+
/** Halt all motion immediately (zero drive vector). */
|
|
30816
|
+
stop: method(object({ deviceId: number() }), _void(), { kind: "mutation" }),
|
|
30817
|
+
/** Send the robot to a point on its live map. */
|
|
30818
|
+
goToPoint: method(NavigationPointSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }),
|
|
30819
|
+
/**
|
|
30820
|
+
* Enumerate the discrete controls THIS device supports (data-driven UI +
|
|
30821
|
+
* PTZ mimic). Camera-probed subset of {@link NAVIGATION_ACTION_CATALOG}.
|
|
30822
|
+
*/
|
|
30823
|
+
listActions: method(object({ deviceId: number() }), array(NavigationActionEntrySchema)),
|
|
30824
|
+
/**
|
|
30825
|
+
* Run one discrete action (a `kind:'action'` dictionary entry). Invalid /
|
|
30826
|
+
* unsupported action ids are rejected by the provider.
|
|
30827
|
+
*/
|
|
30828
|
+
runAction: method(object({
|
|
30829
|
+
deviceId: number(),
|
|
30830
|
+
actionId: NavigationActionIdSchema
|
|
30831
|
+
}), _void(), { kind: "mutation" }),
|
|
30832
|
+
/** Play a sound by its wire id (the `soundId` of a `kind:'sound'` entry). */
|
|
30833
|
+
playSound: method(object({
|
|
30834
|
+
deviceId: number(),
|
|
30835
|
+
soundId: number().int()
|
|
30836
|
+
}), _void(), { kind: "mutation" }),
|
|
30837
|
+
/**
|
|
30838
|
+
* Turn the on-camera fill light on / off (the `OpenFullLight` control —
|
|
30839
|
+
* works anytime, no active stream required).
|
|
30840
|
+
*/
|
|
30841
|
+
setLightOn: method(object({
|
|
30842
|
+
deviceId: number(),
|
|
30843
|
+
on: boolean()
|
|
30844
|
+
}), _void(), { kind: "mutation" }),
|
|
30845
|
+
/**
|
|
30846
|
+
* Set the fill-light mode (auto vs manual). `manual` optionally carries the
|
|
30847
|
+
* initial `level`. The auto/manual + level control is a CAMERA-service
|
|
30848
|
+
* action that generally needs an active camera stream/monitor session — the
|
|
30849
|
+
* UI shows the manual level slider ONLY when `mode === 'manual'`.
|
|
30850
|
+
*/
|
|
30851
|
+
setLightMode: method(object({
|
|
30852
|
+
deviceId: number(),
|
|
30853
|
+
mode: NavigationLightModeSchema,
|
|
30854
|
+
level: number().min(40).max(100).optional()
|
|
30855
|
+
}), _void(), { kind: "mutation" }),
|
|
30856
|
+
/** Set the MANUAL fill-light level (40..100). Implies `manual` mode. */
|
|
30857
|
+
setLightLevel: method(object({
|
|
30858
|
+
deviceId: number(),
|
|
30859
|
+
level: number().min(40).max(100)
|
|
30860
|
+
}), _void(), { kind: "mutation" }),
|
|
30861
|
+
/**
|
|
30862
|
+
* Per-device FEATURE-FLAG report for the general primitives — drives which
|
|
30863
|
+
* controls the UI shows (the per-entry flags for the dictionary come back on
|
|
30864
|
+
* `listActions`).
|
|
30865
|
+
*/
|
|
30866
|
+
getFeatures: method(object({ deviceId: number() }), NavigationFeaturesSchema)
|
|
30867
|
+
},
|
|
30868
|
+
events: { onStatusChanged: { data: object({
|
|
30869
|
+
deviceId: number(),
|
|
30870
|
+
status: NavigationStatusSchema
|
|
30871
|
+
}) } },
|
|
30872
|
+
status: {
|
|
30873
|
+
schema: NavigationStatusSchema,
|
|
30874
|
+
kind: "push"
|
|
30875
|
+
},
|
|
30876
|
+
/**
|
|
30877
|
+
* Runtime-state slice mirrored by the kernel. The navigation panel watches it
|
|
30878
|
+
* for live mode / follow / flash changes.
|
|
30879
|
+
*/
|
|
30880
|
+
runtimeState: NavigationRuntimeStateSchema,
|
|
30881
|
+
/**
|
|
30882
|
+
* Runtime-state durability: **session** — like `vacuum-control`, a restored
|
|
30883
|
+
* `mode: cleaning` / `following: true` is a robot that is not actually doing
|
|
30884
|
+
* that. The live handle re-publishes on connect.
|
|
30885
|
+
*
|
|
30886
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
30887
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
30888
|
+
*/
|
|
30889
|
+
durability: "session"
|
|
30890
|
+
};
|
|
30519
30891
|
DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
|
|
30520
30892
|
kind: "mutation",
|
|
30521
30893
|
auth: "admin"
|
|
@@ -34010,6 +34382,8 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
34010
34382
|
motionTrigger: motionTriggerCapability,
|
|
34011
34383
|
motionZones: motionZonesCapability,
|
|
34012
34384
|
nativeObjectDetection: nativeObjectDetectionCapability,
|
|
34385
|
+
navigation: navigationCapability,
|
|
34386
|
+
networkLink: networkLinkCapability,
|
|
34013
34387
|
notifier: notifierCapability,
|
|
34014
34388
|
numericSensor: numericSensorCapability,
|
|
34015
34389
|
petFeeder: petFeederCapability,
|
|
@@ -37496,6 +37870,66 @@ Object.freeze({
|
|
|
37496
37870
|
addonId: null,
|
|
37497
37871
|
access: "create"
|
|
37498
37872
|
},
|
|
37873
|
+
"navigation.getFeatures": {
|
|
37874
|
+
capName: "navigation",
|
|
37875
|
+
capScope: "device",
|
|
37876
|
+
addonId: null,
|
|
37877
|
+
access: "view"
|
|
37878
|
+
},
|
|
37879
|
+
"navigation.goToPoint": {
|
|
37880
|
+
capName: "navigation",
|
|
37881
|
+
capScope: "device",
|
|
37882
|
+
addonId: null,
|
|
37883
|
+
access: "create"
|
|
37884
|
+
},
|
|
37885
|
+
"navigation.listActions": {
|
|
37886
|
+
capName: "navigation",
|
|
37887
|
+
capScope: "device",
|
|
37888
|
+
addonId: null,
|
|
37889
|
+
access: "view"
|
|
37890
|
+
},
|
|
37891
|
+
"navigation.move": {
|
|
37892
|
+
capName: "navigation",
|
|
37893
|
+
capScope: "device",
|
|
37894
|
+
addonId: null,
|
|
37895
|
+
access: "create"
|
|
37896
|
+
},
|
|
37897
|
+
"navigation.playSound": {
|
|
37898
|
+
capName: "navigation",
|
|
37899
|
+
capScope: "device",
|
|
37900
|
+
addonId: null,
|
|
37901
|
+
access: "create"
|
|
37902
|
+
},
|
|
37903
|
+
"navigation.runAction": {
|
|
37904
|
+
capName: "navigation",
|
|
37905
|
+
capScope: "device",
|
|
37906
|
+
addonId: null,
|
|
37907
|
+
access: "create"
|
|
37908
|
+
},
|
|
37909
|
+
"navigation.setLightLevel": {
|
|
37910
|
+
capName: "navigation",
|
|
37911
|
+
capScope: "device",
|
|
37912
|
+
addonId: null,
|
|
37913
|
+
access: "create"
|
|
37914
|
+
},
|
|
37915
|
+
"navigation.setLightMode": {
|
|
37916
|
+
capName: "navigation",
|
|
37917
|
+
capScope: "device",
|
|
37918
|
+
addonId: null,
|
|
37919
|
+
access: "create"
|
|
37920
|
+
},
|
|
37921
|
+
"navigation.setLightOn": {
|
|
37922
|
+
capName: "navigation",
|
|
37923
|
+
capScope: "device",
|
|
37924
|
+
addonId: null,
|
|
37925
|
+
access: "create"
|
|
37926
|
+
},
|
|
37927
|
+
"navigation.stop": {
|
|
37928
|
+
capName: "navigation",
|
|
37929
|
+
capScope: "device",
|
|
37930
|
+
addonId: null,
|
|
37931
|
+
access: "create"
|
|
37932
|
+
},
|
|
37499
37933
|
"networkAccess.getEndpoint": {
|
|
37500
37934
|
capName: "network-access",
|
|
37501
37935
|
capScope: "system",
|
|
@@ -41591,6 +42025,56 @@ Object.freeze({
|
|
|
41591
42025
|
form: "single",
|
|
41592
42026
|
optional: false
|
|
41593
42027
|
}],
|
|
42028
|
+
"navigation.getFeatures": [{
|
|
42029
|
+
name: "deviceId",
|
|
42030
|
+
form: "single",
|
|
42031
|
+
optional: false
|
|
42032
|
+
}],
|
|
42033
|
+
"navigation.goToPoint": [{
|
|
42034
|
+
name: "deviceId",
|
|
42035
|
+
form: "single",
|
|
42036
|
+
optional: false
|
|
42037
|
+
}],
|
|
42038
|
+
"navigation.listActions": [{
|
|
42039
|
+
name: "deviceId",
|
|
42040
|
+
form: "single",
|
|
42041
|
+
optional: false
|
|
42042
|
+
}],
|
|
42043
|
+
"navigation.move": [{
|
|
42044
|
+
name: "deviceId",
|
|
42045
|
+
form: "single",
|
|
42046
|
+
optional: false
|
|
42047
|
+
}],
|
|
42048
|
+
"navigation.playSound": [{
|
|
42049
|
+
name: "deviceId",
|
|
42050
|
+
form: "single",
|
|
42051
|
+
optional: false
|
|
42052
|
+
}],
|
|
42053
|
+
"navigation.runAction": [{
|
|
42054
|
+
name: "deviceId",
|
|
42055
|
+
form: "single",
|
|
42056
|
+
optional: false
|
|
42057
|
+
}],
|
|
42058
|
+
"navigation.setLightLevel": [{
|
|
42059
|
+
name: "deviceId",
|
|
42060
|
+
form: "single",
|
|
42061
|
+
optional: false
|
|
42062
|
+
}],
|
|
42063
|
+
"navigation.setLightMode": [{
|
|
42064
|
+
name: "deviceId",
|
|
42065
|
+
form: "single",
|
|
42066
|
+
optional: false
|
|
42067
|
+
}],
|
|
42068
|
+
"navigation.setLightOn": [{
|
|
42069
|
+
name: "deviceId",
|
|
42070
|
+
form: "single",
|
|
42071
|
+
optional: false
|
|
42072
|
+
}],
|
|
42073
|
+
"navigation.stop": [{
|
|
42074
|
+
name: "deviceId",
|
|
42075
|
+
form: "single",
|
|
42076
|
+
optional: false
|
|
42077
|
+
}],
|
|
41594
42078
|
"networkQuality.getDeviceStats": [{
|
|
41595
42079
|
name: "deviceId",
|
|
41596
42080
|
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-
|
|
5
|
+
const require_dist = require("../dist-CVYf5wQj.js");
|
|
6
6
|
let node_fs = require("node:fs");
|
|
7
7
|
node_fs = require_dist.__toESM(node_fs);
|
|
8
8
|
let node_path = require("node:path");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { At as BaseAddon, F as PoolMemoryWatchdog, St as resolvePoolMemoryPolicy, at as embeddingEncoderCapability, gt as parseProcStatus, ut as hfModelUrl } from "../dist-
|
|
1
|
+
import { At as BaseAddon, F as PoolMemoryWatchdog, St as resolvePoolMemoryPolicy, at as embeddingEncoderCapability, gt as parseProcStatus, ut as hfModelUrl } from "../dist-C0SVTa4b.mjs";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import * as fs from "node:fs";
|
|
4
4
|
import * as path$1 from "node:path";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as e, i as t, n, o as r, r as i, t as a } from "./_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare__react__loadShare__.js-C0AuF9av.mjs";
|
|
2
2
|
import { t as o } from "./_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-B3Wx5J80.mjs";
|
|
3
|
-
import { a as s, i as c, n as l, o as u, r as d, s as f, t as p } from "./_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-
|
|
3
|
+
import { a as s, i as c, n as l, o as u, r as d, s as f, t as p } from "./_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-Ddpv6_VF.mjs";
|
|
4
4
|
import { n as m, r as h, t as g } from "./_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-Bm-iyjmq.mjs";
|
|
5
5
|
//#region ../../node_modules/lucide-react/dist/esm/shared/src/utils.js
|
|
6
6
|
var _ = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), v = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), y = (e) => {
|
|
@@ -3,7 +3,7 @@ import "./dist-CYZr2fwk.mjs";
|
|
|
3
3
|
var e = {
|
|
4
4
|
"@camstack/sdk": {
|
|
5
5
|
name: "@camstack/sdk",
|
|
6
|
-
version: "1.2.
|
|
6
|
+
version: "1.2.74",
|
|
7
7
|
scope: ["default"],
|
|
8
8
|
loaded: !1,
|
|
9
9
|
from: "addon_pipeline_analytics_widgets",
|
|
@@ -18,7 +18,7 @@ var e = {
|
|
|
18
18
|
},
|
|
19
19
|
"@camstack/types": {
|
|
20
20
|
name: "@camstack/types",
|
|
21
|
-
version: "1.2.
|
|
21
|
+
version: "1.2.154",
|
|
22
22
|
scope: ["default"],
|
|
23
23
|
loaded: !1,
|
|
24
24
|
from: "addon_pipeline_analytics_widgets",
|
|
@@ -33,7 +33,7 @@ var e = {
|
|
|
33
33
|
},
|
|
34
34
|
"@camstack/ui-library": {
|
|
35
35
|
name: "@camstack/ui-library",
|
|
36
|
-
version: "1.2.
|
|
36
|
+
version: "1.2.121",
|
|
37
37
|
scope: ["default"],
|
|
38
38
|
loaded: !1,
|
|
39
39
|
from: "addon_pipeline_analytics_widgets",
|