@camstack/server 1.2.873 → 1.2.875
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/CHANGELOG.md +13 -0
- package/dist/api/trpc/generated-cap-routers.js +18 -0
- package/package.json +11 -14
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/alerts/alerts.addon.js +1 -1
- package/system/dist/builtins/alerts/alerts.addon.mjs +1 -1
- package/system/dist/builtins/autotrack/index.js +1 -1
- package/system/dist/builtins/autotrack/index.mjs +1 -1
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
- package/system/dist/builtins/calendars/calendars.addon.js +1 -1
- package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
- package/system/dist/builtins/camera-grid/index.js +1 -1
- package/system/dist/builtins/camera-grid/index.mjs +1 -1
- package/system/dist/builtins/composer/composer.addon.js +4 -4
- package/system/dist/builtins/composer/composer.addon.mjs +4 -4
- package/system/dist/builtins/console-logging/index.js +1 -1
- package/system/dist/builtins/console-logging/index.mjs +1 -1
- package/system/dist/builtins/core-blocks/core-blocks.addon.js +3 -3
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +3 -3
- package/system/dist/builtins/device-history/device-history.addon.js +2 -2
- package/system/dist/builtins/device-history/device-history.addon.mjs +2 -2
- package/system/dist/builtins/device-manager/device-manager.addon.js +87 -29
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +87 -29
- package/system/dist/builtins/hub-forwarder/index.js +1 -1
- package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/system/dist/builtins/keychain/index.js +4 -4
- package/system/dist/builtins/keychain/index.mjs +4 -4
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/system/dist/builtins/local-auth/local-auth.addon.js +2 -2
- package/system/dist/builtins/local-auth/local-auth.addon.mjs +2 -2
- package/system/dist/builtins/local-network/local-network.addon.js +3 -3
- package/system/dist/builtins/local-network/local-network.addon.mjs +3 -3
- package/system/dist/builtins/loki-logging/index.js +1 -1
- package/system/dist/builtins/loki-logging/index.mjs +1 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
- package/system/dist/builtins/platform-probe/index.js +1 -1
- package/system/dist/builtins/platform-probe/index.mjs +1 -1
- package/system/dist/builtins/record-entries/index.js +1 -1
- package/system/dist/builtins/record-entries/index.mjs +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/snapshot/index.js +1 -1
- package/system/dist/builtins/snapshot/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/index.js +1 -1
- package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +3 -3
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +3 -3
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/system-config/system-config.addon.js +38 -4
- package/system/dist/builtins/system-config/system-config.addon.mjs +319 -285
- package/system/dist/builtins/winston-logging/index.js +1 -1
- package/system/dist/builtins/winston-logging/index.mjs +1 -1
- package/system/dist/{capture-engine-WL-mpqRt.mjs → capture-engine-BuASS_Qx.mjs} +1 -1
- package/system/dist/{capture-engine-p0DLUXcQ.js → capture-engine-DWdcVTA3.js} +1 -1
- package/system/dist/{composition-sources-Dheuv9_O.mjs → composition-sources-BHFgbF7C.mjs} +1 -1
- package/system/dist/{composition-sources-BuRkhqkL.js → composition-sources-DNuBqIPL.js} +1 -1
- package/system/dist/{constants-Ci169fqS.mjs → constants-DaIPFvoS.mjs} +1 -1
- package/system/dist/{constants-D8fNaNti.js → constants-dRd1d6-d.js} +1 -1
- package/system/dist/{device-ca-Cu6Xu_CS.mjs → device-ca-B9cTeWPe.mjs} +1 -1
- package/system/dist/{device-ca-CPeChXfp.js → device-ca-sBPs1k-W.js} +1 -1
- package/system/dist/{dist-BBWAHu-O.mjs → dist-D5_u_9iZ.mjs} +223 -4
- package/system/dist/{dist-BHAE4TbZ.js → dist-DJx80O4F.js} +228 -3
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-identity-BPdwL_Qn.mjs → hub-identity-CSc-vdeW.mjs} +1 -1
- package/system/dist/{hub-identity-CfaF_M6Y.js → hub-identity-DiepURf3.js} +1 -1
- package/system/dist/{hub-mdns-ciao-DS7-X9U_.js → hub-mdns-ciao-CoC9aqlm.js} +2 -2
- package/system/dist/{hub-mdns-ciao-1NZAZ7Mp.mjs → hub-mdns-ciao-D0wRh6bF.mjs} +2 -2
- package/system/dist/index.js +20 -16
- package/system/dist/index.mjs +20 -16
- package/system/dist/kernel/moleculer/mesh-mtls/tls-tcp-transporter.d.ts +7 -0
- package/system/dist/{legacy-integration-rows-door-Bnz-aNu6.js → legacy-integration-rows-door-CWNpyTAj.js} +1 -1
- package/system/dist/{legacy-integration-rows-door-CsxfaUSU.mjs → legacy-integration-rows-door-XOO5sLJR.mjs} +1 -1
- package/system/dist/{rename-composition-block-Dxywwjac.mjs → rename-composition-block-BUF2b8XW.mjs} +1 -1
- package/system/dist/{rename-composition-block-CQUr1lYO.js → rename-composition-block-BcTOU8JW.js} +1 -1
- package/system/dist/{restore-archive-CFMsgNKV.mjs → restore-archive-B5BDrHVW.mjs} +82 -82
- package/system/dist/{restore-archive-CbMms_b0.js → restore-archive-DL8S6pRE.js} +1 -1
- package/system/dist/{wal-maintenance-6782RP08.mjs → wal-maintenance-CxsAE_CD.mjs} +0 -0
- package/system/dist/{wal-maintenance-DJ76u4GY.js → wal-maintenance-aJK7q2BO.js} +0 -0
- package/system/package.json +1 -1
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-DJx80O4F.js");
|
|
7
7
|
const require_formatter = require("../../formatter-xbxeV4GD.js");
|
|
8
8
|
const require_log_file_read_protocol = require("../../log-file-read-protocol-DSV_vQRb.js");
|
|
9
9
|
let node_path = require("node:path");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ic as defineAddonMigrations, Ls as BaseAddon, Vi as logDestinationCapability, xa as preconditionOf } from "../../dist-D5_u_9iZ.mjs";
|
|
2
2
|
import { t as formatLogLine } from "../../formatter-DkYZ4LXp.mjs";
|
|
3
3
|
import { a as LogFileIndexStore, i as serveRead, n as isFromReader, t as CancelBook } from "../../log-file-read-protocol-hTaAsYlX.mjs";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Il as DeviceType, Kc as historyItemFieldPath, qs as HISTORY_DEFAULT_MIN_INTERVAL_MS } from "./dist-D5_u_9iZ.mjs";
|
|
2
2
|
//#region src/builtins/device-history/store/series-registry.ts
|
|
3
3
|
function subjectIdOf(subject) {
|
|
4
4
|
return subject.kind === "device" ? `d:${subject.deviceId}` : `n:${subject.nodeId}`;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_dist = require("./dist-
|
|
1
|
+
const require_dist = require("./dist-DJx80O4F.js");
|
|
2
2
|
//#region src/builtins/device-history/store/series-registry.ts
|
|
3
3
|
function subjectIdOf(subject) {
|
|
4
4
|
return subject.kind === "device" ? `d:${subject.deviceId}` : `n:${subject.nodeId}`;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ll as errMsg, vs as compositionSourceKey } from "./dist-D5_u_9iZ.mjs";
|
|
2
2
|
//#region src/builtins/shared/device-state-changed.ts
|
|
3
3
|
/** Structural narrowing helper for untrusted bus payloads. */
|
|
4
4
|
function isRecord(value) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** `secret://system/global/meshCaKey` — EC P-256 PKCS#8 PEM of the hub mesh CA. */
|
|
2
|
-
var MESH_CA_KEY_REF = require("./dist-
|
|
2
|
+
var MESH_CA_KEY_REF = require("./dist-DJx80O4F.js").buildSecretRef({
|
|
3
3
|
owner: "system",
|
|
4
4
|
scope: { kind: "global" },
|
|
5
5
|
fieldPath: "meshCaKey"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Dc as buildSecretRef, K as DEVICE_SAN_CREDENTIAL_PREFIX, q as DEVICE_SAN_USER_PREFIX } from "./dist-D5_u_9iZ.mjs";
|
|
2
2
|
import { C as backdatedNotBefore, S as withUtcTimeEncoding, a as KeyUsageFlags, d as SubjectKeyIdentifierExtension, f as X509Certificate$1, m as cryptoProvider, n as BasicConstraintsExtension, o as KeyUsagesExtension, p as X509CertificateGenerator, r as ExtendedKeyUsageExtension, s as PemConverter, t as AuthorityKeyIdentifierExtension, u as SubjectAlternativeNameExtension } from "./x509.es-BRiJgOvu.mjs";
|
|
3
3
|
import { X509Certificate, createPublicKey, randomBytes, verify, webcrypto } from "node:crypto";
|
|
4
4
|
//#region src/auth/jwt-signing-key.ts
|
|
@@ -73639,7 +73639,19 @@ var IdentitySampleInfoSchema = z.object({
|
|
|
73639
73639
|
source: z.enum(["detected", "photo"]),
|
|
73640
73640
|
addedAt: z.number().int(),
|
|
73641
73641
|
deviceId: z.number().int().optional(),
|
|
73642
|
-
base64: z.string().optional()
|
|
73642
|
+
base64: z.string().optional(),
|
|
73643
|
+
/**
|
|
73644
|
+
* The sample's own crop, when it has one. The bytes stay on the event-media
|
|
73645
|
+
* plane — this list does not inline them.
|
|
73646
|
+
*/
|
|
73647
|
+
mediaId: z.number().int().optional(),
|
|
73648
|
+
/**
|
|
73649
|
+
* The source face's key frame (or the photo the sample was cut from), when
|
|
73650
|
+
* the sample has no crop of its own. Draw {@link faceBbox} on it.
|
|
73651
|
+
*/
|
|
73652
|
+
keyFrameMediaId: z.number().int().optional(),
|
|
73653
|
+
/** The face box on {@link keyFrameMediaId}, pixel space. */
|
|
73654
|
+
faceBbox: BoundingBoxSchema.optional()
|
|
73643
73655
|
});
|
|
73644
73656
|
/**
|
|
73645
73657
|
* One enrolled sample, judged against the gallery it lives in.
|
|
@@ -73879,6 +73891,18 @@ includeCrops: z.boolean().optional() }).optional(), z.array(IdentitySchema).read
|
|
|
73879
73891
|
kind: "mutation",
|
|
73880
73892
|
auth: "admin"
|
|
73881
73893
|
}),
|
|
73894
|
+
/**
|
|
73895
|
+
* Move an enrolled sample onto another person. The crop is re-owned, the
|
|
73896
|
+
* source face keeps its link and follows (`recognizedIdentityId`), and an
|
|
73897
|
+
* unknown person is refused.
|
|
73898
|
+
*/
|
|
73899
|
+
moveIdentitySample: method(z.object({
|
|
73900
|
+
sampleId: z.string().min(1),
|
|
73901
|
+
toIdentityId: z.string().min(1)
|
|
73902
|
+
}), z.void(), {
|
|
73903
|
+
kind: "mutation",
|
|
73904
|
+
auth: "admin"
|
|
73905
|
+
}),
|
|
73882
73906
|
listRecentFaces: method(z.object({
|
|
73883
73907
|
/**
|
|
73884
73908
|
* Restrict to ONE camera. Absent keeps the cluster-wide gallery view.
|
|
@@ -96658,7 +96682,19 @@ var VehicleSampleInfoSchema = z.object({
|
|
|
96658
96682
|
score: z.number(),
|
|
96659
96683
|
addedAt: z.number().int(),
|
|
96660
96684
|
deviceId: z.number().int().optional(),
|
|
96661
|
-
base64: z.string().optional()
|
|
96685
|
+
base64: z.string().optional(),
|
|
96686
|
+
/**
|
|
96687
|
+
* The sample's own crop, when it has one. Prefer this over {@link base64}:
|
|
96688
|
+
* the bytes are on the event-media plane (`/m/<mediaId>`), never inlined.
|
|
96689
|
+
*/
|
|
96690
|
+
mediaId: z.number().int().optional(),
|
|
96691
|
+
/**
|
|
96692
|
+
* The source plate's key frame, when the sample has no crop of its own.
|
|
96693
|
+
* Draw {@link plateBbox} on it. Absent when {@link mediaId} is set.
|
|
96694
|
+
*/
|
|
96695
|
+
keyFrameMediaId: z.number().int().optional(),
|
|
96696
|
+
/** The plate box on {@link keyFrameMediaId}, pixel space. */
|
|
96697
|
+
plateBbox: BoundingBoxSchema.optional()
|
|
96662
96698
|
});
|
|
96663
96699
|
var PlateInfoSchema = z.object({
|
|
96664
96700
|
plateId: z.string(),
|
|
@@ -96688,7 +96724,17 @@ var PlateInfoSchema = z.object({
|
|
|
96688
96724
|
* and `searchPlates` inline the crop only when their `includeCrops` input is
|
|
96689
96725
|
* left at its `true` default.
|
|
96690
96726
|
*/
|
|
96691
|
-
cropUrl: z.string().optional()
|
|
96727
|
+
cropUrl: z.string().optional(),
|
|
96728
|
+
/**
|
|
96729
|
+
* Why {@link cropUrl} is absent. One of `no-frame-handle`,
|
|
96730
|
+
* `live-capture-missed`, `live-capture-threw`, `no-key-frame`,
|
|
96731
|
+
* `derive-not-wired`, `subject-moved`, `temporal-skew`, `key-frame-absent`,
|
|
96732
|
+
* `bad-frame-size`, `decode-empty`, `derive-threw`, `derive-returned-null`,
|
|
96733
|
+
* `put-failed`. A crossing vehicle whose live capture missed is
|
|
96734
|
+
* `subject-moved`: the key frame is a different instant, and the crop is
|
|
96735
|
+
* legitimately absent.
|
|
96736
|
+
*/
|
|
96737
|
+
cropMissReason: z.string().optional()
|
|
96692
96738
|
});
|
|
96693
96739
|
/**
|
|
96694
96740
|
* One gallery media row: what the crop is, how big it is, and WHERE its bytes
|
|
@@ -96818,6 +96864,18 @@ includeCrops: z.boolean().optional() }).optional(), z.array(VehicleSchema).reado
|
|
|
96818
96864
|
kind: "mutation",
|
|
96819
96865
|
auth: "admin"
|
|
96820
96866
|
}),
|
|
96867
|
+
/**
|
|
96868
|
+
* Move an enrolled sample onto another vehicle. The crop is re-owned, the
|
|
96869
|
+
* source plate keeps its link and follows (`recognizedVehicleId`), and an
|
|
96870
|
+
* unknown vehicle is refused.
|
|
96871
|
+
*/
|
|
96872
|
+
moveVehicleSample: method(z.object({
|
|
96873
|
+
sampleId: z.string().min(1),
|
|
96874
|
+
toVehicleId: z.string().min(1)
|
|
96875
|
+
}), z.void(), {
|
|
96876
|
+
kind: "mutation",
|
|
96877
|
+
auth: "admin"
|
|
96878
|
+
}),
|
|
96821
96879
|
assignPlate: method(z.object({
|
|
96822
96880
|
plateId: z.string(),
|
|
96823
96881
|
vehicleId: z.string()
|
|
@@ -121633,6 +121691,13 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
121633
121691
|
access: "view",
|
|
121634
121692
|
role: "feature:face-assignment"
|
|
121635
121693
|
},
|
|
121694
|
+
"faceGallery.moveIdentitySample": {
|
|
121695
|
+
capName: "face-gallery",
|
|
121696
|
+
capScope: "system",
|
|
121697
|
+
addonId: null,
|
|
121698
|
+
access: "create",
|
|
121699
|
+
role: "feature:face-assignment"
|
|
121700
|
+
},
|
|
121636
121701
|
"faceGallery.removeSample": {
|
|
121637
121702
|
capName: "face-gallery",
|
|
121638
121703
|
capScope: "system",
|
|
@@ -125553,6 +125618,13 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
125553
125618
|
access: "view",
|
|
125554
125619
|
role: "feature:plate-assignment"
|
|
125555
125620
|
},
|
|
125621
|
+
"plateGallery.moveVehicleSample": {
|
|
125622
|
+
capName: "plate-gallery",
|
|
125623
|
+
capScope: "system",
|
|
125624
|
+
addonId: null,
|
|
125625
|
+
access: "create",
|
|
125626
|
+
role: "feature:plate-assignment"
|
|
125627
|
+
},
|
|
125556
125628
|
"plateGallery.removeVehicleSample": {
|
|
125557
125629
|
capName: "plate-gallery",
|
|
125558
125630
|
capScope: "system",
|
|
@@ -134500,5 +134572,152 @@ z.object({
|
|
|
134500
134572
|
delay: z.number().nonnegative().optional(),
|
|
134501
134573
|
commands: z.record(z.string(), z.unknown())
|
|
134502
134574
|
});
|
|
134575
|
+
/**
|
|
134576
|
+
* Shared text ranking for the admin global search and `deviceManager.search`.
|
|
134577
|
+
*
|
|
134578
|
+
* One ascending scale. Lower is better; `null` is no match. Exact levels
|
|
134579
|
+
* (0–5) are tried before either fuzzy level (6–7), so a fuzzy hit cannot
|
|
134580
|
+
* outrank an exact one. Identifiers match on equality only — a device id is
|
|
134581
|
+
* a fact, not a spelling, and "108" must never fuzzy-match device 102.
|
|
134582
|
+
*
|
|
134583
|
+
* Fuzzy runs on the label first. Keywords are fuzzied only when the label
|
|
134584
|
+
* itself did not match, so an item that already matched keeps its rank.
|
|
134585
|
+
*/
|
|
134586
|
+
var COMBINING_MARKS = /\p{Mn}/gu;
|
|
134587
|
+
/** Case- and diacritic-insensitive. "Perche" and "Perché" compare equal. */
|
|
134588
|
+
function normalizeSearchText(value) {
|
|
134589
|
+
return value.normalize("NFD").replace(COMBINING_MARKS, "").toLowerCase().trim();
|
|
134590
|
+
}
|
|
134591
|
+
var RANK_EXACT_IDENTIFIER = 0;
|
|
134592
|
+
var RANK_EXACT_LABEL = 1;
|
|
134593
|
+
var RANK_LABEL_PREFIX = 2;
|
|
134594
|
+
var RANK_WORD_PREFIX = 3;
|
|
134595
|
+
var RANK_LABEL_SUBSTRING = 4;
|
|
134596
|
+
var RANK_KEYWORD_SUBSTRING = 5;
|
|
134597
|
+
var RANK_SUBSEQUENCE = 6;
|
|
134598
|
+
var RANK_FUZZY_WORD = 7;
|
|
134599
|
+
/**
|
|
134600
|
+
* Exact levels. `null` means no exact match; the caller falls through to fuzzy.
|
|
134601
|
+
* 0 — the query IS one of `identifiers`
|
|
134602
|
+
* 1 — exact label
|
|
134603
|
+
* 2 — label starts with the query
|
|
134604
|
+
* 3 — some whole word in the label starts with the query
|
|
134605
|
+
* 4 — query appears anywhere in the label
|
|
134606
|
+
* 5 — query appears in a keyword (stableId, parent name, path, …)
|
|
134607
|
+
*
|
|
134608
|
+
* Level 0 sits above the exact label: `102` is a device id, and a camera
|
|
134609
|
+
* named "Garage 102" must not bury it.
|
|
134610
|
+
*/
|
|
134611
|
+
function matchRank(normalizedLabel, normalizedKeywords, normalizedIdentifiers, query) {
|
|
134612
|
+
if (normalizedIdentifiers.includes(query)) return RANK_EXACT_IDENTIFIER;
|
|
134613
|
+
if (normalizedLabel === query) return RANK_EXACT_LABEL;
|
|
134614
|
+
if (normalizedLabel.startsWith(query)) return RANK_LABEL_PREFIX;
|
|
134615
|
+
if (normalizedLabel.split(/\s+/).some((word) => word.startsWith(query))) return RANK_WORD_PREFIX;
|
|
134616
|
+
if (normalizedLabel.includes(query)) return RANK_LABEL_SUBSTRING;
|
|
134617
|
+
if (normalizedKeywords.some((keyword) => keyword.includes(query))) return RANK_KEYWORD_SUBSTRING;
|
|
134618
|
+
return null;
|
|
134619
|
+
}
|
|
134620
|
+
/** Every character of `query` appears in `label`, in order. Gaps allowed. */
|
|
134621
|
+
function isSubsequence(label, query) {
|
|
134622
|
+
let queryIndex = 0;
|
|
134623
|
+
for (let labelIndex = 0; labelIndex < label.length && queryIndex < query.length; labelIndex++) {
|
|
134624
|
+
const labelChar = label[labelIndex];
|
|
134625
|
+
const queryChar = query[queryIndex];
|
|
134626
|
+
if (labelChar !== void 0 && labelChar === queryChar) queryIndex++;
|
|
134627
|
+
}
|
|
134628
|
+
return queryIndex === query.length;
|
|
134629
|
+
}
|
|
134630
|
+
/**
|
|
134631
|
+
* Edit-distance budget, proportional to query length. A fixed budget would
|
|
134632
|
+
* let a 3-letter query match nearly any 3-letter word.
|
|
134633
|
+
*/
|
|
134634
|
+
function fuzzyThreshold(queryLength) {
|
|
134635
|
+
if (queryLength < 4) return 0;
|
|
134636
|
+
if (queryLength <= 7) return 1;
|
|
134637
|
+
if (queryLength <= 12) return 2;
|
|
134638
|
+
return 3;
|
|
134639
|
+
}
|
|
134640
|
+
/**
|
|
134641
|
+
* Bounded Damerau-Levenshtein (optimal string alignment: one adjacent
|
|
134642
|
+
* transposition is one edit). `null` once the distance is provably over
|
|
134643
|
+
* `maxDistance`. Three rotating rows because the transposition term reads
|
|
134644
|
+
* the row two back.
|
|
134645
|
+
*/
|
|
134646
|
+
function boundedOsaDistance(a, b, maxDistance) {
|
|
134647
|
+
if (a === b) return 0;
|
|
134648
|
+
if (maxDistance <= 0) return null;
|
|
134649
|
+
if (Math.abs(a.length - b.length) > maxDistance) return null;
|
|
134650
|
+
const bLen = b.length;
|
|
134651
|
+
let rowBefore = new Array(bLen + 1).fill(0);
|
|
134652
|
+
let rowPrev = Array.from({ length: bLen + 1 }, (_, j) => j);
|
|
134653
|
+
let rowCurr = new Array(bLen + 1).fill(0);
|
|
134654
|
+
for (let i = 1; i <= a.length; i++) {
|
|
134655
|
+
rowCurr[0] = i;
|
|
134656
|
+
let rowMin = i;
|
|
134657
|
+
const aChar = a[i - 1];
|
|
134658
|
+
if (aChar === void 0) return null;
|
|
134659
|
+
for (let j = 1; j <= bLen; j++) {
|
|
134660
|
+
const bChar = b[j - 1];
|
|
134661
|
+
const prevDelete = rowPrev[j];
|
|
134662
|
+
const prevDiag = rowPrev[j - 1];
|
|
134663
|
+
const currInsert = rowCurr[j - 1];
|
|
134664
|
+
if (bChar === void 0 || prevDelete === void 0 || prevDiag === void 0) return null;
|
|
134665
|
+
if (currInsert === void 0) return null;
|
|
134666
|
+
const substitutionCost = aChar === bChar ? 0 : 1;
|
|
134667
|
+
let value = Math.min(prevDelete + 1, currInsert + 1, prevDiag + substitutionCost);
|
|
134668
|
+
const prevA = a[i - 2];
|
|
134669
|
+
const prevB = b[j - 2];
|
|
134670
|
+
const transpose = rowBefore[j - 2];
|
|
134671
|
+
if (i > 1 && j > 1 && prevA !== void 0 && prevB !== void 0 && aChar === prevB && prevA === bChar) {
|
|
134672
|
+
if (transpose !== void 0) value = Math.min(value, transpose + 1);
|
|
134673
|
+
}
|
|
134674
|
+
rowCurr[j] = value;
|
|
134675
|
+
if (value < rowMin) rowMin = value;
|
|
134676
|
+
}
|
|
134677
|
+
if (rowMin > maxDistance) return null;
|
|
134678
|
+
const recycled = rowBefore;
|
|
134679
|
+
rowBefore = rowPrev;
|
|
134680
|
+
rowPrev = rowCurr;
|
|
134681
|
+
rowCurr = recycled;
|
|
134682
|
+
}
|
|
134683
|
+
const result = rowPrev[bLen] ?? Infinity;
|
|
134684
|
+
return result <= maxDistance ? result : null;
|
|
134685
|
+
}
|
|
134686
|
+
/**
|
|
134687
|
+
* Fuzzy levels, only after every exact level missed.
|
|
134688
|
+
* 6 — subsequence of the whole text
|
|
134689
|
+
* 7 — some WORD of the text is within a length-proportional OSA distance
|
|
134690
|
+
*/
|
|
134691
|
+
function fuzzyMatchRank(normalizedText, query) {
|
|
134692
|
+
if (isSubsequence(normalizedText, query)) return RANK_SUBSEQUENCE;
|
|
134693
|
+
const threshold = fuzzyThreshold(query.length);
|
|
134694
|
+
if (threshold > 0) {
|
|
134695
|
+
for (const word of normalizedText.split(/\s+/)) if (boundedOsaDistance(word, query, threshold) !== null) return RANK_FUZZY_WORD;
|
|
134696
|
+
}
|
|
134697
|
+
return null;
|
|
134698
|
+
}
|
|
134699
|
+
/** Best fuzzy rank across `texts`, or `null`. Subsequence (6) is the best fuzzy can be. */
|
|
134700
|
+
function bestFuzzy(texts, query) {
|
|
134701
|
+
let best = null;
|
|
134702
|
+
for (const text of texts) {
|
|
134703
|
+
const rank = fuzzyMatchRank(text, query);
|
|
134704
|
+
if (rank === null) continue;
|
|
134705
|
+
if (best === null || rank < best) best = rank;
|
|
134706
|
+
if (best === RANK_SUBSEQUENCE) return best;
|
|
134707
|
+
}
|
|
134708
|
+
return best;
|
|
134709
|
+
}
|
|
134710
|
+
/**
|
|
134711
|
+
* Rank `rawQuery` against one record. `null` when nothing matches, including
|
|
134712
|
+
* a blank query. Keywords are fuzzied only when the label produced no rank,
|
|
134713
|
+
* so a label hit is never demoted or promoted by a keyword.
|
|
134714
|
+
*/
|
|
134715
|
+
function searchRank(rawQuery, fields) {
|
|
134716
|
+
const query = normalizeSearchText(rawQuery);
|
|
134717
|
+
if (query.length === 0) return null;
|
|
134718
|
+
const label = normalizeSearchText(fields.label);
|
|
134719
|
+
const keywords = (fields.keywords ?? []).map(normalizeSearchText).filter((keyword) => keyword.length > 0);
|
|
134720
|
+
return matchRank(label, keywords, (fields.identifiers ?? []).map(normalizeSearchText).filter((identifier) => identifier.length > 0), query) ?? fuzzyMatchRank(label, query) ?? bestFuzzy(keywords, query);
|
|
134721
|
+
}
|
|
134503
134722
|
//#endregion
|
|
134504
|
-
export { DEVICE_TOMBSTONE_RETENTION_MS as $, resolveRunnerId as $a, isKeychainStoredField as $c, modeMayWrite as $i, climateControlCapability as $n, CompositionSchema as $o, filesystemBrowseCapability as $r, RECORD_SECRET_COLLECTION_PREFIX as $s, RemoteAssumedStateSchema as $t, CatalogFileSchema as A, readStoredRemoteConfig as Aa, collectZodSecretPaths as Ac, kebabToCamel as Ai, vocabCall as Al, armRemovalReconcile as An, switchCapability as Ao, deviceManagerCapability as Ar, openStatistic as As, LOG_LEVEL_RANK as At, DEFAULT_HOLD_OVERRIDE as B, replacedFieldKeys as Ba, emitReadiness as Bc, lockDoorLinkOfComposition as Bi, buildDeviceSignatureMessage as Bn, userManagementCapability as Bo, evaluateCompositionField as Br, DEVICE_SETTINGS_CONTRIBUTION_METHODS as Bs, PREFERENCES_MAX_VALUE_BYTES as Bt, CATALOG_LANGS as C, problemsBlockSave as Ca, assertTransactScope as Cc, isDefaultAppConnectionEndpoint as Ci, secretViewsOf as Cl, addonPagesCapability as Cn, storageCapability as Co, defineExtensionSlotProvider as Cr, historyRetentionFromSettings as Cs, HUB_MDNS_TXT_KEYS as Ct, CORE_BLOCK_ADDON_PREFIX as D, proposeRunningThreshold as Da, collectSecretConfigKeys as Dc, isObjectInput as Di, transformSecretWrite as Dl, alertEpisodePayload as Dn, streamCatalogCapability as Do, deviceCredentialsCapability as Dr, isHistoryHelper as Ds, KEYCHAIN_RESET_TRIGGER_ACTOR as Dt, CORE_BLOCKS_ADDON_ID as E, projectDeviceRow as Ea, buildSecretRef as Ec, isLocationEnabled as Ei, toSecretFieldView as El, alertEpisodeId as En, storageProviderCapability as Eo, describeUnmet as Er, isForwardInputRef as Es, INTERNAL_ACTION_PREFIX as Et, DATABASE_SNAPSHOT_PARTIAL_SUFFIX as F, reexpandAutomationInstance as Fa, defineAddonMigrations as Fc, lifecycleJobSchema as Fi, DeviceType as Fl, batteryCapability as Fn, timedRunMaxIn as Fo, deviceStatusCapability as Fr, wattMillisecondsToKwh as Fs, MediaPlayerStatusSchema as Ft, DEVICE_NONCE_TTL_MS as G, resolveCoreBlockFiles as Ga, historyItemFieldPath as Gc, mayWriteToLocation as Gi, cameraGridLayoutCapability as Gn, vectorDimFromBase64 as Go, expressionContainsBuiltinCall as Gr, ForeignSecretMarkerError as Gs, PreferenceDeviceIdSchema as Gt, DEVICE_ENROLLMENT_TTL_MS as H, resolveAppConnections as Ha, expandCapMethods as Hc, logLevelAtMost as Hi, buildStreamParamsConfigSchema as Hn, validateCustomAddress as Ho, evaluateWhenTree as Hr, DeclarationRefusedError as Hs, PackageRequiresSchema as Ht, DATABASE_SNAPSHOT_SUFFIX as I, remoteCapability as Ia, defineCustomActions as Ic, localDateOf as Ii, errMsg as Il, brightnessCapability as In, timedRunQuickRun as Io, deviceTransitionsCapability as Ir, BaseAddon as Is, MigrationLedgerEntrySchema as It, DEVICE_TEMPLATE_FILTERS as J, resolveLocationMode as Ja, isCommand as Jc, memoizePinnedFfmpeg as Ji, capUnitResolver as Jn, weekdayOfLocalDate as Jo, fanAxisPath as Jr, NoCallerError as Js, QuantityUnitError as Jt, DEVICE_SAN_CREDENTIAL_PREFIX as K, resolveHeroLayout as Ka, historyUnitFor as Kc, mediaPlayerCapability as Ki, canonicalIconKey as Kn, vectorIndexDimConflictError as Ko, extractNestedAddonId as Kr, HISTORY_DEFAULT_MIN_INTERVAL_MS as Ks, PreferenceNamespaceSchema as Kt, DATABASE_SNAPSHOT_TIMEOUT_MS as L, remoteLayoutComponentsCapability as La, defineEntryKind as Lc, localNetworkCapability as Li, featuresOfBoundCaps as Ll, buildActionSteps as Ln, timedRunSeconds as Lo, enumerateInferenceDevices as Lr, BatchTooLargeError as Ls, MigrationMetaSchema as Lt, ConsumableItemSchema as M, recordEntriesCapability as Ma, commandOrigin as Mc, keychainCapability as Mi, COMPOSED_DEVICE_STABLE_ID_PREFIX as Ml, authProviderCapability as Mn, templateCapability as Mo, deviceRemovalHookCapability as Mr, planStatisticTier as Ms, MIGRATION_API_V1_METHODS as Mt, CoreBlockSchema as N, recordsCapability as Na, createEvent as Nc, legacyAutoLinkIds as Ni, DeviceFeature as Nl, backupCapability as Nn, timedRunCapability as No, deviceRunsCapability as Nr, statisticCadenceMs as Ns, MINUTES_PER_DAY as Nt, CREDENTIAL_TOKEN_AUDIENCE as O, ptzAutotrackCapability as Oa, collectSecretLeaves as Oc, isSameAddonId as Oi, userError as Ol, alertsCapability as On, streamQualityLabel as Oo, deviceExtensionCapability as Or, nextLocalMidnight as Os, KeychainAuditEntrySchema as Ot, CredentialTokenClaimsSchema as P, reducePoints as Pa, customAction as Pc, legacyModeOf as Pi, DeviceRole as Pl, bareAddonId as Pn, timedRunLimitOf as Po, deviceStateCapability as Pr, toExpressionValue as Ps, MOTION_CLOSE_AFTER_MS as Pt, DEVICE_TEMPLATE_VALUES_CAP as Q, resolveRemoteSource as Qa, isInstanceEnabled as Qc, modeForSwitch as Qi, checkTemplatePayload as Qn, COMPOSER_ADDON_ID as Qo, featureForwards as Qr, RECORD_DELETE_BATCH as Qs, RecordingStatusSchema as Qt, DATA_STORE_DATABASES as R, remoteSourceSteps as Ra, defineRecordKinds as Rc, locationIconKey as Ri, EventCategory as Rl, buildCapabilityLookup as Rn, toTimings as Ro, enumerateItemArrayFields as Rr, CALLER_STAMPED_CAPABILITIES as Rs, NetworkTunnelStartedDataSchema as Rt, CAP_NAMES_WITH_STATUS as S, prepareRecipeUnits as Sa, asString$1 as Sc, isCredentialTokenPayload as Si, secretTreeFromSchema as Sl, addonIdOfActionId as Sn, storageAdminCapability as So, decodeVectorBase64 as Sr, helperMembers as Ss, HUB_MDNS_SERVICE_TYPE as St, COMPOSER_RUNNER_ID as T, processTimeZoneOr as Ta, auditedFields as Tc, isKernelDerivedFeature as Ti, toNodeId as Tl, addonWidgetsCapability as Tn, storageOccupancyCapability as To, describeComposableCaps as Tr, integrateReading as Ts, IDLE_ACTION_STATUS as Tt, DEVICE_HISTORY_ENERGY_KEY as U, resolveBucketMs as Ua, formatSecretScope as Uc, looseSchema as Ui, builtinAutomationTemplate as Un, validateSchedulerInput as Uo, evictionPolicyOfLocation as Ur, DeviceTransitionSchema as Us, PetFountainStatusSchema as Ut, DERIVED_CAMERA_SILENCED_CAP_NAMES as V, resolveActionVariables as Va, entryBody as Vc, logDestinationCapability as Vi, buildHeroModel as Vn, validateComposition as Vo, evaluateStepCondition as Vr, DEVICE_STATUS_METHOD as Vs, PROPOSAL_MIN_SPAN_MS as Vt, DEVICE_ID_FIELD as W, resolveCoreBlockEntry as Wa, getDebugInterest as Wc, mayReadLocation as Wi, calendarsCapability as Wn, valveCapability as Wo, expandContainer as Wr, FilterRequiredError as Ws, PowerSourceInfoSchema as Wt, DEVICE_TEMPLATE_MAX_OUTPUT as X, resolveMutate as Xa, isDeviceConfigCap as Xc, metricsProviderCapability as Xi, checkDeviceAlias as Xn, withLocationMode as Xo, fanOutTargets as Xr, RECORD_BATCH_MAX as Xs, REMOTE_MEDIA_COMMANDS as Xt, DEVICE_TEMPLATE_MAX_LENGTH as Y, resolveMethodAuth as Ya, isDebugChannelName as Yc, methodRefusal as Yi, catalogueIssues as Yn, withDefaultRunning as Yo, fanControlCapability as Yr, PlaintextSecretError as Ys, RECORDING_SOURCE_CAMSTACK_ADDON as Yt, DEVICE_TEMPLATE_THIS_ALIAS as Z, resolveNotificationTapAddress as Za, isEvent as Zc, migrationsCapability as Zi, checkRoleAddress as Zn, zoneOnlySite as Zo, fanPresetsCapability as Zr, RECORD_BATCH_MAX_BYTES as Zs, ROOT_BUCKET_KEY as Zt, BUILTIN_REMOTE_COMPONENTS as _, platformProbeCapability as _a, VocabActionError as _c, isAlertEpisodeSeverity as _i, resolveCapMount as _l, UNATTRIBUTED_BUCKET_KEY as _n, siteFor as _o, customKeyOfRole as _r, compositionSourceKey as _s, FieldClaimModeSchema as _t, AGENT_MDNS_SERVICE_TYPE as a, normalizeUnit as aa, ReadinessTimeoutError as ac, generateAutomationBlock as ai, isSecretRefOwnedBy as al, SchedulerError as an, runtimeStatePolicyFor as ao, composerCapability as ar, HelperMemberSchema as as, DiscoveryProposalBodySchema as at, CAMERA_SWITCH_ORDER as b, powerSourceLinkOfComposition as ba, asJsonObject as bc, isBuiltinTemplateId as bi, scopeKey as bl, actionWaitTotalMs as bn, splitTranslationRef as bo, declarationOwnerNodeId as br, evaluateDerivative as bs, HISTORY_CATALOG as bt, ActionError as c, occurrenceOn as ca, RecordNotFoundError as cc, groupTemplate as ci, nodeIdOfScopedKey as cl, ServerNameSchema as cn, scopesAllowDeviceCap as co, compositionUnionReads as cr, canonicalStoredBlockTarget as cs, EMPTY_REMOTE_CONFIG as ct, ActionTargetResolver as d, parseColorInput as da, RevConflictError as dc, instanceCodeHash as di, normalizeSecretOwner as dl, StorageCleanupJobSchema as dn, settingsStoreCapability as do, coreBlockComposition as dr, cloneStatefulExpressionMemory as ds, FAN_OSCILLATION_AXES as dt, motionCapability as ea, RECORD_SWEEP_INTERVAL_MS as ec, findChannelSource as ei, isReadingQuantity as el, RemoteLayoutPayloadSchema as en, resolveStepArgs as eo, collectDeviceTemplates as er, DAY_MS as es, DataStoreDatabaseSchema as et, ActionVariableSchema as f, parseStreamParamsFormPatch as fa, SECRET_CLEAR as fc, integrationInstancesCapability as fi, parseJsonObject as fl, StorageLocationModeSchema as fn, settleDeviceFeatures as fo, coreBlockIdFromAddonId as fr, composedDeviceRef as fs, FAN_OSCILLATION_AXIS_SETTABLE as ft, BUILTIN_AUTOMATION_TEMPLATES as g, planComposition as ga, UnknownRecordKindError as gc, isAlertEpisodeOpen as gi, recordSecretRef as gl, TokenScopeSchema as gn, shortHostname as go, createDeviceExtensionProvider as gr, compositionSliceKey as gs, FanPresetSchema as gt, AutomationTemplatePayloadSchema as h, pickAppLinkHub as ha, UnindexedFilterError as hc, isAddonInstanceId as hi, readinessKey as hl, TemplateKindSchema as hn, sharedColorModes as ho, coverCapability as hr, compositionItemFieldPath as hs, FanDirectionSchema as ht, ACTUATOR_TEMPLATE_IDS as i, normalizeCoreBlockWrite as ia, ReadinessRegistry as ic, gbToBytes as ii, isSecretMarkerLike as il, STREAM_PROFILE_META as in, runtimeFieldUnit as io, compileScalarOverride as ir, HOUR_MS as is, DeviceTombstoneSchema as it, ConditionMirror as j, reconcileReportedFeatures as ja, commandEffect as jc, keychainAdminCapability as ji, withoutCallerStamp as jl, assertStepsOffered as jn, switchStateOfMode as jo, deviceOffersActions as jr, planResetTier as js, METHOD_ACCESS_MAP as jt, CalendarPreferencesSchema as k, readRecipeLiteral as ka, collectSecretMarkerRefs as kc, isVoidInput as ki, vocabActionIdFor as kl, appendTrace as kn, supportedRuntimes as ko, deviceHistoryCapability as kr, openReset as ks, KeychainResetRecordSchema as kt, ActionMinDelaySecSchema as l, orderMigrations as la, RecordTooLargeError as lc, hasTimeLeaves as li, nodePin as ll, SetOscillationAxisInputSchema as ln, scoreRuntimes as lo, consumablesCapability as lr, canonicalStoredDeviceType as ls, ExportNameRefusedError as lt, AutomationStateDocSchema as m, petFountainWaterItem as ma, TransactRefusedError as mc, interpolate as mi, parseSecretRef as ml, StorageMigrationJobSchema as mn, sharedActuatorMethods as mo, coreBlocksCapability as mr, compositionFeatureEnabled as ms, FanControlStatusSchema as mt, ACTION_TARGET_INVALIDATION_EVENTS as n, nextTimeBoundaryInMs as na, REMOVE_LEAF as nc, formatDeviceRevoker as ni, isSecretFieldView as nl, STORAGE_ACCESS_FALLBACK as nn, runFanOut as no, colorCapability as nr, HISTORY_FAST_MS as ns, DeviceRunSchema as nt, AGENT_MDNS_TXT_KEYS as o, objectInputDeclaresAddonId as oa, RecordIntegrationInstances as oc, generateDeviceAlias as oi, makeSecretMarker as ol, SchedulerSchema as on, schedulersCapability as oo, compositionFieldKey as or, MINUTE_MS as os, EMPTY_AUTOMATION_STATE as ot, AlertSchema as p, petFountainCapability as pa, StoredRecordKindDeclarationSchema as pc, internalActionId as pi, parseJsonUnknown as pl, StorageLocationTypeSchema as pn, sharedActuatorFeatures as po, coreBlockSourceKind as pr, composedDeviceStableId as ps, FIRST_LEVEL_MACRO_CLASSES as pt, DEVICE_SAN_USER_PREFIX as q, resolveHubAddressRoles as qa, hydrateSchema as qc, mediaPlayerFeaturesOfRoles as qi, canonicalStoredStepTargets as qn, vectorStoreCapability as qo, extractSourceInfoFromMetadata as qr, InvalidRecordError as qs, PreferenceValueSchema as qt, ACTUATOR_METHODS as r, normalizeActionUnits as ra, RUNTIME_DEFAULTS as rc, formatMinutes as ri, isSecretMarker as rl, STORAGE_LOCATION_MODES as rn, runSteps as ro, compareVersions as rr, HISTORY_SLOW_MS as rs, DeviceStatusSchema as rt, ALL_CAPABILITY_DEFINITIONS as s, objectInputDeclaresRequiredDeviceId as sa, RecordKindDeclarationSchema as sc, groupCommandsCapability as si, mapSecretLeaves as sl, ScopedTokenSchema as sn, scopesAllowAddon as so, compositionSourceRefs as sr, buildFfmpegArgs as ss, EMPTY_REMOTE_ASSUMED_STATE as st, ACTION_RUN_MAX_MS as t, nextOccurrence as ta, REDACTED_SECRET as tc, foldSnapshotByFunction as ti, isSecretClear as tl, RunningStateStatusSchema as tn, resolveTemplateRef as to, collectWhenMirrorSources as tr, DEFAULT_HISTORY_RETENTION as ts, DeclaredDevices as tt, ActionStepSchema as u, parseAcceleratorFactsJson as ua, RecordUniqueViolationError as uc, heroLayoutCapability as ui, normalizeNodeId as ul, SsoBridgeClaimsSchema as un, seedInstanceOnce as uo, coreBlockAddonId as ur, capAppliesToDeviceKind as us, FAN_CAPTURE_FIELDS as ut, BaseDevice as v, powerSourceActuatorConflicts as va, WELL_KNOWN_TAB_MAP as vc, isAppLinkBase as vi, resolveSecretMarkers as vl, UserRecordSchema as vn, siteZoneKey as vo, dataStoreProviderCapability as vr, createStatefulExpressionMemory as vs, FieldClaimSchema as vt, COMPOSED_ITEM_FIXED_FIELDS as w, procedureAuthKey as wa, assertValidDeclaration as wc, isInternalActionId as wi, sleep as wl, addonSettingsCapability as wn, storageMigrationCapability as wo, deriveBatteryPresence as wr, implementedMethodsOf as ws, HvacModeSchema as wt, CAMSTACK_APP_LINK_ORIGIN as x, preconditionOf as xa, asNumber as xc, isCollectionArrayMethod as xi, secretTreeFromPaths as xl, actionsCapability as xn, stableIdMapOf as xo, declaredSeriesKind as xr, evaluateStatistic as xs, HISTORY_ITEM_CATALOG as xt, BatteryStatusSchema as y, powerSourceCapability as ya, actionEffect as yc, isArrayOutputSchema as yi, ruleFireOfClaim as yl, actionSourceCapability as yn, snapshotCapability as yo, databaseSnapshotCapability as yr, disarmRoseMemory as ys, GroupCommandResultSchema as yt, DAY_NAMES as z, replaceRecipeLiteral as za, emitDownForOwnedCaps as zc, lockControlCapability as zi, buildDeviceEnrollmentLink as zn, unmetRequirements as zo, enumerateSchemaFields as zr, DATAPLANE_SECRET_HEADER as zs, PET_FOUNTAIN_WATER_KEY as zt };
|
|
134723
|
+
export { DEVICE_TOMBSTONE_RETENTION_MS as $, resolveRunnerId as $a, isInstanceEnabled as $c, modeMayWrite as $i, climateControlCapability as $n, COMPOSER_ADDON_ID as $o, filesystemBrowseCapability as $r, RECORD_DELETE_BATCH as $s, RemoteAssumedStateSchema as $t, CatalogFileSchema as A, readStoredRemoteConfig as Aa, collectSecretMarkerRefs as Ac, kebabToCamel as Ai, vocabActionIdFor as Al, armRemovalReconcile as An, supportedRuntimes as Ao, deviceManagerCapability as Ar, openReset as As, LOG_LEVEL_RANK as At, DEFAULT_HOLD_OVERRIDE as B, replacedFieldKeys as Ba, emitDownForOwnedCaps as Bc, lockDoorLinkOfComposition as Bi, buildDeviceSignatureMessage as Bn, unmetRequirements as Bo, evaluateCompositionField as Br, DATAPLANE_SECRET_HEADER as Bs, PREFERENCES_MAX_VALUE_BYTES as Bt, CATALOG_LANGS as C, problemsBlockSave as Ca, asString$1 as Cc, isDefaultAppConnectionEndpoint as Ci, secretTreeFromSchema as Cl, addonPagesCapability as Cn, storageAdminCapability as Co, defineExtensionSlotProvider as Cr, helperMembers as Cs, HUB_MDNS_TXT_KEYS as Ct, CORE_BLOCK_ADDON_PREFIX as D, proposeRunningThreshold as Da, buildSecretRef as Dc, isObjectInput as Di, toSecretFieldView as Dl, alertEpisodePayload as Dn, storageProviderCapability as Do, deviceCredentialsCapability as Dr, isForwardInputRef as Ds, KEYCHAIN_RESET_TRIGGER_ACTOR as Dt, CORE_BLOCKS_ADDON_ID as E, projectDeviceRow as Ea, auditedFields as Ec, isLocationEnabled as Ei, toNodeId as El, alertEpisodeId as En, storageOccupancyCapability as Eo, describeUnmet as Er, integrateReading as Es, INTERNAL_ACTION_PREFIX as Et, DATABASE_SNAPSHOT_PARTIAL_SUFFIX as F, reexpandAutomationInstance as Fa, customAction as Fc, lifecycleJobSchema as Fi, DeviceRole as Fl, batteryCapability as Fn, timedRunLimitOf as Fo, deviceStatusCapability as Fr, toExpressionValue as Fs, MediaPlayerStatusSchema as Ft, DEVICE_NONCE_TTL_MS as G, resolveCoreBlockFiles as Ga, getDebugInterest as Gc, mayWriteToLocation as Gi, cameraGridLayoutCapability as Gn, valveCapability as Go, expressionContainsBuiltinCall as Gr, FilterRequiredError as Gs, PreferenceDeviceIdSchema as Gt, DEVICE_ENROLLMENT_TTL_MS as H, resolveAppConnections as Ha, entryBody as Hc, logLevelAtMost as Hi, buildStreamParamsConfigSchema as Hn, validateComposition as Ho, evaluateWhenTree as Hr, DEVICE_STATUS_METHOD as Hs, PackageRequiresSchema as Ht, DATABASE_SNAPSHOT_SUFFIX as I, remoteCapability as Ia, defineAddonMigrations as Ic, localDateOf as Ii, DeviceType as Il, brightnessCapability as In, timedRunMaxIn as Io, deviceTransitionsCapability as Ir, wattMillisecondsToKwh as Is, MigrationLedgerEntrySchema as It, DEVICE_TEMPLATE_FILTERS as J, resolveLocationMode as Ja, hydrateSchema as Jc, memoizePinnedFfmpeg as Ji, capUnitResolver as Jn, vectorStoreCapability as Jo, fanAxisPath as Jr, InvalidRecordError as Js, QuantityUnitError as Jt, DEVICE_SAN_CREDENTIAL_PREFIX as K, resolveHeroLayout as Ka, historyItemFieldPath as Kc, mediaPlayerCapability as Ki, canonicalIconKey as Kn, vectorDimFromBase64 as Ko, extractNestedAddonId as Kr, ForeignSecretMarkerError as Ks, PreferenceNamespaceSchema as Kt, DATABASE_SNAPSHOT_TIMEOUT_MS as L, remoteLayoutComponentsCapability as La, defineCustomActions as Lc, localNetworkCapability as Li, errMsg as Ll, buildActionSteps as Ln, timedRunQuickRun as Lo, enumerateInferenceDevices as Lr, BaseAddon as Ls, MigrationMetaSchema as Lt, ConsumableItemSchema as M, recordEntriesCapability as Ma, commandEffect as Mc, keychainCapability as Mi, withoutCallerStamp as Ml, authProviderCapability as Mn, switchStateOfMode as Mo, deviceRemovalHookCapability as Mr, planResetTier as Ms, MIGRATION_API_V1_METHODS as Mt, CoreBlockSchema as N, recordsCapability as Na, commandOrigin as Nc, legacyAutoLinkIds as Ni, COMPOSED_DEVICE_STABLE_ID_PREFIX as Nl, backupCapability as Nn, templateCapability as No, deviceRunsCapability as Nr, planStatisticTier as Ns, MINUTES_PER_DAY as Nt, CREDENTIAL_TOKEN_AUDIENCE as O, ptzAutotrackCapability as Oa, collectSecretConfigKeys as Oc, isSameAddonId as Oi, transformSecretWrite as Ol, alertsCapability as On, streamCatalogCapability as Oo, deviceExtensionCapability as Or, isHistoryHelper as Os, KeychainAuditEntrySchema as Ot, CredentialTokenClaimsSchema as P, reducePoints as Pa, createEvent as Pc, legacyModeOf as Pi, DeviceFeature as Pl, bareAddonId as Pn, timedRunCapability as Po, deviceStateCapability as Pr, statisticCadenceMs as Ps, MOTION_CLOSE_AFTER_MS as Pt, DEVICE_TEMPLATE_VALUES_CAP as Q, resolveRemoteSource as Qa, isEvent as Qc, modeForSwitch as Qi, checkTemplatePayload as Qn, zoneOnlySite as Qo, featureForwards as Qr, RECORD_BATCH_MAX_BYTES as Qs, RecordingStatusSchema as Qt, DATA_STORE_DATABASES as R, remoteSourceSteps as Ra, defineEntryKind as Rc, locationIconKey as Ri, featuresOfBoundCaps as Rl, buildCapabilityLookup as Rn, timedRunSeconds as Ro, enumerateItemArrayFields as Rr, BatchTooLargeError as Rs, NetworkTunnelStartedDataSchema as Rt, CAP_NAMES_WITH_STATUS as S, prepareRecipeUnits as Sa, asNumber as Sc, isCredentialTokenPayload as Si, secretTreeFromPaths as Sl, addonIdOfActionId as Sn, stableIdMapOf as So, decodeVectorBase64 as Sr, evaluateStatistic as Ss, HUB_MDNS_SERVICE_TYPE as St, COMPOSER_RUNNER_ID as T, processTimeZoneOr as Ta, assertValidDeclaration as Tc, isKernelDerivedFeature as Ti, sleep as Tl, addonWidgetsCapability as Tn, storageMigrationCapability as To, describeComposableCaps as Tr, implementedMethodsOf as Ts, IDLE_ACTION_STATUS as Tt, DEVICE_HISTORY_ENERGY_KEY as U, resolveBucketMs as Ua, expandCapMethods as Uc, looseSchema as Ui, builtinAutomationTemplate as Un, validateCustomAddress as Uo, evictionPolicyOfLocation as Ur, DeclarationRefusedError as Us, PetFountainStatusSchema as Ut, DERIVED_CAMERA_SILENCED_CAP_NAMES as V, resolveActionVariables as Va, emitReadiness as Vc, logDestinationCapability as Vi, buildHeroModel as Vn, userManagementCapability as Vo, evaluateStepCondition as Vr, DEVICE_SETTINGS_CONTRIBUTION_METHODS as Vs, PROPOSAL_MIN_SPAN_MS as Vt, DEVICE_ID_FIELD as W, resolveCoreBlockEntry as Wa, formatSecretScope as Wc, mayReadLocation as Wi, calendarsCapability as Wn, validateSchedulerInput as Wo, expandContainer as Wr, DeviceTransitionSchema as Ws, PowerSourceInfoSchema as Wt, DEVICE_TEMPLATE_MAX_OUTPUT as X, resolveMutate as Xa, isDebugChannelName as Xc, metricsProviderCapability as Xi, checkDeviceAlias as Xn, withDefaultRunning as Xo, fanOutTargets as Xr, PlaintextSecretError as Xs, REMOTE_MEDIA_COMMANDS as Xt, DEVICE_TEMPLATE_MAX_LENGTH as Y, resolveMethodAuth as Ya, isCommand as Yc, methodRefusal as Yi, catalogueIssues as Yn, weekdayOfLocalDate as Yo, fanControlCapability as Yr, NoCallerError as Ys, RECORDING_SOURCE_CAMSTACK_ADDON as Yt, DEVICE_TEMPLATE_THIS_ALIAS as Z, resolveNotificationTapAddress as Za, isDeviceConfigCap as Zc, migrationsCapability as Zi, checkRoleAddress as Zn, withLocationMode as Zo, fanPresetsCapability as Zr, RECORD_BATCH_MAX as Zs, ROOT_BUCKET_KEY as Zt, BUILTIN_REMOTE_COMPONENTS as _, platformProbeCapability as _a, UnknownRecordKindError as _c, isAlertEpisodeSeverity as _i, recordSecretRef as _l, UNATTRIBUTED_BUCKET_KEY as _n, shortHostname as _o, customKeyOfRole as _r, compositionSliceKey as _s, FieldClaimModeSchema as _t, AGENT_MDNS_SERVICE_TYPE as a, normalizeUnit as aa, ReadinessRegistry as ac, generateAutomationBlock as ai, isSecretMarkerLike as al, SchedulerError as an, runtimeStatePolicyFor as ao, composerCapability as ar, HOUR_MS as as, DiscoveryProposalBodySchema as at, CAMERA_SWITCH_ORDER as b, powerSourceLinkOfComposition as ba, actionEffect as bc, isBuiltinTemplateId as bi, ruleFireOfClaim as bl, actionWaitTotalMs as bn, snapshotCapability as bo, declarationOwnerNodeId as br, disarmRoseMemory as bs, HISTORY_CATALOG as bt, ActionError as c, occurrenceOn as ca, RecordKindDeclarationSchema as cc, groupTemplate as ci, mapSecretLeaves as cl, ServerNameSchema as cn, scopesAllowDeviceCap as co, compositionUnionReads as cr, buildFfmpegArgs as cs, EMPTY_REMOTE_CONFIG as ct, ActionTargetResolver as d, parseColorInput as da, RecordUniqueViolationError as dc, instanceCodeHash as di, normalizeNodeId as dl, StorageCleanupJobSchema as dn, seedInstanceOnce as do, coreBlockComposition as dr, capAppliesToDeviceKind as ds, FAN_OSCILLATION_AXES as dt, motionCapability as ea, RECORD_SECRET_COLLECTION_PREFIX as ec, findChannelSource as ei, isKeychainStoredField as el, RemoteLayoutPayloadSchema as en, resolveStepArgs as eo, collectDeviceTemplates as er, CompositionSchema as es, DataStoreDatabaseSchema as et, ActionVariableSchema as f, parseStreamParamsFormPatch as fa, RevConflictError as fc, integrationInstancesCapability as fi, normalizeSecretOwner as fl, StorageLocationModeSchema as fn, settingsStoreCapability as fo, coreBlockIdFromAddonId as fr, cloneStatefulExpressionMemory as fs, FAN_OSCILLATION_AXIS_SETTABLE as ft, BUILTIN_AUTOMATION_TEMPLATES as g, planComposition as ga, UnindexedFilterError as gc, isAlertEpisodeOpen as gi, readinessKey as gl, TokenScopeSchema as gn, sharedColorModes as go, createDeviceExtensionProvider as gr, compositionItemFieldPath as gs, FanPresetSchema as gt, AutomationTemplatePayloadSchema as h, pickAppLinkHub as ha, TransactRefusedError as hc, isAddonInstanceId as hi, parseSecretRef as hl, TemplateKindSchema as hn, sharedActuatorMethods as ho, coverCapability as hr, compositionFeatureEnabled as hs, FanDirectionSchema as ht, ACTUATOR_TEMPLATE_IDS as i, normalizeCoreBlockWrite as ia, RUNTIME_DEFAULTS as ic, gbToBytes as ii, isSecretMarker as il, STREAM_PROFILE_META as in, runtimeFieldUnit as io, compileScalarOverride as ir, HISTORY_SLOW_MS as is, DeviceTombstoneSchema as it, ConditionMirror as j, reconcileReportedFeatures as ja, collectZodSecretPaths as jc, keychainAdminCapability as ji, vocabCall as jl, assertStepsOffered as jn, switchCapability as jo, deviceOffersActions as jr, openStatistic as js, METHOD_ACCESS_MAP as jt, CalendarPreferencesSchema as k, readRecipeLiteral as ka, collectSecretLeaves as kc, isVoidInput as ki, userError as kl, appendTrace as kn, streamQualityLabel as ko, deviceHistoryCapability as kr, nextLocalMidnight as ks, KeychainResetRecordSchema as kt, ActionMinDelaySecSchema as l, orderMigrations as la, RecordNotFoundError as lc, hasTimeLeaves as li, nodeIdOfScopedKey as ll, SetOscillationAxisInputSchema as ln, scoreRuntimes as lo, consumablesCapability as lr, canonicalStoredBlockTarget as ls, ExportNameRefusedError as lt, AutomationStateDocSchema as m, petFountainWaterItem as ma, StoredRecordKindDeclarationSchema as mc, interpolate as mi, parseJsonUnknown as ml, StorageMigrationJobSchema as mn, sharedActuatorFeatures as mo, coreBlocksCapability as mr, composedDeviceStableId as ms, FanControlStatusSchema as mt, ACTION_TARGET_INVALIDATION_EVENTS as n, nextTimeBoundaryInMs as na, REDACTED_SECRET as nc, formatDeviceRevoker as ni, isSecretClear as nl, STORAGE_ACCESS_FALLBACK as nn, runFanOut as no, colorCapability as nr, DEFAULT_HISTORY_RETENTION as ns, DeviceRunSchema as nt, AGENT_MDNS_TXT_KEYS as o, objectInputDeclaresAddonId as oa, ReadinessTimeoutError as oc, generateDeviceAlias as oi, isSecretRefOwnedBy as ol, SchedulerSchema as on, schedulersCapability as oo, compositionFieldKey as or, HelperMemberSchema as os, EMPTY_AUTOMATION_STATE as ot, AlertSchema as p, petFountainCapability as pa, SECRET_CLEAR as pc, internalActionId as pi, parseJsonObject as pl, StorageLocationTypeSchema as pn, settleDeviceFeatures as po, coreBlockSourceKind as pr, composedDeviceRef as ps, FIRST_LEVEL_MACRO_CLASSES as pt, DEVICE_SAN_USER_PREFIX as q, resolveHubAddressRoles as qa, historyUnitFor as qc, mediaPlayerFeaturesOfRoles as qi, canonicalStoredStepTargets as qn, vectorIndexDimConflictError as qo, extractSourceInfoFromMetadata as qr, HISTORY_DEFAULT_MIN_INTERVAL_MS as qs, PreferenceValueSchema as qt, ACTUATOR_METHODS as r, normalizeActionUnits as ra, REMOVE_LEAF as rc, formatMinutes as ri, isSecretFieldView as rl, STORAGE_LOCATION_MODES as rn, runSteps as ro, compareVersions as rr, HISTORY_FAST_MS as rs, DeviceStatusSchema as rt, ALL_CAPABILITY_DEFINITIONS as s, objectInputDeclaresRequiredDeviceId as sa, RecordIntegrationInstances as sc, groupCommandsCapability as si, makeSecretMarker as sl, ScopedTokenSchema as sn, scopesAllowAddon as so, compositionSourceRefs as sr, MINUTE_MS as ss, EMPTY_REMOTE_ASSUMED_STATE as st, ACTION_RUN_MAX_MS as t, nextOccurrence as ta, RECORD_SWEEP_INTERVAL_MS as tc, foldSnapshotByFunction as ti, isReadingQuantity as tl, RunningStateStatusSchema as tn, resolveTemplateRef as to, collectWhenMirrorSources as tr, DAY_MS as ts, DeclaredDevices as tt, ActionStepSchema as u, parseAcceleratorFactsJson as ua, RecordTooLargeError as uc, heroLayoutCapability as ui, nodePin as ul, SsoBridgeClaimsSchema as un, searchRank as uo, coreBlockAddonId as ur, canonicalStoredDeviceType as us, FAN_CAPTURE_FIELDS as ut, BaseDevice as v, powerSourceActuatorConflicts as va, VocabActionError as vc, isAppLinkBase as vi, resolveCapMount as vl, UserRecordSchema as vn, siteFor as vo, dataStoreProviderCapability as vr, compositionSourceKey as vs, FieldClaimSchema as vt, COMPOSED_ITEM_FIXED_FIELDS as w, procedureAuthKey as wa, assertTransactScope as wc, isInternalActionId as wi, secretViewsOf as wl, addonSettingsCapability as wn, storageCapability as wo, deriveBatteryPresence as wr, historyRetentionFromSettings as ws, HvacModeSchema as wt, CAMSTACK_APP_LINK_ORIGIN as x, preconditionOf as xa, asJsonObject as xc, isCollectionArrayMethod as xi, scopeKey as xl, actionsCapability as xn, splitTranslationRef as xo, declaredSeriesKind as xr, evaluateDerivative as xs, HISTORY_ITEM_CATALOG as xt, BatteryStatusSchema as y, powerSourceCapability as ya, WELL_KNOWN_TAB_MAP as yc, isArrayOutputSchema as yi, resolveSecretMarkers as yl, actionSourceCapability as yn, siteZoneKey as yo, databaseSnapshotCapability as yr, createStatefulExpressionMemory as ys, GroupCommandResultSchema as yt, DAY_NAMES as z, replaceRecipeLiteral as za, defineRecordKinds as zc, lockControlCapability as zi, EventCategory as zl, buildDeviceEnrollmentLink as zn, toTimings as zo, enumerateSchemaFields as zr, CALLER_STAMPED_CAPABILITIES as zs, PET_FOUNTAIN_WATER_KEY as zt };
|