@camstack/addon-matter-broker 0.2.30 → 0.2.31

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 (3) hide show
  1. package/dist/addon.js +495 -59
  2. package/dist/addon.mjs +495 -59
  3. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -7540,6 +7540,66 @@ var OpsLogQueryInputSchema = object({
7540
7540
  /** Max rows returned, newest-first. */
7541
7541
  limit: number().int().min(1).max(1e3).optional()
7542
7542
  });
7543
+ var LabelDefinitionSchema = object({
7544
+ id: string$2(),
7545
+ name: string$2(),
7546
+ category: string$2().optional(),
7547
+ description: string$2().optional(),
7548
+ icon: string$2().optional()
7549
+ });
7550
+ /** Detection-macro targets a catalog `classMap` may resolve to. */
7551
+ var CLASS_MAP_MACRO_TARGETS = [
7552
+ "person",
7553
+ "vehicle",
7554
+ "animal",
7555
+ "package"
7556
+ ];
7557
+ /**
7558
+ * Le macro classi di PRIMO LIVELLO: quelle che un object detector emette e che
7559
+ * un operatore può selezionare.
7560
+ *
7561
+ * Sono le tre offerte dallo step `object-detection`
7562
+ * (`addon-pipeline/src/detection-pipeline/registry/step-definitions.ts`,
7563
+ * `enabledMacroClasses`). `package` sta in {@link CLASS_MAP_MACRO_TARGETS} e in
7564
+ * `MACRO_LABELS` — è una macro vera — ma NON qui: appartiene allo step
7565
+ * `package-detection`, la cui abilitazione è guidata dalle zone, e offrire la
7566
+ * stessa parola due volte ha già fatto accendere a un operatore il proxy COCO
7567
+ * (suitcase/backpack/handbag) lasciando spento il detector dedicato.
7568
+ *
7569
+ * UNA lista. Prima di oggi le stesse tre erano scritte a mano nell'offerta
7570
+ * dello step e una seconda volta come union `FirstLevelMacro`
7571
+ * (`types/detection.ts`); una terza copia per il trigger di registrazione
7572
+ * (`RecordingTriggers.objectClasses`) avrebbe reso invisibile la divergenza
7573
+ * successiva.
7574
+ */
7575
+ var FIRST_LEVEL_MACRO_CLASSES = [
7576
+ "person",
7577
+ "vehicle",
7578
+ "animal"
7579
+ ];
7580
+ /**
7581
+ * Wire schema for a per-model CATALOG classMap override
7582
+ * (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
7583
+ * restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
7584
+ * detection pipeline executor actually routes.
7585
+ *
7586
+ * This is deliberately a DIFFERENT, narrower shape than the general-purpose
7587
+ * `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
7588
+ * and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
7589
+ * enum) — the two used to share the name `ClassMapDefinition`/
7590
+ * `ClassMapDefinitionSchema`, which made the schema-type-twin guard
7591
+ * (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
7592
+ * are not: it is two different concepts colliding on a name. Keep this type
7593
+ * under its own name rather than reusing `ClassMapDefinition` — reusing it
7594
+ * would either narrow every `ClassMapDefinition` consumer to the four
7595
+ * detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
7596
+ * schema exists for (see the "rejects a classMap whose target is not a
7597
+ * detection macro" test in `model-catalog-schema.test.ts`).
7598
+ */
7599
+ var DetectionCatalogClassMapSchema = object({
7600
+ mapping: record(string$2(), _enum(CLASS_MAP_MACRO_TARGETS)),
7601
+ preserveOriginal: boolean()
7602
+ });
7543
7603
  /**
7544
7604
  * Numeric day-of-week: 0 = Sunday … 6 = Saturday (matches `Date.getDay`).
7545
7605
  * Named `RecordingWeekday` to avoid collision with the string-union
@@ -7562,10 +7622,55 @@ var RecordingStorageModeSchema = _enum([
7562
7622
  "events",
7563
7623
  "continuous"
7564
7624
  ]);
7625
+ /**
7626
+ * Le macro classi che possono aprire una finestra di registrazione — le stesse
7627
+ * tre offerte dallo step `object-detection`, da UNA lista
7628
+ * ({@link FIRST_LEVEL_MACRO_CLASSES}).
7629
+ */
7630
+ var RecordingObjectTriggerClassSchema = _enum(FIRST_LEVEL_MACRO_CLASSES);
7631
+ /**
7632
+ * True quando `values` non ripete un elemento.
7633
+ *
7634
+ * Un duplicato non è innocuo: ogni voce di `objectClasses` / `sensorDeviceIds`
7635
+ * diventa una SORGENTE in `bandTriggerSources`, e la stessa sorgente due volte
7636
+ * conterebbe due volte le sue finestre in `segmentMissedByMs`.
7637
+ */
7638
+ var noDuplicates = (values) => new Set(values).size === values.length;
7565
7639
  /** Which detectors trigger an `events`-mode band. */
7566
7640
  var RecordingTriggersSchema = object({
7567
7641
  motion: boolean().optional(),
7568
- audioThresholdDbfs: number().optional()
7642
+ audioThresholdDbfs: number().optional(),
7643
+ /**
7644
+ * Le macro classi la cui detection apre una finestra. ASSENTE = la sorgente
7645
+ * non è ascoltata; un array VUOTO è rifiutato, perché "banda events, trigger
7646
+ * object acceso, nessuna classe" è la stessa forma "abilitata e non registra
7647
+ * nulla, per sempre" contro cui è scritto `eventsBandCanEverDemand`.
7648
+ *
7649
+ * Il segnale letto è GIÀ FILTRATO: solo detection `source: 'pipeline'`, cioè
7650
+ * quelle che hanno attraversato `enabledMacroClasses`, i
7651
+ * `minConfidence<Macro>` e il full-frame guard. L'AI a bordo camera
7652
+ * (`source: 'onboard'`) non attraversa nessuno di quei gate e NON apre
7653
+ * finestre — vedi `recorder/object-trigger.ts`.
7654
+ */
7655
+ objectClasses: array(RecordingObjectTriggerClassSchema).min(1).refine(noDuplicates, { message: "objectClasses must not repeat a class" }).optional(),
7656
+ /**
7657
+ * I device LINKED il cui FRONTE ALTO apre una finestra. Assente = la sorgente
7658
+ * non è ascoltata; un array vuoto è rifiutato per la stessa ragione di
7659
+ * `objectClasses`.
7660
+ *
7661
+ * Sono id di device SORGENTE, non camere: la banda li nomina, quindi il
7662
+ * percorso caldo (`DeviceStateChanged`, a ritmo di bus su tutta la flotta)
7663
+ * non fa RPC. L'OFFERTA da cui l'operatore li sceglie è un'altra domanda, e
7664
+ * si risolve con `deviceManager.getLinkedDevices` + `getBindingsBatch` per
7665
+ * device (D12) — mai un elenco globale di cap.
7666
+ *
7667
+ * Cosa vuol dire "alto" dipende dal TIPO di device e non è deciso qui:
7668
+ * `SOURCE_CAP_ACTIVE_FIELD` (`catalogs/sensor-active-state.ts`) è LA tabella,
7669
+ * la stessa che il virtual-doorbell usa dal 2026-08-05. Ed è il FRONTE, non
7670
+ * il livello: un contatto trovato già aperto al riavvio del runner non fa
7671
+ * registrare.
7672
+ */
7673
+ sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
7569
7674
  });
7570
7675
  /**
7571
7676
  * Mode of a single recording band — the recorder per-band vocabulary.
@@ -8017,41 +8122,6 @@ var DecoderSessionConfigSchema = object({
8017
8122
  */
8018
8123
  debug: boolean().optional()
8019
8124
  });
