@camstack/addon-agent-ui 1.2.162 → 1.2.163
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 +74 -64
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -7427,7 +7427,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
|
7427
7427
|
return DeviceRole;
|
|
7428
7428
|
}({});
|
|
7429
7429
|
//#endregion
|
|
7430
|
-
//#region ../types/dist/composition-
|
|
7430
|
+
//#region ../types/dist/composition-D7ULvLdD.mjs
|
|
7431
7431
|
/**
|
|
7432
7432
|
* The ffmpeg build every CamStack node downloads, per platform and arch.
|
|
7433
7433
|
*
|
|
@@ -7481,20 +7481,20 @@ function portable(target) {
|
|
|
7481
7481
|
}
|
|
7482
7482
|
portable("linux64"), portable("linuxarm64"), portable("macarm64"), portable("mac64");
|
|
7483
7483
|
/**
|
|
7484
|
-
*
|
|
7485
|
-
*
|
|
7484
|
+
* THE table "which boolean of this device type counts as HIGH", and the
|
|
7485
|
+
* pure evaluator of its EDGE.
|
|
7486
7486
|
*
|
|
7487
|
-
*
|
|
7488
|
-
*
|
|
7489
|
-
*
|
|
7490
|
-
*
|
|
7491
|
-
*
|
|
7492
|
-
*
|
|
7487
|
+
* ONE table for everyone who asks "is this device HIGH?": the
|
|
7488
|
+
* recorder's `RecordingTriggers.sensorDeviceIds` trigger, the post-analysis
|
|
7489
|
+
* sensor markers, the orchestrator's camera-sensors bridge and
|
|
7490
|
+
* the sources of a composite doorbell (`doorbellFeatureSources`, D671).
|
|
7491
|
+
* A second copy would diverge at the first cap added, and the symptom — "the
|
|
7492
|
+
* sensor rings the doorbell but does not record" — is exactly D62.
|
|
7493
7493
|
*
|
|
7494
|
-
* ⚠
|
|
7495
|
-
*
|
|
7496
|
-
*
|
|
7497
|
-
*
|
|
7494
|
+
* ⚠ NOT `DEVICE_STATE_READERS` (`catalogs/device-state-vocabulary.ts`), and the
|
|
7495
|
+
* two must not be unified: that one answers "what is the state WORD for a
|
|
7496
|
+
* rule" (and includes `presence`, `cover`, `alarm-panel`), this one "which
|
|
7497
|
+
* boolean's EDGE counts". Deliberately different vocabularies.
|
|
7498
7498
|
*/
|
|
7499
7499
|
/**
|
|
7500
7500
|
* Known binary / switch source caps → the boolean slice field whose
|
|
@@ -9101,22 +9101,22 @@ var CLASS_MAP_MACRO_TARGETS = [
|
|
|
9101
9101
|
"package"
|
|
9102
9102
|
];
|
|
9103
9103
|
/**
|
|
9104
|
-
*
|
|
9105
|
-
*
|
|
9104
|
+
* The FIRST-LEVEL macro classes: those an object detector emits and that
|
|
9105
|
+
* an operator can select.
|
|
9106
9106
|
*
|
|
9107
|
-
*
|
|
9107
|
+
* They are the three offered by the `object-detection` step
|
|
9108
9108
|
* (`addon-pipeline/src/detection-pipeline/registry/step-definitions.ts`,
|
|
9109
|
-
* `enabledMacroClasses`). `package`
|
|
9110
|
-
* `MACRO_LABELS` —
|
|
9111
|
-
* `package-detection`,
|
|
9112
|
-
*
|
|
9109
|
+
* `enabledMacroClasses`). `package` is in {@link CLASS_MAP_MACRO_TARGETS} and in
|
|
9110
|
+
* `MACRO_LABELS` — it is a true macro — but NOT here: it belongs to the step
|
|
9111
|
+
* `package-detection`, whose enablement is driven by zones, and offering the
|
|
9112
|
+
* same word twice has already made an operator turn on the COCO proxy
|
|
9113
9113
|
* (suitcase/backpack/handbag) lasciando spento il detector dedicato.
|
|
9114
9114
|
*
|
|
9115
|
-
*
|
|
9116
|
-
*
|
|
9117
|
-
* (`types/detection.ts`);
|
|
9118
|
-
* (`RecordingTriggers.objectClasses`)
|
|
9119
|
-
*
|
|
9115
|
+
* ONE list. Before today the same three were hand-written in the step's offer
|
|
9116
|
+
* and a second time as the union `FirstLevelMacro`
|
|
9117
|
+
* (`types/detection.ts`); a third copy for the recording trigger
|
|
9118
|
+
* (`RecordingTriggers.objectClasses`) would have made the later divergence
|
|
9119
|
+
* invisible.
|
|
9120
9120
|
*/
|
|
9121
9121
|
var FIRST_LEVEL_MACRO_CLASSES = [
|
|
9122
9122
|
"person",
|
|
@@ -9181,17 +9181,17 @@ var RecordingStorageModeSchema = _enum([
|
|
|
9181
9181
|
"on-device-decision"
|
|
9182
9182
|
]);
|
|
9183
9183
|
/**
|
|
9184
|
-
*
|
|
9185
|
-
*
|
|
9184
|
+
* The macro classes that can open a recording window — the same
|
|
9185
|
+
* three offered by the `object-detection` step, from ONE list
|
|
9186
9186
|
* ({@link FIRST_LEVEL_MACRO_CLASSES}).
|
|
9187
9187
|
*/
|
|
9188
9188
|
var RecordingObjectTriggerClassSchema = _enum(FIRST_LEVEL_MACRO_CLASSES);
|
|
9189
9189
|
/**
|
|
9190
|
-
* True
|
|
9190
|
+
* True when `values` does not repeat an element.
|
|
9191
9191
|
*
|
|
9192
|
-
*
|
|
9193
|
-
*
|
|
9194
|
-
*
|
|
9192
|
+
* A duplicate is not harmless: every entry of `objectClasses` / `sensorDeviceIds`
|
|
9193
|
+
* becomes a SOURCE in `bandTriggerSources`, and the same source twice
|
|
9194
|
+
* would count its windows twice in `segmentMissedByMs`.
|
|
9195
9195
|
*/
|
|
9196
9196
|
var noDuplicates = (values) => new Set(values).size === values.length;
|
|
9197
9197
|
/** Which detectors trigger an `events`-mode band. */
|
|
@@ -9199,34 +9199,34 @@ var RecordingTriggersSchema = object({
|
|
|
9199
9199
|
motion: boolean().optional(),
|
|
9200
9200
|
audioThresholdDbfs: number().optional(),
|
|
9201
9201
|
/**
|
|
9202
|
-
*
|
|
9203
|
-
*
|
|
9204
|
-
*
|
|
9205
|
-
*
|
|
9202
|
+
* The macro classes whose detection opens a window. ABSENT = the source
|
|
9203
|
+
* is not listened to; an EMPTY array is rejected, because "events band, object
|
|
9204
|
+
* trigger on, no class" is the same shape "enabled and records
|
|
9205
|
+
* nothing, forever" that `eventsBandCanEverDemand` is written against.
|
|
9206
9206
|
*
|
|
9207
|
-
*
|
|
9208
|
-
*
|
|
9209
|
-
* `minConfidence<Macro>`
|
|
9210
|
-
* (`source: 'onboard'`)
|
|
9211
|
-
*
|
|
9207
|
+
* The signal read is ALREADY FILTERED: only `source: 'pipeline'` detections, i.e.
|
|
9208
|
+
* those that went through `enabledMacroClasses`, the
|
|
9209
|
+
* `minConfidence<Macro>` and the full-frame guard. The camera's onboard AI
|
|
9210
|
+
* (`source: 'onboard'`) goes through none of those gates and does NOT open
|
|
9211
|
+
* windows — see `recorder/object-trigger.ts`.
|
|
9212
9212
|
*/
|
|
9213
9213
|
objectClasses: array(RecordingObjectTriggerClassSchema).min(1).refine(noDuplicates, { message: "objectClasses must not repeat a class" }).optional(),
|
|
9214
9214
|
/**
|
|
9215
|
-
*
|
|
9216
|
-
*
|
|
9215
|
+
* The LINKED devices whose RISING EDGE opens a window. Absent = the source
|
|
9216
|
+
* is not listened to; an empty array is rejected for the same reason as
|
|
9217
9217
|
* `objectClasses`.
|
|
9218
9218
|
*
|
|
9219
|
-
*
|
|
9220
|
-
*
|
|
9221
|
-
*
|
|
9222
|
-
*
|
|
9223
|
-
* device (D12) —
|
|
9219
|
+
* These are SOURCE device ids, not cameras: the band names them, so the
|
|
9220
|
+
* hot path (`DeviceStateChanged`, at bus rate across the whole fleet)
|
|
9221
|
+
* does no RPC. The OFFER from which the operator picks them is another question, and
|
|
9222
|
+
* is resolved with `deviceManager.getLinkedDevices` + `getBindingsBatch` per
|
|
9223
|
+
* device (D12) — never a global list of caps.
|
|
9224
9224
|
*
|
|
9225
|
-
*
|
|
9226
|
-
* `SOURCE_CAP_ACTIVE_FIELD` (`catalogs/sensor-active-state.ts`)
|
|
9227
|
-
*
|
|
9228
|
-
*
|
|
9229
|
-
*
|
|
9225
|
+
* What "high" means depends on the device TYPE and is not decided here:
|
|
9226
|
+
* `SOURCE_CAP_ACTIVE_FIELD` (`catalogs/sensor-active-state.ts`) is THE table,
|
|
9227
|
+
* the same one as the composite doorbell (D671). And it is the EDGE, not
|
|
9228
|
+
* the level: a contact found already open at runner restart does not
|
|
9229
|
+
* record.
|
|
9230
9230
|
*/
|
|
9231
9231
|
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
9232
9232
|
});
|
|
@@ -10303,7 +10303,7 @@ var DecoderSessionConfigSchema = object({
|
|
|
10303
10303
|
* - **VALUE** — at which level, for which scope, until when. That stays ONE
|
|
10304
10304
|
* thing: the logging settings document on the `system` cap. Two authorities
|
|
10305
10305
|
* over the values is the exact defect
|
|
10306
|
-
* `docs/design/plans/2026-08-26-
|
|
10306
|
+
* `docs/design/plans/2026-08-26-per-component-logging.md` was written to
|
|
10307
10307
|
* remove; re-introducing it from the cure side would be grotesque.
|
|
10308
10308
|
*
|
|
10309
10309
|
* Nothing in this file reads a clock, an env var or a store. The registry is
|
|
@@ -13756,7 +13756,7 @@ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
|
|
|
13756
13756
|
*
|
|
13757
13757
|
* ⚠ An earlier version of this comment blamed Zod stripping, and that
|
|
13758
13758
|
* was wrong — corrected 2026-08-26 after the hop map
|
|
13759
|
-
* (`docs/design/2026-08-26-
|
|
13759
|
+
* (`docs/design/2026-08-26-topic-hop-map.md`) traced the path.
|
|
13760
13760
|
* There is **no Zod parse at all** between the door and the engine: the
|
|
13761
13761
|
* dispatcher forwards the payload verbatim and UDS carries it whole. A
|
|
13762
13762
|
* field declared here reaches `SqliteSettingsBackend` either way.
|
|
@@ -14512,7 +14512,17 @@ var SiteZoneSchema = object({
|
|
|
14512
14512
|
var ProviderStatusSchema = object({
|
|
14513
14513
|
connected: boolean(),
|
|
14514
14514
|
deviceCount: number(),
|
|
14515
|
-
error: string().optional()
|
|
14515
|
+
error: string().optional(),
|
|
14516
|
+
/**
|
|
14517
|
+
* `'orchestrator'`: this provider writes NO camera's `motion` runtime slice
|
|
14518
|
+
* — the orchestrator is its only writer (D696). Set by `BaseDeviceProvider`,
|
|
14519
|
+
* which every provider bundles, so only a provider BUILT from D696-amended
|
|
14520
|
+
* code says it. ABSENT means an older provider that may still write it (raw
|
|
14521
|
+
* VMD writes, a boot seed), and the orchestrator's provider gate keeps that
|
|
14522
|
+
* provider's cameras unwritten (`camera-sensors/motion-slice-provider-gate.ts`)
|
|
14523
|
+
* — the provider twin of the runner's `getLocalLoad().motionSliceWriter`.
|
|
14524
|
+
*/
|
|
14525
|
+
motionSliceWriter: literal("orchestrator").optional()
|
|
14516
14526
|
});
|
|
14517
14527
|
object({
|
|
14518
14528
|
externalId: string(),
|
|
@@ -15648,7 +15658,7 @@ method(object({
|
|
|
15648
15658
|
* per-device window, `KeyFrameCaptureLog`, `bumpCropMetric`. Every one of them
|
|
15649
15659
|
* ends in a log line, and a log line is the thing the operator asked to stop
|
|
15650
15660
|
* needing: *"possiamo armare questi errori intanto? Così al prossimo giro
|
|
15651
|
-
* ricontrolliamo tutti questi punti"
|
|
15661
|
+
* ricontrolliamo tutti questi punti"* [can we instrument these errors in the meantime? That way next round we recheck all these points]. Reading them meant grepping Loki and
|
|
15652
15662
|
* hand-correlating timestamps, which is how a 22% thumbnail gap and a 3-hour
|
|
15653
15663
|
* media blackout were both diagnosed. The counters stay; this is where they can
|
|
15654
15664
|
* be READ.
|
|
@@ -21317,14 +21327,14 @@ var TrackSchema = object({
|
|
|
21317
21327
|
* `derive-returned-null tile=standin`,
|
|
21318
21328
|
* `native-tile tile=native no-key-frame-at-close`, …) written at close and
|
|
21319
21329
|
* CLEARED by the late-keyFrame upgrade when a native tile lands after all.
|
|
21320
|
-
* The operator-facing answer to "perché manca l'immagine?" on a track whose
|
|
21330
|
+
* The operator-facing answer to "perché manca l'immagine?" [why is the image missing?] on a track whose
|
|
21321
21331
|
* tile is a face/plate stand-in, a raster crop, or an icon.
|
|
21322
21332
|
*
|
|
21323
21333
|
* **`no-key-frame-at-close` (D400).** The line used to be written ONLY when
|
|
21324
21334
|
* the TILE ranked below native, so a track whose thumbnail landed natively
|
|
21325
21335
|
* while its key frame missed carried no reason at all — three of the four
|
|
21326
21336
|
* `MISSING_KEYFRAME` tracks in the 2026-09-07 operator audit were exactly
|
|
21327
|
-
* that shape, and their "niente ultimo" had no cause anywhere on the row.
|
|
21337
|
+
* that shape, and their "niente ultimo" [no last frame] had no cause anywhere on the row.
|
|
21328
21338
|
* The key frame is the head of a cascade (`keyFrame ⇒ keyFrameSmall ⇒ the
|
|
21329
21339
|
* lastFrame copy source`), so its absence is now on this line whatever the
|
|
21330
21340
|
* tile ended up being.
|
|
@@ -21411,7 +21421,7 @@ var MotionEventSchema = object({
|
|
|
21411
21421
|
/**
|
|
21412
21422
|
* Ms offsets from `timestamp` (the episode's own first rising edge, so the
|
|
21413
21423
|
* first entry is always `0`) of every genuine off→on transition the
|
|
21414
|
-
* episode saw — "ogni evento on si deve salvare" (D475). NOT one entry per
|
|
21424
|
+
* episode saw — "ogni evento on si deve salvare" [every ON event must be saved] (D475). NOT one entry per
|
|
21415
21425
|
* push: a firmware source that keepalives at ~1 Hz for the whole burst
|
|
21416
21426
|
* (Reolink, Hikvision) produces exactly one edge; a source that reports an
|
|
21417
21427
|
* explicit `false` mid-episode and then resumes before the quiet window
|
|
@@ -26647,7 +26657,7 @@ var ClipPlaybackSchema = object({
|
|
|
26647
26657
|
* **One authorised yes is one wake.** `next-natural` — take the clip the next
|
|
26648
26658
|
* time the camera is awake for its own reasons — is deliberately not a member:
|
|
26649
26659
|
* it was proposed, it is free on the battery, and the operator declined it on
|
|
26650
|
-
* 2026-09-20 (*"Quando un export viene richiesto si sveglia la camera."
|
|
26660
|
+
* 2026-09-20 (*"Quando un export viene richiesto si sveglia la camera."* [When an export is requested the camera wakes up],
|
|
26651
26661
|
* D558 "Considered and not taken").
|
|
26652
26662
|
*/
|
|
26653
26663
|
var ClipWakeSchema = _enum(["authorised"]);
|
|
@@ -26908,7 +26918,7 @@ DeviceType.Camera, method(object({
|
|
|
26908
26918
|
* It replaced `sources?: string[]`, a VIEW filter over source ids that
|
|
26909
26919
|
* assumed the answer was a fan-out over everything a camera has. The
|
|
26910
26920
|
* operator settled otherwise on 2026-09-20 — *"l'utilizzatore è uno
|
|
26911
|
-
* solo"* — so the list is asked of one provider at a time and there is
|
|
26921
|
+
* solo"* [there is only one user] — so the list is asked of one provider at a time and there is
|
|
26912
26922
|
* nothing to filter out of it.
|
|
26913
26923
|
*/
|
|
26914
26924
|
provider: string().min(1)
|
|
@@ -33026,7 +33036,7 @@ var ReadGopBytesResultSchema = object({
|
|
|
33026
33036
|
/**
|
|
33027
33037
|
* A time WINDOW of one finalized segment, cut by byte range — the multi-GOP
|
|
33028
33038
|
* twin of {@link ReadGopBytesResultSchema}'s single instant. Built for the
|
|
33029
|
-
* replay clip's `recording` source (`docs/design/plans/2026-08-26-replay-
|
|
33039
|
+
* replay clip's `recording` source (`docs/design/plans/2026-08-26-clip-replay-on-pipeline.md`):
|
|
33030
33040
|
* a replay needs several seconds of native pixels, not one frame.
|
|
33031
33041
|
*
|
|
33032
33042
|
* `ok.data` is standalone-demuxable, same as a GOP read. `ok.reachesRequestedEnd`
|
|
@@ -46911,7 +46921,7 @@ var PreviewTextField = string().max(200);
|
|
|
46911
46921
|
* Whether the notification's preview is a STILL or a short animation.
|
|
46912
46922
|
*
|
|
46913
46923
|
* The operator's ask, verbatim: *"inviato come gif o video (come per le altre
|
|
46914
|
-
* rule)"* — the other rules already offer an animated preview, and a ten-hour
|
|
46924
|
+
* rule)"* [sent as a gif or video (as for the other rules)] — the other rules already offer an animated preview, and a ten-hour
|
|
46915
46925
|
* night reads better as three seconds of motion than as one frame of it. Both
|
|
46916
46926
|
* modes get the SAME treatment (blurred frame, large centred title); `'gif'`
|
|
46917
46927
|
* simply applies it to a dozen frames sampled across the render and assembles
|
|
@@ -47253,7 +47263,7 @@ var AgentUIAddon = class extends BaseAddon {
|
|
|
47253
47263
|
capability: adminUiCapability,
|
|
47254
47264
|
provider: {
|
|
47255
47265
|
getStaticDir: async () => ({ staticDir: path.resolve(__dirname) }),
|
|
47256
|
-
getVersion: async () => ({ version: "1.2.
|
|
47266
|
+
getVersion: async () => ({ version: "1.2.163" })
|
|
47257
47267
|
}
|
|
47258
47268
|
}];
|
|
47259
47269
|
}
|