@camstack/addon-admin-ui 1.2.102 → 1.2.104

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 (107) hide show
  1. package/dist/assets/{AddLocationWizard-xjNUYOP4.js → AddLocationWizard-BRqOiJb6.js} +1 -1
  2. package/dist/assets/{AddonCollectionPage-DspmP66O.js → AddonCollectionPage-CjRbqWJ3.js} +1 -1
  3. package/dist/assets/{Addons-ByXBZ3zi.js → Addons-lqIiQzO7.js} +1 -1
  4. package/dist/assets/{AdminTabs-9AwhBI94.js → AdminTabs-CVoGbDhA.js} +1 -1
  5. package/dist/assets/{AiProfiles-CCe5_zY4.js → AiProfiles-ou-7yuXL.js} +1 -1
  6. package/dist/assets/{BrokerForm-VGXakxUd.js → BrokerForm-7u8E5U9_.js} +1 -1
  7. package/dist/assets/{Build-DUqW5Gxx.js → Build-Brn7Tn4h.js} +1 -1
  8. package/dist/assets/{Capabilities-B11_OV0Y.js → Capabilities-DwNU00eE.js} +1 -1
  9. package/dist/assets/{CapabilityBadges-BwNGTw8y.js → CapabilityBadges-CsAl2y39.js} +1 -1
  10. package/dist/assets/{Cluster-D0TEBilk.js → Cluster-BGuGB9uF.js} +1 -1
  11. package/dist/assets/Data-BVA5NVsY.js +1 -0
  12. package/dist/assets/{DetectionIntelligence-CK9np42Z.js → DetectionIntelligence-DlT6ynCp.js} +1 -1
  13. package/dist/assets/{DeviceAggregateSection-DGQHZLG0.js → DeviceAggregateSection-CWkYXbF4.js} +1 -1
  14. package/dist/assets/{DeviceDetail-B1IOH7GM.js → DeviceDetail-kmk5FqDj.js} +2 -2
  15. package/dist/assets/{Devices-DPoVojQK.js → Devices-Cu-hek-9.js} +1 -1
  16. package/dist/assets/{EmbedPlayerPage-B6cO9q5G.js → EmbedPlayerPage-BJDQ5V6L.js} +1 -1
  17. package/dist/assets/{Events-bNZw4v7L.js → Events-BaiUPGhH.js} +1 -1
  18. package/dist/assets/{FormBuilder-DqBRb6Sj.js → FormBuilder-DTj4iNvO.js} +1 -1
  19. package/dist/assets/Identity-ELB_u3oq.js +1 -0
  20. package/dist/assets/{IntegrationDetail-DjBnD4E4.js → IntegrationDetail-B8qQWo3C.js} +1 -1
  21. package/dist/assets/{Integrations-DKpeygWw.js → Integrations-CBEyW7sW.js} +1 -1
  22. package/dist/assets/{Integrations-BB3fSZZW.js → Integrations-bxxcBBWJ.js} +1 -1
  23. package/dist/assets/Logs-CHKov6qD.js +1 -0
  24. package/dist/assets/{MotionZonesSettings-CtGDIBWB.js → MotionZonesSettings-DN-JV0gx.js} +1 -1
  25. package/dist/assets/{MyAccess-DHUGIabu.js → MyAccess-53YgTEoJ.js} +1 -1
  26. package/dist/assets/{Network-CnSsPmeV.js → Network-BjpS-_QA.js} +1 -1
  27. package/dist/assets/{NodeAddonsSettingsPanel-8F1PhiIq.js → NodeAddonsSettingsPanel-CgRwgUJe.js} +1 -1
  28. package/dist/assets/NodeInferenceDevices-2XvdP1jz.js +1 -0
  29. package/dist/assets/{Notifications-DeakyZJa.js → Notifications-CjkVAVEO.js} +1 -1
  30. package/dist/assets/Pipeline-AJroyXyh.js +1 -0
  31. package/dist/assets/{Plates-Cmi99Ln5.js → Plates-CenIrr1w.js} +1 -1
  32. package/dist/assets/{PrivacyMaskSettings-B2h2VMyH.js → PrivacyMaskSettings-N8sR1n-o.js} +1 -1
  33. package/dist/assets/{ProviderIcon-BVClDyfu.js → ProviderIcon-DlT21Ll7.js} +1 -1
  34. package/dist/assets/{Recordings-C9LP3o_e.js → Recordings-B3o4xrdm.js} +1 -1
  35. package/dist/assets/{ScanNetworkModal-IRdKOplG.js → ScanNetworkModal-Db-0EJTb.js} +1 -1
  36. package/dist/assets/{SceneMonitorEditor-BOdP3AvS.js → SceneMonitorEditor-D2k8KDjP.js} +1 -1
  37. package/dist/assets/{Scenes-PSzaKz5n.js → Scenes-lQRmFsHt.js} +1 -1
  38. package/dist/assets/{Settings-C4mHm6M2.js → Settings-DT5l0Uli.js} +1 -1
  39. package/dist/assets/{Showroom-CQPNOoYB.js → Showroom-UboCKCyZ.js} +1 -1
  40. package/dist/assets/{Terminal-CvJ3MtHJ.js → Terminal-DLc46OTC.js} +3 -3
  41. package/dist/assets/{_virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-DccaVQGd.js → _virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-oaa5M1jQ.js} +1 -1
  42. package/dist/assets/{bell-ring-BlXqso2t.js → bell-ring-COda2YP6.js} +1 -1
  43. package/dist/assets/{boxes-C7tyzhWt.js → boxes-Draytijm.js} +1 -1
  44. package/dist/assets/{build-cluster-graph-C7WDEBPT.js → build-cluster-graph-BdSDB2Ts.js} +1 -1
  45. package/dist/assets/circle-check-big-BDVeFhGN.js +1 -0
  46. package/dist/assets/{circle-x-DZIkb-Lz.js → circle-x-Bm_9zsoV.js} +1 -1
  47. package/dist/assets/clock-c8JqsuNE.js +1 -0
  48. package/dist/assets/{copy-CXmQmVfO.js → copy-DG5q0dKt.js} +1 -1
  49. package/dist/assets/{debounced-invalidate-B-d-TMXU.js → debounced-invalidate-BzPG7ouP.js} +1 -1
  50. package/dist/assets/{dist-0-0Oj4Ob.js → dist-D0drQOtu.js} +1 -1
  51. package/dist/assets/dist-HEbubhPn.js +349 -0
  52. package/dist/assets/{download-CfM9N5MT.js → download-cpVQjEyE.js} +1 -1
  53. package/dist/assets/{face-bbox-Hcwf_KR0.js → face-bbox-Crck7-aj.js} +1 -1
  54. package/dist/assets/{hostInit-DdzXJVVO.js → hostInit-4XqubaxD.js} +1 -1
  55. package/dist/assets/index-BVi-8S32.js +4 -0
  56. package/dist/assets/index-BlRpxCYM.css +2 -0
  57. package/dist/assets/{key-round-DirTpnKo.js → key-round-DayV9A0N.js} +1 -1
  58. package/dist/assets/layers-DlO9Vujj.js +1 -0
  59. package/dist/assets/{mf-entry-bootstrap-0-94812e64.js → mf-entry-bootstrap-0-bf6e91c7.js} +2 -2
  60. package/dist/assets/{pencil-BFQRfkl7.js → pencil-Cg8GCU7r.js} +1 -1
  61. package/dist/assets/play-DTqMPbh1.js +1 -0
  62. package/dist/assets/{player-overlays-CHrph3xo.js → player-overlays-Du1-MBv9.js} +1 -1
  63. package/dist/assets/plus-BVdOrfOf.js +1 -0
  64. package/dist/assets/power-3oIL7U77.js +1 -0
  65. package/dist/assets/{radio-BmH8fc6z.js → radio-BcMTYzH7.js} +1 -1
  66. package/dist/assets/{refresh-cw-BBc2JTLr.js → refresh-cw-DHnNPZDY.js} +1 -1
  67. package/dist/assets/remoteEntry-D_kgSt6K.js +1 -0
  68. package/dist/assets/rotate-ccw-Y2yzHDE5.js +1 -0
  69. package/dist/assets/rotate-cw-CsJmHTKk.js +1 -0
  70. package/dist/assets/{send-DFy_pFNt.js → send-DEwovXZg.js} +1 -1
  71. package/dist/assets/{server-CqOiCoo_.js → server-DIC_0QGI.js} +1 -1
  72. package/dist/assets/{shield-C0hVD7Yo.js → shield-B3CTkpId.js} +1 -1
  73. package/dist/assets/square-Y5IC2BkQ.js +1 -0
  74. package/dist/assets/{square-check-big-CDOJdigz.js → square-check-big-Cv6J95Y0.js} +1 -1
  75. package/dist/assets/{src-C52t7Uiv.js → src-CgQ6F-z1.js} +17 -17
  76. package/dist/assets/src-DKK7VZz6.js +349 -0
  77. package/dist/assets/{star-BcrH71wG.js → star-Bpxj8FrH.js} +1 -1
  78. package/dist/assets/{undo-2-C_1eWxDD.js → undo-2-D72fS4H9.js} +1 -1
  79. package/dist/assets/{upload-X3vKXYEa.js → upload-CE7bvcbx.js} +1 -1
  80. package/dist/assets/{use-scenes-feed-DznJQEVW.js → use-scenes-feed-CSDyreHh.js} +1 -1
  81. package/dist/assets/useEventInvalidation-sVWBGyHi.js +1 -0
  82. package/dist/assets/{video-D-Tl6S_x.js → video-BpGHjT4M.js} +1 -1
  83. package/dist/assets/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-B83-HnIn.js → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-D9Edks6N.js} +2 -2
  84. package/dist/assets/{wifi-BcHa5Af2.js → wifi-DxMdBp3O.js} +1 -1
  85. package/dist/assets/{zap-DAvG_CQH.js → zap-DIdS1Ske.js} +1 -1
  86. package/dist/index.html +6 -6
  87. package/dist/server/addon.js +578 -60
  88. package/package.json +1 -1
  89. package/dist/assets/Data-Cy67bW0a.js +0 -1
  90. package/dist/assets/Identity-C4yPB2tV.js +0 -1
  91. package/dist/assets/Logs-BTBIyLNd.js +0 -1
  92. package/dist/assets/NodeInferenceDevices-Bvq9dR_b.js +0 -1
  93. package/dist/assets/Pipeline-Bhr3dmlx.js +0 -1
  94. package/dist/assets/circle-check-big-_wz1yIB9.js +0 -1
  95. package/dist/assets/clock-CSbo3gkM.js +0 -1
  96. package/dist/assets/dist-DzZnZN0v.js +0 -349
  97. package/dist/assets/index-BjZTxNFK.js +0 -4
  98. package/dist/assets/index-r1TtJ95R.css +0 -2
  99. package/dist/assets/play-RppAHnLs.js +0 -1
  100. package/dist/assets/plus-BtQBvRuY.js +0 -1
  101. package/dist/assets/power-BPX2cYIN.js +0 -1
  102. package/dist/assets/remoteEntry-C1cmXJIC.js +0 -1
  103. package/dist/assets/rotate-ccw-CEvQgC-E.js +0 -1
  104. package/dist/assets/rotate-cw-CTrXx8FE.js +0 -1
  105. package/dist/assets/square-Mo-mUBnd.js +0 -1
  106. package/dist/assets/src-CRBtfo2P.js +0 -349
  107. package/dist/assets/useEventInvalidation-CbtypNsV.js +0 -1
