@camstack/addon-agent-ui 1.2.159 → 1.2.161

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.
Files changed (2) hide show
  1. package/dist/addon.js +435 -253
  2. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import path from "node:path";
2
2
  import { fileURLToPath } from "node:url";
3
- //#region ../types/dist/event-category-C5xZWqz6.mjs
3
+ //#region ../types/dist/event-category-BGmz_oxW.mjs
4
4
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
5
5
  EventCategory["SystemBoot"] = "system.boot";
6
6
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -533,6 +533,15 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
533
533
  */
534
534
  EventCategory["PipelineAudioInferenceResult"] = "pipeline.audio-inference-result";
535
535
  EventCategory["DetectionPhaseTransition"] = "detection.phase-transition";
536
+ /**
537
+ * A camera provider's RAW onboard motion push (D673): the `MotionOnMotionChanged`
538
+ * data shape without `triggeredBy`, built by `providerMotionEvent`. Its one
539
+ * consumer is the orchestrator's camera-sensors bridge, which re-emits the
540
+ * camera's EFFECTIVE onboard motion as `MotionOnMotionChanged` (a pass-through
541
+ * for a camera with no attached sensor). Providers must not emit
542
+ * `MotionOnMotionChanged` themselves; `scripts/check-onboard-motion-emitters.ts`
543
+ * keeps it so (camera-grid is a named, deferred exception).
544
+ */
536
545
  EventCategory["ProviderMotion"] = "provider.motion";
537
546
  EventCategory["ProviderDetection"] = "provider.detection";
538
547
  EventCategory["EnrichmentEmbeddingStored"] = "enrichment.embedding.stored";
@@ -5371,7 +5380,7 @@ var ZodIssueCode = {
5371
5380
  var ZodFirstPartyTypeKind;
5372
5381
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5373
5382
  //#endregion
5374
- //#region ../types/dist/sleep-gU6hqv4_.mjs
5383
+ //#region ../types/dist/sleep-CDCONfkt.mjs
5375
5384
  /**
5376
5385
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5377
5386
  * window to float samples (D455).
@@ -7418,7 +7427,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
7418
7427
  return DeviceRole;
7419
7428
  }({});
7420
7429
  //#endregion
7421
- //#region ../types/dist/composition-Dq42XWp0.mjs
7430
+ //#region ../types/dist/composition-43aqsZQj.mjs
7422
7431
  /**
7423
7432
  * The ffmpeg build every CamStack node downloads, per platform and arch.
7424
7433
  *
@@ -7475,13 +7484,12 @@ portable("linux64"), portable("linuxarm64"), portable("macarm64"), portable("mac
7475
7484
  * LA tabella "quale booleano di questo tipo di device conta come ALTO", e il
7476
7485
  * valutatore puro del suo FRONTE.
7477
7486
  *
7478
- * Viveva dentro il builtin virtual-doorbell
7479
- * (`@camstack/system` — `builtins/doorbell/trigger-engine.ts`) e i suoi
7480
- * predicati erano privati al modulo. Il recorder ne ha bisogno per il trigger
7481
- * `RecordingTriggers.sensorDeviceIds`: copiarla avrebbe creato la SECONDA
7482
- * tabella, che diverge alla prima cap aggiunta e il cui sintomo — "il sensore
7483
- * fa suonare il campanello ma non registra" — è esattamente D62. Quindi si
7484
- * SPOSTA qui e il doorbell la ri-esporta.
7487
+ * UNA tabella per tutti quelli che chiedono "questo device è ALTO?": il
7488
+ * trigger `RecordingTriggers.sensorDeviceIds` del recorder, i marker dei
7489
+ * sensori della post-analysis, il bridge camera-sensors dell'orchestratore e
7490
+ * le sorgenti di un campanello composto (`doorbellFeatureSources`, D671).
7491
+ * Una seconda copia divergerebbe alla prima cap aggiunta, e il sintomo — "il
7492
+ * sensore fa suonare il campanello ma non registra" — è esattamente D62.
7485
7493
  *
7486
7494
  * ⚠ NON è `DEVICE_STATE_READERS` (`catalogs/device-state-vocabulary.ts`), e le
7487
7495
  * due non vanno unificate: quella risponde a "qual è la PAROLA di stato per una
@@ -9216,7 +9224,7 @@ var RecordingTriggersSchema = object({
9216
9224
  *
9217
9225
  * Cosa vuol dire "alto" dipende dal TIPO di device e non è deciso qui:
9218
9226
  * `SOURCE_CAP_ACTIVE_FIELD` (`catalogs/sensor-active-state.ts`) è LA tabella,
9219
- * la stessa che il virtual-doorbell usa dal 2026-08-05. Ed è il FRONTE, non
9227
+ * la stessa del campanello composto (D671). Ed è il FRONTE, non
9220
9228
  * il livello: un contatto trovato già aperto al riavvio del runner non fa
9221
9229
  * registrare.
9222
9230
  */
@@ -11571,6 +11579,68 @@ method(object({
11571
11579
  password: string()
11572
11580
  }), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
11573
11581
  /**
11582
+ * How long one snapshot may take end to end: the pinned copy of the whole
11583
+ * database plus `PRAGMA integrity_check` over the copy, on the hub's slowest
11584
+ * disk. ~800 MB at a pessimistic 10 MB/s is under 3 minutes; the bound is
11585
+ * generous because a timeout fails the whole backup run.
11586
+ */
11587
+ var DATABASE_SNAPSHOT_TIMEOUT_MS = 30 * 6e4;
11588
+ /**
11589
+ * The databases an owner snapshots — declared by the OWNER, so a caller never
11590
+ * guesses which file is live from what sits beside it (a cleanly closed
11591
+ * database has no sidecars and is just as owned). Paths are absolute on the
11592
+ * owner's host.
11593
+ */
11594
+ var DatabaseSnapshotTargetsSchema = object({ databases: array(object({ livePath: string() })) });
11595
+ /** One b-tree table of the snapshot and the rows it holds. */
11596
+ var DatabaseSnapshotTableSchema = object({
11597
+ name: string(),
11598
+ rows: number().int().nonnegative()
11599
+ });
11600
+ /**
11601
+ * What the owner wrote. Every path is ABSOLUTE on the owner's host — the
11602
+ * caller pins the call to its own node, so it can read the file; a caller
11603
+ * that finds the path outside its own data root refuses it rather than
11604
+ * archiving something it cannot place.
11605
+ */
11606
+ var DatabaseSnapshotResultSchema = object({
11607
+ /** The live database the snapshot copies. Never to be copied as a file. */
11608
+ livePath: string(),
11609
+ /** The verified copy: `<livePath>` + {@link DATABASE_SNAPSHOT_SUFFIX}. */
11610
+ snapshotPath: string(),
11611
+ sizeBytes: number().int().nonnegative(),
11612
+ pageCount: number().int().nonnegative(),
11613
+ pageSize: number().int().positive(),
11614
+ /**
11615
+ * Every b-tree table with its row count. Read inside the SAME read
11616
+ * transaction the copy was taken from, and found EQUAL on the copy — so
11617
+ * this is the content of the snapshot, not an estimate of the source.
11618
+ */
11619
+ tables: array(DatabaseSnapshotTableSchema),
11620
+ /** Wall time of the pinned copy (row counts included). */
11621
+ copyMs: number().nonnegative(),
11622
+ /** Wall time of the checks on the copy (`integrity_check`, row counts). */
11623
+ verifyMs: number().nonnegative(),
11624
+ /** When the pinned read transaction began (ms epoch) — the snapshot's instant. */
11625
+ takenAt: number()
11626
+ });
11627
+ /**
11628
+ * A snapshot as an ARCHIVE records it (`ArchiveManifest.sqliteSnapshots`):
11629
+ * the same facts, with both paths relative to the archive root (the node's
11630
+ * data dir), because an archive outlives the host that made it.
11631
+ */
11632
+ var ArchiveSqliteSnapshotSchema = DatabaseSnapshotResultSchema.extend({
11633
+ /** Archive-relative path of the live database the archive does NOT carry. */
11634
+ livePath: string(),
11635
+ /** Archive-relative path of the verified copy it carries in its place. */
11636
+ snapshotPath: string()
11637
+ });
11638
+ method(object({}), DatabaseSnapshotTargetsSchema, { auth: "admin" }), method(object({}), DatabaseSnapshotResultSchema, {
11639
+ kind: "mutation",
11640
+ auth: "admin",
11641
+ timeoutMs: DATABASE_SNAPSHOT_TIMEOUT_MS
11642
+ });
11643
+ /**
11574
11644
  * Orchestrator-side destination metadata. The orchestrator computes
11575
11645
  * `id = <addonId>:<subId>` from its provider lookup so consumers
11576
11646
  * (admin UI, restore flow) see one canonical key.
@@ -11681,7 +11751,12 @@ var ArchiveManifestSchema = object({
11681
11751
  locations: array(string()),
11682
11752
  entries: array(ArchiveEntrySchema),
11683
11753
  totalBytes: number(),
11684
- totalFiles: number()
11754
+ totalFiles: number(),
11755
+ /**
11756
+ * Live SQLite databases this archive carries as their OWNER's verified
11757
+ * snapshot instead of as files (D693). Absent on archives made before.
11758
+ */
11759
+ sqliteSnapshots: array(ArchiveSqliteSnapshotSchema).optional()
11685
11760
  });
