@camstack/addon-osd-manager 0.1.152 → 0.1.153
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/{MotionZonesSettings-D5c6b4QP.mjs → MotionZonesSettings-Bi_uB8oT.mjs} +2 -2
- package/dist/{PrivacyMaskSettings-DMve7K-c.mjs → PrivacyMaskSettings-DuzJnDoQ.mjs} +4 -4
- package/dist/{SceneMonitorEditor-e1z_C79o.mjs → SceneMonitorEditor-CnpHHB8l.mjs} +3 -3
- package/dist/_stub.js +2352 -2351
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-C8rKpVdZ.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-BD9qu2T3.mjs} +3 -3
- package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DhxFiL0z.mjs +26 -0
- package/dist/{hostInit-B8_o5hJj.mjs → hostInit-Bo6e-m_F.mjs} +2 -2
- package/dist/index.js +209 -181
- package/dist/index.mjs +209 -181
- package/dist/{player-overlays-BchlNvHO.mjs → player-overlays-CPVNj3Th.mjs} +1 -1
- package/dist/remoteEntry.js +1 -1
- package/dist/{responsive-DRZ6VoYV.mjs → responsive-CmW26rtV.mjs} +1 -1
- package/dist/{scene-monitor-copy-CmtMsrJb.mjs → scene-monitor-copy-BP0Z6F7z.mjs} +1 -1
- package/dist/{square-BYLYL5VB.mjs → square-CaTP7VKX.mjs} +1 -1
- package/dist/{trash-2-BdEqSrHt.mjs → trash-2-IrsDpmSJ.mjs} +1 -1
- package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-p2S4DkBF.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-DLXGJNFv.mjs} +1 -1
- package/package.json +1 -1
- package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DQC5oc2I.mjs +0 -26
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../types/dist/event-category-
|
|
1
|
+
//#region ../types/dist/event-category-BGmz_oxW.mjs
|
|
2
2
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
3
3
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4
4
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -531,6 +531,15 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
531
531
|
*/
|
|
532
532
|
EventCategory["PipelineAudioInferenceResult"] = "pipeline.audio-inference-result";
|
|
533
533
|
EventCategory["DetectionPhaseTransition"] = "detection.phase-transition";
|
|
534
|
+
/**
|
|
535
|
+
* A camera provider's RAW onboard motion push (D673): the `MotionOnMotionChanged`
|
|
536
|
+
* data shape without `triggeredBy`, built by `providerMotionEvent`. Its one
|
|
537
|
+
* consumer is the orchestrator's camera-sensors bridge, which re-emits the
|
|
538
|
+
* camera's EFFECTIVE onboard motion as `MotionOnMotionChanged` (a pass-through
|
|
539
|
+
* for a camera with no attached sensor). Providers must not emit
|
|
540
|
+
* `MotionOnMotionChanged` themselves; `scripts/check-onboard-motion-emitters.ts`
|
|
541
|
+
* keeps it so (camera-grid is a named, deferred exception).
|
|
542
|
+
*/
|
|
534
543
|
EventCategory["ProviderMotion"] = "provider.motion";
|
|
535
544
|
EventCategory["ProviderDetection"] = "provider.detection";
|
|
536
545
|
EventCategory["EnrichmentEmbeddingStored"] = "enrichment.embedding.stored";
|
|
@@ -5369,7 +5378,7 @@ var ZodIssueCode = {
|
|
|
5369
5378
|
var ZodFirstPartyTypeKind;
|
|
5370
5379
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5371
5380
|
//#endregion
|
|
5372
|
-
//#region ../types/dist/sleep-
|
|
5381
|
+
//#region ../types/dist/sleep-CDCONfkt.mjs
|
|
5373
5382
|
/**
|
|
5374
5383
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5375
5384
|
* window to float samples (D455).
|
|
@@ -7510,7 +7519,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
|
7510
7519
|
return DeviceRole;
|
|
7511
7520
|
}({});
|
|
7512
7521
|
//#endregion
|
|
7513
|
-
//#region ../types/dist/composition-
|
|
7522
|
+
//#region ../types/dist/composition-43aqsZQj.mjs
|
|
7514
7523
|
/**
|
|
7515
7524
|
* The ffmpeg build every CamStack node downloads, per platform and arch.
|
|
7516
7525
|
*
|
|
@@ -7567,13 +7576,12 @@ portable("linux64"), portable("linuxarm64"), portable("macarm64"), portable("mac
|
|
|
7567
7576
|
* LA tabella "quale booleano di questo tipo di device conta come ALTO", e il
|
|
7568
7577
|
* valutatore puro del suo FRONTE.
|
|
7569
7578
|
*
|
|
7570
|
-
*
|
|
7571
|
-
*
|
|
7572
|
-
*
|
|
7573
|
-
*
|
|
7574
|
-
*
|
|
7575
|
-
* fa suonare il campanello ma non registra" — è esattamente D62.
|
|
7576
|
-
* SPOSTA qui e il doorbell la ri-esporta.
|
|
7579
|
+
* UNA tabella per tutti quelli che chiedono "questo device è ALTO?": il
|
|
7580
|
+
* trigger `RecordingTriggers.sensorDeviceIds` del recorder, i marker dei
|
|
7581
|
+
* sensori della post-analysis, il bridge camera-sensors dell'orchestratore e
|
|
7582
|
+
* le sorgenti di un campanello composto (`doorbellFeatureSources`, D671).
|
|
7583
|
+
* Una seconda copia divergerebbe alla prima cap aggiunta, e il sintomo — "il
|
|
7584
|
+
* sensore fa suonare il campanello ma non registra" — è esattamente D62.
|
|
7577
7585
|
*
|
|
7578
7586
|
* ⚠ NON è `DEVICE_STATE_READERS` (`catalogs/device-state-vocabulary.ts`), e le
|
|
7579
7587
|
* due non vanno unificate: quella risponde a "qual è la PAROLA di stato per una
|
|
@@ -7599,8 +7607,6 @@ var SOURCE_CAP_ACTIVE_FIELD = {
|
|
|
7599
7607
|
vibration: "detected",
|
|
7600
7608
|
tamper: "tampered"
|
|
7601
7609
|
};
|
|
7602
|
-
/** Cap names whose presence in a device's bindings qualify it as a source. */
|
|
7603
|
-
var SOURCE_CAPS = Object.keys(SOURCE_CAP_ACTIVE_FIELD);
|
|
7604
7610
|
/**
|
|
7605
7611
|
* Error types for the safe expression engine. Two distinct classes so callers
|
|
7606
7612
|
* can tell a compile-time (grammar) failure from a runtime (evaluation)
|
|
@@ -9310,7 +9316,7 @@ var RecordingTriggersSchema = object({
|
|
|
9310
9316
|
*
|
|
9311
9317
|
* Cosa vuol dire "alto" dipende dal TIPO di device e non è deciso qui:
|
|
9312
9318
|
* `SOURCE_CAP_ACTIVE_FIELD` (`catalogs/sensor-active-state.ts`) è LA tabella,
|
|
9313
|
-
* la stessa
|
|
9319
|
+
* la stessa del campanello composto (D671). Ed è il FRONTE, non
|
|
9314
9320
|
* il livello: un contatto trovato già aperto al riavvio del runner non fa
|
|
9315
9321
|
* registrare.
|
|
9316
9322
|
*/
|
|
@@ -17194,8 +17200,8 @@ var deviceManagerCapability = {
|
|
|
17194
17200
|
* (`value` / `missing` / `failed`, see {@link WrapperActivationReadSchema}).
|
|
17195
17201
|
*
|
|
17196
17202
|
* The narrow read of the durable authority behind `getBindings`: a
|
|
17197
|
-
* consumer that must know what the operator PERSISTED (
|
|
17198
|
-
*
|
|
17203
|
+
* consumer that must know what the operator PERSISTED (before it drops
|
|
17204
|
+
* work on the strength of an unbind) asks this instead of pulling device-manager's
|
|
17199
17205
|
* whole addon store through `addonSettingsRaw.getGlobal` — which answered
|
|
17200
17206
|
* `{}` on every isolated-engine hub and so never worked (D675). It reads
|
|
17201
17207
|
* ONE row (the activation map, ~1.6 KB), never the ~625 KB store.
|
|
@@ -17485,109 +17491,10 @@ var deviceManagerCapability = {
|
|
|
17485
17491
|
}), record(string(), record(string(), unknown().nullable())))
|
|
17486
17492
|
}
|
|
17487
17493
|
};
|
|
17488
|
-
|
|
17489
|
-
|
|
17490
|
-
* name (same pattern as `snapshot`):
|
|
17491
|
-
*
|
|
17492
|
-
* - **Native** providers: registered per-device by device-driver
|
|
17493
|
-
* addons via `ctx.registerNativeCap` — either on a
|
|
17494
|
-
* `DeviceType.Button` accessory with `role: DeviceRole.Doorbell`,
|
|
17495
|
-
* or directly on the camera (Reolink registers at camera level).
|
|
17496
|
-
* Emits an `onPressed` event every time the firmware pushes a
|
|
17497
|
-
* ring; status tracks the last press and a pressCount since start
|
|
17498
|
-
* (diagnostic).
|
|
17499
|
-
*
|
|
17500
|
-
* - **Wrapper** provider: the `virtual-doorbell` system builtin
|
|
17501
|
-
* (`@camstack/system/builtins/doorbell`). Turns ANY binary-ish
|
|
17502
|
-
* device (contact / switch / event-emitter …) into a doorbell for
|
|
17503
|
-
* a camera. `defaultActive: false` — the operator explicitly binds
|
|
17504
|
-
* it per camera in the device-bindings UI, then picks the source
|
|
17505
|
-
* device + trigger in the per-device settings.
|
|
17506
|
-
*
|
|
17507
|
-
* The DeviceEventPropagator re-emits `onPressed` on the camera parent
|
|
17508
|
-
* — subscribers listening at the camera level receive ring events
|
|
17509
|
-
* with `via[]` populated. No code on the parent needed.
|
|
17510
|
-
*/
|
|
17511
|
-
var DoorbellStatusSchema = object({
|
|
17512
|
-
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
17513
|
-
lastPressedAt: number().nullable(),
|
|
17514
|
-
/** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
|
|
17515
|
-
pressCountSinceStart: number()
|
|
17516
|
-
});
|
|
17517
|
-
var DoorbellPressEventSchema = object({
|
|
17518
|
-
deviceId: number(),
|
|
17519
|
-
timestamp: number()
|
|
17520
|
-
});
|
|
17521
|
-
/**
|
|
17522
|
-
* The `doorbell-source` extension slot's editable value (D648): the camera's
|
|
17523
|
-
* virtual-doorbell trigger devices, exactly what the wrapper's
|
|
17524
|
-
* `doorbellSources` persists (as `{ deviceId }` records).
|
|
17525
|
-
*/
|
|
17526
|
-
var DoorbellSourceSlotValueSchema = object({ deviceIds: array(number().int().positive()) });
|
|
17527
|
-
/**
|
|
17528
|
-
* The `doorbell-source` slot — which devices ring this camera's VIRTUAL
|
|
17529
|
-
* doorbell, owned by the `virtual-doorbell` wrapper over its
|
|
17530
|
-
* `doorbellSources` store (D648). A source rings when one of its
|
|
17531
|
-
* `SOURCE_CAPS` rises. Whether the wrapper is bound to the camera at all is a
|
|
17532
|
-
* different authority (`deviceManager.setWrapperActive`, D62) — the slot
|
|
17533
|
-
* reports it, it never writes it.
|
|
17534
|
-
*/
|
|
17535
|
-
var DOORBELL_SOURCE_SLOT = {
|
|
17536
|
-
id: "doorbell-source",
|
|
17537
|
-
label: "Doorbell trigger devices",
|
|
17538
|
-
description: "Any of these becoming active rings this camera's virtual doorbell: a binary sensor when it goes active, a switch when it turns on.",
|
|
17539
|
-
shape: "association",
|
|
17540
|
-
hostDeviceTypes: [DeviceType.Camera],
|
|
17541
|
-
sourceCaps: SOURCE_CAPS,
|
|
17542
|
-
cardinality: "many",
|
|
17543
|
-
value: DoorbellSourceSlotValueSchema
|
|
17544
|
-
};
|
|
17545
|
-
var doorbellCapability = {
|
|
17546
|
-
name: "doorbell",
|
|
17547
|
-
scope: "device",
|
|
17548
|
-
deviceNative: true,
|
|
17549
|
-
mode: "singleton",
|
|
17550
|
-
kind: "wrapper",
|
|
17551
|
-
defaultActive: false,
|
|
17552
|
-
deviceTypes: [DeviceType.Button, DeviceType.Camera],
|
|
17553
|
-
extensionSlots: [DOORBELL_SOURCE_SLOT],
|
|
17554
|
-
methods: {},
|
|
17555
|
-
events: {
|
|
17556
|
-
/**
|
|
17557
|
-
* Fires once per physical press. Reolink delivers via Baichuan
|
|
17558
|
-
* push (`ReolinkSimpleEvent.type === 'doorbell'`). There is no
|
|
17559
|
-
* release/duration — it's a pulse.
|
|
17560
|
-
*/
|
|
17561
|
-
onPressed: {
|
|
17562
|
-
data: DoorbellPressEventSchema,
|
|
17563
|
-
fromState: {
|
|
17564
|
-
field: "lastPressedAt",
|
|
17565
|
-
on: "advance"
|
|
17566
|
-
}
|
|
17567
|
-
} },
|
|
17568
|
-
status: {
|
|
17569
|
-
schema: DoorbellStatusSchema,
|
|
17570
|
-
kind: "push"
|
|
17571
|
-
},
|
|
17572
|
-
/**
|
|
17573
|
-
* Runtime-state slice — last press timestamp + lifetime press count.
|
|
17574
|
-
* Mirrored by the kernel and readable via
|
|
17575
|
-
* `device.state.doorbell.value`. UIs can show "last ring 5m ago"
|
|
17576
|
-
* without subscribing.
|
|
17577
|
-
*/
|
|
17578
|
-
runtimeState: DoorbellStatusSchema,
|
|
17579
|
-
/**
|
|
17580
|
-
* Runtime-state durability: **restored** — a monotonic accumulator: the slice IS the record. `lastPressedAt` is content here, not a clock, so it is deliberately NOT volatile.
|
|
17581
|
-
*
|
|
17582
|
-
* See `RuntimeStateDurability`. Enforced by
|
|
17583
|
-
* `scripts/check-runtime-state-durability.ts`.
|
|
17584
|
-
*/
|
|
17585
|
-
durability: "restored"
|
|
17586
|
-
};
|
|
17587
|
-
var ExtensionSlotIdSchema = _enum(["doorbell-source", "linked-devices"]);
|
|
17588
|
-
DeviceType.Camera, DeviceType.Camera;
|
|
17494
|
+
var ExtensionSlotIdSchema = _enum(["linked-devices"]);
|
|
17495
|
+
DeviceType.Camera;
|
|
17589
17496
|
/** A slot's editable value, discriminated on `slot`. */
|
|
17590
|
-
var ExtensionSlotValueSchema = discriminatedUnion("slot", [
|
|
17497
|
+
var ExtensionSlotValueSchema = discriminatedUnion("slot", [LinkedDevicesSlotValueSchema.extend({ slot: literal("linked-devices") })]);
|
|
17591
17498
|
/** Every device type at least one slot is offered on — `device-extension`'s `deviceTypes`. */
|
|
17592
17499
|
var EXTENSION_HOST_DEVICE_TYPES = [DeviceType.Camera];
|
|
17593
17500
|
var ExtensionSourceAvailabilitySchema = discriminatedUnion("state", [object({ state: literal("ok") }), object({
|
|
@@ -17625,10 +17532,11 @@ var ExtensionSlotSourceSchema = object({
|
|
|
17625
17532
|
});
|
|
17626
17533
|
/**
|
|
17627
17534
|
* A DIFFERENT authority that gates whether the slot's sources do anything —
|
|
17628
|
-
* reported read-only, named, never written through this contract (D62).
|
|
17629
|
-
*
|
|
17630
|
-
*
|
|
17631
|
-
* `unknown` means the gate could
|
|
17535
|
+
* reported read-only, named, never written through this contract (D62) — e.g.
|
|
17536
|
+
* a slot whose sources act only while a wrapper is bound to the host, a
|
|
17537
|
+
* binding that belongs to `deviceManager.setWrapperActive`. No slot reports
|
|
17538
|
+
* one today (`linked-devices` answers `null`). `unknown` means the gate could
|
|
17539
|
+
* not be read; it is not "inactive" (D315).
|
|
17632
17540
|
*/
|
|
17633
17541
|
var ExtensionSlotActivationSchema = object({
|
|
17634
17542
|
state: _enum([
|
|
@@ -17644,7 +17552,7 @@ var ExtensionSlotRowSchema = discriminatedUnion("state", [object({
|
|
|
17644
17552
|
/** `<source>:<slotId>` — the routing key for `listCandidates` / `setSlot`. */
|
|
17645
17553
|
slotRef: string(),
|
|
17646
17554
|
slot: ExtensionSlotIdSchema,
|
|
17647
|
-
/** Names the store written (D62), e.g. `
|
|
17555
|
+
/** Names the store written (D62), e.g. `device-manager:_linkedDeviceIds`. */
|
|
17648
17556
|
authority: string(),
|
|
17649
17557
|
activation: ExtensionSlotActivationSchema.nullable(),
|
|
17650
17558
|
value: ExtensionSlotValueSchema,
|
|
@@ -17829,8 +17737,8 @@ var deviceStateCapability = {
|
|
|
17829
17737
|
* Canonical cross-layer WRITE for one cap-keyed slice. Used by
|
|
17830
17738
|
* everyone who needs to publish runtime state for a device:
|
|
17831
17739
|
* device providers (via `BaseDevice.runtimeState.setCapState`
|
|
17832
|
-
* which delegates here), system-scope addons (e.g. the
|
|
17833
|
-
*
|
|
17740
|
+
* which delegates here), system-scope addons (e.g. the orchestrator
|
|
17741
|
+
* writing a camera's effective `motion` slice, D696), and
|
|
17834
17742
|
* direct cap-router callers in tests.
|
|
17835
17743
|
*
|
|
17836
17744
|
* Behavior on the hub:
|
|
@@ -23990,12 +23898,26 @@ var CameraSensorRefSchema = object({
|
|
|
23990
23898
|
function cameraSensorRefKey(ref) {
|
|
23991
23899
|
return `${ref.addonId}/${ref.stableId}`;
|
|
23992
23900
|
}
|
|
23993
|
-
/**
|
|
23994
|
-
|
|
23995
|
-
|
|
23996
|
-
|
|
23997
|
-
|
|
23998
|
-
|
|
23901
|
+
/**
|
|
23902
|
+
* A sensor's mode (D673). `in-addition`: its motion is the camera's motion too.
|
|
23903
|
+
* `replace`: its motion is the camera's, and while one is READY the camera's
|
|
23904
|
+
* own motion no longer counts on its own. `confirm`: while one is READY the
|
|
23905
|
+
* camera's own motion counts only while a confirm sensor is active — with or
|
|
23906
|
+
* without a replace sensor (spec C2, the controller's ruling on Q1).
|
|
23907
|
+
*/
|
|
23908
|
+
var CameraSensorModeSchema = _enum([
|
|
23909
|
+
"in-addition",
|
|
23910
|
+
"confirm",
|
|
23911
|
+
"replace"
|
|
23912
|
+
]);
|
|
23913
|
+
/** A stored sensor with no mode — every CS-1 row — is in addition. */
|
|
23914
|
+
var DEFAULT_CAMERA_SENSOR_MODE = "in-addition";
|
|
23915
|
+
/**
|
|
23916
|
+
* A camera's attached sensors. A CS-1 row carried an envelope
|
|
23917
|
+
* `mode: 'in-addition'`: `z.object` drops it on parse, and the PARSED value is
|
|
23918
|
+
* what the write stores (D672 rule 3), so it is never written again.
|
|
23919
|
+
*/
|
|
23920
|
+
var CameraSensorsConfigSchema = object({ sensors: array(CameraSensorRefSchema.extend({ mode: CameraSensorModeSchema.default(DEFAULT_CAMERA_SENSOR_MODE) })).min(1).max(8) }).superRefine((value, ctx) => {
|
|
23999
23921
|
const seen = /* @__PURE__ */ new Set();
|
|
24000
23922
|
value.sensors.forEach((ref, index) => {
|
|
24001
23923
|
const key = cameraSensorRefKey(ref);
|
|
@@ -24007,39 +23929,41 @@ var CameraSensorsConfigSchema = object({
|
|
|
24007
23929
|
seen.add(key);
|
|
24008
23930
|
});
|
|
24009
23931
|
});
|
|
24010
|
-
|
|
23932
|
+
/** Every attachment names its mode; an older orchestrator that does not is in addition. */
|
|
23933
|
+
var AttachmentFields = {
|
|
24011
23934
|
addonId: string(),
|
|
24012
|
-
stableId: string()
|
|
23935
|
+
stableId: string(),
|
|
23936
|
+
mode: CameraSensorModeSchema.default(DEFAULT_CAMERA_SENSOR_MODE)
|
|
24013
23937
|
};
|
|
24014
23938
|
var CameraSensorAttachmentSchema = discriminatedUnion("state", [
|
|
24015
23939
|
object({
|
|
24016
|
-
...
|
|
23940
|
+
...AttachmentFields,
|
|
24017
23941
|
state: literal("ready"),
|
|
24018
23942
|
deviceId: number(),
|
|
24019
23943
|
name: string(),
|
|
24020
23944
|
caps: array(string()).readonly()
|
|
24021
23945
|
}),
|
|
24022
23946
|
object({
|
|
24023
|
-
...
|
|
23947
|
+
...AttachmentFields,
|
|
24024
23948
|
state: literal("offline"),
|
|
24025
23949
|
deviceId: number(),
|
|
24026
23950
|
name: string(),
|
|
24027
23951
|
reason: _enum(["offline", "disabled"])
|
|
24028
23952
|
}),
|
|
24029
23953
|
object({
|
|
24030
|
-
...
|
|
23954
|
+
...AttachmentFields,
|
|
24031
23955
|
state: literal("missing"),
|
|
24032
23956
|
reason: string()
|
|
24033
23957
|
}),
|
|
24034
23958
|
object({
|
|
24035
|
-
...
|
|
23959
|
+
...AttachmentFields,
|
|
24036
23960
|
state: literal("unsupported"),
|
|
24037
23961
|
deviceId: number(),
|
|
24038
23962
|
name: string(),
|
|
24039
23963
|
reason: string()
|
|
24040
23964
|
}),
|
|
24041
23965
|
object({
|
|
24042
|
-
...
|
|
23966
|
+
...AttachmentFields,
|
|
24043
23967
|
state: literal("unreadable"),
|
|
24044
23968
|
reason: string()
|
|
24045
23969
|
})
|
|
@@ -24052,17 +23976,49 @@ var CameraSensorAttachmentSchema = discriminatedUnion("state", [
|
|
|
24052
23976
|
* say.
|
|
24053
23977
|
*/
|
|
24054
23978
|
var CameraSensorsNotForwardedSchema = _enum(["onboard-not-listed", "no-active-detection"]);
|
|
23979
|
+
/** Whether the camera's OWN motion counts on its own (D673 C2), from its READY sensors (C3). */
|
|
23980
|
+
var CameraOwnMotionSchema = _enum([
|
|
23981
|
+
"always",
|
|
23982
|
+
"when-confirmed",
|
|
23983
|
+
"never"
|
|
23984
|
+
]);
|
|
23985
|
+
/** Confirm / Replace cannot suppress this camera's motion: its provider still emits it directly (D673 C13). */
|
|
23986
|
+
var CameraSensorsNotEnforcedSchema = _enum(["provider-not-split"]);
|
|
23987
|
+
/**
|
|
23988
|
+
* The camera's OWN onboard motion (D696): the raw input the bridge combines,
|
|
23989
|
+
* never the effective value. The camera's `motion` slice is the effective one,
|
|
23990
|
+
* so a view of the camera's own row reads this.
|
|
23991
|
+
* - `atMs`: when the bridge received the camera's last own edge.
|
|
23992
|
+
* - `detected`: evaluated WHEN THE STATUS IS ASKED — the last edge said `true`
|
|
23993
|
+
* AND it is younger than the window the bridge counts the camera's own motion
|
|
23994
|
+
* for (`motionCooldownMs`, floored at two sustain ticks). A camera that never
|
|
23995
|
+
* sends a clear (heartbeats only) therefore reads `false` once no push came
|
|
23996
|
+
* within the window; a status read is a snapshot, so a live view re-asks.
|
|
23997
|
+
* Absent = this orchestrator has not received the camera's own motion since it
|
|
23998
|
+
* started (unknown, never "quiet"), or an orchestrator older than D696.
|
|
23999
|
+
*/
|
|
24000
|
+
var CameraRawLevelSchema = object({
|
|
24001
|
+
detected: boolean(),
|
|
24002
|
+
atMs: number()
|
|
24003
|
+
});
|
|
24055
24004
|
var CameraSensorsStatusSchema = discriminatedUnion("state", [
|
|
24056
|
-
object({
|
|
24005
|
+
object({
|
|
24006
|
+
state: literal("not-configured"),
|
|
24007
|
+
cameraLevel: CameraRawLevelSchema.optional()
|
|
24008
|
+
}),
|
|
24057
24009
|
object({
|
|
24058
24010
|
state: literal("unreadable"),
|
|
24059
|
-
reason: string()
|
|
24011
|
+
reason: string(),
|
|
24012
|
+
cameraLevel: CameraRawLevelSchema.optional()
|
|
24060
24013
|
}),
|
|
24061
24014
|
object({
|
|
24062
24015
|
state: literal("configured"),
|
|
24063
|
-
|
|
24016
|
+
cameraLevel: CameraRawLevelSchema.optional(),
|
|
24064
24017
|
sensors: array(CameraSensorAttachmentSchema).readonly(),
|
|
24065
|
-
|
|
24018
|
+
/** Absent = an orchestrator older than CS-2: it does not say (D315). */
|
|
24019
|
+
cameraMotion: CameraOwnMotionSchema.optional(),
|
|
24020
|
+
notForwarded: CameraSensorsNotForwardedSchema.optional(),
|
|
24021
|
+
notEnforced: CameraSensorsNotEnforcedSchema.optional()
|
|
24066
24022
|
})
|
|
24067
24023
|
]);
|
|
24068
24024
|
Object.freeze({
|
|
@@ -28149,8 +28105,10 @@ var RunnerCameraConfigSchema = object({
|
|
|
28149
28105
|
* - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
|
|
28150
28106
|
* analyzer providers) running on decoded frames in this runner.
|
|
28151
28107
|
* - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
|
|
28152
|
-
* analytics). The provider emits ProviderMotion
|
|
28153
|
-
*
|
|
28108
|
+
* analytics). The provider emits its raw push as `ProviderMotion`
|
|
28109
|
+
* (D673); the orchestrator's camera-sensors bridge re-emits the camera's
|
|
28110
|
+
* effective motion as `MotionOnMotionChanged`, which is what reaches
|
|
28111
|
+
* `reportMotion`.
|
|
28154
28112
|
*/
|
|
28155
28113
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
28156
28114
|
/**
|
|
@@ -28327,7 +28285,15 @@ var RunnerLocalLoadSchema = object({
|
|
|
28327
28285
|
hasGpu: boolean(),
|
|
28328
28286
|
inferenceBackend: string().optional(),
|
|
28329
28287
|
cpuCores: number().optional()
|
|
28330
|
-
})
|
|
28288
|
+
}),
|
|
28289
|
+
/**
|
|
28290
|
+
* Who writes a camera's `motion` runtime slice (D696). `'orchestrator'`: this
|
|
28291
|
+
* runner never writes it. ABSENT = a runner older than D696, which still
|
|
28292
|
+
* writes the slice from its phase machine; the orchestrator does not write
|
|
28293
|
+
* while any runner node is absent-or-unanswered, so one slice never has two
|
|
28294
|
+
* writers.
|
|
28295
|
+
*/
|
|
28296
|
+
motionSliceWriter: literal("orchestrator").optional()
|
|
28331
28297
|
});
|
|
28332
28298
|
/**
|
|
28333
28299
|
* Aggregate runtime metrics for the runner's whole local pool. Mirrors the
|
|
@@ -35484,6 +35450,70 @@ onStatusChanged: { data: object({
|
|
|
35484
35450
|
* whether persisting is worth a SQLite commit. */
|
|
35485
35451
|
volatileStateFields: ["lastChangedAt"]
|
|
35486
35452
|
};
|
|
35453
|
+
var DoorbellStatusSchema = object({
|
|
35454
|
+
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
35455
|
+
lastPressedAt: number().nullable(),
|
|
35456
|
+
/** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
|
|
35457
|
+
pressCountSinceStart: number()
|
|
35458
|
+
});
|
|
35459
|
+
var DoorbellPressEventSchema = object({
|
|
35460
|
+
deviceId: number(),
|
|
35461
|
+
timestamp: number()
|
|
35462
|
+
});
|
|
35463
|
+
/**
|
|
35464
|
+
* Doorbell button cap. Two kinds of provider serve it, and to every consumer
|
|
35465
|
+
* they are the same cap:
|
|
35466
|
+
*
|
|
35467
|
+
* - **Native** providers, registered per device by a driver addon through
|
|
35468
|
+
* `ctx.registerNativeCap` — a `DeviceType.Button` accessory with
|
|
35469
|
+
* `role: DeviceRole.Doorbell`, or the camera itself (Reolink registers at
|
|
35470
|
+
* camera level). They emit `onPressed` on every firmware ring.
|
|
35471
|
+
* - **A composed doorbell** (D670, D671): a camera's customization gives it
|
|
35472
|
+
* the cap, its `lastPressedAt` rising from the sources the operator
|
|
35473
|
+
* assigned in Customize → Doorbell, and the composer emits `onPressed`
|
|
35474
|
+
* from that field's advance (`fromState`).
|
|
35475
|
+
*
|
|
35476
|
+
* The DeviceEventPropagator re-emits `onPressed` on the camera parent.
|
|
35477
|
+
*/
|
|
35478
|
+
var doorbellCapability = {
|
|
35479
|
+
name: "doorbell",
|
|
35480
|
+
scope: "device",
|
|
35481
|
+
deviceNative: true,
|
|
35482
|
+
mode: "singleton",
|
|
35483
|
+
deviceTypes: [DeviceType.Button, DeviceType.Camera],
|
|
35484
|
+
methods: {},
|
|
35485
|
+
events: {
|
|
35486
|
+
/**
|
|
35487
|
+
* Fires once per physical press. Reolink delivers via Baichuan
|
|
35488
|
+
* push (`ReolinkSimpleEvent.type === 'doorbell'`). There is no
|
|
35489
|
+
* release/duration — it's a pulse.
|
|
35490
|
+
*/
|
|
35491
|
+
onPressed: {
|
|
35492
|
+
data: DoorbellPressEventSchema,
|
|
35493
|
+
fromState: {
|
|
35494
|
+
field: "lastPressedAt",
|
|
35495
|
+
on: "advance"
|
|
35496
|
+
}
|
|
35497
|
+
} },
|
|
35498
|
+
status: {
|
|
35499
|
+
schema: DoorbellStatusSchema,
|
|
35500
|
+
kind: "push"
|
|
35501
|
+
},
|
|
35502
|
+
/**
|
|
35503
|
+
* Runtime-state slice — last press timestamp + lifetime press count.
|
|
35504
|
+
* Mirrored by the kernel and readable via
|
|
35505
|
+
* `device.state.doorbell.value`. UIs can show "last ring 5m ago"
|
|
35506
|
+
* without subscribing.
|
|
35507
|
+
*/
|
|
35508
|
+
runtimeState: DoorbellStatusSchema,
|
|
35509
|
+
/**
|
|
35510
|
+
* Runtime-state durability: **restored** — a monotonic accumulator: the slice IS the record. `lastPressedAt` is content here, not a clock, so it is deliberately NOT volatile.
|
|
35511
|
+
*
|
|
35512
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
35513
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
35514
|
+
*/
|
|
35515
|
+
durability: "restored"
|
|
35516
|
+
};
|
|
35487
35517
|
/**
|
|
35488
35518
|
* Enum-state sensor — a string value picked from a finite option set.
|
|
35489
35519
|
* Drives HA `sensor` entries with `state_class: enum` (HVAC action
|
|
@@ -37863,9 +37893,9 @@ var MotionStatusSchema = object({
|
|
|
37863
37893
|
/** Ms epoch of the last detected-true observation. Null if never detected. */
|
|
37864
37894
|
lastDetectedAt: number().nullable(),
|
|
37865
37895
|
/**
|
|
37866
|
-
* `MOTION_CLOSE_AFTER_MS` while `detected: true` on a `Camera` device
|
|
37867
|
-
* `null` while false and on every `Sensor`
|
|
37868
|
-
* constant's doc for the one-authority rule.
|
|
37896
|
+
* `MOTION_CLOSE_AFTER_MS` while `detected: true` on a `Camera` device (the
|
|
37897
|
+
* orchestrator writes it, D696), `null` while false and on every `Sensor`
|
|
37898
|
+
* device (D475) — see that constant's doc for the one-authority rule.
|
|
37869
37899
|
*
|
|
37870
37900
|
* ## Reading this field still arms nothing
|
|
37871
37901
|
*
|
|
@@ -37883,34 +37913,31 @@ var MotionStatusSchema = object({
|
|
|
37883
37913
|
* `addon-export-alexa/src/motion-clear-hold.ts` and
|
|
37884
37914
|
* `addon-export-hap`'s `RESET_DEBOUNCE_MS` both do.
|
|
37885
37915
|
*
|
|
37886
|
-
* ## Who writes it
|
|
37887
|
-
*
|
|
37888
|
-
* - **Cameras** — the
|
|
37889
|
-
*
|
|
37890
|
-
* `
|
|
37891
|
-
* `
|
|
37892
|
-
*
|
|
37893
|
-
*
|
|
37894
|
-
* a
|
|
37895
|
-
*
|
|
37896
|
-
*
|
|
37897
|
-
*
|
|
37898
|
-
*
|
|
37899
|
-
*
|
|
37900
|
-
*
|
|
37901
|
-
*
|
|
37902
|
-
*
|
|
37903
|
-
*
|
|
37904
|
-
* `
|
|
37905
|
-
*
|
|
37906
|
-
*
|
|
37907
|
-
*
|
|
37908
|
-
*
|
|
37909
|
-
*
|
|
37910
|
-
*
|
|
37911
|
-
* This predates D475 and is not fixed there: the fix touches every
|
|
37912
|
-
* camera provider. Recorded in D475's Consequences. Do not restore the
|
|
37913
|
-
* "sole writer" wording without also removing the other writers.
|
|
37916
|
+
* ## Who writes it (D696)
|
|
37917
|
+
*
|
|
37918
|
+
* - **Cameras** — the orchestrator, and nothing else. It writes the camera's
|
|
37919
|
+
* EFFECTIVE motion (`addon-pipeline-orchestrator`
|
|
37920
|
+
* `camera-sensors/motion-slice.ts`), alongside the effective
|
|
37921
|
+
* `MotionOnMotionChanged` it emits or receives: the camera-sensors bridge
|
|
37922
|
+
* for a split camera, an unsplit emitter's direct event, the analyzer and
|
|
37923
|
+
* device activity, as the camera's `motionSources` counts them. A source
|
|
37924
|
+
* that never sends a clear falls one window after its last `true`.
|
|
37925
|
+
* `lastDetectedAt` moves only on an effective rise. No camera provider
|
|
37926
|
+
* writes this slice (not even a boot seed), and neither does the runner's
|
|
37927
|
+
* phase machine: its phase is "a session is attached" for every on-motion
|
|
37928
|
+
* session, not motion, and it now has its own `DetectionPhaseTransition`.
|
|
37929
|
+
* A provider's `isDetected` answers from the hub's slice.
|
|
37930
|
+
* - **Sensors** (Home Assistant binary sensors, Homematic, Matter, Alexa
|
|
37931
|
+
* imports) — the provider pushes both edges itself, from the upstream
|
|
37932
|
+
* system's own state change. That is the sensor's own fact.
|
|
37933
|
+
*
|
|
37934
|
+
* `scripts/check-onboard-motion-emitters.ts` refuses any other writer of a
|
|
37935
|
+
* `motion` slice; each sensor writer is a named exemption.
|
|
37936
|
+
*
|
|
37937
|
+
* This replaces the D475 §4 rule ("the phase machine is the sole writer").
|
|
37938
|
+
* That rule was never true: Hikvision and Amcrest wrote the slice raw beside
|
|
37939
|
+
* it, every provider seeded it at boot, and every session left it
|
|
37940
|
+
* `detected: true` after its detach.
|
|
37914
37941
|
*/
|
|
37915
37942
|
autoClearAfterMs: number().nullable()
|
|
37916
37943
|
});
|
|
@@ -37982,11 +38009,12 @@ onMotionChanged: { data: MotionOnMotionChangedDataSchema } },
|
|
|
37982
38009
|
*/
|
|
37983
38010
|
runtimeState: MotionStatusSchema,
|
|
37984
38011
|
/**
|
|
37985
|
-
* Runtime-state durability: **session** —
|
|
38012
|
+
* Runtime-state durability: **session** — the writer of this slice
|
|
37986
38013
|
* writes only on an EDGE, so a restored `detected: true` would stay
|
|
37987
38014
|
* frozen until the next one instead of being corrected. The next edge
|
|
37988
|
-
* re-publishes the real state
|
|
37989
|
-
*
|
|
38015
|
+
* re-publishes the real state, and the orchestrator re-publishes every
|
|
38016
|
+
* camera when it starts writing (D696; on who writes it, see
|
|
38017
|
+
* `autoClearAfterMs` above).
|
|
37990
38018
|
*
|
|
37991
38019
|
* See `RuntimeStateDurability`. Enforced by
|
|
37992
38020
|
* `scripts/check-runtime-state-durability.ts`.
|
|
@@ -40657,8 +40685,7 @@ var ptzAutotrackCapability = {
|
|
|
40657
40685
|
deviceNative: true,
|
|
40658
40686
|
mode: "singleton",
|
|
40659
40687
|
/**
|
|
40660
|
-
* Two kinds of provider behind one name, the same shape `snapshot`
|
|
40661
|
-
* `doorbell` use:
|
|
40688
|
+
* Two kinds of provider behind one name, the same shape `snapshot` uses:
|
|
40662
40689
|
*
|
|
40663
40690
|
* - **Native**: the camera's own firmware autotrack, registered per device by
|
|
40664
40691
|
* the driver when the probe says it exists (Reolink: yes; Hikvision:
|
|
@@ -40666,7 +40693,7 @@ var ptzAutotrackCapability = {
|
|
|
40666
40693
|
* - **Wrapper**: the emulated implementation (`@camstack/system`'s `autotrack` builtin),
|
|
40667
40694
|
* which follows a subject with `ptz.move` pulses driven by the detection
|
|
40668
40695
|
* pipeline. `defaultActive: false` — the operator binds it per camera in
|
|
40669
|
-
* the bindings UI
|
|
40696
|
+
* the bindings UI.
|
|
40670
40697
|
*
|
|
40671
40698
|
* The binding chooses WHICH implementation answers; `setEnabled` stays the
|
|
40672
40699
|
* one switch for the function either way. A camera never has both driving its
|
|
@@ -56897,6 +56924,7 @@ TimelapseRuleInputSchema.extend({
|
|
|
56897
56924
|
createdAt: number(),
|
|
56898
56925
|
updatedAt: number()
|
|
56899
56926
|
});
|
|
56927
|
+
MotionOnMotionChangedDataSchema.omit({ triggeredBy: true });
|
|
56900
56928
|
object({
|
|
56901
56929
|
/**
|
|
56902
56930
|
* Fraction of the box's own size added on EACH side before cutting.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h as e, l as t, u as n, y as r } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react__loadShare__.js-Bs1t18EM.mjs";
|
|
2
|
-
import { o as i, s as a } from "./responsive-
|
|
2
|
+
import { o as i, s as a } from "./responsive-CmW26rtV.mjs";
|
|
3
3
|
import { n as o, r as s, t as c } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-DalfdIDw.mjs";
|
|
4
4
|
var l = a("chevron-down", [["path", {
|
|
5
5
|
d: "m6 9 6 6 6-6",
|
package/dist/remoteEntry.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-
|
|
1
|
+
import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-DLXGJNFv.mjs";
|
|
2
2
|
export { t as get, e as init };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as e, g as t, h as n, l as r, n as i, p as a, r as o, t as s, u as c, y as l } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react__loadShare__.js-Bs1t18EM.mjs";
|
|
2
2
|
import "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-DalfdIDw.mjs";
|
|
3
|
-
import { n as u } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-
|
|
3
|
+
import { n as u } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DhxFiL0z.mjs";
|
|
4
4
|
//#region ../../node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.js
|
|
5
5
|
l();
|
|
6
6
|
var d = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), f = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), p = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), m = (e) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as e, h as t, p as n, y as r } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react__loadShare__.js-Bs1t18EM.mjs";
|
|
2
|
-
import { s as i } from "./responsive-
|
|
2
|
+
import { s as i } from "./responsive-CmW26rtV.mjs";
|
|
3
3
|
var a = i("camera", [["path", {
|
|
4
4
|
d: "M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",
|
|
5
5
|
key: "18u6gg"
|
|
@@ -2753,7 +2753,7 @@ async function rr(e) {
|
|
|
2753
2753
|
}
|
|
2754
2754
|
}
|
|
2755
2755
|
async function ir() {
|
|
2756
|
-
return tr ||= rr(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-
|
|
2756
|
+
return tr ||= rr(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-BD9qu2T3.mjs")).catch((e) => {
|
|
2757
2757
|
throw tr = void 0, e;
|
|
2758
2758
|
}), tr;
|
|
2759
2759
|
}
|