8020
- var LabelDefinitionSchema = object({
8021
- id: string$2(),
8022
- name: string$2(),
8023
- category: string$2().optional(),
8024
- description: string$2().optional(),
8025
- icon: string$2().optional()
8026
- });
8027
- /**
8028
- * Wire schema for a per-model CATALOG classMap override
8029
- * (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
8030
- * restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
8031
- * detection pipeline executor actually routes.
8032
- *
8033
- * This is deliberately a DIFFERENT, narrower shape than the general-purpose
8034
- * `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
8035
- * and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
8036
- * enum) — the two used to share the name `ClassMapDefinition`/
8037
- * `ClassMapDefinitionSchema`, which made the schema-type-twin guard
8038
- * (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
8039
- * are not: it is two different concepts colliding on a name. Keep this type
8040
- * under its own name rather than reusing `ClassMapDefinition` — reusing it
8041
- * would either narrow every `ClassMapDefinition` consumer to the four
8042
- * detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
8043
- * schema exists for (see the "rejects a classMap whose target is not a
8044
- * detection macro" test in `model-catalog-schema.test.ts`).
8045
- */
8046
- var DetectionCatalogClassMapSchema = object({
8047
- mapping: record(string$2(), _enum([
8048
- "person",
8049
- "vehicle",
8050
- "animal",
8051
- "package"
8052
- ])),
8053
- preserveOriginal: boolean()
8054
- });
8055
8125
  var MODEL_FORMATS = [
8056
8126
  "onnx",
8057
8127
  "coreml",
@@ -21233,7 +21303,7 @@ var lifecycleJobSchema = object({
21233
21303
  * `useAddonsOnAddonLogs`, etc. flow through the same codegen pipeline
21234
21304
  * as every other cap.
21235
21305
  */
21236
- var LogLevelSchema$1 = _enum([
21306
+ var LogLevelSchema$2 = _enum([
21237
21307
  "debug",
21238
21308
  "info",
21239
21309
  "warn",
@@ -21440,7 +21510,7 @@ var CustomActionInputSchema = object({
21440
21510
  method(_void(), array(AddonListItemSchema).readonly()), method(object({
21441
21511
  addonId: string$2(),
21442
21512
  limit: number().min(1).max(500).default(100),
21443
- level: LogLevelSchema$1.optional()
21513
+ level: LogLevelSchema$2.optional()
21444
21514
  }), array(LogQueryEntrySchema)), method(_void(), array(InstalledPackageSchema).readonly()), method(object({
21445
21515
  packageName: string$2(),
21446
21516
  version: string$2().optional()
@@ -21538,7 +21608,7 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
21538
21608
  auth: "admin"
21539
21609
  }), method(object({
21540
21610
  addonId: string$2(),
21541
- level: LogLevelSchema$1.optional()
21611
+ level: LogLevelSchema$2.optional()
21542
21612
  }), LogStreamEntrySchema, { kind: "subscription" });
21543
21613
  /**
21544
21614
  * Multi-metric air-quality slice. Covers CO₂, total VOCs, particulate
@@ -23279,6 +23349,35 @@ var FaceFilterEnum = _enum([
23279
23349
  "identified",
23280
23350
  "all"
23281
23351
  ]);
23352
+ /**
23353
+ * What a `listRecentFaces` page is ORDERED BY.
23354
+ *
23355
+ * - `timestamp` — when the face was seen. The historical (and default) order.
23356
+ * - `suggestionConfidence` — {@link FaceInfo.suggestedMatchScore}, the peak
23357
+ * cosine of the face's SUGGESTED identity. This is the "review by certainty"
23358
+ * order: it puts the suggestions an operator can confirm with one tap at the
23359
+ * top, and it is the reason this enum exists — a client that ranked a capped
23360
+ * page client-side was ranking the newest N, never the most certain N.
23361
+ *
23362
+ * A row with NO suggestion (`suggestedMatchScore` absent — a legacy row, an
23363
+ * auto-assigned face, or a face below the suggestion band) has no certainty to
23364
+ * compare. Under `suggestionConfidence` it sorts **LAST, in BOTH directions**
23365
+ * — flipping the direction reorders the rows that HAVE a certainty and never
23366
+ * floods the page with the ones that do not. `addon-post-analysis`'s
23367
+ * `store/face-sort.ts` is the single implementation, tiebreaks newest-first
23368
+ * then by faceId, and is what makes this a total order instead of the
23369
+ * backend's NULL-collation accident.
23370
+ */
23371
+ var FaceSortFieldEnum = _enum(["timestamp", "suggestionConfidence"]);
23372
+ var FaceSortDirectionEnum = _enum(["asc", "desc"]);
23373
+ /** One suggested group of look-alike UNASSIGNED faces. Ids only — an embedding
23374
+ * never leaves the server. */
23375
+ var FaceClusterSchema = object({
23376
+ faceIds: array(string$2()).readonly(),
23377
+ representativeFaceId: string$2(),
23378
+ size: number().int(),
23379
+ cohesion: number()
23380
+ });
23282
23381
  var MediaFileLiteSchema$1 = object({
23283
23382
  key: string$2(),
23284
23383
  kind: string$2(),
@@ -23325,24 +23424,72 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
23325
23424
  kind: "mutation",
23326
23425
  auth: "admin"
23327
23426
  }), method(object({
23328
- /** Restrict to one camera. Absent keeps the cluster-wide gallery view. */
23427
+ /**
23428
+ * Restrict to ONE camera. Absent keeps the cluster-wide gallery view.
23429
+ *
23430
+ * The legacy single-camera form, kept verbatim for every caller that
23431
+ * already sends it. A caller that wants a SET sends {@link deviceIds}
23432
+ * instead — never both: `deviceIds` is the authority whenever it is
23433
+ * present, and this field is then ignored rather than unioned, so
23434
+ * there is exactly one answer to "which cameras did I ask for".
23435
+ */
23329
23436
  deviceId: number().int().optional(),
23437
+ /**
23438
+ * Restrict to a SET of cameras — the review UI's camera filter, which
23439
+ * until now had to fetch the cluster-wide page and drop rows in the
23440
+ * client (so the `limit` it asked for was spent on cameras it was
23441
+ * about to discard).
23442
+ *
23443
+ * An **empty array reads NOTHING** — `[]` is an empty page, never
23444
+ * "every camera". A request for no devices is a request, not an
23445
+ * omission; same contract as `deviceManager.listFleet` and
23446
+ * `pipelineAnalytics.listRecentTracks`.
23447
+ *
23448
+ * Absent (`undefined`) is the omission, and keeps the cluster-wide view.
23449
+ */
23450
+ deviceIds: array(number().int()).optional(),
23330
23451
  limit: number().int().positive().optional(),
23331
23452
  filter: FaceFilterEnum.optional(),
23332
23453
  /**
23333
- * Inline the base64 crop on every row. Default `true` — the existing
23334
- * behaviour, kept so no caller breaks.
23454
+ * Window lower bound on {@link FaceInfo.timestamp}, INCLUSIVE.
23455
+ * Absent means no lower bound.
23456
+ */
23457
+ since: number().int().optional(),
23458
+ /**
23459
+ * Window upper bound on {@link FaceInfo.timestamp}, INCLUSIVE.
23460
+ * Absent means no upper bound.
23461
+ */
23462
+ until: number().int().optional(),
23463
+ /**
23464
+ * Order the page by time or by suggestion certainty. Default
23465
+ * `'timestamp'` — the historical order, unchanged for every caller
23466
+ * that does not ask.
23335
23467
  *
23336
- * Set `false` once the caller renders {@link FaceInfo.cropUrl}: that
23337
- * drops ~2.87 MiB per 500-row page to a few KiB of metadata and lets
23338
- * the browser cache the images.
23468
+ * See {@link FaceSortFieldEnum} for what a row with no suggestion
23469
+ * does under `'suggestionConfidence'`.
23339
23470
  *
23340
- * **This is an INPUT field, so it does not reach the addon until the
23341
- * next train.** The hub router validates cap inputs against its own
23342
- * compiled Zod, which strips a key it does not know verified today
23343
- * on the OUTPUT side, where an additive field DOES arrive immediately
23344
- * (`Track.hasFace`). Until the train ships, sending `false` is
23345
- * harmless and simply keeps the crops inline.
23471
+ * Cost note: `'timestamp'` is served by the `(deviceId, timestamp)`
23472
+ * index and stops reading as soon as `limit` rows have PASSED the
23473
+ * filter. `'suggestionConfidence'` cannot stop earlythe most
23474
+ * certain row may be the oldest so it walks the window. Narrow it
23475
+ * with {@link since} / {@link until}.
23476
+ */
23477
+ sortBy: FaceSortFieldEnum.optional(),
23478
+ /** Sort direction for {@link sortBy}. Default `'desc'`. */
23479
+ sortDirection: FaceSortDirectionEnum.optional(),
23480
+ /**
23481
+ * Inline the base64 crop on every row.
23482
+ *
23483
+ * Default `false` since the 2026-08-25 inversion — see
23484
+ * `include-crops-default.ts`, which is the ONE place that resolves
23485
+ * this for every gallery, and which records why the inline shape had
23486
+ * to become the one you ASK for (60 457 ms → UDS timeout at 500 rows).
23487
+ * The doc here used to still say `true`; it was wrong, and a leftover
23488
+ * that describes the old design reads as permission to rely on it.
23489
+ *
23490
+ * Nothing loses its image: the row carries {@link FaceInfo.cropUrl},
23491
+ * which the browser fetches off the `event-media` plane in parallel,
23492
+ * cached and ETagged.
23346
23493
  */
23347
23494
  includeCrops: boolean().optional()
23348
23495
  }).optional(), array(FaceInfoSchema).readonly()), method(object({
@@ -23378,13 +23525,39 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
23378
23525
  }), method(object({
23379
23526
  threshold: number().min(0).max(1).optional(),
23380
23527
  minClusterSize: number().int().min(2).optional(),
23381
- limit: number().int().positive().optional()
23382
- }).optional(), array(object({
23383
- faceIds: array(string$2()).readonly(),
23384
- representativeFaceId: string$2(),
23385
- size: number().int(),
23386
- cohesion: number()
23387
- })).readonly());
23528
+ /**
23529
+ * Cap on the number of CLUSTERS returned. Renamed from `limit`,
23530
+ * which read as though it bounded the work — it never did.
23531
+ *
23532
+ * Wins over {@link limit} when both are sent.
23533
+ */
23534
+ maxClusters: number().int().positive().optional(),
23535
+ /**
23536
+ * @deprecated Ambiguous name for {@link maxClusters} — it cuts the
23537
+ * RESULT, not the scan. Kept so existing callers keep working; send
23538
+ * `maxClusters` (and, if you care about cost, {@link maxFacesScanned}).
23539
+ */
23540
+ limit: number().int().positive().optional(),
23541
+ /**
23542
+ * Cap on the number of unassigned faces READ AND CLUSTERED — the
23543
+ * POOL, not the result.
23544
+ *
23545
+ * This is the knob {@link maxClusters} was mistaken for. Clustering
23546
+ * used to read every unassigned face on the hub no matter what the
23547
+ * caller asked for, because the only bound cut the finished clusters
23548
+ * afterwards; a UI showing a window of 100 paid for a scan of the
23549
+ * whole corpus, on an addon whose disk is under contention.
23550
+ *
23551
+ * The pool is the NEWEST matching faces first — the same order the
23552
+ * gallery shows — so a bound here shortens the horizon, it does not
23553
+ * sample it randomly.
23554
+ *
23555
+ * Default: 1 000 (`FACE_SWEEP_PAGE`, exactly one store page). Chosen
23556
+ * so the live corpus — 372 face rows — is unaffected while the
23557
+ * unbounded scan can never come back as the table grows.
23558
+ */
23559
+ maxFacesScanned: number().int().positive().optional()
23560
+ }).optional(), array(FaceClusterSchema).readonly());
23388
23561
  /**
23389
23562
  * Fan-control cap. Models HA `fan.*` entity-specific surfaces:
23390
23563
  * speed percentage, preset modes, ceiling-fan direction, and
@@ -28326,6 +28499,211 @@ var SetSiteLocationInputSchema = object({
28326
28499
  latitude: number().min(-90).max(90),
28327
28500
  longitude: number().min(-180).max(180)
28328
28501
  }).nullable();
28502
+ /**
28503
+ * One `(procedure, user-agent, ip, principal)` tuple of the HTTP request
28504
+ * census. `principal` is the DERIVED identity (`apocaliss92 (admin)`,
28505
+ * `scoped:1a2b3c4d (scoped-token)`, `anonymous`) that the tRPC error log
28506
+ * already prints - never a token, never an `Authorization` header.
28507
+ */
28508
+ var RequestCensusGroupSchema = object({
28509
+ procedure: string$2(),
28510
+ userAgent: string$2(),
28511
+ ip: string$2(),
28512
+ principal: string$2(),
28513
+ calls: number(),
28514
+ perMin: number()
28515
+ });
28516
+ /**
28517
+ * A procedure's TOTAL over the window, across every caller.
28518
+ *
28519
+ * This block, not the group list, is what answers "did these calls arrive over
28520
+ * HTTP at all". A total far BELOW what a store-side census counted over the
28521
+ * same window excludes the HTTP plane, which is a result, not a failure.
28522
+ */
28523
+ var RequestCensusProcedureSchema = object({
28524
+ procedure: string$2(),
28525
+ calls: number(),
28526
+ perMin: number()
28527
+ });
28528
+ /**
28529
+ * The census as an operator sees it.
28530
+ *
28531
+ * `persisted` is the honest answer to "will this survive the restart I am
28532
+ * about to do": the arm deadline is written to `system-settings` so a window
28533
+ * armed now can measure the NEXT boot, and a write that failed must not look
28534
+ * like one that succeeded.
28535
+ */
28536
+ var RequestCensusStatusSchema = object({
28537
+ armed: boolean(),
28538
+ /** How long the current - or just-closed - window collected, in ms. */
28539
+ elapsedMs: number(),
28540
+ /** The window actually armed, after the server clamped the request. */
28541
+ windowMs: number(),
28542
+ /** Epoch ms the window closes at. 0 when disarmed. */
28543
+ armedUntilMs: number(),
28544
+ httpRequests: number(),
28545
+ batchedRequests: number(),
28546
+ /**
28547
+ * Procedure invocations. Higher than `httpRequests` whenever tRPC batching
28548
+ * is in play (`?batch=1` carries several procedures in one request); this is
28549
+ * the number comparable with a store-side call count.
28550
+ */
28551
+ procedureCalls: number(),
28552
+ /**
28553
+ * tRPC WebSocket connections opened during the window. NOT calls - the WS
28554
+ * transport resolves one context per connection - but the number that says
28555
+ * whether a plane this census cannot see was busy while HTTP was quiet.
28556
+ */
28557
+ wsConnections: number(),
28558
+ distinctGroups: number(),
28559
+ /** Calls counted in the totals whose group attribution was shed at the
28560
+ * cardinality bound. */
28561
+ unattributedCalls: number(),
28562
+ procedures: array(RequestCensusProcedureSchema).readonly(),
28563
+ groups: array(RequestCensusGroupSchema).readonly()
28564
+ }).extend({ persisted: boolean() });
28565
+ /** Severity vocabulary. Mirrors `LogLevel` in `interfaces/logging.ts`. */
28566
+ var LogLevelSchema$1 = _enum([
28567
+ "debug",
28568
+ "info",
28569
+ "warn",
28570
+ "error"
28571
+ ]);
28572
+ /**
28573
+ * The diagnostics that can be ARMED for a window. Exactly one today.
28574
+ *
28575
+ * A diagnostic is anything whose cost is only worth paying while a question is
28576
+ * open. It never persists as a boolean: see {@link DiagnosticWindowSchema}.
28577
+ */
28578
+ var DiagnosticIdSchema = _enum(["request-census"]);
28579
+ /**
28580
+ * The layers of the level hierarchy, general → specific. The most specific
28581
+ * layer that carries an explicit value wins.
28582
+ *
28583
+ * `component` is DECLARED and not yet resolvable: the per-component channels
28584
+ * are a later slice of the same plan, and a `levelSource` enum that has to
28585
+ * grow later would force every consumer of this document to change with it.
28586
+ * Nothing returns `component` today.
28587
+ */
28588
+ var LoggingScopeKindSchema = _enum([
28589
+ "cluster",
28590
+ "node",
28591
+ "component"
28592
+ ]);
28593
+ /** Where an effective level came from. `default` = nothing is set anywhere. */
28594
+ var LoggingLevelSourceSchema = _enum([
28595
+ "default",
28596
+ "cluster",
28597
+ "node",
28598
+ "component"
28599
+ ]);
28600
+ /**
28601
+ * One layer of the hierarchy as it actually STANDS.
28602
+ *
28603
+ * `level: null` is the whole reason this array is returned: it is the
28604
+ * difference between "this node is at `info` because I decided it" and
28605
+ * "...because it inherits". An operator who clears an override believing they
28606
+ * are clearing an inherited value has been handed the same defect as the two
28607
+ * contradicting knobs this document exists to remove, moved one floor up.
28608
+ */
28609
+ var LoggingLevelLayerSchema = object({
28610
+ scope: LoggingScopeKindSchema,
28611
+ /** The node this layer speaks for; `null` on the cluster layer. */
28612
+ nodeId: string$2().nullable(),
28613
+ /** Explicitly set here, or `null` when this layer inherits. */
28614
+ level: LogLevelSchema$1.nullable()
28615
+ });
28616
+ /** What a line is judged against, and WHICH layer decided it. */
28617
+ var LoggingEffectiveSchema = object({
28618
+ level: LogLevelSchema$1,
28619
+ levelSource: LoggingLevelSourceSchema
28620
+ });
28621
+ /** Every layer, general → specific. Never collapsed into the effective value. */
28622
+ var LoggingExplicitSchema = object({ layers: array(LoggingLevelLayerSchema).readonly() });
28623
+ /**
28624
+ * An armed diagnostic, with its DEADLINE.
28625
+ *
28626
+ * The shape of ADR-0244: what is stored is a deadline and never a flag, so a
28627
+ * diagnostic somebody forgot expires by itself, and a boot-window measurement
28628
+ * survives the restart it exists to measure. `remainingMs` is 0 whenever
28629
+ * `armed` is false — a window is never reported as slightly expired.
28630
+ */
28631
+ var DiagnosticWindowSchema = object({
28632
+ id: DiagnosticIdSchema,
28633
+ armed: boolean(),
28634
+ /** Epoch ms the window closes at. 0 when disarmed. */
28635
+ armedUntilMs: number(),
28636
+ /** Ms left before it expires on its own. 0 when disarmed. */
28637
+ remainingMs: number(),
28638
+ /** Whether the stored deadline is the one the live diagnostic is running —
28639
+ * i.e. whether this window would survive a restart. */
28640
+ persisted: boolean()
28641
+ });
28642
+ /**
28643
+ * `armMs: 0` DISARMS. Any positive value arms for that long, clamped by the
28644
+ * server — there is no maximum here on purpose: a bound repeated in a schema
28645
+ * is a second knob that disagrees with the first the day one of them moves.
28646
+ */
28647
+ var DiagnosticWindowPatchSchema = object({
28648
+ id: DiagnosticIdSchema,
28649
+ armMs: number().int().min(0),
28650
+ /** Cadence of the diagnostic's aggregated report line. Clamped by the server. */
28651
+ reportEveryMs: number().int().positive().optional()
28652
+ });
28653
+ /**
28654
+ * A PATCH, and patches MERGE.
28655
+ *
28656
+ * A field absent from the patch is left exactly as it was — arming a
28657
+ * diagnostic never resets a level, and setting a level never disarms a window.
28658
+ * The provider must not reconstruct the document as `{ ...snapshot, ...patch }`:
28659
+ * `setAll` already merges, and rebuilding the object is how an absent field
28660
+ * turns into an erased one.
28661
+ */
28662
+ var LoggingSettingsPatchSchema = object({
28663
+ /**
28664
+ * Absent leaves the level untouched. `null` CLEARS the explicit value at the
28665
+ * addressed scope so it inherits again. A value sets it.
28666
+ */
28667
+ level: LogLevelSchema$1.nullable().optional(),
28668
+ /**
28669
+ * Only the diagnostics NAMED here change. An armed window that is not listed
28670
+ * keeps running — a patch is never a full replacement.
28671
+ */
28672
+ diagnostics: array(DiagnosticWindowPatchSchema).readonly().optional()
28673
+ });
28674
+ /**
28675
+ * Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
28676
+ *
28677
+ * Deliberately NOT called `nodeId`: that key is reserved on every cap method
28678
+ * input — the generated router strips it and uses it to resolve the PROVIDER
28679
+ * on that node (`resolveProvider(cap, nodeId, …)`). A document about
28680
+ * `agent-1` addressed as `nodeId` would be forwarded to agent-1 and answered
28681
+ * by an agent that holds no cluster document at all. The hub is the single
28682
+ * authority over the whole hierarchy and answers for every layer, so the
28683
+ * layer selector needs a name the transport does not already own.
28684
+ */
28685
+ var GetLoggingSettingsInputSchema = object({ scopeNodeId: string$2().optional() });
28686
+ var SetLoggingSettingsInputSchema = object({
28687
+ scopeNodeId: string$2().optional(),
28688
+ patch: LoggingSettingsPatchSchema
28689
+ });
28690
+ /**
28691
+ * The whole document, as read and as returned after every write.
28692
+ *
28693
+ * `persisted: false` means the settings store could not be read or written.
28694
+ * The in-memory mirror still governs behaviour and is unchanged by the
28695
+ * failure — a read that fails neither switches a level nor disarms a window
28696
+ * (D49) — but the operator is told that what they are looking at would not
28697
+ * survive a restart.
28698
+ */
28699
+ var LoggingSettingsStateSchema = object({
28700
+ /** The layer this document was read at. `null` = the cluster layer. */
28701
+ scopeNodeId: string$2().nullable(),
28702
+ effective: LoggingEffectiveSchema,
28703
+ explicit: LoggingExplicitSchema,
28704
+ activeWindows: array(DiagnosticWindowSchema).readonly(),
28705
+ persisted: boolean()
28706
+ });
28329
28707
  method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), method(_void(), FeatureManifestSchema), method(_void(), array(NetworkAddressSchema).readonly()), method(_void(), unknown().nullable(), { auth: "admin" }), method(record(string$2(), unknown()), _null(), {
28330
28708
  kind: "mutation",
28331
28709
  auth: "admin"
@@ -28338,6 +28716,9 @@ method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), met
28338
28716
  }), method(_void(), SiteLocationStatusSchema, {
28339
28717
  kind: "mutation",
28340
28718
  auth: "admin"
28719
+ }), method(_void(), RequestCensusStatusSchema, { auth: "admin" }), method(GetLoggingSettingsInputSchema, LoggingSettingsStateSchema, { auth: "admin" }), method(SetLoggingSettingsInputSchema, LoggingSettingsStateSchema, {
28720
+ kind: "mutation",
28721
+ auth: "admin"
28341
28722
  });
28342
28723
  /**
28343
28724
  * Tamper / case-open detection sensor. Drives Home Assistant
@@ -35577,6 +35958,18 @@ Object.freeze({
35577
35958
  addonId: null,
35578
35959
  access: "create"
35579
35960
  },
35961
+ "system.getLoggingSettings": {
35962
+ capName: "system",
35963
+ capScope: "system",
35964
+ addonId: null,
35965
+ access: "view"
35966
+ },
35967
+ "system.getRequestCensus": {
35968
+ capName: "system",
35969
+ capScope: "system",
35970
+ addonId: null,
35971
+ access: "view"
35972
+ },
35580
35973
  "system.getRetentionConfig": {
35581
35974
  capName: "system",
35582
35975
  capScope: "system",
@@ -35607,6 +36000,12 @@ Object.freeze({
35607
36000
  addonId: null,
35608
36001
  access: "view"
35609
36002
  },
36003
+ "system.setLoggingSettings": {
36004
+ capName: "system",
36005
+ capScope: "system",
36006
+ addonId: null,
36007
+ access: "create"
36008
+ },
35610
36009
  "system.setRetentionConfig": {
35611
36010
  capName: "system",
35612
36011
  capScope: "system",
@@ -36762,6 +37161,10 @@ Object.freeze({
36762
37161
  name: "deviceId",
36763
37162
  form: "single",
36764
37163
  optional: true
37164
+ }, {
37165
+ name: "deviceIds",
37166
+ form: "array",
37167
+ optional: true
36765
37168
  }],
36766
37169
  "fanControl.setDirection": [{
36767
37170
  name: "deviceId",
@@ -38372,7 +38775,38 @@ object({
38372
38775
  * fallback — i.e. the pre-2026-08-13 miss profile. Set it there only to
38373
38776
  * reproduce that.
38374
38777
  */
38375
- tileBudgetMb: number().int().min(0).max(1024)
38778
+ tileBudgetMb: number().int().min(0).max(1024),
38779
+ /**
38780
+ * RAM ceiling per decode worker, in MB, for the SCENE TILES — one
38781
+ * JPEG-encoded copy of the WHOLE native frame, cut in the same instant as the
38782
+ * subject tiles, on frames that detected something.
38783
+ *
38784
+ * It exists because a subject tile cannot answer a FULL-FRAME request:
38785
+ * containment is strict by design, so the native `keyFrame`, the detail
38786
+ * plane's `frameJpeg` rung and the display-crop fallback had no rung at all
38787
+ * below the hold. Measured on the live cluster: 23.3% of key-frame captures
38788
+ * missed, 95.7% of them with `worker-lease-gone` — the raster released one
38789
+ * frame-time after delivery, with the request only p50 367 ms behind it.
38790
+ *
38791
+ * Sizing, and why this is a budget and not a duration: a scene tile is
38792
+ * ~1.5-2.5 MB at 4K (against ~23.75 MB for the raster it was cut from and
38793
+ * ~60-120 KB for a subject tile), and it is cut ~0.4 times a second per busy
38794
+ * camera — only detection-bearing frames get one. 48 MB is therefore ~20-30
38795
+ * frames, i.e. the store's 30 s TTL binds at the steady state and the budget
38796
+ * binds only through a detection burst, where it still covers well past the
38797
+ * measured p90 ask age of 4.3 s. Holding the RASTERS for the same window
38798
+ * would be ~498 MB per camera and ~6 GB at peak concurrency — the OOM this
38799
+ * whole shape exists to avoid.
38800
+ *
38801
+ * A SEPARATE ceiling from `tileBudgetMb` on purpose: a scene tile is ~20× a
38802
+ * subject tile, so one shared budget would let a busy camera's key frames
38803
+ * evict the face/plate tiles the recognisers depend on. Two budgets make that
38804
+ * impossible rather than unlikely. `0` DISABLES scene tiles and restores the
38805
+ * pre-existing behaviour, where a late full-frame request had nothing but the
38806
+ * ≤640 RAM raster — which the `keyFrame` gate rejects, so in practice it had
38807
+ * nothing.
38808
+ */
38809
+ sceneBudgetMb: number().int().min(0).max(1024)
38376
38810
  });
38377
38811
  /**
38378
38812
  * The values in force when the operator has set nothing.
@@ -38388,12 +38822,14 @@ var DEFAULT_NATIVE_LEASE_SETTINGS = {
38388
38822
  budgetMb: 1024,
38389
38823
  activityMs: 15e3,
38390
38824
  tileBudgetMb: 64,
38825
+ sceneBudgetMb: 48,
38391
38826
  admission: "inferred"
38392
38827
  };
38393
38828
  DEFAULT_NATIVE_LEASE_SETTINGS.holdFrames;
38394
38829
  DEFAULT_NATIVE_LEASE_SETTINGS.budgetMb;
38395
38830
  DEFAULT_NATIVE_LEASE_SETTINGS.activityMs;
38396
38831
  DEFAULT_NATIVE_LEASE_SETTINGS.tileBudgetMb;
38832
+ DEFAULT_NATIVE_LEASE_SETTINGS.sceneBudgetMb;
38397
38833
  DEFAULT_NATIVE_LEASE_SETTINGS.admission;
38398
38834
  var MB = 1024 * 1024;
38399
38835
  1024 * MB, 3072 * MB;
package/dist/addon.mjs CHANGED
@@ -7538,6 +7538,66 @@ var OpsLogQueryInputSchema = object({
7538
7538
  /** Max rows returned, newest-first. */
7539
7539
  limit: number().int().min(1).max(1e3).optional()
7540
7540
  });
7541
+ var LabelDefinitionSchema = object({
7542
+ id: string$2(),
7543
+ name: string$2(),
7544
+ category: string$2().optional(),
7545
+ description: string$2().optional(),
7546
+ icon: string$2().optional()
7547
+ });
7548
+ /** Detection-macro targets a catalog `classMap` may resolve to. */
7549
+ var CLASS_MAP_MACRO_TARGETS = [
7550
+ "person",
7551
+ "vehicle",
7552
+ "animal",
7553
+ "package"
7554
+ ];
7555
+ /**
7556
+ * Le macro classi di PRIMO LIVELLO: quelle che un object detector emette e che
7557
+ * un operatore può selezionare.
7558
+ *
7559
+ * Sono le tre offerte dallo step `object-detection`
7560
+ * (`addon-pipeline/src/detection-pipeline/registry/step-definitions.ts`,
7561
+ * `enabledMacroClasses`). `package` sta in {@link CLASS_MAP_MACRO_TARGETS} e in
7562
+ * `MACRO_LABELS` — è una macro vera — ma NON qui: appartiene allo step
7563
+ * `package-detection`, la cui abilitazione è guidata dalle zone, e offrire la
7564
+ * stessa parola due volte ha già fatto accendere a un operatore il proxy COCO
7565
+ * (suitcase/backpack/handbag) lasciando spento il detector dedicato.
7566
+ *
7567
+ * UNA lista. Prima di oggi le stesse tre erano scritte a mano nell'offerta
7568
+ * dello step e una seconda volta come union `FirstLevelMacro`
7569
+ * (`types/detection.ts`); una terza copia per il trigger di registrazione
7570
+ * (`RecordingTriggers.objectClasses`) avrebbe reso invisibile la divergenza
7571
+ * successiva.
7572
+ */
7573
+ var FIRST_LEVEL_MACRO_CLASSES = [
7574
+ "person",
7575
+ "vehicle",
7576
+ "animal"
7577
+ ];
7578
+ /**
7579
+ * Wire schema for a per-model CATALOG classMap override
7580
+ * (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
7581
+ * restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
7582
+ * detection pipeline executor actually routes.
7583
+ *
7584
+ * This is deliberately a DIFFERENT, narrower shape than the general-purpose
7585
+ * `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
7586
+ * and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
7587
+ * enum) — the two used to share the name `ClassMapDefinition`/
7588
+ * `ClassMapDefinitionSchema`, which made the schema-type-twin guard
7589
+ * (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
7590
+ * are not: it is two different concepts colliding on a name. Keep this type
7591
+ * under its own name rather than reusing `ClassMapDefinition` — reusing it
7592
+ * would either narrow every `ClassMapDefinition` consumer to the four
7593
+ * detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
7594
+ * schema exists for (see the "rejects a classMap whose target is not a
7595
+ * detection macro" test in `model-catalog-schema.test.ts`).
7596
+ */
7597
+ var DetectionCatalogClassMapSchema = object({
7598
+ mapping: record(string$2(), _enum(CLASS_MAP_MACRO_TARGETS)),
7599
+ preserveOriginal: boolean()
7600
+ });
7541
7601
  /**
7542
7602
  * Numeric day-of-week: 0 = Sunday … 6 = Saturday (matches `Date.getDay`).
7543
7603
  * Named `RecordingWeekday` to avoid collision with the string-union
@@ -7560,10 +7620,55 @@ var RecordingStorageModeSchema = _enum([
7560
7620
  "events",
7561
7621
  "continuous"
7562
7622
  ]);
7623
+ /**
7624
+ * Le macro classi che possono aprire una finestra di registrazione — le stesse
7625
+ * tre offerte dallo step `object-detection`, da UNA lista
7626
+ * ({@link FIRST_LEVEL_MACRO_CLASSES}).
7627
+ */
7628
+ var RecordingObjectTriggerClassSchema = _enum(FIRST_LEVEL_MACRO_CLASSES);
7629
+ /**
7630
+ * True quando `values` non ripete un elemento.
7631
+ *
7632
+ * Un duplicato non è innocuo: ogni voce di `objectClasses` / `sensorDeviceIds`
7633
+ * diventa una SORGENTE in `bandTriggerSources`, e la stessa sorgente due volte
7634
+ * conterebbe due volte le sue finestre in `segmentMissedByMs`.
7635
+ */
7636
+ var noDuplicates = (values) => new Set(values).size === values.length;
7563
7637
  /** Which detectors trigger an `events`-mode band. */
7564
7638
  var RecordingTriggersSchema = object({
7565
7639
  motion: boolean().optional(),
7566
- audioThresholdDbfs: number().optional()
7640
+ audioThresholdDbfs: number().optional(),
7641
+ /**
7642
+ * Le macro classi la cui detection apre una finestra. ASSENTE = la sorgente
7643
+ * non è ascoltata; un array VUOTO è rifiutato, perché "banda events, trigger
7644
+ * object acceso, nessuna classe" è la stessa forma "abilitata e non registra
7645
+ * nulla, per sempre" contro cui è scritto `eventsBandCanEverDemand`.
7646
+ *
7647
+ * Il segnale letto è GIÀ FILTRATO: solo detection `source: 'pipeline'`, cioè
7648
+ * quelle che hanno attraversato `enabledMacroClasses`, i
7649
+ * `minConfidence<Macro>` e il full-frame guard. L'AI a bordo camera
7650
+ * (`source: 'onboard'`) non attraversa nessuno di quei gate e NON apre
7651
+ * finestre — vedi `recorder/object-trigger.ts`.
7652
+ */
7653
+ objectClasses: array(RecordingObjectTriggerClassSchema).min(1).refine(noDuplicates, { message: "objectClasses must not repeat a class" }).optional(),
7654
+ /**
7655
+ * I device LINKED il cui FRONTE ALTO apre una finestra. Assente = la sorgente
7656
+ * non è ascoltata; un array vuoto è rifiutato per la stessa ragione di
7657
+ * `objectClasses`.
7658
+ *
7659
+ * Sono id di device SORGENTE, non camere: la banda li nomina, quindi il
7660
+ * percorso caldo (`DeviceStateChanged`, a ritmo di bus su tutta la flotta)
7661
+ * non fa RPC. L'OFFERTA da cui l'operatore li sceglie è un'altra domanda, e
7662
+ * si risolve con `deviceManager.getLinkedDevices` + `getBindingsBatch` per
7663
+ * device (D12) — mai un elenco globale di cap.
7664
+ *
7665
+ * Cosa vuol dire "alto" dipende dal TIPO di device e non è deciso qui:
7666
+ * `SOURCE_CAP_ACTIVE_FIELD` (`catalogs/sensor-active-state.ts`) è LA tabella,
7667
+ * la stessa che il virtual-doorbell usa dal 2026-08-05. Ed è il FRONTE, non
7668
+ * il livello: un contatto trovato già aperto al riavvio del runner non fa
7669
+ * registrare.
7670
+ */
7671
+ sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
7567
7672
  });
7568
7673
  /**
7569
7674
  * Mode of a single recording band — the recorder per-band vocabulary.
@@ -8015,41 +8120,6 @@ var DecoderSessionConfigSchema = object({
8015
8120
  */
8016
8121
  debug: boolean().optional()
8017
8122
  });