11686
11761
  var LocationStatSchema = object({
11687
11762
  name: string(),
@@ -13105,6 +13180,52 @@ var CompositionBlockStateSchema = object({
13105
13180
  reason: string().optional(),
13106
13181
  fields: array(CompositionFieldStateSchema)
13107
13182
  });
13183
+ var ComposerBlockSchema = object({
13184
+ id: string().min(1),
13185
+ name: string().min(1).max(120),
13186
+ enabled: boolean(),
13187
+ updatedAt: number(),
13188
+ composition: CompositionSchema
13189
+ });
13190
+ /**
13191
+ * A stored composition row that no longer PARSES — a schema a release
13192
+ * tightened, a row written by a newer build. Sent by id so the composer keeps
13193
+ * its device as a placeholder and reports the block `failed` naming the parse
13194
+ * error. Leaving it out would read, twice, exactly like a delete (D49).
13195
+ */
13196
+ var ComposerUnreadableBlockSchema = object({
13197
+ id: string().min(1),
13198
+ /** The row's stored name column; null when even that is unreadable (the device keeps the name it has). */
13199
+ name: string().nullable(),
13200
+ /** The parse error, in the operator's words. */
13201
+ error: string()
13202
+ });
13203
+ method(object({
13204
+ /** The shared Blocks integration; null until `core-blocks` has reconciled it. */
13205
+ integrationId: string().nullable(),
13206
+ /** False when the `core_blocks` read failed: then nothing may be withdrawn (D49). */
13207
+ storeLoaded: boolean(),
13208
+ blocks: array(ComposerBlockSchema),
13209
+ /** Operator restarts: rebuild these runtimes and re-resolve their sources. Stores nothing (D62). */
13210
+ restartBlockIds: array(string()),
13211
+ /** Composition rows that exist but do not parse: held, never withdrawn, reported failed. */
13212
+ unreadableBlocks: array(ComposerUnreadableBlockSchema)
13213
+ }), object({
13214
+ blocks: array(object({
13215
+ blockId: string(),
13216
+ status: CompositionRunStatusSchema,
13217
+ reason: string().optional()
13218
+ })),
13219
+ /**
13220
+ * False when the composer declared and withdrew NOTHING (store not loaded,
13221
+ * integration unknown, its own rows unread or read empty once). An empty
13222
+ * apply the caller owes is paid off only by one the composer acted on (D49).
13223
+ */
13224
+ acted: boolean()
13225
+ }), {
13226
+ kind: "mutation",
13227
+ auth: "admin"
13228
+ }), method(object({ blockIds: array(string()) }), object({ states: array(CompositionBlockStateSchema) }), { auth: "admin" });
13108
13229
  var NUMBER = {
13109
13230
  kind: "fixed",
13110
13231
  result: ["number"]
@@ -13341,52 +13462,6 @@ method(object({}), object({ blocks: array(CoreBlockSchema) }), { auth: "admin" }
13341
13462
  auth: "admin",
13342
13463
  access: "view"
13343
13464
  });
13344
- var ComposerBlockSchema = object({
13345
- id: string().min(1),
13346
- name: string().min(1).max(120),
13347
- enabled: boolean(),
13348
- updatedAt: number(),
13349
- composition: CompositionSchema
13350
- });
13351
- /**
13352
- * A stored composition row that no longer PARSES — a schema a release
13353
- * tightened, a row written by a newer build. Sent by id so the composer keeps
13354
- * its device as a placeholder and reports the block `failed` naming the parse
13355
- * error. Leaving it out would read, twice, exactly like a delete (D49).
13356
- */
13357
- var ComposerUnreadableBlockSchema = object({
13358
- id: string().min(1),
13359
- /** The row's stored name column; null when even that is unreadable (the device keeps the name it has). */
13360
- name: string().nullable(),
13361
- /** The parse error, in the operator's words. */
13362
- error: string()
13363
- });
13364
- method(object({
13365
- /** The shared Blocks integration; null until `core-blocks` has reconciled it. */
13366
- integrationId: string().nullable(),
13367
- /** False when the `core_blocks` read failed: then nothing may be withdrawn (D49). */
13368
- storeLoaded: boolean(),
13369
- blocks: array(ComposerBlockSchema),
13370
- /** Operator restarts: rebuild these runtimes and re-resolve their sources. Stores nothing (D62). */
13371
- restartBlockIds: array(string()),
13372
- /** Composition rows that exist but do not parse: held, never withdrawn, reported failed. */
13373
- unreadableBlocks: array(ComposerUnreadableBlockSchema)
13374
- }), object({
13375
- blocks: array(object({
13376
- blockId: string(),
13377
- status: CompositionRunStatusSchema,
13378
- reason: string().optional()
13379
- })),
13380
- /**
13381
- * False when the composer declared and withdrew NOTHING (store not loaded,
13382
- * integration unknown, its own rows unread or read empty once). An empty
13383
- * apply the caller owes is paid off only by one the composer acted on (D49).
13384
- */
13385
- acted: boolean()
13386
- }), {
13387
- kind: "mutation",
13388
- auth: "admin"
13389
- }), method(object({ blockIds: array(string()) }), object({ states: array(CompositionBlockStateSchema) }), { auth: "admin" });
13390
13465
  /**
13391
13466
  * `custom-model-registry` — collection cap exposing operator-registered
13392
13467
  * custom detection models. Each provider (today: `addon-model-studio`)
@@ -15235,6 +15310,121 @@ method(object({
15235
15310
  deviceIds: array(number()).readonly(),
15236
15311
  caps: array(string()).readonly().optional()
15237
15312
  }), record(string(), record(string(), unknown().nullable())));
15313
+ var ExtensionSlotIdSchema = _enum(["linked-devices"]);
15314
+ DeviceType.Camera;
15315
+ /** A slot's editable value, discriminated on `slot`. */
15316
+ var ExtensionSlotValueSchema = discriminatedUnion("slot", [LinkedDevicesSlotValueSchema.extend({ slot: literal("linked-devices") })]);
15317
+ DeviceType.Camera;
15318
+ var ExtensionSourceAvailabilitySchema = discriminatedUnion("state", [object({ state: literal("ok") }), object({
15319
+ state: literal("unreachable"),
15320
+ reason: string()
15321
+ })]);
15322
+ /** One provider of slots — the D554 source-listing row. */
15323
+ var ExtensionSourceSchema = object({
15324
+ /** The routing prefix of every `slotRef` this provider serves. */
15325
+ source: string(),
15326
+ label: string(),
15327
+ /** Stamped by the dispatcher from the registry (D557). */
15328
+ addonId: string().optional(),
15329
+ availability: ExtensionSourceAvailabilitySchema
15330
+ });
15331
+ /**
15332
+ * How one picked source stands. `missing` — no such device (deleted, or an id
15333
+ * that never existed); `foreign` — a device the slot's owner cannot read from
15334
+ * (a source owned by another addon); `unavailable` — it exists but is not a
15335
+ * valid source now (a container, which is never a pick). A source in any of
15336
+ * these states is SHOWN, never silently dropped or re-pointed.
15337
+ */
15338
+ var ExtensionSourceHealthSchema = _enum([
15339
+ "ok",
15340
+ "missing",
15341
+ "foreign",
15342
+ "unavailable"
15343
+ ]);
15344
+ var ExtensionSlotSourceSchema = object({
15345
+ deviceId: number().int(),
15346
+ /** The device's name, or null when it could not be resolved (`missing`). */
15347
+ name: string().nullable(),
15348
+ health: ExtensionSourceHealthSchema,
15349
+ detail: string().optional()
15350
+ });
15351
+ /**
15352
+ * A DIFFERENT authority that gates whether the slot's sources do anything —
15353
+ * reported read-only, named, never written through this contract (D62) — e.g.
15354
+ * a slot whose sources act only while a wrapper is bound to the host, a
15355
+ * binding that belongs to `deviceManager.setWrapperActive`. No slot reports
15356
+ * one today (`linked-devices` answers `null`). `unknown` means the gate could
15357
+ * not be read; it is not "inactive" (D315).
15358
+ */
15359
+ var ExtensionSlotActivationSchema = object({
15360
+ state: _enum([
15361
+ "active",
15362
+ "inactive",
15363
+ "unknown"
15364
+ ]),
15365
+ authority: string(),
15366
+ detail: string().optional()
15367
+ });
15368
+ var ExtensionSlotRowSchema = discriminatedUnion("state", [object({
15369
+ state: literal("ok"),
15370
+ /** `<source>:<slotId>` — the routing key for `listCandidates` / `setSlot`. */
15371
+ slotRef: string(),
15372
+ slot: ExtensionSlotIdSchema,
15373
+ /** Names the store written (D62), e.g. `device-manager:_linkedDeviceIds`. */
15374
+ authority: string(),
15375
+ activation: ExtensionSlotActivationSchema.nullable(),
15376
+ value: ExtensionSlotValueSchema,
15377
+ sources: array(ExtensionSlotSourceSchema),
15378
+ /**
15379
+ * Devices the owner links to the host ON ITS OWN, by structure, and that
15380
+ * are therefore not in `value` (D655): a camera's device-tree children, and
15381
+ * the child a picked container stands for (D356 — a container is never a
15382
+ * pick, its children are). Read-only; the editor shows them and may offer
15383
+ * per-device options on them (the linked-devices tracked-event opt-in).
15384
+ * Absent when the owner links nothing beyond the picks, and from an owner
15385
+ * older than D655.
15386
+ */
15387
+ impliedSources: array(ExtensionSlotSourceSchema).optional()
15388
+ }), object({
15389
+ state: literal("unreachable"),
15390
+ addonId: string(),
15391
+ reason: string()
15392
+ })]);
15393
+ var ExtensionCandidatesSchema = object({ candidates: array(object({
15394
+ deviceId: number().int(),
15395
+ name: string(),
15396
+ type: string(),
15397
+ location: string().nullable(),
15398
+ /** The container a child belongs to — "Spotlight 2" alone does not say which. */
15399
+ parentName: string().nullable(),
15400
+ /** Pre-marked by the owner's suggestion rule. NEVER saved on its own (D356). */
15401
+ suggested: boolean(),
15402
+ /** Why it is suggested ("same location"), null when it is not. */
15403
+ reason: string().nullable()
15404
+ })) });
15405
+ /**
15406
+ * What a write did. `none` — applied in place. `host` / `parent` — the owner
15407
+ * reloaded the host (or, for an accessory child, its parent) because the
15408
+ * write changed what the host REGISTERS. A slot never adds a capability to its
15409
+ * host — that is a composition (D663) — so today's owners answer `none`.
15410
+ */
15411
+ var ExtensionSetResultSchema = object({
15412
+ applied: literal(true),
15413
+ reload: _enum([
15414
+ "none",
15415
+ "host",
15416
+ "parent"
15417
+ ])
15418
+ });
15419
+ var ExtensionSlotRefInputSchema = object({
15420
+ deviceId: number().int(),
15421
+ slotRef: string().min(1)
15422
+ });
15423
+ var ExtensionSetSlotInputSchema = ExtensionSlotRefInputSchema.extend({ value: ExtensionSlotValueSchema });
15424
+ method(object({ deviceId: number().int() }), array(ExtensionSourceSchema)), method(object({ deviceId: number().int() }), array(ExtensionSlotRowSchema)), method(ExtensionSlotRefInputSchema, ExtensionCandidatesSchema), method(ExtensionSetSlotInputSchema, ExtensionSetResultSchema, {
15425
+ kind: "mutation",
15426
+ auth: "admin"
15427
+ });
15238
15428
  /**
15239
15429
  * Per-field ownership (D663). A composition may CLAIM fields of a native
15240
15430
  * cap's runtime-state slice on an existing device: `replace` overlays the
@@ -18207,17 +18397,25 @@ var NcScheduleSchema = object({
18207
18397
  */
18208
18398
  var NcSystemEventDeliveryModeSchema = _enum(["instant", "summary"]);
18209
18399
  /**
18400
+ * How a summary window is SENT (D698): `rule` (absent) = ONE notification with
18401
+ * every section; `section` = one notification per section with something to
18402
+ * say (an unavailable section included), each titled by its section.
18403
+ */
18404
+ var NcStateSummarySplitSchema = _enum(["rule", "section"]);
18405
+ /**
18210
18406
  * `summary`: the rule sends NOTHING per event. When a window of `schedule`
18211
18407
  * CLOSES, it sends one notification with the current state of its kinds
18212
18408
  * (low batteries, consumables to replace, devices offline, updates
18213
- * available, ...), after its own filters. Nothing to report sends nothing.
18409
+ * available, ...), after its own filters — or, with `split: 'section'`
18410
+ * (D698), one notification per section. Nothing to report sends nothing.
18214
18411
  * The schedule is the ordinary `NcSchedule` (weekly windows, IANA timezone,
18215
18412
  * midnight crossing); the send time is each window's END. Refused on the
18216
18413
  * `alarm` family, which stays instant (`systemEventDeliveryProblems`).
18217
18414
  */
18218
18415
  var NcSystemEventDeliverySchema = discriminatedUnion("mode", [object({ mode: literal("instant") }), object({
18219
18416
  mode: literal("summary"),
18220
- schedule: NcScheduleSchema
18417
+ schedule: NcScheduleSchema,
18418
+ split: NcStateSummarySplitSchema.optional()
18221
18419
  })]);
18222
18420
  /** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
18223
18421
  var NcPlateMatcherSchema = object({
@@ -18868,10 +19066,12 @@ var NcMediaPolicySchema = object({
18868
19066
  /**
18869
19067
  * Cooldown GRANULARITY over the subject's class — how much a fired
18870
19068
  * notification suppresses.
18871
- * - `shared` (default, and the absent value) — one window for the whole
18872
- * rule/scope: a cat silences the next dog for `cooldownSec`.
18873
- * - `per-class` — an independent window per detected class, so cat→dog fires
18874
- * at once and cat→cat still waits.
19069
+ * - `per-class` (default, and the absent value since 2026-10-01 — D36) — an
19070
+ * independent window per detected class: cat→dog fires at once, cat→cat
19071
+ * still waits.
19072
+ * - `shared` — one window for the whole rule/scope: a cat silences the next
19073
+ * dog for `cooldownSec`. Only written when an operator picks it; it is no
19074
+ * longer what an unset rule means.
18875
19075
  *
18876
19076
  * AUDIO subjects are ALWAYS per-class regardless of this setting: a scream
18877
19077
  * must not be swallowed by a bark's window (the precedent this generalizes —
@@ -18886,8 +19086,11 @@ var NcThrottleSchema = object({
18886
19086
  /**
18887
19087
  * Class granularity of the cooldown key. Optional rather than defaulted:
18888
19088
  * a Zod default does NOT run on the addon→addon cap path, so a persisted
18889
- * rule authored before this field simply carries none — and the engine
18890
- * reads absent as `shared`, the pre-existing behaviour.
19089
+ * rule authored before this field simply carries none. The engine used to
19090
+ * read absent as `shared` (D36); since 2026-10-01 it reads absent as
19091
+ * `per-class` — the operator's default — and only an explicit `shared`
19092
+ * still means `shared`. See `cooldownKey` / `keysPerClass` in the rule
19093
+ * engine, and D36's dated note.
18891
19094
  */
18892
19095
  granularity: NcThrottleGranularitySchema.optional()
18893
19096
  });
