@camstack/addon-provider-rademacher 0.2.74 → 0.2.76
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/addon.js +66 -38
- package/dist/addon.mjs +66 -38
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -8834,17 +8834,29 @@ var HHMM = /^([01]\d|2[0-3]):[0-5]\d$/;
|
|
|
8834
8834
|
/**
|
|
8835
8835
|
* DERIVED per-camera storage summary — the single field cheap consumers read
|
|
8836
8836
|
* (the viewer's status dot, the camera list) instead of walking `bands`:
|
|
8837
|
-
* - `off`
|
|
8838
|
-
* - `events`
|
|
8839
|
-
* - `continuous`
|
|
8840
|
-
*
|
|
8841
|
-
*
|
|
8842
|
-
*
|
|
8837
|
+
* - `off` — no band covers the camera (or it is disabled).
|
|
8838
|
+
* - `events` — every band records around triggers only.
|
|
8839
|
+
* - `continuous` — at least one band records continuously.
|
|
8840
|
+
* - `on-device-decision`— the DEVICE decides: recording runs for as long as the
|
|
8841
|
+
* camera raises its own `recording-signal` level (a robot that cleans). There
|
|
8842
|
+
* is no schedule to author, because there is no hour to program — see
|
|
8843
|
+
* {@link RecordingConfigSchema}`.deviceDecision`.
|
|
8844
|
+
*
|
|
8845
|
+
* NEVER authored: the recorder stamps it from the authoritative intent
|
|
8846
|
+
* (`bands` + `deviceDecision`) on every save (`activeModeForConfig`). Writing it
|
|
8847
|
+
* has no effect.
|
|
8848
|
+
*
|
|
8849
|
+
* `on-device-decision` is named for WHO decides, not for how the recording is
|
|
8850
|
+
* requested. `on-demand` was rejected: in this repo's vocabulary a "demand" is
|
|
8851
|
+
* something the operator makes (the live gate is the recorder's own "demand
|
|
8852
|
+
* window"), and a knob whose name suggests the operator starts it while the
|
|
8853
|
+
* device actually does is the D62 shape — a control nobody can predict.
|
|
8843
8854
|
*/
|
|
8844
8855
|
var RecordingStorageModeSchema = _enum([
|
|
8845
8856
|
"off",
|
|
8846
8857
|
"events",
|
|
8847
|
-
"continuous"
|
|
8858
|
+
"continuous",
|
|
8859
|
+
"on-device-decision"
|
|
8848
8860
|
]);
|
|
8849
8861
|
/**
|
|
8850
8862
|
* Le macro classi che possono aprire una finestra di registrazione — le stesse
|
|
@@ -8894,22 +8906,7 @@ var RecordingTriggersSchema = object({
|
|
|
8894
8906
|
* il livello: un contatto trovato già aperto al riavvio del runner non fa
|
|
8895
8907
|
* registrare.
|
|
8896
8908
|
*/
|
|
8897
|
-
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
8898
|
-
/**
|
|
8899
|
-
* La camera registra per tutta la durata del SEGNALE che lei stessa
|
|
8900
|
-
* pubblica — la cap `recording-signal` (`active: true` mentre il device è in
|
|
8901
|
-
* funzione: un robot che pulisce). È un LIVELLO, non un fronte: la finestra
|
|
8902
|
-
* resta aperta finché il segnale è alto e si chiude `postBufferSec` dopo la
|
|
8903
|
-
* caduta, così una pulizia di quaranta minuti è UNA clip.
|
|
8904
|
-
*
|
|
8905
|
-
* Non nomina un device: il segnale è della camera stessa, tenuto fresco dal
|
|
8906
|
-
* suo provider (D224); il recorder lo ascolta su `DeviceStateChanged` e lo
|
|
8907
|
-
* riconcilia leggendo la slice via RPC, con un tetto oltre il quale un
|
|
8908
|
-
* segnale mai abbassato (un evento perso) non può tenere aperta una
|
|
8909
|
-
* registrazione (D11). Vedi `recorder/addon/band-decision.ts`
|
|
8910
|
-
* (`holdTrigger` / `releaseTrigger`).
|
|
8911
|
-
*/
|
|
8912
|
-
deviceSignal: boolean().optional()
|
|
8909
|
+
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
8913
8910
|
});
|
|
8914
8911
|
/**
|
|
8915
8912
|
* Mode of a single recording band — the recorder per-band vocabulary.
|
|
@@ -8939,13 +8936,28 @@ var RecordingBandSchema = object({
|
|
|
8939
8936
|
end: string().regex(HHMM),
|
|
8940
8937
|
mode: RecordingBandModeSchema,
|
|
8941
8938
|
triggers: RecordingBandTriggersSchema.optional(),
|
|
8939
|
+
/**
|
|
8940
|
+
* RETIRED (D381). A band no longer carries a pre-buffer of its own.
|
|
8941
|
+
*
|
|
8942
|
+
* It was the retroactive KEEP bound — which already-written segments survive
|
|
8943
|
+
* a trigger — and it had to be at least as wide as the widest pre-roll the
|
|
8944
|
+
* broker could serve, or the gate would delete the seconds the ring had just
|
|
8945
|
+
* handed the writer. That "at least as wide as" is the tell: it was a second
|
|
8946
|
+
* expression of the broker's retention, in different units, in a different
|
|
8947
|
+
* addon, with an invariant the operator had to maintain by hand. The keep
|
|
8948
|
+
* bound is now derived from the one prebuffer ceiling and there is nothing
|
|
8949
|
+
* left to configure here.
|
|
8950
|
+
*
|
|
8951
|
+
* The key survives in the SHAPE so a config written before that record still
|
|
8952
|
+
* parses and can be migrated deliberately — `RecordingBandSchema` is not
|
|
8953
|
+
* strict, so simply deleting it would strip an operator's value in silence on
|
|
8954
|
+
* the next save (the failure D380 came one commit from shipping). Nothing
|
|
8955
|
+
* reads it: {@link stripRetiredBandPreBufferSec} removes it on load.
|
|
8956
|
+
*/
|
|
8942
8957
|
preBufferSec: number().min(0).optional(),
|
|
8943
8958
|
postBufferSec: number().min(0).optional()
|
|
8944
8959
|
});
|
|
8945
|
-
({
|
|
8946
|
-
preBufferSec: 15,
|
|
8947
|
-
postBufferSec: 30
|
|
8948
|
-
}).postBufferSec * 1e3;
|
|
8960
|
+
({ postBufferSec: 30 }).postBufferSec * 1e3;
|
|
8949
8961
|
/**
|
|
8950
8962
|
* Per-device retention overrides. Every field is optional; an unset or `0`
|
|
8951
8963
|
* value inherits the node-wide recorder default. Only footage-lifetime limits
|
|
@@ -8993,8 +9005,29 @@ var RecordingConfigSchema = object({
|
|
|
8993
9005
|
* "off" is the absence of a covering band, never a band value.
|
|
8994
9006
|
*/
|
|
8995
9007
|
bands: array(RecordingBandSchema).default([]),
|
|
9008
|
+
/**
|
|
9009
|
+
* THE device-decided intent: record for as long as the camera itself raises
|
|
9010
|
+
* `recording-signal` (`active: true` while the device is in function — a
|
|
9011
|
+
* robot that cleans). AUTHORED, unlike `mode`, and the only authored
|
|
9012
|
+
* recording intent that is not a band.
|
|
9013
|
+
*
|
|
9014
|
+
* It carries NO schedule on purpose. A band is an HOUR, and this feature has
|
|
9015
|
+
* no hour to program: the device decides. What it costs the operator is one
|
|
9016
|
+
* flag — "this camera can record on its own" — and what it buys is the same
|
|
9017
|
+
* hold/release the recorder already implements (D371, `holdTrigger` /
|
|
9018
|
+
* `releaseTrigger`): the window opens on the rise, stays open for the whole
|
|
9019
|
+
* job however long it is, and closes one pad after the fall.
|
|
9020
|
+
*
|
|
9021
|
+
* EXCLUSIVE with `bands` (below): two authorities deciding when the same
|
|
9022
|
+
* camera records is the D62 failure. `off` remains `enabled: false`, so an
|
|
9023
|
+
* operator switching this camera off is REPORTED off, never as broken.
|
|
9024
|
+
*/
|
|
9025
|
+
deviceDecision: boolean().optional(),
|
|
8996
9026
|
retention: RecordingRetentionSchema.optional()
|
|
8997
|
-
}).strict()
|
|
9027
|
+
}).strict().refine((config) => config.deviceDecision !== true || config.bands.length === 0, {
|
|
9028
|
+
message: "deviceDecision is a whole-config mode and carries no schedule: it cannot be combined with bands",
|
|
9029
|
+
path: ["bands"]
|
|
9030
|
+
});
|
|
8998
9031
|
/**
|
|
8999
9032
|
* Entity-relocation job state (storage entity-routing spec, Phase 4).
|
|
9000
9033
|
*
|
|
@@ -22010,11 +22043,7 @@ var CameraAudioStatusSchema = object({
|
|
|
22010
22043
|
});
|
|
22011
22044
|
/** Recording block — null when no recording cap is active for this device. */
|
|
22012
22045
|
var CameraRecordingStatusSchema = object({
|
|
22013
|
-
mode:
|
|
22014
|
-
"off",
|
|
22015
|
-
"continuous",
|
|
22016
|
-
"events"
|
|
22017
|
-
]),
|
|
22046
|
+
mode: RecordingStorageModeSchema,
|
|
22018
22047
|
active: boolean(),
|
|
22019
22048
|
storageBytes: number()
|
|
22020
22049
|
});
|
|
@@ -30268,11 +30297,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
|
|
|
30268
30297
|
var RecordingStatusSchema = object({
|
|
30269
30298
|
deviceId: number(),
|
|
30270
30299
|
enabled: boolean(),
|
|
30271
|
-
|
|
30272
|
-
|
|
30273
|
-
|
|
30274
|
-
|
|
30275
|
-
]),
|
|
30300
|
+
/** THE derived storage mode, from the one definition
|
|
30301
|
+
* (`deriveRecordingMode`) — never a second enum. A duplicated list is how
|
|
30302
|
+
* `on-device-decision` could have reached the recorder and not the status. */
|
|
30303
|
+
activeMode: RecordingStorageModeSchema,
|
|
30276
30304
|
nodeId: string(),
|
|
30277
30305
|
storageBytes: number()
|
|
30278
30306
|
});
|
package/dist/addon.mjs
CHANGED
|
@@ -8833,17 +8833,29 @@ var HHMM = /^([01]\d|2[0-3]):[0-5]\d$/;
|
|
|
8833
8833
|
/**
|
|
8834
8834
|
* DERIVED per-camera storage summary — the single field cheap consumers read
|
|
8835
8835
|
* (the viewer's status dot, the camera list) instead of walking `bands`:
|
|
8836
|
-
* - `off`
|
|
8837
|
-
* - `events`
|
|
8838
|
-
* - `continuous`
|
|
8839
|
-
*
|
|
8840
|
-
*
|
|
8841
|
-
*
|
|
8836
|
+
* - `off` — no band covers the camera (or it is disabled).
|
|
8837
|
+
* - `events` — every band records around triggers only.
|
|
8838
|
+
* - `continuous` — at least one band records continuously.
|
|
8839
|
+
* - `on-device-decision`— the DEVICE decides: recording runs for as long as the
|
|
8840
|
+
* camera raises its own `recording-signal` level (a robot that cleans). There
|
|
8841
|
+
* is no schedule to author, because there is no hour to program — see
|
|
8842
|
+
* {@link RecordingConfigSchema}`.deviceDecision`.
|
|
8843
|
+
*
|
|
8844
|
+
* NEVER authored: the recorder stamps it from the authoritative intent
|
|
8845
|
+
* (`bands` + `deviceDecision`) on every save (`activeModeForConfig`). Writing it
|
|
8846
|
+
* has no effect.
|
|
8847
|
+
*
|
|
8848
|
+
* `on-device-decision` is named for WHO decides, not for how the recording is
|
|
8849
|
+
* requested. `on-demand` was rejected: in this repo's vocabulary a "demand" is
|
|
8850
|
+
* something the operator makes (the live gate is the recorder's own "demand
|
|
8851
|
+
* window"), and a knob whose name suggests the operator starts it while the
|
|
8852
|
+
* device actually does is the D62 shape — a control nobody can predict.
|
|
8842
8853
|
*/
|
|
8843
8854
|
var RecordingStorageModeSchema = _enum([
|
|
8844
8855
|
"off",
|
|
8845
8856
|
"events",
|
|
8846
|
-
"continuous"
|
|
8857
|
+
"continuous",
|
|
8858
|
+
"on-device-decision"
|
|
8847
8859
|
]);
|
|
8848
8860
|
/**
|
|
8849
8861
|
* Le macro classi che possono aprire una finestra di registrazione — le stesse
|
|
@@ -8893,22 +8905,7 @@ var RecordingTriggersSchema = object({
|
|
|
8893
8905
|
* il livello: un contatto trovato già aperto al riavvio del runner non fa
|
|
8894
8906
|
* registrare.
|
|
8895
8907
|
*/
|
|
8896
|
-
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
8897
|
-
/**
|
|
8898
|
-
* La camera registra per tutta la durata del SEGNALE che lei stessa
|
|
8899
|
-
* pubblica — la cap `recording-signal` (`active: true` mentre il device è in
|
|
8900
|
-
* funzione: un robot che pulisce). È un LIVELLO, non un fronte: la finestra
|
|
8901
|
-
* resta aperta finché il segnale è alto e si chiude `postBufferSec` dopo la
|
|
8902
|
-
* caduta, così una pulizia di quaranta minuti è UNA clip.
|
|
8903
|
-
*
|
|
8904
|
-
* Non nomina un device: il segnale è della camera stessa, tenuto fresco dal
|
|
8905
|
-
* suo provider (D224); il recorder lo ascolta su `DeviceStateChanged` e lo
|
|
8906
|
-
* riconcilia leggendo la slice via RPC, con un tetto oltre il quale un
|
|
8907
|
-
* segnale mai abbassato (un evento perso) non può tenere aperta una
|
|
8908
|
-
* registrazione (D11). Vedi `recorder/addon/band-decision.ts`
|
|
8909
|
-
* (`holdTrigger` / `releaseTrigger`).
|
|
8910
|
-
*/
|
|
8911
|
-
deviceSignal: boolean().optional()
|
|
8908
|
+
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
8912
8909
|
});
|
|
8913
8910
|
/**
|
|
8914
8911
|
* Mode of a single recording band — the recorder per-band vocabulary.
|
|
@@ -8938,13 +8935,28 @@ var RecordingBandSchema = object({
|
|
|
8938
8935
|
end: string().regex(HHMM),
|
|
8939
8936
|
mode: RecordingBandModeSchema,
|
|
8940
8937
|
triggers: RecordingBandTriggersSchema.optional(),
|
|
8938
|
+
/**
|
|
8939
|
+
* RETIRED (D381). A band no longer carries a pre-buffer of its own.
|
|
8940
|
+
*
|
|
8941
|
+
* It was the retroactive KEEP bound — which already-written segments survive
|
|
8942
|
+
* a trigger — and it had to be at least as wide as the widest pre-roll the
|
|
8943
|
+
* broker could serve, or the gate would delete the seconds the ring had just
|
|
8944
|
+
* handed the writer. That "at least as wide as" is the tell: it was a second
|
|
8945
|
+
* expression of the broker's retention, in different units, in a different
|
|
8946
|
+
* addon, with an invariant the operator had to maintain by hand. The keep
|
|
8947
|
+
* bound is now derived from the one prebuffer ceiling and there is nothing
|
|
8948
|
+
* left to configure here.
|
|
8949
|
+
*
|
|
8950
|
+
* The key survives in the SHAPE so a config written before that record still
|
|
8951
|
+
* parses and can be migrated deliberately — `RecordingBandSchema` is not
|
|
8952
|
+
* strict, so simply deleting it would strip an operator's value in silence on
|
|
8953
|
+
* the next save (the failure D380 came one commit from shipping). Nothing
|
|
8954
|
+
* reads it: {@link stripRetiredBandPreBufferSec} removes it on load.
|
|
8955
|
+
*/
|
|
8941
8956
|
preBufferSec: number().min(0).optional(),
|
|
8942
8957
|
postBufferSec: number().min(0).optional()
|
|
8943
8958
|
});
|
|
8944
|
-
({
|
|
8945
|
-
preBufferSec: 15,
|
|
8946
|
-
postBufferSec: 30
|
|
8947
|
-
}).postBufferSec * 1e3;
|
|
8959
|
+
({ postBufferSec: 30 }).postBufferSec * 1e3;
|
|
8948
8960
|
/**
|
|
8949
8961
|
* Per-device retention overrides. Every field is optional; an unset or `0`
|
|
8950
8962
|
* value inherits the node-wide recorder default. Only footage-lifetime limits
|
|
@@ -8992,8 +9004,29 @@ var RecordingConfigSchema = object({
|
|
|
8992
9004
|
* "off" is the absence of a covering band, never a band value.
|
|
8993
9005
|
*/
|
|
8994
9006
|
bands: array(RecordingBandSchema).default([]),
|
|
9007
|
+
/**
|
|
9008
|
+
* THE device-decided intent: record for as long as the camera itself raises
|
|
9009
|
+
* `recording-signal` (`active: true` while the device is in function — a
|
|
9010
|
+
* robot that cleans). AUTHORED, unlike `mode`, and the only authored
|
|
9011
|
+
* recording intent that is not a band.
|
|
9012
|
+
*
|
|
9013
|
+
* It carries NO schedule on purpose. A band is an HOUR, and this feature has
|
|
9014
|
+
* no hour to program: the device decides. What it costs the operator is one
|
|
9015
|
+
* flag — "this camera can record on its own" — and what it buys is the same
|
|
9016
|
+
* hold/release the recorder already implements (D371, `holdTrigger` /
|
|
9017
|
+
* `releaseTrigger`): the window opens on the rise, stays open for the whole
|
|
9018
|
+
* job however long it is, and closes one pad after the fall.
|
|
9019
|
+
*
|
|
9020
|
+
* EXCLUSIVE with `bands` (below): two authorities deciding when the same
|
|
9021
|
+
* camera records is the D62 failure. `off` remains `enabled: false`, so an
|
|
9022
|
+
* operator switching this camera off is REPORTED off, never as broken.
|
|
9023
|
+
*/
|
|
9024
|
+
deviceDecision: boolean().optional(),
|
|
8995
9025
|
retention: RecordingRetentionSchema.optional()
|
|
8996
|
-
}).strict()
|
|
9026
|
+
}).strict().refine((config) => config.deviceDecision !== true || config.bands.length === 0, {
|
|
9027
|
+
message: "deviceDecision is a whole-config mode and carries no schedule: it cannot be combined with bands",
|
|
9028
|
+
path: ["bands"]
|
|
9029
|
+
});
|
|
8997
9030
|
/**
|
|
8998
9031
|
* Entity-relocation job state (storage entity-routing spec, Phase 4).
|
|
8999
9032
|
*
|
|
@@ -22009,11 +22042,7 @@ var CameraAudioStatusSchema = object({
|
|
|
22009
22042
|
});
|
|
22010
22043
|
/** Recording block — null when no recording cap is active for this device. */
|
|
22011
22044
|
var CameraRecordingStatusSchema = object({
|
|
22012
|
-
mode:
|
|
22013
|
-
"off",
|
|
22014
|
-
"continuous",
|
|
22015
|
-
"events"
|
|
22016
|
-
]),
|
|
22045
|
+
mode: RecordingStorageModeSchema,
|
|
22017
22046
|
active: boolean(),
|
|
22018
22047
|
storageBytes: number()
|
|
22019
22048
|
});
|
|
@@ -30267,11 +30296,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
|
|
|
30267
30296
|
var RecordingStatusSchema = object({
|
|
30268
30297
|
deviceId: number(),
|
|
30269
30298
|
enabled: boolean(),
|
|
30270
|
-
|
|
30271
|
-
|
|
30272
|
-
|
|
30273
|
-
|
|
30274
|
-
]),
|
|
30299
|
+
/** THE derived storage mode, from the one definition
|
|
30300
|
+
* (`deriveRecordingMode`) — never a second enum. A duplicated list is how
|
|
30301
|
+
* `on-device-decision` could have reached the recorder and not the status. */
|
|
30302
|
+
activeMode: RecordingStorageModeSchema,
|
|
30275
30303
|
nodeId: string(),
|
|
30276
30304
|
storageBytes: number()
|
|
30277
30305
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-rademacher",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.76",
|
|
4
4
|
"description": "Rademacher HomePilot device-provider addon for CamStack — wraps the @apocaliss92/noderademacher local-hub client (roller shutters over the cover cap)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|