8018
- var LabelDefinitionSchema = object({
8019
- id: string$2(),
8020
- name: string$2(),
8021
- category: string$2().optional(),
8022
- description: string$2().optional(),
8023
- icon: string$2().optional()
8024
- });
8025
- /**
8026
- * Wire schema for a per-model CATALOG classMap override
8027
- * (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
8028
- * restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
8029
- * detection pipeline executor actually routes.
8030
- *
8031
- * This is deliberately a DIFFERENT, narrower shape than the general-purpose
8032
- * `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
8033
- * and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
8034
- * enum) — the two used to share the name `ClassMapDefinition`/
8035
- * `ClassMapDefinitionSchema`, which made the schema-type-twin guard
8036
- * (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
8037
- * are not: it is two different concepts colliding on a name. Keep this type
8038
- * under its own name rather than reusing `ClassMapDefinition` — reusing it
8039
- * would either narrow every `ClassMapDefinition` consumer to the four
8040
- * detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
8041
- * schema exists for (see the "rejects a classMap whose target is not a
8042
- * detection macro" test in `model-catalog-schema.test.ts`).
8043
- */
8044
- var DetectionCatalogClassMapSchema = object({
8045
- mapping: record(string$2(), _enum([
8046
- "person",
8047
- "vehicle",
8048
- "animal",
8049
- "package"
8050
- ])),
8051
- preserveOriginal: boolean()
8052
- });
8053
8123
  var MODEL_FORMATS = [
8054
8124
  "onnx",
8055
8125
  "coreml",
@@ -21231,7 +21301,7 @@ var lifecycleJobSchema = object({
21231
21301
  * `useAddonsOnAddonLogs`, etc. flow through the same codegen pipeline
21232
21302
  * as every other cap.
21233
21303
  */
21234
- var LogLevelSchema$1 = _enum([
21304
+ var LogLevelSchema$2 = _enum([
21235
21305
  "debug",
21236
21306
  "info",
21237
21307
  "warn",
@@ -21438,7 +21508,7 @@ var CustomActionInputSchema = object({
21438
21508
  method(_void(), array(AddonListItemSchema).readonly()), method(object({
21439
21509
  addonId: string$2(),
21440
21510
  limit: number().min(1).max(500).default(100),
21441
- level: LogLevelSchema$1.optional()
21511
+ level: LogLevelSchema$2.optional()
21442
21512
  }), array(LogQueryEntrySchema)), method(_void(), array(InstalledPackageSchema).readonly()), method(object({
21443
21513
  packageName: string$2(),
21444
21514
  version: string$2().optional()
@@ -21536,7 +21606,7 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
21536
21606
  auth: "admin"
21537
21607
  }), method(object({
21538
21608
  addonId: string$2(),
21539
- level: LogLevelSchema$1.optional()
21609
+ level: LogLevelSchema$2.optional()
21540
21610
  }), LogStreamEntrySchema, { kind: "subscription" });
21541
21611
  /**
21542
21612
  * Multi-metric air-quality slice. Covers CO₂, total VOCs, particulate
@@ -23277,6 +23347,35 @@ var FaceFilterEnum = _enum([
23277
23347
  "identified",
23278
23348
  "all"
23279
23349
  ]);
23350
+ /**
23351
+ * What a `listRecentFaces` page is ORDERED BY.
23352
+ *
23353
+ * - `timestamp` — when the face was seen. The historical (and default) order.
23354
+ * - `suggestionConfidence` — {@link FaceInfo.suggestedMatchScore}, the peak
23355
+ * cosine of the face's SUGGESTED identity. This is the "review by certainty"
23356
+ * order: it puts the suggestions an operator can confirm with one tap at the
23357
+ * top, and it is the reason this enum exists — a client that ranked a capped
23358
+ * page client-side was ranking the newest N, never the most certain N.
23359
+ *
23360
+ * A row with NO suggestion (`suggestedMatchScore` absent — a legacy row, an
23361
+ * auto-assigned face, or a face below the suggestion band) has no certainty to
23362
+ * compare. Under `suggestionConfidence` it sorts **LAST, in BOTH directions**
23363
+ * — flipping the direction reorders the rows that HAVE a certainty and never
23364
+ * floods the page with the ones that do not. `addon-post-analysis`'s
23365
+ * `store/face-sort.ts` is the single implementation, tiebreaks newest-first
23366
+ * then by faceId, and is what makes this a total order instead of the
23367
+ * backend's NULL-collation accident.
23368
+ */
23369
+ var FaceSortFieldEnum = _enum(["timestamp", "suggestionConfidence"]);
23370
+ var FaceSortDirectionEnum = _enum(["asc", "desc"]);
23371
+ /** One suggested group of look-alike UNASSIGNED faces. Ids only — an embedding
23372
+ * never leaves the server. */
23373
+ var FaceClusterSchema = object({
23374
+ faceIds: array(string$2()).readonly(),
23375
+ representativeFaceId: string$2(),
23376
+ size: number().int(),
23377
+ cohesion: number()
23378
+ });
23280
23379
  var MediaFileLiteSchema$1 = object({
23281
23380
  key: string$2(),
23282
23381
  kind: string$2(),
@@ -23323,24 +23422,72 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
23323
23422
  kind: "mutation",
23324
23423
  auth: "admin"
23325
23424
  }), method(object({
23326
- /** Restrict to one camera. Absent keeps the cluster-wide gallery view. */
23425
+ /**
23426
+ * Restrict to ONE camera. Absent keeps the cluster-wide gallery view.
23427
+ *
23428
+ * The legacy single-camera form, kept verbatim for every caller that
23429
+ * already sends it. A caller that wants a SET sends {@link deviceIds}
23430
+ * instead — never both: `deviceIds` is the authority whenever it is
23431
+ * present, and this field is then ignored rather than unioned, so
23432
+ * there is exactly one answer to "which cameras did I ask for".
23433
+ */
23327
23434
  deviceId: number().int().optional(),
23435
+ /**
23436
+ * Restrict to a SET of cameras — the review UI's camera filter, which
23437
+ * until now had to fetch the cluster-wide page and drop rows in the
23438
+ * client (so the `limit` it asked for was spent on cameras it was
23439
+ * about to discard).
23440
+ *
23441
+ * An **empty array reads NOTHING** — `[]` is an empty page, never
23442
+ * "every camera". A request for no devices is a request, not an
23443
+ * omission; same contract as `deviceManager.listFleet` and
23444
+ * `pipelineAnalytics.listRecentTracks`.
23445
+ *
23446
+ * Absent (`undefined`) is the omission, and keeps the cluster-wide view.
23447
+ */
23448
+ deviceIds: array(number().int()).optional(),
23328
23449
  limit: number().int().positive().optional(),
23329
23450
  filter: FaceFilterEnum.optional(),
23330
23451
  /**
23331
- * Inline the base64 crop on every row. Default `true` — the existing
23332
- * behaviour, kept so no caller breaks.
23452
+ * Window lower bound on {@link FaceInfo.timestamp}, INCLUSIVE.
23453
+ * Absent means no lower bound.
23454
+ */
23455
+ since: number().int().optional(),
23456
+ /**
23457
+ * Window upper bound on {@link FaceInfo.timestamp}, INCLUSIVE.
23458
+ * Absent means no upper bound.
23459
+ */
23460
+ until: number().int().optional(),
23461
+ /**
23462
+ * Order the page by time or by suggestion certainty. Default
23463
+ * `'timestamp'` — the historical order, unchanged for every caller
23464
+ * that does not ask.
23333
23465
  *
23334
- * Set `false` once the caller renders {@link FaceInfo.cropUrl}: that
23335
- * drops ~2.87 MiB per 500-row page to a few KiB of metadata and lets
23336
- * the browser cache the images.
23466
+ * See {@link FaceSortFieldEnum} for what a row with no suggestion
23467
+ * does under `'suggestionConfidence'`.
23337
23468
  *
23338
- * **This is an INPUT field, so it does not reach the addon until the
23339
- * next train.** The hub router validates cap inputs against its own
23340
- * compiled Zod, which strips a key it does not know verified today
23341
- * on the OUTPUT side, where an additive field DOES arrive immediately
23342
- * (`Track.hasFace`). Until the train ships, sending `false` is
23343
- * harmless and simply keeps the crops inline.
23469
+ * Cost note: `'timestamp'` is served by the `(deviceId, timestamp)`
23470
+ * index and stops reading as soon as `limit` rows have PASSED the
23471
+ * filter. `'suggestionConfidence'` cannot stop earlythe most
23472
+ * certain row may be the oldest so it walks the window. Narrow it
23473
+ * with {@link since} / {@link until}.
23474
+ */
23475
+ sortBy: FaceSortFieldEnum.optional(),
23476
+ /** Sort direction for {@link sortBy}. Default `'desc'`. */
23477
+ sortDirection: FaceSortDirectionEnum.optional(),
23478
+ /**
23479
+ * Inline the base64 crop on every row.
23480
+ *
23481
+ * Default `false` since the 2026-08-25 inversion — see
23482
+ * `include-crops-default.ts`, which is the ONE place that resolves
23483
+ * this for every gallery, and which records why the inline shape had
23484
+ * to become the one you ASK for (60 457 ms → UDS timeout at 500 rows).
23485
+ * The doc here used to still say `true`; it was wrong, and a leftover
23486
+ * that describes the old design reads as permission to rely on it.
23487
+ *
23488
+ * Nothing loses its image: the row carries {@link FaceInfo.cropUrl},
23489
+ * which the browser fetches off the `event-media` plane in parallel,
23490
+ * cached and ETagged.
23344
23491
  */
23345
23492
  includeCrops: boolean().optional()
23346
23493
  }).optional(), array(FaceInfoSchema).readonly()), method(object({
@@ -23376,13 +23523,39 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
23376
23523
  }), method(object({
23377
23524
  threshold: number().min(0).max(1).optional(),
23378
23525
  minClusterSize: number().int().min(2).optional(),
23379
- limit: number().int().positive().optional()
23380
- }).optional(), array(object({
23381
- faceIds: array(string$2()).readonly(),
23382
- representativeFaceId: string$2(),
23383
- size: number().int(),
23384
- cohesion: number()
23385
- })).readonly());
23526
+ /**
23527
+ * Cap on the number of CLUSTERS returned. Renamed from `limit`,
23528
+ * which read as though it bounded the work — it never did.
23529
+ *
23530
+ * Wins over {@link limit} when both are sent.
23531
+ */
23532
+ maxClusters: number().int().positive().optional(),
23533
+ /**
23534
+ * @deprecated Ambiguous name for {@link maxClusters} — it cuts the
23535
+ * RESULT, not the scan. Kept so existing callers keep working; send
23536
+ * `maxClusters` (and, if you care about cost, {@link maxFacesScanned}).
23537
+ */
23538
+ limit: number().int().positive().optional(),
23539
+ /**
23540
+ * Cap on the number of unassigned faces READ AND CLUSTERED — the
23541
+ * POOL, not the result.
23542
+ *
23543
+ * This is the knob {@link maxClusters} was mistaken for. Clustering
23544
+ * used to read every unassigned face on the hub no matter what the
23545
+ * caller asked for, because the only bound cut the finished clusters
23546
+ * afterwards; a UI showing a window of 100 paid for a scan of the
23547
+ * whole corpus, on an addon whose disk is under contention.
23548
+ *
23549
+ * The pool is the NEWEST matching faces first — the same order the
23550
+ * gallery shows — so a bound here shortens the horizon, it does not
23551
+ * sample it randomly.
23552
+ *
23553
+ * Default: 1 000 (`FACE_SWEEP_PAGE`, exactly one store page). Chosen
23554
+ * so the live corpus — 372 face rows — is unaffected while the
23555
+ * unbounded scan can never come back as the table grows.
23556
+ */
23557
+ maxFacesScanned: number().int().positive().optional()
23558
+ }).optional(), array(FaceClusterSchema).readonly());
23386
23559
  /**
23387
23560
  * Fan-control cap. Models HA `fan.*` entity-specific surfaces:
23388
23561
  * speed percentage, preset modes, ceiling-fan direction, and
@@ -28324,6 +28497,211 @@ var SetSiteLocationInputSchema = object({
28324
28497
  latitude: number().min(-90).max(90),
28325
28498
  longitude: number().min(-180).max(180)
28326
28499
  }).nullable();
28500
+ /**
28501
+ * One `(procedure, user-agent, ip, principal)` tuple of the HTTP request
28502
+ * census. `principal` is the DERIVED identity (`apocaliss92 (admin)`,
28503
+ * `scoped:1a2b3c4d (scoped-token)`, `anonymous`) that the tRPC error log
28504
+ * already prints - never a token, never an `Authorization` header.
28505
+ */
28506
+ var RequestCensusGroupSchema = object({
28507
+ procedure: string$2(),
28508
+ userAgent: string$2(),
28509
+ ip: string$2(),
28510
+ principal: string$2(),
28511
+ calls: number(),
28512
+ perMin: number()
28513
+ });
28514
+ /**
28515
+ * A procedure's TOTAL over the window, across every caller.
28516
+ *
28517
+ * This block, not the group list, is what answers "did these calls arrive over
28518
+ * HTTP at all". A total far BELOW what a store-side census counted over the
28519
+ * same window excludes the HTTP plane, which is a result, not a failure.
28520
+ */
28521
+ var RequestCensusProcedureSchema = object({
28522
+ procedure: string$2(),
28523
+ calls: number(),
28524
+ perMin: number()
28525
+ });
28526
+ /**
28527
+ * The census as an operator sees it.
28528
+ *
28529
+ * `persisted` is the honest answer to "will this survive the restart I am
28530
+ * about to do": the arm deadline is written to `system-settings` so a window
28531
+ * armed now can measure the NEXT boot, and a write that failed must not look
28532
+ * like one that succeeded.
28533
+ */
28534
+ var RequestCensusStatusSchema = object({
28535
+ armed: boolean(),
28536
+ /** How long the current - or just-closed - window collected, in ms. */
28537
+ elapsedMs: number(),
28538
+ /** The window actually armed, after the server clamped the request. */
28539
+ windowMs: number(),
28540
+ /** Epoch ms the window closes at. 0 when disarmed. */
28541
+ armedUntilMs: number(),
28542
+ httpRequests: number(),
28543
+ batchedRequests: number(),
28544
+ /**
28545
+ * Procedure invocations. Higher than `httpRequests` whenever tRPC batching
28546
+ * is in play (`?batch=1` carries several procedures in one request); this is
28547
+ * the number comparable with a store-side call count.
28548
+ */
28549
+ procedureCalls: number(),
28550
+ /**
28551
+ * tRPC WebSocket connections opened during the window. NOT calls - the WS
28552
+ * transport resolves one context per connection - but the number that says
28553
+ * whether a plane this census cannot see was busy while HTTP was quiet.
28554
+ */
28555
+ wsConnections: number(),
28556
+ distinctGroups: number(),
28557
+ /** Calls counted in the totals whose group attribution was shed at the
28558
+ * cardinality bound. */
28559
+ unattributedCalls: number(),
28560
+ procedures: array(RequestCensusProcedureSchema).readonly(),
28561
+ groups: array(RequestCensusGroupSchema).readonly()
28562
+ }).extend({ persisted: boolean() });
28563
+ /** Severity vocabulary. Mirrors `LogLevel` in `interfaces/logging.ts`. */
28564
+ var LogLevelSchema$1 = _enum([
28565
+ "debug",
28566
+ "info",
28567
+ "warn",
28568
+ "error"
28569
+ ]);
28570
+ /**
28571
+ * The diagnostics that can be ARMED for a window. Exactly one today.
28572
+ *
28573
+ * A diagnostic is anything whose cost is only worth paying while a question is
28574
+ * open. It never persists as a boolean: see {@link DiagnosticWindowSchema}.
28575
+ */
28576
+ var DiagnosticIdSchema = _enum(["request-census"]);
28577
+ /**
28578
+ * The layers of the level hierarchy, general → specific. The most specific
28579
+ * layer that carries an explicit value wins.
28580
+ *
28581
+ * `component` is DECLARED and not yet resolvable: the per-component channels
28582
+ * are a later slice of the same plan, and a `levelSource` enum that has to
28583
+ * grow later would force every consumer of this document to change with it.
28584
+ * Nothing returns `component` today.
28585
+ */
28586
+ var LoggingScopeKindSchema = _enum([
28587
+ "cluster",
28588
+ "node",
28589
+ "component"
28590
+ ]);
28591
+ /** Where an effective level came from. `default` = nothing is set anywhere. */
28592
+ var LoggingLevelSourceSchema = _enum([
28593
+ "default",
28594
+ "cluster",
28595
+ "node",
28596
+ "component"
28597
+ ]);
28598
+ /**
28599
+ * One layer of the hierarchy as it actually STANDS.
28600
+ *
28601
+ * `level: null` is the whole reason this array is returned: it is the
28602
+ * difference between "this node is at `info` because I decided it" and
28603
+ * "...because it inherits". An operator who clears an override believing they
28604
+ * are clearing an inherited value has been handed the same defect as the two
28605
+ * contradicting knobs this document exists to remove, moved one floor up.
28606
+ */
28607
+ var LoggingLevelLayerSchema = object({
28608
+ scope: LoggingScopeKindSchema,
28609
+ /** The node this layer speaks for; `null` on the cluster layer. */
28610
+ nodeId: string$2().nullable(),
28611
+ /** Explicitly set here, or `null` when this layer inherits. */
28612
+ level: LogLevelSchema$1.nullable()
28613
+ });
28614
+ /** What a line is judged against, and WHICH layer decided it. */
28615
+ var LoggingEffectiveSchema = object({
28616
+ level: LogLevelSchema$1,
28617
+ levelSource: LoggingLevelSourceSchema
28618
+ });
28619
+ /** Every layer, general → specific. Never collapsed into the effective value. */
28620
+ var LoggingExplicitSchema = object({ layers: array(LoggingLevelLayerSchema).readonly() });
28621
+ /**
28622
+ * An armed diagnostic, with its DEADLINE.
28623
+ *
28624
+ * The shape of ADR-0244: what is stored is a deadline and never a flag, so a
28625
+ * diagnostic somebody forgot expires by itself, and a boot-window measurement
28626
+ * survives the restart it exists to measure. `remainingMs` is 0 whenever
28627
+ * `armed` is false — a window is never reported as slightly expired.
28628
+ */
28629
+ var DiagnosticWindowSchema = object({
28630
+ id: DiagnosticIdSchema,
28631
+ armed: boolean(),
28632
+ /** Epoch ms the window closes at. 0 when disarmed. */
28633
+ armedUntilMs: number(),
28634
+ /** Ms left before it expires on its own. 0 when disarmed. */
28635
+ remainingMs: number(),
28636
+ /** Whether the stored deadline is the one the live diagnostic is running —
28637
+ * i.e. whether this window would survive a restart. */
28638
+ persisted: boolean()
28639
+ });
28640
+ /**
28641
+ * `armMs: 0` DISARMS. Any positive value arms for that long, clamped by the
28642
+ * server — there is no maximum here on purpose: a bound repeated in a schema
28643
+ * is a second knob that disagrees with the first the day one of them moves.
28644
+ */
28645
+ var DiagnosticWindowPatchSchema = object({
28646
+ id: DiagnosticIdSchema,
28647
+ armMs: number().int().min(0),
28648
+ /** Cadence of the diagnostic's aggregated report line. Clamped by the server. */
28649
+ reportEveryMs: number().int().positive().optional()
28650
+ });
28651
+ /**
28652
+ * A PATCH, and patches MERGE.
28653
+ *
28654
+ * A field absent from the patch is left exactly as it was — arming a
28655
+ * diagnostic never resets a level, and setting a level never disarms a window.
28656
+ * The provider must not reconstruct the document as `{ ...snapshot, ...patch }`:
28657
+ * `setAll` already merges, and rebuilding the object is how an absent field
28658
+ * turns into an erased one.
28659
+ */
28660
+ var LoggingSettingsPatchSchema = object({
28661
+ /**
28662
+ * Absent leaves the level untouched. `null` CLEARS the explicit value at the
28663
+ * addressed scope so it inherits again. A value sets it.
28664
+ */
28665
+ level: LogLevelSchema$1.nullable().optional(),
28666
+ /**
28667
+ * Only the diagnostics NAMED here change. An armed window that is not listed
28668
+ * keeps running — a patch is never a full replacement.
28669
+ */
28670
+ diagnostics: array(DiagnosticWindowPatchSchema).readonly().optional()
28671
+ });
28672
+ /**
28673
+ * Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
28674
+ *
28675
+ * Deliberately NOT called `nodeId`: that key is reserved on every cap method
28676
+ * input — the generated router strips it and uses it to resolve the PROVIDER
28677
+ * on that node (`resolveProvider(cap, nodeId, …)`). A document about
28678
+ * `agent-1` addressed as `nodeId` would be forwarded to agent-1 and answered
28679
+ * by an agent that holds no cluster document at all. The hub is the single
28680
+ * authority over the whole hierarchy and answers for every layer, so the
28681
+ * layer selector needs a name the transport does not already own.
28682
+ */
28683
+ var GetLoggingSettingsInputSchema = object({ scopeNodeId: string$2().optional() });
28684
+ var SetLoggingSettingsInputSchema = object({
28685
+ scopeNodeId: string$2().optional(),
28686
+ patch: LoggingSettingsPatchSchema
28687
+ });
28688
+ /**
28689
+ * The whole document, as read and as returned after every write.
28690
+ *
28691
+ * `persisted: false` means the settings store could not be read or written.
28692
+ * The in-memory mirror still governs behaviour and is unchanged by the
28693
+ * failure — a read that fails neither switches a level nor disarms a window
28694
+ * (D49) — but the operator is told that what they are looking at would not
28695
+ * survive a restart.
28696
+ */
28697
+ var LoggingSettingsStateSchema = object({
28698
+ /** The layer this document was read at. `null` = the cluster layer. */
28699
+ scopeNodeId: string$2().nullable(),
28700
+ effective: LoggingEffectiveSchema,
28701
+ explicit: LoggingExplicitSchema,
28702
+ activeWindows: array(DiagnosticWindowSchema).readonly(),
28703
+ persisted: boolean()
28704
+ });
28327
28705
  method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), method(_void(), FeatureManifestSchema), method(_void(), array(NetworkAddressSchema).readonly()), method(_void(), unknown().nullable(), { auth: "admin" }), method(record(string$2(), unknown()), _null(), {
28328
28706
  kind: "mutation",
28329
28707
  auth: "admin"
@@ -28336,6 +28714,9 @@ method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), met
28336
28714
  }), method(_void(), SiteLocationStatusSchema, {
28337
28715
  kind: "mutation",
28338
28716
  auth: "admin"
28717
+ }), method(_void(), RequestCensusStatusSchema, { auth: "admin" }), method(GetLoggingSettingsInputSchema, LoggingSettingsStateSchema, { auth: "admin" }), method(SetLoggingSettingsInputSchema, LoggingSettingsStateSchema, {
28718
+ kind: "mutation",
28719
+ auth: "admin"
28339
28720
  });
28340
28721
  /**
28341
28722
  * Tamper / case-open detection sensor. Drives Home Assistant
@@ -35575,6 +35956,18 @@ Object.freeze({
35575
35956
  addonId: null,
35576
35957
  access: "create"
35577
35958
  },
35959
+ "system.getLoggingSettings": {
35960
+ capName: "system",
35961
+ capScope: "system",
35962
+ addonId: null,
35963
+ access: "view"
35964
+ },
35965
+ "system.getRequestCensus": {
35966
+ capName: "system",
35967
+ capScope: "system",
35968
+ addonId: null,
35969
+ access: "view"
35970
+ },
35578
35971
  "system.getRetentionConfig": {
35579
35972
  capName: "system",
35580
35973
  capScope: "system",
@@ -35605,6 +35998,12 @@ Object.freeze({
35605
35998
  addonId: null,
35606
35999
  access: "view"
35607
36000
  },
36001
+ "system.setLoggingSettings": {
36002
+ capName: "system",
36003
+ capScope: "system",
36004
+ addonId: null,
36005
+ access: "create"
36006
+ },
35608
36007
  "system.setRetentionConfig": {
35609
36008
  capName: "system",
35610
36009
  capScope: "system",
@@ -36760,6 +37159,10 @@ Object.freeze({
36760
37159
  name: "deviceId",
36761
37160
  form: "single",
36762
37161
  optional: true
37162
+ }, {
37163
+ name: "deviceIds",
37164
+ form: "array",
37165
+ optional: true
36763
37166
  }],
36764
37167
  "fanControl.setDirection": [{
36765
37168
  name: "deviceId",
@@ -38370,7 +38773,38 @@ object({
38370
38773
  * fallback — i.e. the pre-2026-08-13 miss profile. Set it there only to
38371
38774
  * reproduce that.
38372
38775
  */
38373
- tileBudgetMb: number().int().min(0).max(1024)
38776
+ tileBudgetMb: number().int().min(0).max(1024),
38777
+ /**
38778
+ * RAM ceiling per decode worker, in MB, for the SCENE TILES — one
38779
+ * JPEG-encoded copy of the WHOLE native frame, cut in the same instant as the
38780
+ * subject tiles, on frames that detected something.
38781
+ *
38782
+ * It exists because a subject tile cannot answer a FULL-FRAME request:
38783
+ * containment is strict by design, so the native `keyFrame`, the detail
38784
+ * plane's `frameJpeg` rung and the display-crop fallback had no rung at all
38785
+ * below the hold. Measured on the live cluster: 23.3% of key-frame captures
38786
+ * missed, 95.7% of them with `worker-lease-gone` — the raster released one
38787
+ * frame-time after delivery, with the request only p50 367 ms behind it.
38788
+ *
38789
+ * Sizing, and why this is a budget and not a duration: a scene tile is
38790
+ * ~1.5-2.5 MB at 4K (against ~23.75 MB for the raster it was cut from and
38791
+ * ~60-120 KB for a subject tile), and it is cut ~0.4 times a second per busy
38792
+ * camera — only detection-bearing frames get one. 48 MB is therefore ~20-30
38793
+ * frames, i.e. the store's 30 s TTL binds at the steady state and the budget
38794
+ * binds only through a detection burst, where it still covers well past the
38795
+ * measured p90 ask age of 4.3 s. Holding the RASTERS for the same window
38796
+ * would be ~498 MB per camera and ~6 GB at peak concurrency — the OOM this
38797
+ * whole shape exists to avoid.
38798
+ *
38799
+ * A SEPARATE ceiling from `tileBudgetMb` on purpose: a scene tile is ~20× a
38800
+ * subject tile, so one shared budget would let a busy camera's key frames
38801
+ * evict the face/plate tiles the recognisers depend on. Two budgets make that
38802
+ * impossible rather than unlikely. `0` DISABLES scene tiles and restores the
38803
+ * pre-existing behaviour, where a late full-frame request had nothing but the
38804
+ * ≤640 RAM raster — which the `keyFrame` gate rejects, so in practice it had
38805
+ * nothing.
38806
+ */
38807
+ sceneBudgetMb: number().int().min(0).max(1024)
38374
38808
  });
38375
38809
  /**
38376
38810
  * The values in force when the operator has set nothing.
@@ -38386,12 +38820,14 @@ var DEFAULT_NATIVE_LEASE_SETTINGS = {
38386
38820
  budgetMb: 1024,
38387
38821
  activityMs: 15e3,
38388
38822
  tileBudgetMb: 64,
38823
+ sceneBudgetMb: 48,
38389
38824
  admission: "inferred"
38390
38825
  };
38391
38826
  DEFAULT_NATIVE_LEASE_SETTINGS.holdFrames;
38392
38827
  DEFAULT_NATIVE_LEASE_SETTINGS.budgetMb;
38393
38828
  DEFAULT_NATIVE_LEASE_SETTINGS.activityMs;
38394
38829
  DEFAULT_NATIVE_LEASE_SETTINGS.tileBudgetMb;
38830
+ DEFAULT_NATIVE_LEASE_SETTINGS.sceneBudgetMb;
38395
38831
  DEFAULT_NATIVE_LEASE_SETTINGS.admission;
38396
38832
  var MB = 1024 * 1024;
38397
38833
  1024 * MB, 3072 * MB;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-matter-broker",
3
- "version": "0.2.30",
3
+ "version": "0.2.31",
4
4
  "description": "Matter broker addon for CamStack — owns a Matter fabric (commissioning + the long-lived controller) via the matter.js controller and brokers commissioned Matter nodes into CamStack",
5
5
  "keywords": [
6
6
  "camstack",