@@ -19211,11 +19414,23 @@ var NcStateSummaryPreviewSectionSchema = object({
19211
19414
  reason: string().optional()
19212
19415
  });
19213
19416
  /**
19417
+ * One notification a previewed summary would send (D698): the whole summary on
19418
+ * a `rule` split (no `section`), one section's on a `section` split.
19419
+ */
19420
+ var NcStateSummaryPreviewRowSchema = object({
19421
+ section: string().optional(),
19422
+ /** The section's name on a per-section row; every reported section's, joined, on a combined one. */
19423
+ title: string(),
19424
+ text: string(),
19425
+ count: number().int().nonnegative()
19426
+ });
19427
+ /**
19214
19428
  * The summary a rule would send now. `empty` = nothing to report and every
19215
19429
  * section read: such a summary is NOT sent. `dropped` counts the open states
19216
19430
  * the rule's own filters (or a camera mute) left out, by reason.
19217
19431
  * `excludedGroups` names the kind groups selected that have no state to report
19218
- * (backups & exports).
19432
+ * (backups & exports). `split` and `rows` (D698) say how it would be sent —
19433
+ * optional, so an older hub's answer still parses.
19219
19434
  */
19220
19435
  var NcStateSummaryPreviewSchema = object({
19221
19436
  empty: boolean(),
@@ -19223,7 +19438,9 @@ var NcStateSummaryPreviewSchema = object({
19223
19438
  text: string(),
19224
19439
  sections: array(NcStateSummaryPreviewSectionSchema),
19225
19440
  dropped: record(string(), number().int().nonnegative()),
19226
- excludedGroups: array(string())
19441
+ excludedGroups: array(string()),
19442
+ split: NcStateSummarySplitSchema.optional(),
19443
+ rows: array(NcStateSummaryPreviewRowSchema).optional()
19227
19444
  });
19228
19445
  var NcTestResultSchema = object({
19229
19446
  recordId: string(),
@@ -20237,12 +20454,26 @@ var CameraSensorRefSchema = object({
20237
20454
  function cameraSensorRefKey(ref) {
20238
20455
  return `${ref.addonId}/${ref.stableId}`;
20239
20456
  }
20240
- /** CS-1 accepts exactly one mode; CS-2 (D673) widens it to confirm / replace. */
20241
- var CameraSensorsModeSchema = _enum(["in-addition"]);
20242
- var CameraSensorsConfigSchema = object({
20243
- mode: CameraSensorsModeSchema,
20244
- sensors: array(CameraSensorRefSchema).min(1).max(8)
20245
- }).superRefine((value, ctx) => {
20457
+ /**
20458
+ * A sensor's mode (D673). `in-addition`: its motion is the camera's motion too.
20459
+ * `replace`: its motion is the camera's, and while one is READY the camera's
20460
+ * own motion no longer counts on its own. `confirm`: while one is READY the
20461
+ * camera's own motion counts only while a confirm sensor is active — with or
20462
+ * without a replace sensor (spec C2, the controller's ruling on Q1).
20463
+ */
20464
+ var CameraSensorModeSchema = _enum([
20465
+ "in-addition",
20466
+ "confirm",
20467
+ "replace"
20468
+ ]);
20469
+ /** A stored sensor with no mode — every CS-1 row — is in addition. */
20470
+ var DEFAULT_CAMERA_SENSOR_MODE = "in-addition";
20471
+ /**
20472
+ * A camera's attached sensors. A CS-1 row carried an envelope
20473
+ * `mode: 'in-addition'`: `z.object` drops it on parse, and the PARSED value is
20474
+ * what the write stores (D672 rule 3), so it is never written again.
20475
+ */
20476
+ var CameraSensorsConfigSchema = object({ sensors: array(CameraSensorRefSchema.extend({ mode: CameraSensorModeSchema.default(DEFAULT_CAMERA_SENSOR_MODE) })).min(1).max(8) }).superRefine((value, ctx) => {
20246
20477
  const seen = /* @__PURE__ */ new Set();
20247
20478
  value.sensors.forEach((ref, index) => {
20248
20479
  const key = cameraSensorRefKey(ref);
@@ -20254,39 +20485,41 @@ var CameraSensorsConfigSchema = object({
20254
20485
  seen.add(key);
20255
20486
  });
20256
20487
  });
20257
- var RefFields = {
20488
+ /** Every attachment names its mode; an older orchestrator that does not is in addition. */
20489
+ var AttachmentFields = {
20258
20490
  addonId: string(),
20259
- stableId: string()
20491
+ stableId: string(),
20492
+ mode: CameraSensorModeSchema.default(DEFAULT_CAMERA_SENSOR_MODE)
20260
20493
  };
20261
20494
  var CameraSensorAttachmentSchema = discriminatedUnion("state", [
20262
20495
  object({
20263
- ...RefFields,
20496
+ ...AttachmentFields,
20264
20497
  state: literal("ready"),
20265
20498
  deviceId: number(),
20266
20499
  name: string(),
20267
20500
  caps: array(string()).readonly()
20268
20501
  }),
20269
20502
  object({
20270
- ...RefFields,
20503
+ ...AttachmentFields,
20271
20504
  state: literal("offline"),
20272
20505
  deviceId: number(),
20273
20506
  name: string(),
20274
20507
  reason: _enum(["offline", "disabled"])
20275
20508
  }),
20276
20509
  object({
20277
- ...RefFields,
20510
+ ...AttachmentFields,
20278
20511
  state: literal("missing"),
20279
20512
  reason: string()
20280
20513
  }),
20281
20514
  object({
20282
- ...RefFields,
20515
+ ...AttachmentFields,
20283
20516
  state: literal("unsupported"),
20284
20517
  deviceId: number(),
20285
20518
  name: string(),
20286
20519
  reason: string()
20287
20520
  }),
20288
20521
  object({
20289
- ...RefFields,
20522
+ ...AttachmentFields,
20290
20523
  state: literal("unreadable"),
20291
20524
  reason: string()
20292
20525
  })
@@ -20299,17 +20532,49 @@ var CameraSensorAttachmentSchema = discriminatedUnion("state", [
20299
20532
  * say.
20300
20533
  */
20301
20534
  var CameraSensorsNotForwardedSchema = _enum(["onboard-not-listed", "no-active-detection"]);
20535
+ /** Whether the camera's OWN motion counts on its own (D673 C2), from its READY sensors (C3). */
20536
+ var CameraOwnMotionSchema = _enum([
20537
+ "always",
20538
+ "when-confirmed",
20539
+ "never"
20540
+ ]);
20541
+ /** Confirm / Replace cannot suppress this camera's motion: its provider still emits it directly (D673 C13). */
20542
+ var CameraSensorsNotEnforcedSchema = _enum(["provider-not-split"]);
20543
+ /**
20544
+ * The camera's OWN onboard motion (D696): the raw input the bridge combines,
20545
+ * never the effective value. The camera's `motion` slice is the effective one,
20546
+ * so a view of the camera's own row reads this.
20547
+ * - `atMs`: when the bridge received the camera's last own edge.
20548
+ * - `detected`: evaluated WHEN THE STATUS IS ASKED — the last edge said `true`
20549
+ * AND it is younger than the window the bridge counts the camera's own motion
20550
+ * for (`motionCooldownMs`, floored at two sustain ticks). A camera that never
20551
+ * sends a clear (heartbeats only) therefore reads `false` once no push came
20552
+ * within the window; a status read is a snapshot, so a live view re-asks.
20553
+ * Absent = this orchestrator has not received the camera's own motion since it
20554
+ * started (unknown, never "quiet"), or an orchestrator older than D696.
20555
+ */
20556
+ var CameraRawLevelSchema = object({
20557
+ detected: boolean(),
20558
+ atMs: number()
20559
+ });
20302
20560
  var CameraSensorsStatusSchema = discriminatedUnion("state", [
20303
- object({ state: literal("not-configured") }),
20561
+ object({
20562
+ state: literal("not-configured"),
20563
+ cameraLevel: CameraRawLevelSchema.optional()
20564
+ }),
20304
20565
  object({
20305
20566
  state: literal("unreadable"),
20306
- reason: string()
20567
+ reason: string(),
20568
+ cameraLevel: CameraRawLevelSchema.optional()
20307
20569
  }),
20308
20570
  object({
20309
20571
  state: literal("configured"),
20310
- mode: CameraSensorsModeSchema,
20572
+ cameraLevel: CameraRawLevelSchema.optional(),
20311
20573
  sensors: array(CameraSensorAttachmentSchema).readonly(),
20312
- notForwarded: CameraSensorsNotForwardedSchema.optional()
20574
+ /** Absent = an orchestrator older than CS-2: it does not say (D315). */
20575
+ cameraMotion: CameraOwnMotionSchema.optional(),
20576
+ notForwarded: CameraSensorsNotForwardedSchema.optional(),
20577
+ notEnforced: CameraSensorsNotEnforcedSchema.optional()
20313
20578
  })
20314
20579
  ]);
20315
20580
  Object.freeze({
@@ -23500,8 +23765,10 @@ var RunnerCameraConfigSchema = object({
23500
23765
  * - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
23501
23766
  * analyzer providers) running on decoded frames in this runner.
23502
23767
  * - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
23503
- * analytics). The provider emits ProviderMotion
23504
- * events; the orchestrator forwards to `reportMotion`.
23768
+ * analytics). The provider emits its raw push as `ProviderMotion`
23769
+ * (D673); the orchestrator's camera-sensors bridge re-emits the camera's
23770
+ * effective motion as `MotionOnMotionChanged`, which is what reaches
23771
+ * `reportMotion`.
23505
23772
  */
23506
23773
  motionSources: MotionSourcesSchema.default(["analyzer"]),
23507
23774
  /**
@@ -23678,7 +23945,15 @@ var RunnerLocalLoadSchema = object({
23678
23945
  hasGpu: boolean(),
23679
23946
  inferenceBackend: string().optional(),
23680
23947
  cpuCores: number().optional()
23681
- })
23948
+ }),
23949
+ /**
23950
+ * Who writes a camera's `motion` runtime slice (D696). `'orchestrator'`: this
23951
+ * runner never writes it. ABSENT = a runner older than D696, which still
23952
+ * writes the slice from its phase machine; the orchestrator does not write
23953
+ * while any runner node is absent-or-unanswered, so one slice never has two
23954
+ * writers.
23955
+ */
23956
+ motionSliceWriter: literal("orchestrator").optional()
23682
23957
  });
23683
23958
  /**
23684
23959
  * Aggregate runtime metrics for the runner's whole local pool. Mirrors the
@@ -26702,138 +26977,6 @@ DeviceType.Camera, method(object({
26702
26977
  kind: "query",
26703
26978
  auth: "protected"
26704
26979
  });
26705
- object({
26706
- /** Ms epoch of the last press. null = never observed since this provider started. */
26707
- lastPressedAt: number().nullable(),
26708
- /** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
26709
- pressCountSinceStart: number()
26710
- });
26711
- object({
26712
- deviceId: number(),
26713
- timestamp: number()
26714
- });
26715
- /**
26716
- * The `doorbell-source` extension slot's editable value (D648): the camera's
26717
- * virtual-doorbell trigger devices, exactly what the wrapper's
26718
- * `doorbellSources` persists (as `{ deviceId }` records).
26719
- */
26720
- var DoorbellSourceSlotValueSchema = object({ deviceIds: array(number().int().positive()) });
26721
- DeviceType.Camera;
26722
- DeviceType.Button, DeviceType.Camera;
26723
- var ExtensionSlotIdSchema = _enum(["doorbell-source", "linked-devices"]);
26724
- DeviceType.Camera, DeviceType.Camera;
26725
- /** A slot's editable value, discriminated on `slot`. */
26726
- var ExtensionSlotValueSchema = discriminatedUnion("slot", [DoorbellSourceSlotValueSchema.extend({ slot: literal("doorbell-source") }), LinkedDevicesSlotValueSchema.extend({ slot: literal("linked-devices") })]);
26727
- DeviceType.Camera;
26728
- var ExtensionSourceAvailabilitySchema = discriminatedUnion("state", [object({ state: literal("ok") }), object({
26729
- state: literal("unreachable"),
26730
- reason: string()
26731
- })]);
26732
- /** One provider of slots — the D554 source-listing row. */
26733
- var ExtensionSourceSchema = object({
26734
- /** The routing prefix of every `slotRef` this provider serves. */
26735
- source: string(),
26736
- label: string(),
26737
- /** Stamped by the dispatcher from the registry (D557). */
26738
- addonId: string().optional(),
26739
- availability: ExtensionSourceAvailabilitySchema
26740
- });
26741
- /**
26742
- * How one picked source stands. `missing` — no such device (deleted, or an id
26743
- * that never existed); `foreign` — a device the slot's owner cannot read from
26744
- * (a source owned by another addon); `unavailable` — it exists but is not a
26745
- * valid source now (a container, which is never a pick). A source in any of
26746
- * these states is SHOWN, never silently dropped or re-pointed.
26747
- */
26748
- var ExtensionSourceHealthSchema = _enum([
26749
- "ok",
26750
- "missing",
26751
- "foreign",
26752
- "unavailable"
26753
- ]);
26754
- var ExtensionSlotSourceSchema = object({
26755
- deviceId: number().int(),
26756
- /** The device's name, or null when it could not be resolved (`missing`). */
26757
- name: string().nullable(),
26758
- health: ExtensionSourceHealthSchema,
26759
- detail: string().optional()
26760
- });
26761
- /**
26762
- * A DIFFERENT authority that gates whether the slot's sources do anything —
26763
- * reported read-only, named, never written through this contract (D62). The
26764
- * virtual doorbell's sources ring only while the wrapper is bound to the
26765
- * camera, and that binding belongs to `deviceManager.setWrapperActive`.
26766
- * `unknown` means the gate could not be read; it is not "inactive" (D315).
26767
- */
26768
- var ExtensionSlotActivationSchema = object({
26769
- state: _enum([
26770
- "active",
26771
- "inactive",
26772
- "unknown"
26773
- ]),
26774
- authority: string(),
26775
- detail: string().optional()
26776
- });
26777
- var ExtensionSlotRowSchema = discriminatedUnion("state", [object({
26778
- state: literal("ok"),
26779
- /** `<source>:<slotId>` — the routing key for `listCandidates` / `setSlot`. */
26780
- slotRef: string(),
26781
- slot: ExtensionSlotIdSchema,
26782
- /** Names the store written (D62), e.g. `virtual-doorbell:doorbellSources`. */
26783
- authority: string(),
26784
- activation: ExtensionSlotActivationSchema.nullable(),
26785
- value: ExtensionSlotValueSchema,
26786
- sources: array(ExtensionSlotSourceSchema),
26787
- /**
26788
- * Devices the owner links to the host ON ITS OWN, by structure, and that
26789
- * are therefore not in `value` (D655): a camera's device-tree children, and
26790
- * the child a picked container stands for (D356 — a container is never a
26791
- * pick, its children are). Read-only; the editor shows them and may offer
26792
- * per-device options on them (the linked-devices tracked-event opt-in).
26793
- * Absent when the owner links nothing beyond the picks, and from an owner
26794
- * older than D655.
26795
- */
26796
- impliedSources: array(ExtensionSlotSourceSchema).optional()
26797
- }), object({
26798
- state: literal("unreachable"),
26799
- addonId: string(),
26800
- reason: string()
26801
- })]);
26802
- var ExtensionCandidatesSchema = object({ candidates: array(object({
26803
- deviceId: number().int(),
26804
- name: string(),
26805
- type: string(),
26806
- location: string().nullable(),
26807
- /** The container a child belongs to — "Spotlight 2" alone does not say which. */
26808
- parentName: string().nullable(),
26809
- /** Pre-marked by the owner's suggestion rule. NEVER saved on its own (D356). */
26810
- suggested: boolean(),
26811
- /** Why it is suggested ("same location"), null when it is not. */
26812
- reason: string().nullable()
26813
- })) });
26814
- /**
26815
- * What a write did. `none` — applied in place. `host` / `parent` — the owner
26816
- * reloaded the host (or, for an accessory child, its parent) because the
26817
- * write changed what the host REGISTERS. A slot never adds a capability to its
26818
- * host — that is a composition (D663) — so today's owners answer `none`.
26819
- */
26820
- var ExtensionSetResultSchema = object({
26821
- applied: literal(true),
26822
- reload: _enum([
26823
- "none",
26824
- "host",
26825
- "parent"
26826
- ])
26827
- });
26828
- var ExtensionSlotRefInputSchema = object({
26829
- deviceId: number().int(),
26830
- slotRef: string().min(1)
26831
- });
26832
- var ExtensionSetSlotInputSchema = ExtensionSlotRefInputSchema.extend({ value: ExtensionSlotValueSchema });
26833
- method(object({ deviceId: number().int() }), array(ExtensionSourceSchema)), method(object({ deviceId: number().int() }), array(ExtensionSlotRowSchema)), method(ExtensionSlotRefInputSchema, ExtensionCandidatesSchema), method(ExtensionSetSlotInputSchema, ExtensionSetResultSchema, {
26834
- kind: "mutation",
26835
- auth: "admin"
26836
- });
26837
26980
  /**
26838
26981
  * Optional client-side hints sent at session creation to help the provider
26839
26982
  * pick the best native source. All fields optional — a viewer that knows
@@ -28651,6 +28794,17 @@ object({
28651
28794
  deviceId: number(),
28652
28795
  status: DeviceStatusSchema
28653
28796
  });
28797
+ object({
28798
+ /** Ms epoch of the last press. null = never observed since this provider started. */
28799
+ lastPressedAt: number().nullable(),
28800
+ /** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
28801
+ pressCountSinceStart: number()
28802
+ });
28803
+ object({
28804
+ deviceId: number(),
28805
+ timestamp: number()
28806
+ });
28807
+ DeviceType.Button, DeviceType.Camera;
28654
28808
  /**
28655
28809
  * Enum-state sensor — a string value picked from a finite option set.
28656
28810
  * Drives HA `sensor` entries with `state_class: enum` (HVAC action
@@ -30295,9 +30449,9 @@ object({
30295
30449
  /** Ms epoch of the last detected-true observation. Null if never detected. */
30296
30450
  lastDetectedAt: number().nullable(),
30297
30451
  /**
30298
- * `MOTION_CLOSE_AFTER_MS` while `detected: true` on a `Camera` device,
30299
- * `null` while false and on every `Sensor` device (D475) — see that
30300
- * constant's doc for the one-authority rule.
30452
+ * `MOTION_CLOSE_AFTER_MS` while `detected: true` on a `Camera` device (the
30453
+ * orchestrator writes it, D696), `null` while false and on every `Sensor`
30454
+ * device (D475) — see that constant's doc for the one-authority rule.
30301
30455
  *
30302
30456
  * ## Reading this field still arms nothing
30303
30457
  *
@@ -30315,38 +30469,41 @@ object({
30315
30469
  * `addon-export-alexa/src/motion-clear-hold.ts` and
30316
30470
  * `addon-export-hap`'s `RESET_DEBOUNCE_MS` both do.
30317
30471
  *
30318
- * ## Who writes it
30319
- *
30320
- * - **Cameras** — the runner's phase machine, `active → watching` on
30321
- * `cooldown_expired`, which then writes this slice with
30322
- * `detected: false` (`handlePhaseChanged` in
30323
- * `pipeline-runner/index.ts`). It produces the FALLING edge, which
30324
- * matters most for the sources that only ever push a rising one:
30325
- * Reolink emits `MotionOnMotionChanged { detected: true }` and never
30326
- * a false.
30327
- * - **Sensors** (Home Assistant binary sensors, Homematic) — the
30328
- * provider pushes the false itself, from the upstream system's own
30329
- * state change. No phase machine is involved.
30330
- *
30331
- * ### The phase machine is CANONICAL, not sole — and that is a defect
30332
- *
30333
- * An earlier revision of this docblock (mine, 2026-09-12) claimed the
30334
- * phase machine is the sole writer for a camera. It is not.
30335
- * `hikvision-camera.ts:3464` and `amcrest-camera.ts:445` both call
30336
- * `setCapSlice(motionCapability, …)` on their own rising edge, and
30337
- * Hikvision's comment says why: it read THIS docblock, agreed the
30338
- * runner is canonical, and wrote anyway to avoid per-tick churn. So
30339
- * two authorities can disagree about one slice, which this repo
30340
- * forbids, and the doc said otherwise — which is worse than saying
30341
- * nothing, because it reads as verification.
30342
- *
30343
- * This predates D475 and is not fixed there: the fix touches every
30344
- * camera provider. Recorded in D475's Consequences. Do not restore the
30345
- * "sole writer" wording without also removing the other writers.
30472
+ * ## Who writes it (D696)
30473
+ *
30474
+ * - **Cameras** — the orchestrator, and nothing else. It writes the camera's
30475
+ * EFFECTIVE motion (`addon-pipeline-orchestrator`
30476
+ * `camera-sensors/motion-slice.ts`), alongside the effective
30477
+ * `MotionOnMotionChanged` it emits or receives: the camera-sensors bridge
30478
+ * for a split camera, an unsplit emitter's direct event, the analyzer and
30479
+ * device activity, as the camera's `motionSources` counts them. A source
30480
+ * that never sends a clear falls one window after its last `true`.
30481
+ * `lastDetectedAt` moves only on an effective rise. No camera provider
30482
+ * writes this slice (not even a boot seed), and neither does the runner's
30483
+ * phase machine: its phase is "a session is attached" for every on-motion
30484
+ * session, not motion, and it now has its own `DetectionPhaseTransition`.
30485
+ * A provider's `isDetected` answers from the hub's slice.
30486
+ * - **Sensors** (Home Assistant binary sensors, Homematic, Matter, Alexa
30487
+ * imports) — the provider pushes both edges itself, from the upstream
30488
+ * system's own state change. That is the sensor's own fact.
30489
+ *
30490
+ * `scripts/check-onboard-motion-emitters.ts` refuses any other writer of a
30491
+ * `motion` slice; each sensor writer is a named exemption.
30492
+ *
30493
+ * This replaces the D475 §4 rule ("the phase machine is the sole writer").
30494
+ * That rule was never true: Hikvision and Amcrest wrote the slice raw beside
30495
+ * it, every provider seeded it at boot, and every session left it
30496
+ * `detected: true` after its detach.
30346
30497
  */
30347
30498
  autoClearAfterMs: number().nullable()
30348
30499
  });
30349
- object({
30500
+ /**
30501
+ * Payload of `motion.onMotionChanged` event + the corresponding bus
30502
+ * event `EventCategory.MotionOnMotionChanged`. Single source of truth
30503
+ * — both the cap event surface and the bus payload type alias to this
30504
+ * schema.
30505
+ */
30506
+ var MotionOnMotionChangedDataSchema = object({
30350
30507
  deviceId: number(),
30351
30508
  detected: boolean(),
30352
30509
  timestamp: number(),
@@ -37933,6 +38090,18 @@ Object.freeze({
37933
38090
  addonId: null,
37934
38091
  access: "view"
37935
38092
  },
38093
+ "databaseSnapshot.listDatabases": {
38094
+ capName: "database-snapshot",
38095
+ capScope: "system",
38096
+ addonId: null,
38097
+ access: "view"
38098
+ },
38099
+ "databaseSnapshot.writeSnapshot": {
38100
+ capName: "database-snapshot",
38101
+ capScope: "system",
38102
+ addonId: null,
38103
+ access: "create"
38104
+ },
37936
38105
  "dataStoreProvider.aggregate": {
37937
38106
  capName: "data-store-provider",
37938
38107
  capScope: "system",
@@ -46461,6 +46630,18 @@ var STATE_SUMMARY_VARS = [
46461
46630
  systemEventKinds: [...SUMMARISABLE],
46462
46631
  systemEventDeliveries: ["summary"]
46463
46632
  },
46633
+ {
46634
+ name: "summarySection",
46635
+ label: "Summary: this section",
46636
+ description: "The section a per-section summary row is about (D698); on a summary sent as one message, every section it reports, comma-separated.",
46637
+ example: "Batterie scariche",
46638
+ group: "system",
46639
+ families: ["rule"],
46640
+ fields: [...RULE_TEXT],
46641
+ kinds: ["system"],
46642
+ systemEventKinds: [...SUMMARISABLE],
46643
+ systemEventDeliveries: ["summary"]
46644
+ },
46464
46645
  ...STATE_SUMMARY_SECTION_VARS.map((v) => ({
46465
46646
  name: v.name,
46466
46647
  label: v.label,
@@ -46799,6 +46980,7 @@ TimelapseRuleInputSchema.extend({
46799
46980
  createdAt: number(),
46800
46981
  updatedAt: number()
46801
46982
  });
46983
+ MotionOnMotionChangedDataSchema.omit({ triggeredBy: true });
46802
46984
  object({
46803
46985
  /**
46804
46986
  * Fraction of the box's own size added on EACH side before cutting.
@@ -47002,7 +47184,7 @@ var AgentUIAddon = class extends BaseAddon {
47002
47184
  capability: adminUiCapability,
47003
47185
  provider: {
47004
47186
  getStaticDir: async () => ({ staticDir: path.resolve(__dirname) }),
47005
- getVersion: async () => ({ version: "1.2.159" })
47187
+ getVersion: async () => ({ version: "1.2.161" })
47006
47188
  }
47007
47189
  }];
47008
47190
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-agent-ui",
3
- "version": "1.2.159",
3
+ "version": "1.2.161",
4
4
  "description": "Agent UI — lightweight status dashboard served by every agent node",
5
5
  "keywords": [
6
6
  "camstack",