@@ -7529,6 +7529,66 @@ var OpsLogQueryInputSchema = object({
7529
7529
  /** Max rows returned, newest-first. */
7530
7530
  limit: number().int().min(1).max(1e3).optional()
7531
7531
  });
7532
+ var LabelDefinitionSchema = object({
7533
+ id: string(),
7534
+ name: string(),
7535
+ category: string().optional(),
7536
+ description: string().optional(),
7537
+ icon: string().optional()
7538
+ });
7539
+ /** Detection-macro targets a catalog `classMap` may resolve to. */
7540
+ var CLASS_MAP_MACRO_TARGETS = [
7541
+ "person",
7542
+ "vehicle",
7543
+ "animal",
7544
+ "package"
7545
+ ];
7546
+ /**
7547
+ * Le macro classi di PRIMO LIVELLO: quelle che un object detector emette e che
7548
+ * un operatore può selezionare.
7549
+ *
7550
+ * Sono le tre offerte dallo step `object-detection`
7551
+ * (`addon-pipeline/src/detection-pipeline/registry/step-definitions.ts`,
7552
+ * `enabledMacroClasses`). `package` sta in {@link CLASS_MAP_MACRO_TARGETS} e in
7553
+ * `MACRO_LABELS` — è una macro vera — ma NON qui: appartiene allo step
7554
+ * `package-detection`, la cui abilitazione è guidata dalle zone, e offrire la
7555
+ * stessa parola due volte ha già fatto accendere a un operatore il proxy COCO
7556
+ * (suitcase/backpack/handbag) lasciando spento il detector dedicato.
7557
+ *
7558
+ * UNA lista. Prima di oggi le stesse tre erano scritte a mano nell'offerta
7559
+ * dello step e una seconda volta come union `FirstLevelMacro`
7560
+ * (`types/detection.ts`); una terza copia per il trigger di registrazione
7561
+ * (`RecordingTriggers.objectClasses`) avrebbe reso invisibile la divergenza
7562
+ * successiva.
7563
+ */
7564
+ var FIRST_LEVEL_MACRO_CLASSES = [
7565
+ "person",
7566
+ "vehicle",
7567
+ "animal"
7568
+ ];
7569
+ /**
7570
+ * Wire schema for a per-model CATALOG classMap override
7571
+ * (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
7572
+ * restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
7573
+ * detection pipeline executor actually routes.
7574
+ *
7575
+ * This is deliberately a DIFFERENT, narrower shape than the general-purpose
7576
+ * `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
7577
+ * and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
7578
+ * enum) — the two used to share the name `ClassMapDefinition`/
7579
+ * `ClassMapDefinitionSchema`, which made the schema-type-twin guard
7580
+ * (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
7581
+ * are not: it is two different concepts colliding on a name. Keep this type
7582
+ * under its own name rather than reusing `ClassMapDefinition` — reusing it
7583
+ * would either narrow every `ClassMapDefinition` consumer to the four
7584
+ * detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
7585
+ * schema exists for (see the "rejects a classMap whose target is not a
7586
+ * detection macro" test in `model-catalog-schema.test.ts`).
7587
+ */
7588
+ var DetectionCatalogClassMapSchema = object({
7589
+ mapping: record(string(), _enum(CLASS_MAP_MACRO_TARGETS)),
7590
+ preserveOriginal: boolean()
7591
+ });
7532
7592
  /**
7533
7593
  * Numeric day-of-week: 0 = Sunday … 6 = Saturday (matches `Date.getDay`).
7534
7594
  * Named `RecordingWeekday` to avoid collision with the string-union
@@ -7551,10 +7611,55 @@ var RecordingStorageModeSchema = _enum([
7551
7611
  "events",
7552
7612
  "continuous"
7553
7613
  ]);
7614
+ /**
7615
+ * Le macro classi che possono aprire una finestra di registrazione — le stesse
7616
+ * tre offerte dallo step `object-detection`, da UNA lista
7617
+ * ({@link FIRST_LEVEL_MACRO_CLASSES}).
7618
+ */
7619
+ var RecordingObjectTriggerClassSchema = _enum(FIRST_LEVEL_MACRO_CLASSES);
7620
+ /**
7621
+ * True quando `values` non ripete un elemento.
7622
+ *
7623
+ * Un duplicato non è innocuo: ogni voce di `objectClasses` / `sensorDeviceIds`
7624
+ * diventa una SORGENTE in `bandTriggerSources`, e la stessa sorgente due volte
7625
+ * conterebbe due volte le sue finestre in `segmentMissedByMs`.
7626
+ */
7627
+ var noDuplicates = (values) => new Set(values).size === values.length;
7554
7628
  /** Which detectors trigger an `events`-mode band. */
