@camstack/addon-matter-broker 0.2.30 → 0.2.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addon.js +577 -59
- package/dist/addon.mjs +577 -59
- package/package.json +1 -1
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$
|
|
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$
|
|
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$
|
|
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
|
-
/**
|
|
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
|
-
*
|
|
23332
|
-
*
|
|
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
|
-
*
|
|
23335
|
-
*
|
|
23336
|
-
* the browser cache the images.
|
|
23466
|
+
* See {@link FaceSortFieldEnum} for what a row with no suggestion
|
|
23467
|
+
* does under `'suggestionConfidence'`.
|
|
23337
23468
|
*
|
|
23338
|
-
*
|
|
23339
|
-
*
|
|
23340
|
-
*
|
|
23341
|
-
*
|
|
23342
|
-
*
|
|
23343
|
-
|
|
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 early — the 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
|
-
|
|
23380
|
-
|
|
23381
|
-
|
|
23382
|
-
|
|
23383
|
-
|
|
23384
|
-
|
|
23385
|
-
|
|
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,293 @@ var SetSiteLocationInputSchema = object({
|
|
|
28324
28497
|
latitude: number().min(-90).max(90),
|
|
28325
28498
|
longitude: number().min(-180).max(180)
|
|
28326
28499
|
}).nullable();
|
|
28500
|
+
/**
|
|
28501
|
+
* The TRANSPORT a call arrived on.
|
|
28502
|
+
*
|
|
28503
|
+
* Every counted call carries exactly one of these, and `unknown` is a PLANE
|
|
28504
|
+
* rather than a gap: a plane that cannot attribute a call declares it here, so
|
|
28505
|
+
* the call lands in a named bucket instead of vanishing. `planes` summing to
|
|
28506
|
+
* `procedureCalls` is what makes "the sum of the planes explains the total"
|
|
28507
|
+
* checkable rather than asserted.
|
|
28508
|
+
*
|
|
28509
|
+
* - `http` — the Fastify tRPC plugin (`/trpc/*`), one context per request.
|
|
28510
|
+
* - `ws` — `applyWSSHandler`, counted per OPERATION rather than per
|
|
28511
|
+
* connection; the viewer talks to the hub over `wsLink`
|
|
28512
|
+
* exclusively, so this is the plane the HTTP census could not see.
|
|
28513
|
+
* - `mesh` — the in-process `$core-caps` bridge (`createCaller`), which
|
|
28514
|
+
* never touches a socket and therefore never touched a census.
|
|
28515
|
+
* - `unknown` — counted, plane undecidable. No hook produces it today, and
|
|
28516
|
+
* that is exactly what its `0` asserts: every plane the hub has can name
|
|
28517
|
+
* itself. It is an output bucket, never a knob — a call that arrives on a
|
|
28518
|
+
* plane nobody instrumented lands here instead of vanishing from the total.
|
|
28519
|
+
*/
|
|
28520
|
+
var TransportPlaneSchema = _enum([
|
|
28521
|
+
"http",
|
|
28522
|
+
"ws",
|
|
28523
|
+
"mesh",
|
|
28524
|
+
"unknown"
|
|
28525
|
+
]);
|
|
28526
|
+
/**
|
|
28527
|
+
* Calls per plane. Every key is always present, `0` included — an absent plane
|
|
28528
|
+
* reads as "not instrumented", which is the one thing this census must never
|
|
28529
|
+
* make an operator wonder about.
|
|
28530
|
+
*/
|
|
28531
|
+
var TransportPlaneCountsSchema = object({
|
|
28532
|
+
http: number(),
|
|
28533
|
+
ws: number(),
|
|
28534
|
+
mesh: number(),
|
|
28535
|
+
unknown: number()
|
|
28536
|
+
});
|
|
28537
|
+
/**
|
|
28538
|
+
* One `(plane, procedure, user-agent, ip, principal)` tuple of the transport
|
|
28539
|
+
* census. `principal` is the DERIVED identity (`apocaliss92 (admin)`,
|
|
28540
|
+
* `scoped:1a2b3c4d (scoped-token)`, `anonymous`) that the tRPC error log
|
|
28541
|
+
* already prints - never a token, never an `Authorization` header.
|
|
28542
|
+
*
|
|
28543
|
+
* `subscriptions` is counted APART from `calls`: a subscription is opened once
|
|
28544
|
+
* and lives for hours, so folding it into a call count makes one long-lived
|
|
28545
|
+
* stream look like a storm.
|
|
28546
|
+
*/
|
|
28547
|
+
var RequestCensusGroupSchema = object({
|
|
28548
|
+
plane: TransportPlaneSchema,
|
|
28549
|
+
procedure: string$2(),
|
|
28550
|
+
userAgent: string$2(),
|
|
28551
|
+
ip: string$2(),
|
|
28552
|
+
principal: string$2(),
|
|
28553
|
+
calls: number(),
|
|
28554
|
+
subscriptions: number(),
|
|
28555
|
+
perMin: number()
|
|
28556
|
+
});
|
|
28557
|
+
/**
|
|
28558
|
+
* A procedure's TOTAL over the window, across every caller.
|
|
28559
|
+
*
|
|
28560
|
+
* This block, not the group list, is what answers "did these calls arrive over
|
|
28561
|
+
* HTTP at all". A total far BELOW what a store-side census counted over the
|
|
28562
|
+
* same window excludes the HTTP plane, which is a result, not a failure.
|
|
28563
|
+
*/
|
|
28564
|
+
var RequestCensusProcedureSchema = object({
|
|
28565
|
+
procedure: string$2(),
|
|
28566
|
+
calls: number(),
|
|
28567
|
+
/**
|
|
28568
|
+
* The same total, split by transport. THIS is the row that answers the
|
|
28569
|
+
* question the census exists for: one look at `deviceManager.listAll` says
|
|
28570
|
+
* which plane carried the 4 960, without joining two log lines by eye.
|
|
28571
|
+
*/
|
|
28572
|
+
planes: TransportPlaneCountsSchema,
|
|
28573
|
+
/** Subscription STARTS on this procedure. Never folded into `calls`. */
|
|
28574
|
+
subscriptions: number(),
|
|
28575
|
+
perMin: number()
|
|
28576
|
+
});
|
|
28577
|
+
/**
|
|
28578
|
+
* The census as an operator sees it.
|
|
28579
|
+
*
|
|
28580
|
+
* `persisted` is the honest answer to "will this survive the restart I am
|
|
28581
|
+
* about to do": the arm deadline is written to `system-settings` so a window
|
|
28582
|
+
* armed now can measure the NEXT boot, and a write that failed must not look
|
|
28583
|
+
* like one that succeeded.
|
|
28584
|
+
*/
|
|
28585
|
+
var RequestCensusStatusSchema = object({
|
|
28586
|
+
armed: boolean(),
|
|
28587
|
+
/** How long the current - or just-closed - window collected, in ms. */
|
|
28588
|
+
elapsedMs: number(),
|
|
28589
|
+
/** The window actually armed, after the server clamped the request. */
|
|
28590
|
+
windowMs: number(),
|
|
28591
|
+
/** Epoch ms the window closes at. 0 when disarmed. */
|
|
28592
|
+
armedUntilMs: number(),
|
|
28593
|
+
httpRequests: number(),
|
|
28594
|
+
batchedRequests: number(),
|
|
28595
|
+
/**
|
|
28596
|
+
* Procedure invocations. Higher than `httpRequests` whenever tRPC batching
|
|
28597
|
+
* is in play (`?batch=1` carries several procedures in one request); this is
|
|
28598
|
+
* the number comparable with a store-side call count.
|
|
28599
|
+
*/
|
|
28600
|
+
procedureCalls: number(),
|
|
28601
|
+
/**
|
|
28602
|
+
* `procedureCalls` split by transport. The four keys sum to
|
|
28603
|
+
* `procedureCalls` by construction - {@link RequestCensusSnapshotSchema}'s
|
|
28604
|
+
* `planesExplainTotal` is that identity, checked rather than assumed.
|
|
28605
|
+
*/
|
|
28606
|
+
planes: TransportPlaneCountsSchema,
|
|
28607
|
+
/**
|
|
28608
|
+
* True iff `planes` sums to `procedureCalls`. False means a call was counted
|
|
28609
|
+
* on no plane at all - which is a RESULT (a plane is missing from the
|
|
28610
|
+
* instrument), not a failure, and it has to be visible to be read as one.
|
|
28611
|
+
*/
|
|
28612
|
+
planesExplainTotal: boolean(),
|
|
28613
|
+
/**
|
|
28614
|
+
* tRPC WebSocket connections opened during the window. NOT calls - the WS
|
|
28615
|
+
* adapter resolves one context per connection - kept because a plane's call
|
|
28616
|
+
* count of zero against 37 open connections says something different from a
|
|
28617
|
+
* plane with no connections at all.
|
|
28618
|
+
*/
|
|
28619
|
+
wsConnections: number(),
|
|
28620
|
+
/**
|
|
28621
|
+
* Client frames the WS plane looked at. `wsMessages` far above
|
|
28622
|
+
* `planes.ws + subscriptions` means most traffic is not operations
|
|
28623
|
+
* (keepalives, connection params) - which is itself an answer.
|
|
28624
|
+
*/
|
|
28625
|
+
wsMessages: number(),
|
|
28626
|
+
/**
|
|
28627
|
+
* Subscription STARTS across every plane, excluded from `procedureCalls` on
|
|
28628
|
+
* purpose: one live-events stream opened at boot and held for six hours is
|
|
28629
|
+
* one subscription, and counting it as a call would let a quiet plane
|
|
28630
|
+
* masquerade as the storm.
|
|
28631
|
+
*/
|
|
28632
|
+
subscriptions: number(),
|
|
28633
|
+
/** `subscription.stop` frames. Starts minus stops is what is still open. */
|
|
28634
|
+
subscriptionStops: number(),
|
|
28635
|
+
distinctGroups: number(),
|
|
28636
|
+
/**
|
|
28637
|
+
* Operations counted in the totals whose CALLER attribution was shed at the
|
|
28638
|
+
* cardinality bound. Unrelated to the `unknown` PLANE: these calls know
|
|
28639
|
+
* which transport they arrived on, they just lost their group row.
|
|
28640
|
+
*/
|
|
28641
|
+
unattributedCalls: number(),
|
|
28642
|
+
procedures: array(RequestCensusProcedureSchema).readonly(),
|
|
28643
|
+
groups: array(RequestCensusGroupSchema).readonly()
|
|
28644
|
+
}).extend({ persisted: boolean() });
|
|
28645
|
+
/** Severity vocabulary. Mirrors `LogLevel` in `interfaces/logging.ts`. */
|
|
28646
|
+
var LogLevelSchema$1 = _enum([
|
|
28647
|
+
"debug",
|
|
28648
|
+
"info",
|
|
28649
|
+
"warn",
|
|
28650
|
+
"error"
|
|
28651
|
+
]);
|
|
28652
|
+
/**
|
|
28653
|
+
* The diagnostics that can be ARMED for a window. Exactly one today.
|
|
28654
|
+
*
|
|
28655
|
+
* A diagnostic is anything whose cost is only worth paying while a question is
|
|
28656
|
+
* open. It never persists as a boolean: see {@link DiagnosticWindowSchema}.
|
|
28657
|
+
*/
|
|
28658
|
+
var DiagnosticIdSchema = _enum(["request-census"]);
|
|
28659
|
+
/**
|
|
28660
|
+
* The layers of the level hierarchy, general → specific. The most specific
|
|
28661
|
+
* layer that carries an explicit value wins.
|
|
28662
|
+
*
|
|
28663
|
+
* `component` is DECLARED and not yet resolvable: the per-component channels
|
|
28664
|
+
* are a later slice of the same plan, and a `levelSource` enum that has to
|
|
28665
|
+
* grow later would force every consumer of this document to change with it.
|
|
28666
|
+
* Nothing returns `component` today.
|
|
28667
|
+
*/
|
|
28668
|
+
var LoggingScopeKindSchema = _enum([
|
|
28669
|
+
"cluster",
|
|
28670
|
+
"node",
|
|
28671
|
+
"component"
|
|
28672
|
+
]);
|
|
28673
|
+
/** Where an effective level came from. `default` = nothing is set anywhere. */
|
|
28674
|
+
var LoggingLevelSourceSchema = _enum([
|
|
28675
|
+
"default",
|
|
28676
|
+
"cluster",
|
|
28677
|
+
"node",
|
|
28678
|
+
"component"
|
|
28679
|
+
]);
|
|
28680
|
+
/**
|
|
28681
|
+
* One layer of the hierarchy as it actually STANDS.
|
|
28682
|
+
*
|
|
28683
|
+
* `level: null` is the whole reason this array is returned: it is the
|
|
28684
|
+
* difference between "this node is at `info` because I decided it" and
|
|
28685
|
+
* "...because it inherits". An operator who clears an override believing they
|
|
28686
|
+
* are clearing an inherited value has been handed the same defect as the two
|
|
28687
|
+
* contradicting knobs this document exists to remove, moved one floor up.
|
|
28688
|
+
*/
|
|
28689
|
+
var LoggingLevelLayerSchema = object({
|
|
28690
|
+
scope: LoggingScopeKindSchema,
|
|
28691
|
+
/** The node this layer speaks for; `null` on the cluster layer. */
|
|
28692
|
+
nodeId: string$2().nullable(),
|
|
28693
|
+
/** Explicitly set here, or `null` when this layer inherits. */
|
|
28694
|
+
level: LogLevelSchema$1.nullable()
|
|
28695
|
+
});
|
|
28696
|
+
/** What a line is judged against, and WHICH layer decided it. */
|
|
28697
|
+
var LoggingEffectiveSchema = object({
|
|
28698
|
+
level: LogLevelSchema$1,
|
|
28699
|
+
levelSource: LoggingLevelSourceSchema
|
|
28700
|
+
});
|
|
28701
|
+
/** Every layer, general → specific. Never collapsed into the effective value. */
|
|
28702
|
+
var LoggingExplicitSchema = object({ layers: array(LoggingLevelLayerSchema).readonly() });
|
|
28703
|
+
/**
|
|
28704
|
+
* An armed diagnostic, with its DEADLINE.
|
|
28705
|
+
*
|
|
28706
|
+
* The shape of ADR-0244: what is stored is a deadline and never a flag, so a
|
|
28707
|
+
* diagnostic somebody forgot expires by itself, and a boot-window measurement
|
|
28708
|
+
* survives the restart it exists to measure. `remainingMs` is 0 whenever
|
|
28709
|
+
* `armed` is false — a window is never reported as slightly expired.
|
|
28710
|
+
*/
|
|
28711
|
+
var DiagnosticWindowSchema = object({
|
|
28712
|
+
id: DiagnosticIdSchema,
|
|
28713
|
+
armed: boolean(),
|
|
28714
|
+
/** Epoch ms the window closes at. 0 when disarmed. */
|
|
28715
|
+
armedUntilMs: number(),
|
|
28716
|
+
/** Ms left before it expires on its own. 0 when disarmed. */
|
|
28717
|
+
remainingMs: number(),
|
|
28718
|
+
/** Whether the stored deadline is the one the live diagnostic is running —
|
|
28719
|
+
* i.e. whether this window would survive a restart. */
|
|
28720
|
+
persisted: boolean()
|
|
28721
|
+
});
|
|
28722
|
+
/**
|
|
28723
|
+
* `armMs: 0` DISARMS. Any positive value arms for that long, clamped by the
|
|
28724
|
+
* server — there is no maximum here on purpose: a bound repeated in a schema
|
|
28725
|
+
* is a second knob that disagrees with the first the day one of them moves.
|
|
28726
|
+
*/
|
|
28727
|
+
var DiagnosticWindowPatchSchema = object({
|
|
28728
|
+
id: DiagnosticIdSchema,
|
|
28729
|
+
armMs: number().int().min(0),
|
|
28730
|
+
/** Cadence of the diagnostic's aggregated report line. Clamped by the server. */
|
|
28731
|
+
reportEveryMs: number().int().positive().optional()
|
|
28732
|
+
});
|
|
28733
|
+
/**
|
|
28734
|
+
* A PATCH, and patches MERGE.
|
|
28735
|
+
*
|
|
28736
|
+
* A field absent from the patch is left exactly as it was — arming a
|
|
28737
|
+
* diagnostic never resets a level, and setting a level never disarms a window.
|
|
28738
|
+
* The provider must not reconstruct the document as `{ ...snapshot, ...patch }`:
|
|
28739
|
+
* `setAll` already merges, and rebuilding the object is how an absent field
|
|
28740
|
+
* turns into an erased one.
|
|
28741
|
+
*/
|
|
28742
|
+
var LoggingSettingsPatchSchema = object({
|
|
28743
|
+
/**
|
|
28744
|
+
* Absent leaves the level untouched. `null` CLEARS the explicit value at the
|
|
28745
|
+
* addressed scope so it inherits again. A value sets it.
|
|
28746
|
+
*/
|
|
28747
|
+
level: LogLevelSchema$1.nullable().optional(),
|
|
28748
|
+
/**
|
|
28749
|
+
* Only the diagnostics NAMED here change. An armed window that is not listed
|
|
28750
|
+
* keeps running — a patch is never a full replacement.
|
|
28751
|
+
*/
|
|
28752
|
+
diagnostics: array(DiagnosticWindowPatchSchema).readonly().optional()
|
|
28753
|
+
});
|
|
28754
|
+
/**
|
|
28755
|
+
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
28756
|
+
*
|
|
28757
|
+
* Deliberately NOT called `nodeId`: that key is reserved on every cap method
|
|
28758
|
+
* input — the generated router strips it and uses it to resolve the PROVIDER
|
|
28759
|
+
* on that node (`resolveProvider(cap, nodeId, …)`). A document about
|
|
28760
|
+
* `agent-1` addressed as `nodeId` would be forwarded to agent-1 and answered
|
|
28761
|
+
* by an agent that holds no cluster document at all. The hub is the single
|
|
28762
|
+
* authority over the whole hierarchy and answers for every layer, so the
|
|
28763
|
+
* layer selector needs a name the transport does not already own.
|
|
28764
|
+
*/
|
|
28765
|
+
var GetLoggingSettingsInputSchema = object({ scopeNodeId: string$2().optional() });
|
|
28766
|
+
var SetLoggingSettingsInputSchema = object({
|
|
28767
|
+
scopeNodeId: string$2().optional(),
|
|
28768
|
+
patch: LoggingSettingsPatchSchema
|
|
28769
|
+
});
|
|
28770
|
+
/**
|
|
28771
|
+
* The whole document, as read and as returned after every write.
|
|
28772
|
+
*
|
|
28773
|
+
* `persisted: false` means the settings store could not be read or written.
|
|
28774
|
+
* The in-memory mirror still governs behaviour and is unchanged by the
|
|
28775
|
+
* failure — a read that fails neither switches a level nor disarms a window
|
|
28776
|
+
* (D49) — but the operator is told that what they are looking at would not
|
|
28777
|
+
* survive a restart.
|
|
28778
|
+
*/
|
|
28779
|
+
var LoggingSettingsStateSchema = object({
|
|
28780
|
+
/** The layer this document was read at. `null` = the cluster layer. */
|
|
28781
|
+
scopeNodeId: string$2().nullable(),
|
|
28782
|
+
effective: LoggingEffectiveSchema,
|
|
28783
|
+
explicit: LoggingExplicitSchema,
|
|
28784
|
+
activeWindows: array(DiagnosticWindowSchema).readonly(),
|
|
28785
|
+
persisted: boolean()
|
|
28786
|
+
});
|
|
28327
28787
|
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
28788
|
kind: "mutation",
|
|
28329
28789
|
auth: "admin"
|
|
@@ -28336,6 +28796,9 @@ method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), met
|
|
|
28336
28796
|
}), method(_void(), SiteLocationStatusSchema, {
|
|
28337
28797
|
kind: "mutation",
|
|
28338
28798
|
auth: "admin"
|
|
28799
|
+
}), method(_void(), RequestCensusStatusSchema, { auth: "admin" }), method(GetLoggingSettingsInputSchema, LoggingSettingsStateSchema, { auth: "admin" }), method(SetLoggingSettingsInputSchema, LoggingSettingsStateSchema, {
|
|
28800
|
+
kind: "mutation",
|
|
28801
|
+
auth: "admin"
|
|
28339
28802
|
});
|
|
28340
28803
|
/**
|
|
28341
28804
|
* Tamper / case-open detection sensor. Drives Home Assistant
|
|
@@ -35575,6 +36038,18 @@ Object.freeze({
|
|
|
35575
36038
|
addonId: null,
|
|
35576
36039
|
access: "create"
|
|
35577
36040
|
},
|
|
36041
|
+
"system.getLoggingSettings": {
|
|
36042
|
+
capName: "system",
|
|
36043
|
+
capScope: "system",
|
|
36044
|
+
addonId: null,
|
|
36045
|
+
access: "view"
|
|
36046
|
+
},
|
|
36047
|
+
"system.getRequestCensus": {
|
|
36048
|
+
capName: "system",
|
|
36049
|
+
capScope: "system",
|
|
36050
|
+
addonId: null,
|
|
36051
|
+
access: "view"
|
|
36052
|
+
},
|
|
35578
36053
|
"system.getRetentionConfig": {
|
|
35579
36054
|
capName: "system",
|
|
35580
36055
|
capScope: "system",
|
|
@@ -35605,6 +36080,12 @@ Object.freeze({
|
|
|
35605
36080
|
addonId: null,
|
|
35606
36081
|
access: "view"
|
|
35607
36082
|
},
|
|
36083
|
+
"system.setLoggingSettings": {
|
|
36084
|
+
capName: "system",
|
|
36085
|
+
capScope: "system",
|
|
36086
|
+
addonId: null,
|
|
36087
|
+
access: "create"
|
|
36088
|
+
},
|
|
35608
36089
|
"system.setRetentionConfig": {
|
|
35609
36090
|
capName: "system",
|
|
35610
36091
|
capScope: "system",
|
|
@@ -36760,6 +37241,10 @@ Object.freeze({
|
|
|
36760
37241
|
name: "deviceId",
|
|
36761
37242
|
form: "single",
|
|
36762
37243
|
optional: true
|
|
37244
|
+
}, {
|
|
37245
|
+
name: "deviceIds",
|
|
37246
|
+
form: "array",
|
|
37247
|
+
optional: true
|
|
36763
37248
|
}],
|
|
36764
37249
|
"fanControl.setDirection": [{
|
|
36765
37250
|
name: "deviceId",
|
|
@@ -38370,7 +38855,38 @@ object({
|
|
|
38370
38855
|
* fallback — i.e. the pre-2026-08-13 miss profile. Set it there only to
|
|
38371
38856
|
* reproduce that.
|
|
38372
38857
|
*/
|
|
38373
|
-
tileBudgetMb: number().int().min(0).max(1024)
|
|
38858
|
+
tileBudgetMb: number().int().min(0).max(1024),
|
|
38859
|
+
/**
|
|
38860
|
+
* RAM ceiling per decode worker, in MB, for the SCENE TILES — one
|
|
38861
|
+
* JPEG-encoded copy of the WHOLE native frame, cut in the same instant as the
|
|
38862
|
+
* subject tiles, on frames that detected something.
|
|
38863
|
+
*
|
|
38864
|
+
* It exists because a subject tile cannot answer a FULL-FRAME request:
|
|
38865
|
+
* containment is strict by design, so the native `keyFrame`, the detail
|
|
38866
|
+
* plane's `frameJpeg` rung and the display-crop fallback had no rung at all
|
|
38867
|
+
* below the hold. Measured on the live cluster: 23.3% of key-frame captures
|
|
38868
|
+
* missed, 95.7% of them with `worker-lease-gone` — the raster released one
|
|
38869
|
+
* frame-time after delivery, with the request only p50 367 ms behind it.
|
|
38870
|
+
*
|
|
38871
|
+
* Sizing, and why this is a budget and not a duration: a scene tile is
|
|
38872
|
+
* ~1.5-2.5 MB at 4K (against ~23.75 MB for the raster it was cut from and
|
|
38873
|
+
* ~60-120 KB for a subject tile), and it is cut ~0.4 times a second per busy
|
|
38874
|
+
* camera — only detection-bearing frames get one. 48 MB is therefore ~20-30
|
|
38875
|
+
* frames, i.e. the store's 30 s TTL binds at the steady state and the budget
|
|
38876
|
+
* binds only through a detection burst, where it still covers well past the
|
|
38877
|
+
* measured p90 ask age of 4.3 s. Holding the RASTERS for the same window
|
|
38878
|
+
* would be ~498 MB per camera and ~6 GB at peak concurrency — the OOM this
|
|
38879
|
+
* whole shape exists to avoid.
|
|
38880
|
+
*
|
|
38881
|
+
* A SEPARATE ceiling from `tileBudgetMb` on purpose: a scene tile is ~20× a
|
|
38882
|
+
* subject tile, so one shared budget would let a busy camera's key frames
|
|
38883
|
+
* evict the face/plate tiles the recognisers depend on. Two budgets make that
|
|
38884
|
+
* impossible rather than unlikely. `0` DISABLES scene tiles and restores the
|
|
38885
|
+
* pre-existing behaviour, where a late full-frame request had nothing but the
|
|
38886
|
+
* ≤640 RAM raster — which the `keyFrame` gate rejects, so in practice it had
|
|
38887
|
+
* nothing.
|
|
38888
|
+
*/
|
|
38889
|
+
sceneBudgetMb: number().int().min(0).max(1024)
|
|
38374
38890
|
});
|
|
38375
38891
|
/**
|
|
38376
38892
|
* The values in force when the operator has set nothing.
|
|
@@ -38386,12 +38902,14 @@ var DEFAULT_NATIVE_LEASE_SETTINGS = {
|
|
|
38386
38902
|
budgetMb: 1024,
|
|
38387
38903
|
activityMs: 15e3,
|
|
38388
38904
|
tileBudgetMb: 64,
|
|
38905
|
+
sceneBudgetMb: 48,
|
|
38389
38906
|
admission: "inferred"
|
|
38390
38907
|
};
|
|
38391
38908
|
DEFAULT_NATIVE_LEASE_SETTINGS.holdFrames;
|
|
38392
38909
|
DEFAULT_NATIVE_LEASE_SETTINGS.budgetMb;
|
|
38393
38910
|
DEFAULT_NATIVE_LEASE_SETTINGS.activityMs;
|
|
38394
38911
|
DEFAULT_NATIVE_LEASE_SETTINGS.tileBudgetMb;
|
|
38912
|
+
DEFAULT_NATIVE_LEASE_SETTINGS.sceneBudgetMb;
|
|
38395
38913
|
DEFAULT_NATIVE_LEASE_SETTINGS.admission;
|
|
38396
38914
|
var MB = 1024 * 1024;
|
|
38397
38915
|
1024 * MB, 3072 * MB;
|