@camstack/addon-ai 0.4.74 → 0.4.75
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 +87 -1
- package/dist/addon.mjs +87 -1
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -6605,6 +6605,21 @@ var CameraStreamSchema = object({
|
|
|
6605
6605
|
*/
|
|
6606
6606
|
autoEligible: boolean().optional(),
|
|
6607
6607
|
/**
|
|
6608
|
+
* The profile slot the PUBLISHER says this stream is: `low` for a stream
|
|
6609
|
+
* whose only sensible role is the low-bandwidth one, `high` for a main
|
|
6610
|
+
* stream. Consulted by the broker's automatic ranking
|
|
6611
|
+
* (`rankInitialAssignment`) BEFORE the pixel-count heuristic, and only there:
|
|
6612
|
+
* an operator's manual assignment still wins, and an absent hint is the
|
|
6613
|
+
* pixel-ranked default every camera had before this field existed.
|
|
6614
|
+
*
|
|
6615
|
+
* Why it exists: a camera with ONE stream ranked to `mid` — the slot no
|
|
6616
|
+
* storage class is written for on its own (`recordings` is high|mid,
|
|
6617
|
+
* `recordingsLow` is low) and the one profile scrub does not read. The robot
|
|
6618
|
+
* camera's single 720p relay is a `low` in every respect except the slot the
|
|
6619
|
+
* heuristic put it in.
|
|
6620
|
+
*/
|
|
6621
|
+
profileHint: CamProfileSchema.optional(),
|
|
6622
|
+
/**
|
|
6608
6623
|
* Transport-specific opaque metadata. The broker passes it through to
|
|
6609
6624
|
* the source reader without inspecting it. Currently used by
|
|
6610
6625
|
* `pull-rfc4571` streams to carry the upstream SDP (so the reader can
|
|
@@ -8097,7 +8112,22 @@ var RecordingTriggersSchema = object({
|
|
|
8097
8112
|
* il livello: un contatto trovato già aperto al riavvio del runner non fa
|
|
8098
8113
|
* registrare.
|
|
8099
8114
|
*/
|
|
8100
|
-
sensorDeviceIds: array(number$1().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
8115
|
+
sensorDeviceIds: array(number$1().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional(),
|
|
8116
|
+
/**
|
|
8117
|
+
* La camera registra per tutta la durata del SEGNALE che lei stessa
|
|
8118
|
+
* pubblica — la cap `recording-signal` (`active: true` mentre il device è in
|
|
8119
|
+
* funzione: un robot che pulisce). È un LIVELLO, non un fronte: la finestra
|
|
8120
|
+
* resta aperta finché il segnale è alto e si chiude `postBufferSec` dopo la
|
|
8121
|
+
* caduta, così una pulizia di quaranta minuti è UNA clip.
|
|
8122
|
+
*
|
|
8123
|
+
* Non nomina un device: il segnale è della camera stessa, tenuto fresco dal
|
|
8124
|
+
* suo provider (D224); il recorder lo ascolta su `DeviceStateChanged` e lo
|
|
8125
|
+
* riconcilia leggendo la slice via RPC, con un tetto oltre il quale un
|
|
8126
|
+
* segnale mai abbassato (un evento perso) non può tenere aperta una
|
|
8127
|
+
* registrazione (D11). Vedi `recorder/addon/band-decision.ts`
|
|
8128
|
+
* (`holdTrigger` / `releaseTrigger`).
|
|
8129
|
+
*/
|
|
8130
|
+
deviceSignal: boolean().optional()
|
|
8101
8131
|
});
|
|
8102
8132
|
/**
|
|
8103
8133
|
* Mode of a single recording band — the recorder per-band vocabulary.
|
|
@@ -11561,6 +11591,8 @@ method(object({
|
|
|
11561
11591
|
label: string().optional(),
|
|
11562
11592
|
deviceFeatures: array(string()).optional(),
|
|
11563
11593
|
autoEligible: boolean().optional(),
|
|
11594
|
+
/** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
|
|
11595
|
+
profileHint: CamProfileSchema.optional(),
|
|
11564
11596
|
metadata: record(string(), unknown()).optional(),
|
|
11565
11597
|
/** Required when kind === 'derived' — the source camStreamId the
|
|
11566
11598
|
* derived broker reads its encoded plane from.
|
|
@@ -27964,6 +27996,47 @@ method(object({
|
|
|
27964
27996
|
auth: "protected"
|
|
27965
27997
|
});
|
|
27966
27998
|
/**
|
|
27999
|
+
* A camera's own "record me NOW" LEVEL — a signal the device raises while
|
|
28000
|
+
* something it knows about is happening (a robot vacuum cleaning, a machine
|
|
28001
|
+
* running, a gate open) and lowers when it stops.
|
|
28002
|
+
*
|
|
28003
|
+
* It is a level, not an edge. The sensor triggers the recorder already listens
|
|
28004
|
+
* to (`SOURCE_CAP_ACTIVE_FIELD`) fire on a rising edge and record for a fixed
|
|
28005
|
+
* post-buffer; a cleaning lasts forty minutes, and forty minutes of "this is
|
|
28006
|
+
* still happening" cannot be expressed as an edge plus a post-buffer without
|
|
28007
|
+
* either re-triggering on a timer (polling — D224 forbids the consumer keeping
|
|
28008
|
+
* the fact fresh) or picking a post-buffer long enough to cover every job,
|
|
28009
|
+
* which records the dock for that long after every short one. So the recorder
|
|
28010
|
+
* reads the LEVEL: it records for as long as `active` is true, plus the band's
|
|
28011
|
+
* own post-buffer once it falls.
|
|
28012
|
+
*
|
|
28013
|
+
* Who owns the fact: the PROVIDER of the device, which already reads the state
|
|
28014
|
+
* the signal is derived from (the vacuum's lifecycle state, for Dreame). It
|
|
28015
|
+
* writes this slice on every change; consumers subscribe to the kernel's
|
|
28016
|
+
* `DeviceStateChanged` for it and read it back through
|
|
28017
|
+
* `deviceState.getCapSlice` to reconcile — never a second copy, never a poll
|
|
28018
|
+
* against the device (D224, D8/D11).
|
|
28019
|
+
*
|
|
28020
|
+
* Deliberately NOT a `binary` sensor on the camera: a binary sensor is exported
|
|
28021
|
+
* to Home Assistant, HomeKit and the sensor picker as a thing an operator can
|
|
28022
|
+
* bind, and "the camera wants to record" is not a room sensor. It is a fact
|
|
28023
|
+
* about the camera, on the camera.
|
|
28024
|
+
*/
|
|
28025
|
+
var RecordingSignalStatusSchema = object({
|
|
28026
|
+
/** True while the device asks to be recorded. */
|
|
28027
|
+
active: boolean(),
|
|
28028
|
+
/**
|
|
28029
|
+
* Why, in the provider's own vocabulary (a vacuum's `cleaning` / `docked`,
|
|
28030
|
+
* …). Free text for the log line and the UI badge; the recorder never
|
|
28031
|
+
* branches on it.
|
|
28032
|
+
*/
|
|
28033
|
+
reason: string(),
|
|
28034
|
+
/** Ms epoch of the last `active` transition. 0 if never observed. */
|
|
28035
|
+
lastChangedAt: number$1()
|
|
28036
|
+
});
|
|
28037
|
+
RecordingSignalStatusSchema.extend({ lastFetchedAt: number$1() });
|
|
28038
|
+
DeviceType.Camera, method(object({ deviceId: number$1() }), RecordingSignalStatusSchema);
|
|
28039
|
+
/**
|
|
27967
28040
|
* scene-monitor — device-scoped reference-region state cap. An operator marks
|
|
27968
28041
|
* a rect ROI on a camera frame and names one or more states; the engine
|
|
27969
28042
|
* (pipeline-analytics, designated post-processing node) reports which state is
|
|
@@ -28336,6 +28409,8 @@ var CamStreamDescriptorSchema = object({
|
|
|
28336
28409
|
deviceFeatures: array(string()).optional(),
|
|
28337
28410
|
/** Eligible for automatic profile assignment. Absent = `true`. */
|
|
28338
28411
|
autoEligible: boolean().optional(),
|
|
28412
|
+
/** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
|
|
28413
|
+
profileHint: CamProfileSchema.optional(),
|
|
28339
28414
|
/** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
|
|
28340
28415
|
metadata: record(string(), unknown()).optional()
|
|
28341
28416
|
});
|
|
@@ -34281,6 +34356,12 @@ Object.freeze({
|
|
|
34281
34356
|
addonId: null,
|
|
34282
34357
|
access: "view"
|
|
34283
34358
|
},
|
|
34359
|
+
"recordingSignal.getStatus": {
|
|
34360
|
+
capName: "recording-signal",
|
|
34361
|
+
capScope: "device",
|
|
34362
|
+
addonId: null,
|
|
34363
|
+
access: "view"
|
|
34364
|
+
},
|
|
34284
34365
|
"sceneMonitor.captureReference": {
|
|
34285
34366
|
capName: "scene-monitor",
|
|
34286
34367
|
capScope: "device",
|
|
@@ -37273,6 +37354,11 @@ Object.freeze({
|
|
|
37273
37354
|
form: "single",
|
|
37274
37355
|
optional: true
|
|
37275
37356
|
}],
|
|
37357
|
+
"recordingSignal.getStatus": [{
|
|
37358
|
+
name: "deviceId",
|
|
37359
|
+
form: "single",
|
|
37360
|
+
optional: false
|
|
37361
|
+
}],
|
|
37276
37362
|
"sceneMonitor.captureReference": [{
|
|
37277
37363
|
name: "deviceId",
|
|
37278
37364
|
form: "single",
|
package/dist/addon.mjs
CHANGED
|
@@ -6632,6 +6632,21 @@ var CameraStreamSchema = object({
|
|
|
6632
6632
|
*/
|
|
6633
6633
|
autoEligible: boolean().optional(),
|
|
6634
6634
|
/**
|
|
6635
|
+
* The profile slot the PUBLISHER says this stream is: `low` for a stream
|
|
6636
|
+
* whose only sensible role is the low-bandwidth one, `high` for a main
|
|
6637
|
+
* stream. Consulted by the broker's automatic ranking
|
|
6638
|
+
* (`rankInitialAssignment`) BEFORE the pixel-count heuristic, and only there:
|
|
6639
|
+
* an operator's manual assignment still wins, and an absent hint is the
|
|
6640
|
+
* pixel-ranked default every camera had before this field existed.
|
|
6641
|
+
*
|
|
6642
|
+
* Why it exists: a camera with ONE stream ranked to `mid` — the slot no
|
|
6643
|
+
* storage class is written for on its own (`recordings` is high|mid,
|
|
6644
|
+
* `recordingsLow` is low) and the one profile scrub does not read. The robot
|
|
6645
|
+
* camera's single 720p relay is a `low` in every respect except the slot the
|
|
6646
|
+
* heuristic put it in.
|
|
6647
|
+
*/
|
|
6648
|
+
profileHint: CamProfileSchema.optional(),
|
|
6649
|
+
/**
|
|
6635
6650
|
* Transport-specific opaque metadata. The broker passes it through to
|
|
6636
6651
|
* the source reader without inspecting it. Currently used by
|
|
6637
6652
|
* `pull-rfc4571` streams to carry the upstream SDP (so the reader can
|
|
@@ -8124,7 +8139,22 @@ var RecordingTriggersSchema = object({
|
|
|
8124
8139
|
* il livello: un contatto trovato già aperto al riavvio del runner non fa
|
|
8125
8140
|
* registrare.
|
|
8126
8141
|
*/
|
|
8127
|
-
sensorDeviceIds: array(number$1().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
8142
|
+
sensorDeviceIds: array(number$1().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional(),
|
|
8143
|
+
/**
|
|
8144
|
+
* La camera registra per tutta la durata del SEGNALE che lei stessa
|
|
8145
|
+
* pubblica — la cap `recording-signal` (`active: true` mentre il device è in
|
|
8146
|
+
* funzione: un robot che pulisce). È un LIVELLO, non un fronte: la finestra
|
|
8147
|
+
* resta aperta finché il segnale è alto e si chiude `postBufferSec` dopo la
|
|
8148
|
+
* caduta, così una pulizia di quaranta minuti è UNA clip.
|
|
8149
|
+
*
|
|
8150
|
+
* Non nomina un device: il segnale è della camera stessa, tenuto fresco dal
|
|
8151
|
+
* suo provider (D224); il recorder lo ascolta su `DeviceStateChanged` e lo
|
|
8152
|
+
* riconcilia leggendo la slice via RPC, con un tetto oltre il quale un
|
|
8153
|
+
* segnale mai abbassato (un evento perso) non può tenere aperta una
|
|
8154
|
+
* registrazione (D11). Vedi `recorder/addon/band-decision.ts`
|
|
8155
|
+
* (`holdTrigger` / `releaseTrigger`).
|
|
8156
|
+
*/
|
|
8157
|
+
deviceSignal: boolean().optional()
|
|
8128
8158
|
});
|
|
8129
8159
|
/**
|
|
8130
8160
|
* Mode of a single recording band — the recorder per-band vocabulary.
|
|
@@ -11588,6 +11618,8 @@ method(object({
|
|
|
11588
11618
|
label: string().optional(),
|
|
11589
11619
|
deviceFeatures: array(string()).optional(),
|
|
11590
11620
|
autoEligible: boolean().optional(),
|
|
11621
|
+
/** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
|
|
11622
|
+
profileHint: CamProfileSchema.optional(),
|
|
11591
11623
|
metadata: record(string(), unknown()).optional(),
|
|
11592
11624
|
/** Required when kind === 'derived' — the source camStreamId the
|
|
11593
11625
|
* derived broker reads its encoded plane from.
|
|
@@ -27991,6 +28023,47 @@ method(object({
|
|
|
27991
28023
|
auth: "protected"
|
|
27992
28024
|
});
|
|
27993
28025
|
/**
|
|
28026
|
+
* A camera's own "record me NOW" LEVEL — a signal the device raises while
|
|
28027
|
+
* something it knows about is happening (a robot vacuum cleaning, a machine
|
|
28028
|
+
* running, a gate open) and lowers when it stops.
|
|
28029
|
+
*
|
|
28030
|
+
* It is a level, not an edge. The sensor triggers the recorder already listens
|
|
28031
|
+
* to (`SOURCE_CAP_ACTIVE_FIELD`) fire on a rising edge and record for a fixed
|
|
28032
|
+
* post-buffer; a cleaning lasts forty minutes, and forty minutes of "this is
|
|
28033
|
+
* still happening" cannot be expressed as an edge plus a post-buffer without
|
|
28034
|
+
* either re-triggering on a timer (polling — D224 forbids the consumer keeping
|
|
28035
|
+
* the fact fresh) or picking a post-buffer long enough to cover every job,
|
|
28036
|
+
* which records the dock for that long after every short one. So the recorder
|
|
28037
|
+
* reads the LEVEL: it records for as long as `active` is true, plus the band's
|
|
28038
|
+
* own post-buffer once it falls.
|
|
28039
|
+
*
|
|
28040
|
+
* Who owns the fact: the PROVIDER of the device, which already reads the state
|
|
28041
|
+
* the signal is derived from (the vacuum's lifecycle state, for Dreame). It
|
|
28042
|
+
* writes this slice on every change; consumers subscribe to the kernel's
|
|
28043
|
+
* `DeviceStateChanged` for it and read it back through
|
|
28044
|
+
* `deviceState.getCapSlice` to reconcile — never a second copy, never a poll
|
|
28045
|
+
* against the device (D224, D8/D11).
|
|
28046
|
+
*
|
|
28047
|
+
* Deliberately NOT a `binary` sensor on the camera: a binary sensor is exported
|
|
28048
|
+
* to Home Assistant, HomeKit and the sensor picker as a thing an operator can
|
|
28049
|
+
* bind, and "the camera wants to record" is not a room sensor. It is a fact
|
|
28050
|
+
* about the camera, on the camera.
|
|
28051
|
+
*/
|
|
28052
|
+
var RecordingSignalStatusSchema = object({
|
|
28053
|
+
/** True while the device asks to be recorded. */
|
|
28054
|
+
active: boolean(),
|
|
28055
|
+
/**
|
|
28056
|
+
* Why, in the provider's own vocabulary (a vacuum's `cleaning` / `docked`,
|
|
28057
|
+
* …). Free text for the log line and the UI badge; the recorder never
|
|
28058
|
+
* branches on it.
|
|
28059
|
+
*/
|
|
28060
|
+
reason: string(),
|
|
28061
|
+
/** Ms epoch of the last `active` transition. 0 if never observed. */
|
|
28062
|
+
lastChangedAt: number$1()
|
|
28063
|
+
});
|
|
28064
|
+
RecordingSignalStatusSchema.extend({ lastFetchedAt: number$1() });
|
|
28065
|
+
DeviceType.Camera, method(object({ deviceId: number$1() }), RecordingSignalStatusSchema);
|
|
28066
|
+
/**
|
|
27994
28067
|
* scene-monitor — device-scoped reference-region state cap. An operator marks
|
|
27995
28068
|
* a rect ROI on a camera frame and names one or more states; the engine
|
|
27996
28069
|
* (pipeline-analytics, designated post-processing node) reports which state is
|
|
@@ -28363,6 +28436,8 @@ var CamStreamDescriptorSchema = object({
|
|
|
28363
28436
|
deviceFeatures: array(string()).optional(),
|
|
28364
28437
|
/** Eligible for automatic profile assignment. Absent = `true`. */
|
|
28365
28438
|
autoEligible: boolean().optional(),
|
|
28439
|
+
/** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
|
|
28440
|
+
profileHint: CamProfileSchema.optional(),
|
|
28366
28441
|
/** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
|
|
28367
28442
|
metadata: record(string(), unknown()).optional()
|
|
28368
28443
|
});
|
|
@@ -34308,6 +34383,12 @@ Object.freeze({
|
|
|
34308
34383
|
addonId: null,
|
|
34309
34384
|
access: "view"
|
|
34310
34385
|
},
|
|
34386
|
+
"recordingSignal.getStatus": {
|
|
34387
|
+
capName: "recording-signal",
|
|
34388
|
+
capScope: "device",
|
|
34389
|
+
addonId: null,
|
|
34390
|
+
access: "view"
|
|
34391
|
+
},
|
|
34311
34392
|
"sceneMonitor.captureReference": {
|
|
34312
34393
|
capName: "scene-monitor",
|
|
34313
34394
|
capScope: "device",
|
|
@@ -37300,6 +37381,11 @@ Object.freeze({
|
|
|
37300
37381
|
form: "single",
|
|
37301
37382
|
optional: true
|
|
37302
37383
|
}],
|
|
37384
|
+
"recordingSignal.getStatus": [{
|
|
37385
|
+
name: "deviceId",
|
|
37386
|
+
form: "single",
|
|
37387
|
+
optional: false
|
|
37388
|
+
}],
|
|
37303
37389
|
"sceneMonitor.captureReference": [{
|
|
37304
37390
|
name: "deviceId",
|
|
37305
37391
|
form: "single",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-ai",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.75",
|
|
4
4
|
"description": "AI addon for CamStack — the `llm` collection provider (cloud, LAN, and camstack-managed local llama.cpp profiles) plus the per-node `llm-runtime` managed executor.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|