7555
7629
  var RecordingTriggersSchema = object({
7556
7630
  motion: boolean().optional(),
7557
- audioThresholdDbfs: number().optional()
7631
+ audioThresholdDbfs: number().optional(),
7632
+ /**
7633
+ * Le macro classi la cui detection apre una finestra. ASSENTE = la sorgente
7634
+ * non è ascoltata; un array VUOTO è rifiutato, perché "banda events, trigger
7635
+ * object acceso, nessuna classe" è la stessa forma "abilitata e non registra
7636
+ * nulla, per sempre" contro cui è scritto `eventsBandCanEverDemand`.
7637
+ *
7638
+ * Il segnale letto è GIÀ FILTRATO: solo detection `source: 'pipeline'`, cioè
7639
+ * quelle che hanno attraversato `enabledMacroClasses`, i
7640
+ * `minConfidence<Macro>` e il full-frame guard. L'AI a bordo camera
7641
+ * (`source: 'onboard'`) non attraversa nessuno di quei gate e NON apre
7642
+ * finestre — vedi `recorder/object-trigger.ts`.
7643
+ */
7644
+ objectClasses: array(RecordingObjectTriggerClassSchema).min(1).refine(noDuplicates, { message: "objectClasses must not repeat a class" }).optional(),
7645
+ /**
7646
+ * I device LINKED il cui FRONTE ALTO apre una finestra. Assente = la sorgente
7647
+ * non è ascoltata; un array vuoto è rifiutato per la stessa ragione di
7648
+ * `objectClasses`.
7649
+ *
7650
+ * Sono id di device SORGENTE, non camere: la banda li nomina, quindi il
7651
+ * percorso caldo (`DeviceStateChanged`, a ritmo di bus su tutta la flotta)
7652
+ * non fa RPC. L'OFFERTA da cui l'operatore li sceglie è un'altra domanda, e
7653
+ * si risolve con `deviceManager.getLinkedDevices` + `getBindingsBatch` per
7654
+ * device (D12) — mai un elenco globale di cap.
7655
+ *
7656
+ * Cosa vuol dire "alto" dipende dal TIPO di device e non è deciso qui:
7657
+ * `SOURCE_CAP_ACTIVE_FIELD` (`catalogs/sensor-active-state.ts`) è LA tabella,
7658
+ * la stessa che il virtual-doorbell usa dal 2026-08-05. Ed è il FRONTE, non
7659
+ * il livello: un contatto trovato già aperto al riavvio del runner non fa
7660
+ * registrare.
7661
+ */
7662
+ sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
7558
7663
  });
7559
7664
  /**
7560
7665
  * Mode of a single recording band — the recorder per-band vocabulary.
@@ -8006,41 +8111,6 @@ var DecoderSessionConfigSchema = object({
8006
8111
  */
8007
8112
  debug: boolean().optional()
8008
8113
  });
8009
- var LabelDefinitionSchema = object({
8010
- id: string(),
8011
- name: string(),
8012
- category: string().optional(),
8013
- description: string().optional(),
8014
- icon: string().optional()
8015
- });
8016
- /**
8017
- * Wire schema for a per-model CATALOG classMap override
8018
- * (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
8019
- * restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
8020
- * detection pipeline executor actually routes.
8021
- *
8022
- * This is deliberately a DIFFERENT, narrower shape than the general-purpose
8023
- * `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
8024
- * and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
8025
- * enum) — the two used to share the name `ClassMapDefinition`/
8026
- * `ClassMapDefinitionSchema`, which made the schema-type-twin guard
8027
- * (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
8028
- * are not: it is two different concepts colliding on a name. Keep this type
8029
- * under its own name rather than reusing `ClassMapDefinition` — reusing it
8030
- * would either narrow every `ClassMapDefinition` consumer to the four
8031
- * detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
8032
- * schema exists for (see the "rejects a classMap whose target is not a
8033
- * detection macro" test in `model-catalog-schema.test.ts`).
8034
- */
8035
- var DetectionCatalogClassMapSchema = object({
8036
- mapping: record(string(), _enum([
8037
- "person",
8038
- "vehicle",
8039
- "animal",
8040
- "package"
8041
- ])),
8042
- preserveOriginal: boolean()
8043
- });
8044
8114
  var MODEL_FORMATS = [
8045
8115
  "onnx",
8046
8116
  "coreml",
@@ -20814,7 +20884,7 @@ var lifecycleJobSchema = object({
20814
20884
  * `useAddonsOnAddonLogs`, etc. flow through the same codegen pipeline
20815
20885
  * as every other cap.
20816
20886
  */
20817
- var LogLevelSchema$1 = _enum([
20887
+ var LogLevelSchema$2 = _enum([
20818
20888
  "debug",
20819
20889
  "info",
20820
20890
  "warn",
@@ -21021,7 +21091,7 @@ var CustomActionInputSchema = object({
21021
21091
  method(_void(), array(AddonListItemSchema).readonly()), method(object({
21022
21092
  addonId: string(),
21023
21093
  limit: number().min(1).max(500).default(100),
21024
- level: LogLevelSchema$1.optional()
21094
+ level: LogLevelSchema$2.optional()
21025
21095
  }), array(LogQueryEntrySchema)), method(_void(), array(InstalledPackageSchema).readonly()), method(object({
21026
21096
  packageName: string(),
21027
21097
  version: string().optional()
@@ -21119,7 +21189,7 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
21119
21189
  auth: "admin"
21120
21190
  }), method(object({
21121
21191
  addonId: string(),
21122
- level: LogLevelSchema$1.optional()
21192
+ level: LogLevelSchema$2.optional()
21123
21193
  }), LogStreamEntrySchema, { kind: "subscription" });
21124
21194
  object({
21125
21195
  /** Carbon dioxide concentration in ppm. */
@@ -22113,6 +22183,35 @@ var FaceFilterEnum = _enum([
22113
22183
  "identified",
22114
22184
  "all"
22115
22185
  ]);
22186
+ /**
22187
+ * What a `listRecentFaces` page is ORDERED BY.
22188
+ *
22189
+ * - `timestamp` — when the face was seen. The historical (and default) order.
22190
+ * - `suggestionConfidence` — {@link FaceInfo.suggestedMatchScore}, the peak
22191
+ * cosine of the face's SUGGESTED identity. This is the "review by certainty"
22192
+ * order: it puts the suggestions an operator can confirm with one tap at the
22193
+ * top, and it is the reason this enum exists — a client that ranked a capped
22194
+ * page client-side was ranking the newest N, never the most certain N.
22195
+ *
22196
+ * A row with NO suggestion (`suggestedMatchScore` absent — a legacy row, an
22197
+ * auto-assigned face, or a face below the suggestion band) has no certainty to
22198
+ * compare. Under `suggestionConfidence` it sorts **LAST, in BOTH directions**
22199
+ * — flipping the direction reorders the rows that HAVE a certainty and never
22200
+ * floods the page with the ones that do not. `addon-post-analysis`'s
22201
+ * `store/face-sort.ts` is the single implementation, tiebreaks newest-first
22202
+ * then by faceId, and is what makes this a total order instead of the
22203
+ * backend's NULL-collation accident.
22204
+ */
22205
+ var FaceSortFieldEnum = _enum(["timestamp", "suggestionConfidence"]);
22206
+ var FaceSortDirectionEnum = _enum(["asc", "desc"]);
22207
+ /** One suggested group of look-alike UNASSIGNED faces. Ids only — an embedding
22208
+ * never leaves the server. */
22209
+ var FaceClusterSchema = object({
22210
+ faceIds: array(string()).readonly(),
22211
+ representativeFaceId: string(),
22212
+ size: number().int(),
22213
+ cohesion: number()
22214
+ });
22116
22215
  var MediaFileLiteSchema$1 = object({
22117
22216
  key: string(),
22118
22217
  kind: string(),
@@ -22159,24 +22258,72 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
22159
22258
  kind: "mutation",
22160
22259
  auth: "admin"
22161
22260
  }), method(object({
22162
- /** Restrict to one camera. Absent keeps the cluster-wide gallery view. */
22261
+ /**
22262
+ * Restrict to ONE camera. Absent keeps the cluster-wide gallery view.
22263
+ *
22264
+ * The legacy single-camera form, kept verbatim for every caller that
22265
+ * already sends it. A caller that wants a SET sends {@link deviceIds}
22266
+ * instead — never both: `deviceIds` is the authority whenever it is
22267
+ * present, and this field is then ignored rather than unioned, so
22268
+ * there is exactly one answer to "which cameras did I ask for".
22269
+ */
22163
22270
  deviceId: number().int().optional(),
22271
+ /**
22272
+ * Restrict to a SET of cameras — the review UI's camera filter, which
22273
+ * until now had to fetch the cluster-wide page and drop rows in the
22274
+ * client (so the `limit` it asked for was spent on cameras it was
22275
+ * about to discard).
22276
+ *
22277
+ * An **empty array reads NOTHING** — `[]` is an empty page, never
22278
+ * "every camera". A request for no devices is a request, not an
22279
+ * omission; same contract as `deviceManager.listFleet` and
22280
+ * `pipelineAnalytics.listRecentTracks`.
22281
+ *
22282
+ * Absent (`undefined`) is the omission, and keeps the cluster-wide view.
22283
+ */
22284
+ deviceIds: array(number().int()).optional(),
22164
22285
  limit: number().int().positive().optional(),
22165
22286
  filter: FaceFilterEnum.optional(),
22166
22287
  /**
22167
- * Inline the base64 crop on every row. Default `true` — the existing
22168
- * behaviour, kept so no caller breaks.
22288
+ * Window lower bound on {@link FaceInfo.timestamp}, INCLUSIVE.
22289
+ * Absent means no lower bound.
22290
+ */
22291
+ since: number().int().optional(),
22292
+ /**
22293
+ * Window upper bound on {@link FaceInfo.timestamp}, INCLUSIVE.
22294
+ * Absent means no upper bound.
22295
+ */
22296
+ until: number().int().optional(),
22297
+ /**
22298
+ * Order the page by time or by suggestion certainty. Default
22299
+ * `'timestamp'` — the historical order, unchanged for every caller
22300
+ * that does not ask.
22169
22301
  *
22170
- * Set `false` once the caller renders {@link FaceInfo.cropUrl}: that
22171
- * drops ~2.87 MiB per 500-row page to a few KiB of metadata and lets
22172
- * the browser cache the images.
22302
+ * See {@link FaceSortFieldEnum} for what a row with no suggestion
22303
+ * does under `'suggestionConfidence'`.
22173
22304
  *
22174
- * **This is an INPUT field, so it does not reach the addon until the
22175
- * next train.** The hub router validates cap inputs against its own
22176
- * compiled Zod, which strips a key it does not know verified today
22177
- * on the OUTPUT side, where an additive field DOES arrive immediately
22178
- * (`Track.hasFace`). Until the train ships, sending `false` is
22179
- * harmless and simply keeps the crops inline.
22305
+ * Cost note: `'timestamp'` is served by the `(deviceId, timestamp)`
22306
+ * index and stops reading as soon as `limit` rows have PASSED the
22307
+ * filter. `'suggestionConfidence'` cannot stop earlythe most
22308
+ * certain row may be the oldest so it walks the window. Narrow it
22309
+ * with {@link since} / {@link until}.
22310
+ */
22311
+ sortBy: FaceSortFieldEnum.optional(),
22312
+ /** Sort direction for {@link sortBy}. Default `'desc'`. */
22313
+ sortDirection: FaceSortDirectionEnum.optional(),
22314
+ /**
22315
+ * Inline the base64 crop on every row.
22316
+ *
22317
+ * Default `false` since the 2026-08-25 inversion — see
22318
+ * `include-crops-default.ts`, which is the ONE place that resolves
22319
+ * this for every gallery, and which records why the inline shape had
22320
+ * to become the one you ASK for (60 457 ms → UDS timeout at 500 rows).
22321
+ * The doc here used to still say `true`; it was wrong, and a leftover
22322
+ * that describes the old design reads as permission to rely on it.
22323
+ *
22324
+ * Nothing loses its image: the row carries {@link FaceInfo.cropUrl},
22325
+ * which the browser fetches off the `event-media` plane in parallel,
22326
+ * cached and ETagged.
22180
22327
  */
22181
22328
  includeCrops: boolean().optional()
22182
22329
  }).optional(), array(FaceInfoSchema).readonly()), method(object({
@@ -22212,13 +22359,39 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
22212
22359
  }), method(object({
22213
22360
  threshold: number().min(0).max(1).optional(),
22214
22361
  minClusterSize: number().int().min(2).optional(),
22215
- limit: number().int().positive().optional()
22216
- }).optional(), array(object({
22217
- faceIds: array(string()).readonly(),
22218
- representativeFaceId: string(),
22219
- size: number().int(),
22220
- cohesion: number()
22221
- })).readonly());
22362
+ /**
22363
+ * Cap on the number of CLUSTERS returned. Renamed from `limit`,
22364
+ * which read as though it bounded the work — it never did.
22365
+ *
22366
+ * Wins over {@link limit} when both are sent.
22367
+ */
22368
+ maxClusters: number().int().positive().optional(),
22369
+ /**
22370
+ * @deprecated Ambiguous name for {@link maxClusters} — it cuts the
22371
+ * RESULT, not the scan. Kept so existing callers keep working; send
22372
+ * `maxClusters` (and, if you care about cost, {@link maxFacesScanned}).
22373
+ */
22374
+ limit: number().int().positive().optional(),
22375
+ /**
22376
+ * Cap on the number of unassigned faces READ AND CLUSTERED — the
22377
+ * POOL, not the result.
22378
+ *
22379
+ * This is the knob {@link maxClusters} was mistaken for. Clustering
22380
+ * used to read every unassigned face on the hub no matter what the
22381
+ * caller asked for, because the only bound cut the finished clusters
22382
+ * afterwards; a UI showing a window of 100 paid for a scan of the
22383
+ * whole corpus, on an addon whose disk is under contention.
22384
+ *
22385
+ * The pool is the NEWEST matching faces first — the same order the
22386
+ * gallery shows — so a bound here shortens the horizon, it does not
22387
+ * sample it randomly.
22388
+ *
22389
+ * Default: 1 000 (`FACE_SWEEP_PAGE`, exactly one store page). Chosen
22390
+ * so the live corpus — 372 face rows — is unaffected while the
22391
+ * unbounded scan can never come back as the table grows.
22392
+ */
22393
+ maxFacesScanned: number().int().positive().optional()
22394
+ }).optional(), array(FaceClusterSchema).readonly());
22222
22395
  /**
22223
22396
  * Fan-control cap. Models HA `fan.*` entity-specific surfaces:
22224
22397
  * speed percentage, preset modes, ceiling-fan direction, and
@@ -25941,6 +26114,293 @@ var SetSiteLocationInputSchema = object({
25941
26114
  latitude: number().min(-90).max(90),
25942
26115
  longitude: number().min(-180).max(180)
25943
26116
  }).nullable();
26117
+ /**
26118
+ * The TRANSPORT a call arrived on.
26119
+ *
26120
+ * Every counted call carries exactly one of these, and `unknown` is a PLANE
26121
+ * rather than a gap: a plane that cannot attribute a call declares it here, so
26122
+ * the call lands in a named bucket instead of vanishing. `planes` summing to
26123
+ * `procedureCalls` is what makes "the sum of the planes explains the total"
26124
+ * checkable rather than asserted.
26125
+ *
26126
+ * - `http` — the Fastify tRPC plugin (`/trpc/*`), one context per request.
26127
+ * - `ws` — `applyWSSHandler`, counted per OPERATION rather than per
26128
+ * connection; the viewer talks to the hub over `wsLink`
26129
+ * exclusively, so this is the plane the HTTP census could not see.
26130
+ * - `mesh` — the in-process `$core-caps` bridge (`createCaller`), which
26131
+ * never touches a socket and therefore never touched a census.
26132
+ * - `unknown` — counted, plane undecidable. No hook produces it today, and
26133
+ * that is exactly what its `0` asserts: every plane the hub has can name
26134
+ * itself. It is an output bucket, never a knob — a call that arrives on a
26135
+ * plane nobody instrumented lands here instead of vanishing from the total.
26136
+ */
26137
+ var TransportPlaneSchema = _enum([
26138
+ "http",
26139
+ "ws",
26140
+ "mesh",
26141
+ "unknown"
26142
+ ]);
26143
+ /**
26144
+ * Calls per plane. Every key is always present, `0` included — an absent plane
26145
+ * reads as "not instrumented", which is the one thing this census must never
26146
+ * make an operator wonder about.
26147
+ */
26148
+ var TransportPlaneCountsSchema = object({
26149
+ http: number(),
26150
+ ws: number(),
26151
+ mesh: number(),
26152
+ unknown: number()
26153
+ });
26154
+ /**
26155
+ * One `(plane, procedure, user-agent, ip, principal)` tuple of the transport
26156
+ * census. `principal` is the DERIVED identity (`apocaliss92 (admin)`,
26157
+ * `scoped:1a2b3c4d (scoped-token)`, `anonymous`) that the tRPC error log
26158
+ * already prints - never a token, never an `Authorization` header.
26159
+ *
26160
+ * `subscriptions` is counted APART from `calls`: a subscription is opened once
26161
+ * and lives for hours, so folding it into a call count makes one long-lived
26162
+ * stream look like a storm.
26163
+ */
26164
+ var RequestCensusGroupSchema = object({
26165
+ plane: TransportPlaneSchema,
26166
+ procedure: string(),
26167
+ userAgent: string(),
26168
+ ip: string(),
26169
+ principal: string(),
26170
+ calls: number(),
26171
+ subscriptions: number(),
26172
+ perMin: number()
26173
+ });
26174
+ /**
26175
+ * A procedure's TOTAL over the window, across every caller.
26176
+ *
26177
+ * This block, not the group list, is what answers "did these calls arrive over
26178
+ * HTTP at all". A total far BELOW what a store-side census counted over the
26179
+ * same window excludes the HTTP plane, which is a result, not a failure.
26180
+ */
26181
+ var RequestCensusProcedureSchema = object({
26182
+ procedure: string(),
26183
+ calls: number(),
26184
+ /**
26185
+ * The same total, split by transport. THIS is the row that answers the
26186
+ * question the census exists for: one look at `deviceManager.listAll` says
26187
+ * which plane carried the 4 960, without joining two log lines by eye.
26188
+ */
26189
+ planes: TransportPlaneCountsSchema,
26190
+ /** Subscription STARTS on this procedure. Never folded into `calls`. */
26191
+ subscriptions: number(),
26192
+ perMin: number()
26193
+ });
26194
+ /**
26195
+ * The census as an operator sees it.
26196
+ *
26197
+ * `persisted` is the honest answer to "will this survive the restart I am
26198
+ * about to do": the arm deadline is written to `system-settings` so a window
26199
+ * armed now can measure the NEXT boot, and a write that failed must not look
26200
+ * like one that succeeded.
26201
+ */
26202
+ var RequestCensusStatusSchema = object({
26203
+ armed: boolean(),
26204
+ /** How long the current - or just-closed - window collected, in ms. */
26205
+ elapsedMs: number(),
26206
+ /** The window actually armed, after the server clamped the request. */
26207
+ windowMs: number(),
26208
+ /** Epoch ms the window closes at. 0 when disarmed. */
26209
+ armedUntilMs: number(),
26210
+ httpRequests: number(),
26211
+ batchedRequests: number(),
26212
+ /**
26213
+ * Procedure invocations. Higher than `httpRequests` whenever tRPC batching
26214
+ * is in play (`?batch=1` carries several procedures in one request); this is
26215
+ * the number comparable with a store-side call count.
26216
+ */
26217
+ procedureCalls: number(),
26218
+ /**
26219
+ * `procedureCalls` split by transport. The four keys sum to
26220
+ * `procedureCalls` by construction - {@link RequestCensusSnapshotSchema}'s
26221
+ * `planesExplainTotal` is that identity, checked rather than assumed.
26222
+ */
26223
+ planes: TransportPlaneCountsSchema,
26224
+ /**
26225
+ * True iff `planes` sums to `procedureCalls`. False means a call was counted
26226
+ * on no plane at all - which is a RESULT (a plane is missing from the
26227
+ * instrument), not a failure, and it has to be visible to be read as one.
26228
+ */
26229
+ planesExplainTotal: boolean(),
26230
+ /**
26231
+ * tRPC WebSocket connections opened during the window. NOT calls - the WS
26232
+ * adapter resolves one context per connection - kept because a plane's call
26233
+ * count of zero against 37 open connections says something different from a
26234
+ * plane with no connections at all.
26235
+ */
26236
+ wsConnections: number(),
26237
+ /**
26238
+ * Client frames the WS plane looked at. `wsMessages` far above
26239
+ * `planes.ws + subscriptions` means most traffic is not operations
26240
+ * (keepalives, connection params) - which is itself an answer.
26241
+ */
26242
+ wsMessages: number(),
26243
+ /**
26244
+ * Subscription STARTS across every plane, excluded from `procedureCalls` on
26245
+ * purpose: one live-events stream opened at boot and held for six hours is
26246
+ * one subscription, and counting it as a call would let a quiet plane
26247
+ * masquerade as the storm.
26248
+ */
26249
+ subscriptions: number(),
26250
+ /** `subscription.stop` frames. Starts minus stops is what is still open. */
26251
+ subscriptionStops: number(),
26252
+ distinctGroups: number(),
26253
+ /**
26254
+ * Operations counted in the totals whose CALLER attribution was shed at the
26255
+ * cardinality bound. Unrelated to the `unknown` PLANE: these calls know
26256
+ * which transport they arrived on, they just lost their group row.
26257
+ */
26258
+ unattributedCalls: number(),
26259
+ procedures: array(RequestCensusProcedureSchema).readonly(),
26260
+ groups: array(RequestCensusGroupSchema).readonly()
26261
+ }).extend({ persisted: boolean() });
26262
+ /** Severity vocabulary. Mirrors `LogLevel` in `interfaces/logging.ts`. */
26263
+ var LogLevelSchema$1 = _enum([
26264
+ "debug",
26265
+ "info",
26266
+ "warn",
26267
+ "error"
26268
+ ]);
26269
+ /**
26270
+ * The diagnostics that can be ARMED for a window. Exactly one today.
26271
+ *
26272
+ * A diagnostic is anything whose cost is only worth paying while a question is
26273
+ * open. It never persists as a boolean: see {@link DiagnosticWindowSchema}.
26274
+ */
26275
+ var DiagnosticIdSchema = _enum(["request-census"]);
26276
+ /**
26277
+ * The layers of the level hierarchy, general → specific. The most specific
26278
+ * layer that carries an explicit value wins.
26279
+ *
26280
+ * `component` is DECLARED and not yet resolvable: the per-component channels
26281
+ * are a later slice of the same plan, and a `levelSource` enum that has to
26282
+ * grow later would force every consumer of this document to change with it.
26283
+ * Nothing returns `component` today.
26284
+ */
26285
+ var LoggingScopeKindSchema = _enum([
26286
+ "cluster",
26287
+ "node",
26288
+ "component"
26289
+ ]);
26290
+ /** Where an effective level came from. `default` = nothing is set anywhere. */
26291
+ var LoggingLevelSourceSchema = _enum([
26292
+ "default",
26293
+ "cluster",
26294
+ "node",
26295
+ "component"
26296
+ ]);
26297
+ /**
26298
+ * One layer of the hierarchy as it actually STANDS.
26299
+ *
26300
+ * `level: null` is the whole reason this array is returned: it is the
26301
+ * difference between "this node is at `info` because I decided it" and
26302
+ * "...because it inherits". An operator who clears an override believing they
26303
+ * are clearing an inherited value has been handed the same defect as the two
26304
+ * contradicting knobs this document exists to remove, moved one floor up.
26305
+ */
26306
+ var LoggingLevelLayerSchema = object({
26307
+ scope: LoggingScopeKindSchema,
26308
+ /** The node this layer speaks for; `null` on the cluster layer. */
26309
+ nodeId: string().nullable(),
26310
+ /** Explicitly set here, or `null` when this layer inherits. */
26311
+ level: LogLevelSchema$1.nullable()
26312
+ });
26313
+ /** What a line is judged against, and WHICH layer decided it. */
26314
+ var LoggingEffectiveSchema = object({
26315
+ level: LogLevelSchema$1,
26316
+ levelSource: LoggingLevelSourceSchema
26317
+ });
26318
+ /** Every layer, general → specific. Never collapsed into the effective value. */
26319
+ var LoggingExplicitSchema = object({ layers: array(LoggingLevelLayerSchema).readonly() });
26320
+ /**
26321
+ * An armed diagnostic, with its DEADLINE.
26322
+ *
26323
+ * The shape of ADR-0244: what is stored is a deadline and never a flag, so a
26324
+ * diagnostic somebody forgot expires by itself, and a boot-window measurement
26325
+ * survives the restart it exists to measure. `remainingMs` is 0 whenever
26326
+ * `armed` is false — a window is never reported as slightly expired.
26327
+ */
26328
+ var DiagnosticWindowSchema = object({
26329
+ id: DiagnosticIdSchema,
26330
+ armed: boolean(),
26331
+ /** Epoch ms the window closes at. 0 when disarmed. */
26332
+ armedUntilMs: number(),
26333
+ /** Ms left before it expires on its own. 0 when disarmed. */
26334
+ remainingMs: number(),
26335
+ /** Whether the stored deadline is the one the live diagnostic is running —
26336
+ * i.e. whether this window would survive a restart. */
26337
+ persisted: boolean()
26338
+ });
26339
+ /**
26340
+ * `armMs: 0` DISARMS. Any positive value arms for that long, clamped by the
26341
+ * server — there is no maximum here on purpose: a bound repeated in a schema
26342
+ * is a second knob that disagrees with the first the day one of them moves.
26343
+ */
26344
+ var DiagnosticWindowPatchSchema = object({
26345
+ id: DiagnosticIdSchema,
26346
+ armMs: number().int().min(0),
26347
+ /** Cadence of the diagnostic's aggregated report line. Clamped by the server. */
26348
+ reportEveryMs: number().int().positive().optional()
26349
+ });
26350
+ /**
26351
+ * A PATCH, and patches MERGE.
26352
+ *
26353
+ * A field absent from the patch is left exactly as it was — arming a
26354
+ * diagnostic never resets a level, and setting a level never disarms a window.
26355
+ * The provider must not reconstruct the document as `{ ...snapshot, ...patch }`:
26356
+ * `setAll` already merges, and rebuilding the object is how an absent field
26357
+ * turns into an erased one.
26358
+ */
26359
+ var LoggingSettingsPatchSchema = object({
26360
+ /**
26361
+ * Absent leaves the level untouched. `null` CLEARS the explicit value at the
26362
+ * addressed scope so it inherits again. A value sets it.
26363
+ */
26364
+ level: LogLevelSchema$1.nullable().optional(),
26365
+ /**
26366
+ * Only the diagnostics NAMED here change. An armed window that is not listed
26367
+ * keeps running — a patch is never a full replacement.
26368
+ */
26369
+ diagnostics: array(DiagnosticWindowPatchSchema).readonly().optional()
26370
+ });
26371
+ /**
26372
+ * Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
26373
+ *
26374
+ * Deliberately NOT called `nodeId`: that key is reserved on every cap method
26375
+ * input — the generated router strips it and uses it to resolve the PROVIDER
26376
+ * on that node (`resolveProvider(cap, nodeId, …)`). A document about
26377
+ * `agent-1` addressed as `nodeId` would be forwarded to agent-1 and answered
26378
+ * by an agent that holds no cluster document at all. The hub is the single
26379
+ * authority over the whole hierarchy and answers for every layer, so the
26380
+ * layer selector needs a name the transport does not already own.
26381
+ */
26382
+ var GetLoggingSettingsInputSchema = object({ scopeNodeId: string().optional() });
26383
+ var SetLoggingSettingsInputSchema = object({
26384
+ scopeNodeId: string().optional(),
26385
+ patch: LoggingSettingsPatchSchema
26386
+ });
26387
+ /**
26388
+ * The whole document, as read and as returned after every write.
26389
+ *
26390
+ * `persisted: false` means the settings store could not be read or written.
26391
+ * The in-memory mirror still governs behaviour and is unchanged by the
26392
+ * failure — a read that fails neither switches a level nor disarms a window
26393
+ * (D49) — but the operator is told that what they are looking at would not
26394
+ * survive a restart.
26395
+ */
26396
+ var LoggingSettingsStateSchema = object({
26397
+ /** The layer this document was read at. `null` = the cluster layer. */
26398
+ scopeNodeId: string().nullable(),
26399
+ effective: LoggingEffectiveSchema,
26400
+ explicit: LoggingExplicitSchema,
26401
+ activeWindows: array(DiagnosticWindowSchema).readonly(),
26402
+ persisted: boolean()
26403
+ });
25944
26404
  method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), method(_void(), FeatureManifestSchema), method(_void(), array(NetworkAddressSchema).readonly()), method(_void(), unknown().nullable(), { auth: "admin" }), method(record(string(), unknown()), _null(), {
25945
26405
  kind: "mutation",
25946
26406
  auth: "admin"
@@ -25953,6 +26413,9 @@ method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), met
25953
26413
  }), method(_void(), SiteLocationStatusSchema, {
25954
26414
  kind: "mutation",
25955
26415
  auth: "admin"
26416
+ }), method(_void(), RequestCensusStatusSchema, { auth: "admin" }), method(GetLoggingSettingsInputSchema, LoggingSettingsStateSchema, { auth: "admin" }), method(SetLoggingSettingsInputSchema, LoggingSettingsStateSchema, {
26417
+ kind: "mutation",
26418
+ auth: "admin"
25956
26419
  });
25957
26420
  object({
25958
26421
  /** True when the device's tamper switch / case-open contact is
@@ -31784,6 +32247,18 @@ Object.freeze({
31784
32247
  addonId: null,
31785
32248
  access: "create"
31786
32249
  },
32250
+ "system.getLoggingSettings": {
32251
+ capName: "system",
32252
+ capScope: "system",
32253
+ addonId: null,
32254
+ access: "view"
32255
+ },
32256
+ "system.getRequestCensus": {
32257
+ capName: "system",
32258
+ capScope: "system",
32259
+ addonId: null,
32260
+ access: "view"
32261
+ },
31787
32262
  "system.getRetentionConfig": {
31788
32263
  capName: "system",
31789
32264
  capScope: "system",
@@ -31814,6 +32289,12 @@ Object.freeze({
31814
32289
  addonId: null,
31815
32290
  access: "view"
31816
32291
  },
32292
+ "system.setLoggingSettings": {
32293
+ capName: "system",
32294
+ capScope: "system",
32295
+ addonId: null,
32296
+ access: "create"
32297
+ },
31817
32298
  "system.setRetentionConfig": {
31818
32299
  capName: "system",
31819
32300
  capScope: "system",
@@ -32969,6 +33450,10 @@ Object.freeze({
32969
33450
  name: "deviceId",
32970
33451
  form: "single",
32971
33452
  optional: true
33453
+ }, {
33454
+ name: "deviceIds",
33455
+ form: "array",
33456
+ optional: true
32972
33457
  }],
32973
33458
  "fanControl.setDirection": [{
32974
33459
  name: "deviceId",
@@ -34579,7 +35064,38 @@ object({
34579
35064
  * fallback — i.e. the pre-2026-08-13 miss profile. Set it there only to
34580
35065
  * reproduce that.
34581
35066
  */
34582
- tileBudgetMb: number().int().min(0).max(1024)
35067
+ tileBudgetMb: number().int().min(0).max(1024),
35068
+ /**
35069
+ * RAM ceiling per decode worker, in MB, for the SCENE TILES — one
35070
+ * JPEG-encoded copy of the WHOLE native frame, cut in the same instant as the
35071
+ * subject tiles, on frames that detected something.
35072
+ *
35073
+ * It exists because a subject tile cannot answer a FULL-FRAME request:
35074
+ * containment is strict by design, so the native `keyFrame`, the detail
35075
+ * plane's `frameJpeg` rung and the display-crop fallback had no rung at all
35076
+ * below the hold. Measured on the live cluster: 23.3% of key-frame captures
35077
+ * missed, 95.7% of them with `worker-lease-gone` — the raster released one
35078
+ * frame-time after delivery, with the request only p50 367 ms behind it.
35079
+ *
35080
+ * Sizing, and why this is a budget and not a duration: a scene tile is
35081
+ * ~1.5-2.5 MB at 4K (against ~23.75 MB for the raster it was cut from and
35082
+ * ~60-120 KB for a subject tile), and it is cut ~0.4 times a second per busy
35083
+ * camera — only detection-bearing frames get one. 48 MB is therefore ~20-30
35084
+ * frames, i.e. the store's 30 s TTL binds at the steady state and the budget
35085
+ * binds only through a detection burst, where it still covers well past the
35086
+ * measured p90 ask age of 4.3 s. Holding the RASTERS for the same window
35087
+ * would be ~498 MB per camera and ~6 GB at peak concurrency — the OOM this
35088
+ * whole shape exists to avoid.
35089
+ *
35090
+ * A SEPARATE ceiling from `tileBudgetMb` on purpose: a scene tile is ~20× a
35091
+ * subject tile, so one shared budget would let a busy camera's key frames
35092
+ * evict the face/plate tiles the recognisers depend on. Two budgets make that
35093
+ * impossible rather than unlikely. `0` DISABLES scene tiles and restores the
35094
+ * pre-existing behaviour, where a late full-frame request had nothing but the
35095
+ * ≤640 RAM raster — which the `keyFrame` gate rejects, so in practice it had
35096
+ * nothing.
35097
+ */
35098
+ sceneBudgetMb: number().int().min(0).max(1024)
34583
35099
  });
34584
35100
  /**
34585
35101
  * The values in force when the operator has set nothing.
@@ -34595,12 +35111,14 @@ var DEFAULT_NATIVE_LEASE_SETTINGS = {
34595
35111
  budgetMb: 1024,
34596
35112
  activityMs: 15e3,
34597
35113
  tileBudgetMb: 64,
35114
+ sceneBudgetMb: 48,
34598
35115
  admission: "inferred"
34599
35116
  };
34600
35117
  DEFAULT_NATIVE_LEASE_SETTINGS.holdFrames;
34601
35118
  DEFAULT_NATIVE_LEASE_SETTINGS.budgetMb;
34602
35119
  DEFAULT_NATIVE_LEASE_SETTINGS.activityMs;
34603
35120
  DEFAULT_NATIVE_LEASE_SETTINGS.tileBudgetMb;
35121
+ DEFAULT_NATIVE_LEASE_SETTINGS.sceneBudgetMb;
34604
35122
  DEFAULT_NATIVE_LEASE_SETTINGS.admission;
34605
35123
  var MB = 1024 * 1024;
34606
35124
  1024 * MB, 3072 * MB;
@@ -34623,7 +35141,7 @@ var AdminUIAddon = class extends BaseAddon {
34623
35141
  capability: adminUiCapability,
34624
35142
  provider: {
34625
35143
  getStaticDir: async () => ({ staticDir: resolveAdminUiDistDir() }),
34626
- getVersion: async () => ({ version: "1.2.102" })
35144
+ getVersion: async () => ({ version: "1.2.104" })
34627
35145
  }
34628
35146
  }];
34629
35147
  }