@camstack/server 1.2.884 → 1.2.886
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 +10 -8
- 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 +170 -2
- package/system/dist/builtins/device-history/device-history.addon.mjs +170 -2
- package/system/dist/builtins/device-history/retention/range-delete.d.ts +52 -0
- package/system/dist/builtins/device-history/rollup/rollup-engine.d.ts +11 -0
- package/system/dist/builtins/device-history/runtime/history-runtime.d.ts +5 -1
- package/system/dist/builtins/device-history/store/history-store.d.ts +5 -0
- package/system/dist/builtins/device-manager/device-manager.addon.js +2 -2
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +2 -2
- 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 +3 -3
- package/system/dist/builtins/system-config/system-config.addon.mjs +3 -3
- 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-D14TTaaO.js → capture-engine-CFpIaN4h.js} +1 -1
- package/system/dist/{capture-engine-D1VxFidj.mjs → capture-engine-OY78v21k.mjs} +1 -1
- package/system/dist/{composition-sources-DW9aO1g9.js → composition-sources-887l8zZU.js} +1 -1
- package/system/dist/{composition-sources-D83ybKCS.mjs → composition-sources-BnjzY6h1.mjs} +1 -1
- package/system/dist/{constants-2GrhzN-T.js → constants-BrsZY2kk.js} +1 -1
- package/system/dist/{constants-BdZYM4pz.mjs → constants-hKRykChp.mjs} +1 -1
- package/system/dist/{device-ca-DsmVXeGp.js → device-ca-DH3kSBQU.js} +1 -1
- package/system/dist/{device-ca-GCSaBq5b.mjs → device-ca-Daa8UqCp.mjs} +1 -1
- package/system/dist/{dist-g8h5trmJ.js → dist-DNZdEzw0.js} +155 -1
- package/system/dist/{dist-BDoMdUU3.mjs → dist-jhKGWoOo.mjs} +155 -1
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-identity-mscSQisH.js → hub-identity-1S01Uoxg.js} +1 -1
- package/system/dist/{hub-identity-Dd-T60Rd.mjs → hub-identity-Cqefb2qH.mjs} +1 -1
- package/system/dist/{hub-mdns-ciao-x1wE7M7D.js → hub-mdns-ciao-DVPKAuTm.js} +2 -2
- package/system/dist/{hub-mdns-ciao-CJlJ0skx.mjs → hub-mdns-ciao-Qfdqv_j1.mjs} +2 -2
- package/system/dist/index.js +39 -13
- package/system/dist/index.mjs +39 -13
- package/system/dist/kernel/unsupported-addon-tracker.d.ts +10 -2
- package/system/dist/{legacy-integration-rows-door-COwJBP8g.js → legacy-integration-rows-door-CRmUwtJ-.js} +1 -1
- package/system/dist/{legacy-integration-rows-door-DOAAvsCM.mjs → legacy-integration-rows-door-nxoPlTyI.mjs} +1 -1
- package/system/dist/{rename-composition-block-4TI-pwzS.js → rename-composition-block-1tEV5PeJ.js} +1 -1
- package/system/dist/{rename-composition-block-AX9Lc9Bu.mjs → rename-composition-block-lIOVbvzB.mjs} +1 -1
- package/system/dist/{restore-archive-Bpqb4LSG.js → restore-archive-CPKCo4EZ.js} +1 -1
- package/system/dist/{restore-archive-DSHgzPzG.mjs → restore-archive-CpvNbRTS.mjs} +1 -1
- package/system/dist/{wal-maintenance-BU17H1Z1.js → wal-maintenance-BTqfYbnU.js} +0 -0
- package/system/dist/{wal-maintenance-Cp6aLpv5.mjs → wal-maintenance-Ck_hJBJr.mjs} +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-DNZdEzw0.js");
|
|
7
7
|
let node_crypto = require("node:crypto");
|
|
8
8
|
let node_fs = require("node:fs");
|
|
9
9
|
node_fs = require_chunk.__toESM(node_fs);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ks as BaseAddon, Po as storageProviderCapability, ri as filesystemBrowseCapability } from "../../dist-
|
|
1
|
+
import { Ks as BaseAddon, Po as storageProviderCapability, ri as filesystemBrowseCapability } from "../../dist-jhKGWoOo.mjs";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
import * as fs$1 from "node:fs";
|
|
4
4
|
import * as path$1 from "node:path";
|
|
@@ -4,7 +4,7 @@ Object.defineProperties(exports, {
|
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
6
|
const require_builtins_sqlite_storage_filesystem_storage_addon = require("./filesystem-storage.addon.js");
|
|
7
|
-
const require_wal_maintenance = require("../../wal-maintenance-
|
|
7
|
+
const require_wal_maintenance = require("../../wal-maintenance-BTqfYbnU.js");
|
|
8
8
|
const require_builtins_sqlite_storage_sqlite_settings_addon = require("./sqlite-settings.addon.js");
|
|
9
9
|
//#region src/builtins/sqlite-storage/config-store.ts
|
|
10
10
|
var ConfigStore = class {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FilesystemStorageAddon, t as FilesystemStorageProvider } from "./filesystem-storage.addon.mjs";
|
|
2
|
-
import { B as SQLITE_ENGINE_STORM_WALL_SHARE, F as SQLITE_MMAP_FLOOR_BYTES, G as SqliteOpProfiler, H as SQLITE_PROFILE_REPORT_INTERVAL_MS, I as SQLITE_PAGE_CACHE_CEILING_KIB, K as sqliteEngineStorm, L as SQLITE_PAGE_CACHE_FLOOR_KIB, N as SQLITE_JOURNAL_SIZE_LIMIT_BYTES, P as SQLITE_MMAP_CEILING_BYTES, R as sqliteMmapSizeFor, U as SQLITE_PROFILE_TOP_N, V as SQLITE_PROFILE_REPORT_FLOOR_MS, W as SQLITE_SLOW_CALL_MS, a as WalMaintenance, i as WAL_MAINTENANCE_INTERVAL_MS, l as SqliteSettingsBackend, n as WAL_HIGH_WATER_BYTES, r as WAL_IDLE_QUIET_MS, t as WAL_CHECKPOINT_BUSY_TIMEOUT_MS, z as sqlitePageCacheKibFor } from "../../wal-maintenance-
|
|
2
|
+
import { B as SQLITE_ENGINE_STORM_WALL_SHARE, F as SQLITE_MMAP_FLOOR_BYTES, G as SqliteOpProfiler, H as SQLITE_PROFILE_REPORT_INTERVAL_MS, I as SQLITE_PAGE_CACHE_CEILING_KIB, K as sqliteEngineStorm, L as SQLITE_PAGE_CACHE_FLOOR_KIB, N as SQLITE_JOURNAL_SIZE_LIMIT_BYTES, P as SQLITE_MMAP_CEILING_BYTES, R as sqliteMmapSizeFor, U as SQLITE_PROFILE_TOP_N, V as SQLITE_PROFILE_REPORT_FLOOR_MS, W as SQLITE_SLOW_CALL_MS, a as WalMaintenance, i as WAL_MAINTENANCE_INTERVAL_MS, l as SqliteSettingsBackend, n as WAL_HIGH_WATER_BYTES, r as WAL_IDLE_QUIET_MS, t as WAL_CHECKPOINT_BUSY_TIMEOUT_MS, z as sqlitePageCacheKibFor } from "../../wal-maintenance-Ck_hJBJr.mjs";
|
|
3
3
|
import { SqliteSettingsAddon } from "./sqlite-settings.addon.mjs";
|
|
4
4
|
//#region src/builtins/sqlite-storage/config-store.ts
|
|
5
5
|
var ConfigStore = class {
|
|
@@ -3,12 +3,12 @@ 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-DNZdEzw0.js");
|
|
7
7
|
const require_retired_settings_keys = require("../../retired-settings-keys-C8nOOr5H.js");
|
|
8
|
-
const require_wal_maintenance = require("../../wal-maintenance-
|
|
8
|
+
const require_wal_maintenance = require("../../wal-maintenance-BTqfYbnU.js");
|
|
9
9
|
const require_sqlite_snapshot_protocol = require("../../sqlite-snapshot-protocol-B9OndqZv.js");
|
|
10
10
|
const require_wal_checkpoint_policy = require("../../wal-checkpoint-policy-d2z2qPqx.js");
|
|
11
|
-
const require_legacy_integration_rows_door = require("../../legacy-integration-rows-door-
|
|
11
|
+
const require_legacy_integration_rows_door = require("../../legacy-integration-rows-door-CRmUwtJ-.js");
|
|
12
12
|
let zod = require("zod");
|
|
13
13
|
let node_crypto = require("node:crypto");
|
|
14
14
|
let node_fs = require("node:fs");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Ao as storageAdminCapability, Ec as UnknownRecordKindError, F as DATABASE_SNAPSHOT_PARTIAL_SUFFIX, I as DATABASE_SNAPSHOT_SUFFIX, Jl as EventCategory, Kc as defineCustomActions, Kl as errMsg$1, Ks as BaseAddon, L as DATABASE_SNAPSHOT_TIMEOUT_MS, Ln as bareAddonId, Lt as MigrationMetaSchema, Mt as MIGRATION_API_V1_METHODS, Qn as catalogueIssues, Qs as DeclarationRefusedError, R as DATA_STORE_DATABASES, Ra as recordsCapability, Sr as databaseSnapshotCapability, Wc as customAction, _c as RecordKindDeclarationSchema, ic as NoCallerError, ma as orderMigrations, oo as resolveRunnerId, pc as RUNTIME_DEFAULTS, rc as InvalidRecordError, rs as vectorStoreCapability, ta as migrationsCapability, uc as RECORD_SWEEP_INTERVAL_MS, wc as TransactRefusedError, xl as normalizeSecretOwner, xr as dataStoreProviderCapability, zc as collectSecretMarkerRefs } from "../../dist-
|
|
1
|
+
import { Ao as storageAdminCapability, Ec as UnknownRecordKindError, F as DATABASE_SNAPSHOT_PARTIAL_SUFFIX, I as DATABASE_SNAPSHOT_SUFFIX, Jl as EventCategory, Kc as defineCustomActions, Kl as errMsg$1, Ks as BaseAddon, L as DATABASE_SNAPSHOT_TIMEOUT_MS, Ln as bareAddonId, Lt as MigrationMetaSchema, Mt as MIGRATION_API_V1_METHODS, Qn as catalogueIssues, Qs as DeclarationRefusedError, R as DATA_STORE_DATABASES, Ra as recordsCapability, Sr as databaseSnapshotCapability, Wc as customAction, _c as RecordKindDeclarationSchema, ic as NoCallerError, ma as orderMigrations, oo as resolveRunnerId, pc as RUNTIME_DEFAULTS, rc as InvalidRecordError, rs as vectorStoreCapability, ta as migrationsCapability, uc as RECORD_SWEEP_INTERVAL_MS, wc as TransactRefusedError, xl as normalizeSecretOwner, xr as dataStoreProviderCapability, zc as collectSecretMarkerRefs } from "../../dist-jhKGWoOo.mjs";
|
|
2
2
|
import { r as retiredKeyStoreOf, t as purgeRetiredSettingsKeys } from "../../retired-settings-keys-u6xQA6r7.mjs";
|
|
3
|
-
import { A as callRecords, D as RecordsEngine, E as databaseOfStore, M as controlTargetOf, O as callControl, T as trustResult, _ as rehydrateError, a as WalMaintenance, b as collectTransferables, c as vectorProviderOfOwnedFile, d as callMigrate, f as migrateTargetOf, g as DuplicatePlacementError, h as DatabaseBusyError, j as callVector, k as callData, l as SqliteSettingsBackend, m as CrossDatabaseTransactError, o as createVectorIndex, p as CollectionPlacementError, s as vectorProviderOf, u as HUB_MIGRATIONS, x as isFileHostMessage } from "../../wal-maintenance-
|
|
3
|
+
import { A as callRecords, D as RecordsEngine, E as databaseOfStore, M as controlTargetOf, O as callControl, T as trustResult, _ as rehydrateError, a as WalMaintenance, b as collectTransferables, c as vectorProviderOfOwnedFile, d as callMigrate, f as migrateTargetOf, g as DuplicatePlacementError, h as DatabaseBusyError, j as callVector, k as callData, l as SqliteSettingsBackend, m as CrossDatabaseTransactError, o as createVectorIndex, p as CollectionPlacementError, s as vectorProviderOf, u as HUB_MIGRATIONS, x as isFileHostMessage } from "../../wal-maintenance-Ck_hJBJr.mjs";
|
|
4
4
|
import { r as isSnapshotWorkerMessage } from "../../sqlite-snapshot-protocol-2QaTouWV.mjs";
|
|
5
5
|
import { a as isWorkerMessage, t as WAL_CHECKPOINT_LARGE_PASS_FRAMES } from "../../wal-checkpoint-policy-BahrTtyD.mjs";
|
|
6
|
-
import { a as patchLegacyIntegrationRows, i as legacyIntegrationAddonId, n as clearLegacyIntegrationRows, o as readLegacyIntegrationRows, r as deleteLegacyIntegrationRowKeys } from "../../legacy-integration-rows-door-
|
|
6
|
+
import { a as patchLegacyIntegrationRows, i as legacyIntegrationAddonId, n as clearLegacyIntegrationRows, o as readLegacyIntegrationRows, r as deleteLegacyIntegrationRowKeys } from "../../legacy-integration-rows-door-nxoPlTyI.mjs";
|
|
7
7
|
import { createRequire } from "node:module";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
import { randomUUID } from "node:crypto";
|
|
@@ -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-DNZdEzw0.js");
|
|
7
7
|
const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
|
|
8
8
|
let zod = require("zod");
|
|
9
9
|
let node_crypto = require("node:crypto");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ai as isLocationEnabled, El as recordSecretRef, Gc as defineAddonMigrations, Ic as buildSecretRef, Il as toSecretFieldView, Jc as defineRecordKinds, Ji as mayReadLocation, Jl as EventCategory, Kc as defineCustomActions, Ks as BaseAddon, Lc as collectSecretConfigKeys, Mo as storageMigrationCapability, Ol as resolveSecretMarkers, Wc as customAction, Yi as mayWriteToLocation, bl as normalizeNodeId, ci as gbToBytes, dc as REDACTED_SECRET, dl as isSecretClear, dn as StorageCleanupJobSchema, fl as isSecretFieldView, fn as StorageLocationModeSchema, gi as integrationInstancesCapability, gl as makeSecretMarker, jo as storageCapability, mn as StorageMigrationJobSchema, na as modeForSwitch, os as withLocationMode, pl as isSecretMarker, pn as StorageLocationTypeSchema, qr as evictionPolicyOfLocation, ra as modeMayWrite, rn as STORAGE_LOCATION_MODES, to as resolveLocationMode, wl as parseSecretRef, yo as settingsStoreCapability, zo as switchStateOfMode } from "../../dist-
|
|
1
|
+
import { Ai as isLocationEnabled, El as recordSecretRef, Gc as defineAddonMigrations, Ic as buildSecretRef, Il as toSecretFieldView, Jc as defineRecordKinds, Ji as mayReadLocation, Jl as EventCategory, Kc as defineCustomActions, Ks as BaseAddon, Lc as collectSecretConfigKeys, Mo as storageMigrationCapability, Ol as resolveSecretMarkers, Wc as customAction, Yi as mayWriteToLocation, bl as normalizeNodeId, ci as gbToBytes, dc as REDACTED_SECRET, dl as isSecretClear, dn as StorageCleanupJobSchema, fl as isSecretFieldView, fn as StorageLocationModeSchema, gi as integrationInstancesCapability, gl as makeSecretMarker, jo as storageCapability, mn as StorageMigrationJobSchema, na as modeForSwitch, os as withLocationMode, pl as isSecretMarker, pn as StorageLocationTypeSchema, qr as evictionPolicyOfLocation, ra as modeMayWrite, rn as STORAGE_LOCATION_MODES, to as resolveLocationMode, wl as parseSecretRef, yo as settingsStoreCapability, zo as switchStateOfMode } from "../../dist-jhKGWoOo.mjs";
|
|
2
2
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
@@ -3,11 +3,11 @@ 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-DNZdEzw0.js");
|
|
7
7
|
const require_safe_buffer$1 = require("../../safe-buffer-D3aoa-7X.js");
|
|
8
8
|
const require_x509_es = require("../../x509.es-WtnRNyYS.js");
|
|
9
|
-
const require_hub_identity = require("../../hub-identity-
|
|
10
|
-
const require_constants$8 = require("../../constants-
|
|
9
|
+
const require_hub_identity = require("../../hub-identity-1S01Uoxg.js");
|
|
10
|
+
const require_constants$8 = require("../../constants-BrsZY2kk.js");
|
|
11
11
|
const require_src$1 = require("../../src-CnAqG6EF.js");
|
|
12
12
|
let zod = require("zod");
|
|
13
13
|
let node_crypto = require("node:crypto");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a as __toCommonJS, i as __require, n as __esmMin, o as __toESM, r as __exportAll, t as __commonJSMin } from "../../chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import { Kc as defineCustomActions, Kl as errMsg, Ks as BaseAddon, Wc as customAction, cn as ServerNameSchema, rl as hydrateSchema, wo as shortHostname } from "../../dist-
|
|
2
|
+
import { Kc as defineCustomActions, Kl as errMsg, Ks as BaseAddon, Wc as customAction, cn as ServerNameSchema, rl as hydrateSchema, wo as shortHostname } from "../../dist-jhKGWoOo.mjs";
|
|
3
3
|
import { t as require_safe_buffer } from "../../safe-buffer-B1OjL1I9.mjs";
|
|
4
4
|
import { C as backdatedNotBefore, S as withUtcTimeEncoding, a as KeyUsageFlags, c as Pkcs10CertificateRequest, d as SubjectKeyIdentifierExtension, f as X509Certificate$1, l as Pkcs10CertificateRequestGenerator, m as cryptoProvider, n as BasicConstraintsExtension, o as KeyUsagesExtension, p as X509CertificateGenerator, r as ExtendedKeyUsageExtension, s as PemConverter, t as AuthorityKeyIdentifierExtension } from "../../x509.es-BRiJgOvu.mjs";
|
|
5
|
-
import { B as AGENT_HTTPS_NAMES_COLLECTION, G as systemConfigRecordKinds, H as AgentHttpsNames, I as isLocalOnlyHostname, U as getProcessAgentHttpsNames, V as AGENT_HTTPS_NAMES_COLUMNS, W as setProcessAgentHttpsNames, m as isPrivateAddress, r as isAnnouncedHubId } from "../../hub-identity-
|
|
6
|
-
import { a as MESH_CA_KEY_REF, c as MESH_LEAF_NOT_AFTER, i as MESH_CA_FIELD, l as SERVER_AUTH_OID, n as DEFAULT_HUB_TLS_TCP_PORT, o as MESH_CA_SETTINGS_KEY, r as MESH_CA_COMMON_NAME, s as MESH_CA_VALIDITY_DAYS, t as CLIENT_AUTH_OID } from "../../constants-
|
|
5
|
+
import { B as AGENT_HTTPS_NAMES_COLLECTION, G as systemConfigRecordKinds, H as AgentHttpsNames, I as isLocalOnlyHostname, U as getProcessAgentHttpsNames, V as AGENT_HTTPS_NAMES_COLUMNS, W as setProcessAgentHttpsNames, m as isPrivateAddress, r as isAnnouncedHubId } from "../../hub-identity-Cqefb2qH.mjs";
|
|
6
|
+
import { a as MESH_CA_KEY_REF, c as MESH_LEAF_NOT_AFTER, i as MESH_CA_FIELD, l as SERVER_AUTH_OID, n as DEFAULT_HUB_TLS_TCP_PORT, o as MESH_CA_SETTINGS_KEY, r as MESH_CA_COMMON_NAME, s as MESH_CA_VALIDITY_DAYS, t as CLIENT_AUTH_OID } from "../../constants-hKRykChp.mjs";
|
|
7
7
|
import { t as require_src } from "../../src-hG4grMU4.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
import { X509Certificate, createHash, createPrivateKey, randomBytes, randomInt, sign, timingSafeEqual, verify, webcrypto } from "node:crypto";
|
|
@@ -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-DNZdEzw0.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 { Ea as preconditionOf, Gc as defineAddonMigrations, Gi as logDestinationCapability, Ks as BaseAddon } from "../../dist-
|
|
1
|
+
import { Ea as preconditionOf, Gc as defineAddonMigrations, Gi as logDestinationCapability, Ks as BaseAddon } from "../../dist-jhKGWoOo.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
|
-
const require_dist = require("./dist-
|
|
1
|
+
const require_dist = require("./dist-DNZdEzw0.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 { Gl as DeviceType, nc as HISTORY_DEFAULT_MIN_INTERVAL_MS, tl as historyItemFieldPath } from "./dist-
|
|
1
|
+
import { Gl as DeviceType, nc as HISTORY_DEFAULT_MIN_INTERVAL_MS, tl as historyItemFieldPath } from "./dist-jhKGWoOo.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
|
-
import { Ds as compositionSourceKey, Kl as errMsg } from "./dist-
|
|
1
|
+
import { Ds as compositionSourceKey, Kl as errMsg } from "./dist-jhKGWoOo.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-DNZdEzw0.js").buildSecretRef({
|
|
3
3
|
owner: "system",
|
|
4
4
|
scope: { kind: "global" },
|
|
5
5
|
fieldPath: "meshCaKey"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ic as buildSecretRef, K as DEVICE_SAN_CREDENTIAL_PREFIX, q as DEVICE_SAN_USER_PREFIX } from "./dist-
|
|
1
|
+
import { Ic as buildSecretRef, K as DEVICE_SAN_CREDENTIAL_PREFIX, q as DEVICE_SAN_USER_PREFIX } from "./dist-jhKGWoOo.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
|
|
@@ -1274,7 +1274,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
|
1274
1274
|
*/
|
|
1275
1275
|
var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
|
|
1276
1276
|
//#endregion
|
|
1277
|
-
//#region ../types/dist/sleep-
|
|
1277
|
+
//#region ../types/dist/sleep-DnhxKL99.mjs
|
|
1278
1278
|
/**
|
|
1279
1279
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
1280
1280
|
* window to float samples (D455).
|
|
@@ -72635,6 +72635,34 @@ var OrphanListSchema = zod.z.object({
|
|
|
72635
72635
|
/** More orphans exist than {@link DEVICE_HISTORY_ORPHAN_LIST_MAX}. */
|
|
72636
72636
|
truncated: zod.z.boolean()
|
|
72637
72637
|
});
|
|
72638
|
+
var DeviceHistoryRangeDeleteRefusalSchema = zod.z.enum([
|
|
72639
|
+
"invalid-range",
|
|
72640
|
+
"range-too-large",
|
|
72641
|
+
"series-not-found",
|
|
72642
|
+
"not-a-point-series"
|
|
72643
|
+
]);
|
|
72644
|
+
var RollupRowsSchema = zod.z.object({
|
|
72645
|
+
"5m": zod.z.number().int(),
|
|
72646
|
+
"1h": zod.z.number().int(),
|
|
72647
|
+
"1d": zod.z.number().int()
|
|
72648
|
+
});
|
|
72649
|
+
/**
|
|
72650
|
+
* What a time-range delete did, or WOULD do (`dryRun`). `rows` is what was
|
|
72651
|
+
* removed: raw points inside the range, and the rollup rows covering it (those
|
|
72652
|
+
* are removed and rebuilt from what remains, so a gap leaves no stale value).
|
|
72653
|
+
* `rewritten` is how many rollup rows were rebuilt from the remaining points;
|
|
72654
|
+
* `null` on a dry run, which cannot know before it has deleted.
|
|
72655
|
+
*/
|
|
72656
|
+
var RangeDeleteResultSchema = zod.z.discriminatedUnion("ok", [zod.z.object({
|
|
72657
|
+
ok: zod.z.literal(true),
|
|
72658
|
+
dryRun: zod.z.boolean(),
|
|
72659
|
+
seriesId: zod.z.number().int(),
|
|
72660
|
+
rows: TierRowsSchema,
|
|
72661
|
+
rewritten: RollupRowsSchema.nullable()
|
|
72662
|
+
}), zod.z.object({
|
|
72663
|
+
ok: zod.z.literal(false),
|
|
72664
|
+
reason: DeviceHistoryRangeDeleteRefusalSchema
|
|
72665
|
+
})]);
|
|
72638
72666
|
var DeviceHistoryStatusSchema = zod.z.object({
|
|
72639
72667
|
startedAt: zod.z.number(),
|
|
72640
72668
|
/** The store is declared, series loaded and the first reconcile has answered. */
|
|
@@ -72793,6 +72821,27 @@ var deviceHistoryCapability = {
|
|
|
72793
72821
|
deleteOrphanSeries: method(zod.z.object({ seriesIds: zod.z.array(zod.z.number().int()).min(1).max(50) }), zod.z.object({ results: zod.z.array(OrphanDeleteEntrySchema).readonly() }), {
|
|
72794
72822
|
kind: "mutation",
|
|
72795
72823
|
auth: "admin"
|
|
72824
|
+
}),
|
|
72825
|
+
/**
|
|
72826
|
+
* Delete the points of ONE device series with a timestamp in
|
|
72827
|
+
* `[fromMs, toMs]` (both inclusive, `fromMs < toMs`) — for a spurious
|
|
72828
|
+
* reading an operator has judged wrong. The rollup rows covering the
|
|
72829
|
+
* range (and the bucket that held the deleted value forward) are removed
|
|
72830
|
+
* and rebuilt from the points that remain. `dryRun: true` deletes nothing
|
|
72831
|
+
* and returns the counts a real run would remove. Only a series fed by
|
|
72832
|
+
* points has a range to delete; a bucket-fed series is refused
|
|
72833
|
+
* `not-a-point-series`. `scope` is the series' scope ('' for most).
|
|
72834
|
+
*/
|
|
72835
|
+
deleteSeriesRange: method(zod.z.object({
|
|
72836
|
+
deviceId: zod.z.number().int(),
|
|
72837
|
+
key: zod.z.string().min(1),
|
|
72838
|
+
scope: zod.z.string(),
|
|
72839
|
+
fromMs: zod.z.number().int().nonnegative(),
|
|
72840
|
+
toMs: zod.z.number().int().nonnegative(),
|
|
72841
|
+
dryRun: zod.z.boolean()
|
|
72842
|
+
}), RangeDeleteResultSchema, {
|
|
72843
|
+
kind: "mutation",
|
|
72844
|
+
auth: "admin"
|
|
72796
72845
|
})
|
|
72797
72846
|
},
|
|
72798
72847
|
vocabulary: { notOperatorFacing: "recorded history of device state — read by charts, not actuated" }
|
|
@@ -96813,6 +96862,82 @@ var EffectiveSharesSchema = zod.z.object({
|
|
|
96813
96862
|
nodeWeights: zod.z.record(zod.z.string(), zod.z.number()),
|
|
96814
96863
|
deviceWeights: zod.z.record(zod.z.string(), zod.z.record(zod.z.string(), zod.z.number()))
|
|
96815
96864
|
});
|
|
96865
|
+
var HealthFindingKindSchema = zod.z.enum([
|
|
96866
|
+
"motion-without-detections",
|
|
96867
|
+
"detections-under-floor",
|
|
96868
|
+
"inference-too-slow",
|
|
96869
|
+
"frames-shed",
|
|
96870
|
+
"inference-device-unusable"
|
|
96871
|
+
]);
|
|
96872
|
+
var HealthSeveritySchema = zod.z.enum([
|
|
96873
|
+
"info",
|
|
96874
|
+
"warning",
|
|
96875
|
+
"critical"
|
|
96876
|
+
]);
|
|
96877
|
+
var HealthSubjectSchema = zod.z.discriminatedUnion("type", [
|
|
96878
|
+
zod.z.object({
|
|
96879
|
+
type: zod.z.literal("camera"),
|
|
96880
|
+
deviceId: zod.z.number()
|
|
96881
|
+
}),
|
|
96882
|
+
zod.z.object({
|
|
96883
|
+
type: zod.z.literal("node"),
|
|
96884
|
+
nodeId: zod.z.string()
|
|
96885
|
+
}),
|
|
96886
|
+
zod.z.object({
|
|
96887
|
+
type: zod.z.literal("inference-device"),
|
|
96888
|
+
nodeId: zod.z.string(),
|
|
96889
|
+
deviceKey: zod.z.string()
|
|
96890
|
+
})
|
|
96891
|
+
]);
|
|
96892
|
+
var HealthFindingSchema = zod.z.object({
|
|
96893
|
+
/** Stable across ticks for the same condition on the same subject. */
|
|
96894
|
+
id: zod.z.string(),
|
|
96895
|
+
kind: HealthFindingKindSchema,
|
|
96896
|
+
severity: HealthSeveritySchema,
|
|
96897
|
+
subject: HealthSubjectSchema,
|
|
96898
|
+
what: zod.z.string(),
|
|
96899
|
+
/** The numbers behind the sentence; `null` = the value could not be read. */
|
|
96900
|
+
evidence: zod.z.record(zod.z.string(), zod.z.number().nullable()),
|
|
96901
|
+
action: zod.z.string()
|
|
96902
|
+
});
|
|
96903
|
+
/** One in-memory source the tick read, and whether it answered. */
|
|
96904
|
+
var HealthSourceStatusSchema = zod.z.object({
|
|
96905
|
+
source: zod.z.string(),
|
|
96906
|
+
/** Entries read; `null` = the read failed. */
|
|
96907
|
+
entries: zod.z.number().nullable()
|
|
96908
|
+
});
|
|
96909
|
+
var HealthNodeSummarySchema = zod.z.object({
|
|
96910
|
+
nodeId: zod.z.string(),
|
|
96911
|
+
sessionsNow: zod.z.number(),
|
|
96912
|
+
/** `deviceKey` of every inference device the balancer excludes on this node. */
|
|
96913
|
+
unusableDevices: zod.z.array(zod.z.string()).readonly(),
|
|
96914
|
+
devices: zod.z.array(zod.z.object({
|
|
96915
|
+
deviceKey: zod.z.string(),
|
|
96916
|
+
sessionsNow: zod.z.number(),
|
|
96917
|
+
usable: zod.z.boolean()
|
|
96918
|
+
})).readonly()
|
|
96919
|
+
});
|
|
96920
|
+
var HealthDigestSchema = zod.z.object({
|
|
96921
|
+
generatedAt: zod.z.number(),
|
|
96922
|
+
/** Wall time the tick took to build this digest. */
|
|
96923
|
+
tickMs: zod.z.number(),
|
|
96924
|
+
/** Cameras known to the digest; `null` when a camera source failed to read (the union would be incomplete). */
|
|
96925
|
+
camerasSeen: zod.z.number().nullable(),
|
|
96926
|
+
findings: zod.z.array(HealthFindingSchema).readonly(),
|
|
96927
|
+
nodes: zod.z.array(HealthNodeSummarySchema).readonly(),
|
|
96928
|
+
sources: zod.z.array(HealthSourceStatusSchema).readonly(),
|
|
96929
|
+
/** Signals the digest does not cover yet, and why — never computed by scanning. */
|
|
96930
|
+
notCovered: zod.z.array(zod.z.string()).readonly()
|
|
96931
|
+
});
|
|
96932
|
+
var HealthDigestInputSchema = zod.z.object({
|
|
96933
|
+
/** Newest first; 1 = the latest digest. */
|
|
96934
|
+
history: zod.z.number().int().min(1).max(24).default(1) });
|
|
96935
|
+
var HealthDigestAnswerSchema = zod.z.object({
|
|
96936
|
+
/** Null until the first tick has run. */
|
|
96937
|
+
latest: HealthDigestSchema.nullable(),
|
|
96938
|
+
/** Older digests, newest first, when `history` > 1. */
|
|
96939
|
+
previous: zod.z.array(HealthDigestSchema).readonly()
|
|
96940
|
+
});
|
|
96816
96941
|
var CameraPipelineConfigSchema = zod.z.object({
|
|
96817
96942
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
96818
96943
|
steps: zod.z.array(PipelineStepInputSchema).readonly(),
|
|
@@ -97779,6 +97904,16 @@ var pipelineOrchestratorCapability = {
|
|
|
97779
97904
|
*/
|
|
97780
97905
|
getPlacementStats: method(PlacementStatsInputSchema, PlacementStatsSchema, { auth: "admin" }),
|
|
97781
97906
|
/**
|
|
97907
|
+
* Health digest (planning#572) — findings an operator can act on, built
|
|
97908
|
+
* every 5 minutes from state the orchestrator already holds in memory
|
|
97909
|
+
* (no log scan, no database read): motion that never becomes a detection,
|
|
97910
|
+
* candidates all under the class floor, inference slower than the fps it
|
|
97911
|
+
* must allow, shed frames, unusable inference devices. `latest` is null
|
|
97912
|
+
* until the first tick; `previous` holds older digests when `history` > 1.
|
|
97913
|
+
* In memory on the hub — a restart starts empty.
|
|
97914
|
+
*/
|
|
97915
|
+
getHealthDigest: method(HealthDigestInputSchema, HealthDigestAnswerSchema, { auth: "admin" }),
|
|
97916
|
+
/**
|
|
97782
97917
|
* Load balancing (D748, D755) — shares proportional to each node's
|
|
97783
97918
|
* capacity in parallel sessions: from the latency table at the models
|
|
97784
97919
|
* Auto tune picks (`hardware`), or from node benchmark results
|
|
@@ -121979,6 +122114,13 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
121979
122114
|
access: "delete",
|
|
121980
122115
|
role: "admin"
|
|
121981
122116
|
},
|
|
122117
|
+
"deviceHistory.deleteSeriesRange": {
|
|
122118
|
+
capName: "device-history",
|
|
122119
|
+
capScope: "system",
|
|
122120
|
+
addonId: null,
|
|
122121
|
+
access: "delete",
|
|
122122
|
+
role: "admin"
|
|
122123
|
+
},
|
|
121982
122124
|
"deviceHistory.getDeviceEnabled": {
|
|
121983
122125
|
capName: "device-history",
|
|
121984
122126
|
capScope: "system",
|
|
@@ -126795,6 +126937,13 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
126795
126937
|
access: "view",
|
|
126796
126938
|
role: "admin"
|
|
126797
126939
|
},
|
|
126940
|
+
"pipelineOrchestrator.getHealthDigest": {
|
|
126941
|
+
capName: "pipeline-orchestrator",
|
|
126942
|
+
capScope: "system",
|
|
126943
|
+
addonId: null,
|
|
126944
|
+
access: "view",
|
|
126945
|
+
role: "admin"
|
|
126946
|
+
},
|
|
126798
126947
|
"pipelineOrchestrator.getIngestOwner": {
|
|
126799
126948
|
capName: "pipeline-orchestrator",
|
|
126800
126949
|
capScope: "system",
|
|
@@ -131344,6 +131493,11 @@ Object.freeze({
|
|
|
131344
131493
|
form: "single",
|
|
131345
131494
|
optional: false
|
|
131346
131495
|
}],
|
|
131496
|
+
"deviceHistory.deleteSeriesRange": [{
|
|
131497
|
+
name: "deviceId",
|
|
131498
|
+
form: "single",
|
|
131499
|
+
optional: false
|
|
131500
|
+
}],
|
|
131347
131501
|
"deviceHistory.getDeviceEnabled": [{
|
|
131348
131502
|
name: "deviceId",
|
|
131349
131503
|
form: "single",
|
|
@@ -1274,7 +1274,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
|
1274
1274
|
*/
|
|
1275
1275
|
var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
|
|
1276
1276
|
//#endregion
|
|
1277
|
-
//#region ../types/dist/sleep-
|
|
1277
|
+
//#region ../types/dist/sleep-DnhxKL99.mjs
|
|
1278
1278
|
/**
|
|
1279
1279
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
1280
1280
|
* window to float samples (D455).
|
|
@@ -72635,6 +72635,34 @@ var OrphanListSchema = z.object({
|
|
|
72635
72635
|
/** More orphans exist than {@link DEVICE_HISTORY_ORPHAN_LIST_MAX}. */
|
|
72636
72636
|
truncated: z.boolean()
|
|
72637
72637
|
});
|
|
72638
|
+
var DeviceHistoryRangeDeleteRefusalSchema = z.enum([
|
|
72639
|
+
"invalid-range",
|
|
72640
|
+
"range-too-large",
|
|
72641
|
+
"series-not-found",
|
|
72642
|
+
"not-a-point-series"
|
|
72643
|
+
]);
|
|
72644
|
+
var RollupRowsSchema = z.object({
|
|
72645
|
+
"5m": z.number().int(),
|
|
72646
|
+
"1h": z.number().int(),
|
|
72647
|
+
"1d": z.number().int()
|
|
72648
|
+
});
|
|
72649
|
+
/**
|
|
72650
|
+
* What a time-range delete did, or WOULD do (`dryRun`). `rows` is what was
|
|
72651
|
+
* removed: raw points inside the range, and the rollup rows covering it (those
|
|
72652
|
+
* are removed and rebuilt from what remains, so a gap leaves no stale value).
|
|
72653
|
+
* `rewritten` is how many rollup rows were rebuilt from the remaining points;
|
|
72654
|
+
* `null` on a dry run, which cannot know before it has deleted.
|
|
72655
|
+
*/
|
|
72656
|
+
var RangeDeleteResultSchema = z.discriminatedUnion("ok", [z.object({
|
|
72657
|
+
ok: z.literal(true),
|
|
72658
|
+
dryRun: z.boolean(),
|
|
72659
|
+
seriesId: z.number().int(),
|
|
72660
|
+
rows: TierRowsSchema,
|
|
72661
|
+
rewritten: RollupRowsSchema.nullable()
|
|
72662
|
+
}), z.object({
|
|
72663
|
+
ok: z.literal(false),
|
|
72664
|
+
reason: DeviceHistoryRangeDeleteRefusalSchema
|
|
72665
|
+
})]);
|
|
72638
72666
|
var DeviceHistoryStatusSchema = z.object({
|
|
72639
72667
|
startedAt: z.number(),
|
|
72640
72668
|
/** The store is declared, series loaded and the first reconcile has answered. */
|
|
@@ -72793,6 +72821,27 @@ var deviceHistoryCapability = {
|
|
|
72793
72821
|
deleteOrphanSeries: method(z.object({ seriesIds: z.array(z.number().int()).min(1).max(50) }), z.object({ results: z.array(OrphanDeleteEntrySchema).readonly() }), {
|
|
72794
72822
|
kind: "mutation",
|
|
72795
72823
|
auth: "admin"
|
|
72824
|
+
}),
|
|
72825
|
+
/**
|
|
72826
|
+
* Delete the points of ONE device series with a timestamp in
|
|
72827
|
+
* `[fromMs, toMs]` (both inclusive, `fromMs < toMs`) — for a spurious
|
|
72828
|
+
* reading an operator has judged wrong. The rollup rows covering the
|
|
72829
|
+
* range (and the bucket that held the deleted value forward) are removed
|
|
72830
|
+
* and rebuilt from the points that remain. `dryRun: true` deletes nothing
|
|
72831
|
+
* and returns the counts a real run would remove. Only a series fed by
|
|
72832
|
+
* points has a range to delete; a bucket-fed series is refused
|
|
72833
|
+
* `not-a-point-series`. `scope` is the series' scope ('' for most).
|
|
72834
|
+
*/
|
|
72835
|
+
deleteSeriesRange: method(z.object({
|
|
72836
|
+
deviceId: z.number().int(),
|
|
72837
|
+
key: z.string().min(1),
|
|
72838
|
+
scope: z.string(),
|
|
72839
|
+
fromMs: z.number().int().nonnegative(),
|
|
72840
|
+
toMs: z.number().int().nonnegative(),
|
|
72841
|
+
dryRun: z.boolean()
|
|
72842
|
+
}), RangeDeleteResultSchema, {
|
|
72843
|
+
kind: "mutation",
|
|
72844
|
+
auth: "admin"
|
|
72796
72845
|
})
|
|
72797
72846
|
},
|
|
72798
72847
|
vocabulary: { notOperatorFacing: "recorded history of device state — read by charts, not actuated" }
|
|
@@ -96813,6 +96862,82 @@ var EffectiveSharesSchema = z.object({
|
|
|
96813
96862
|
nodeWeights: z.record(z.string(), z.number()),
|
|
96814
96863
|
deviceWeights: z.record(z.string(), z.record(z.string(), z.number()))
|
|
96815
96864
|
});
|
|
96865
|
+
var HealthFindingKindSchema = z.enum([
|
|
96866
|
+
"motion-without-detections",
|
|
96867
|
+
"detections-under-floor",
|
|
96868
|
+
"inference-too-slow",
|
|
96869
|
+
"frames-shed",
|
|
96870
|
+
"inference-device-unusable"
|
|
96871
|
+
]);
|
|
96872
|
+
var HealthSeveritySchema = z.enum([
|
|
96873
|
+
"info",
|
|
96874
|
+
"warning",
|
|
96875
|
+
"critical"
|
|
96876
|
+
]);
|
|
96877
|
+
var HealthSubjectSchema = z.discriminatedUnion("type", [
|
|
96878
|
+
z.object({
|
|
96879
|
+
type: z.literal("camera"),
|
|
96880
|
+
deviceId: z.number()
|
|
96881
|
+
}),
|
|
96882
|
+
z.object({
|
|
96883
|
+
type: z.literal("node"),
|
|
96884
|
+
nodeId: z.string()
|
|
96885
|
+
}),
|
|
96886
|
+
z.object({
|
|
96887
|
+
type: z.literal("inference-device"),
|
|
96888
|
+
nodeId: z.string(),
|
|
96889
|
+
deviceKey: z.string()
|
|
96890
|
+
})
|
|
96891
|
+
]);
|
|
96892
|
+
var HealthFindingSchema = z.object({
|
|
96893
|
+
/** Stable across ticks for the same condition on the same subject. */
|
|
96894
|
+
id: z.string(),
|
|
96895
|
+
kind: HealthFindingKindSchema,
|
|
96896
|
+
severity: HealthSeveritySchema,
|
|
96897
|
+
subject: HealthSubjectSchema,
|
|
96898
|
+
what: z.string(),
|
|
96899
|
+
/** The numbers behind the sentence; `null` = the value could not be read. */
|
|
96900
|
+
evidence: z.record(z.string(), z.number().nullable()),
|
|
96901
|
+
action: z.string()
|
|
96902
|
+
});
|
|
96903
|
+
/** One in-memory source the tick read, and whether it answered. */
|
|
96904
|
+
var HealthSourceStatusSchema = z.object({
|
|
96905
|
+
source: z.string(),
|
|
96906
|
+
/** Entries read; `null` = the read failed. */
|
|
96907
|
+
entries: z.number().nullable()
|
|
96908
|
+
});
|
|
96909
|
+
var HealthNodeSummarySchema = z.object({
|
|
96910
|
+
nodeId: z.string(),
|
|
96911
|
+
sessionsNow: z.number(),
|
|
96912
|
+
/** `deviceKey` of every inference device the balancer excludes on this node. */
|
|
96913
|
+
unusableDevices: z.array(z.string()).readonly(),
|
|
96914
|
+
devices: z.array(z.object({
|
|
96915
|
+
deviceKey: z.string(),
|
|
96916
|
+
sessionsNow: z.number(),
|
|
96917
|
+
usable: z.boolean()
|
|
96918
|
+
})).readonly()
|
|
96919
|
+
});
|
|
96920
|
+
var HealthDigestSchema = z.object({
|
|
96921
|
+
generatedAt: z.number(),
|
|
96922
|
+
/** Wall time the tick took to build this digest. */
|
|
96923
|
+
tickMs: z.number(),
|
|
96924
|
+
/** Cameras known to the digest; `null` when a camera source failed to read (the union would be incomplete). */
|
|
96925
|
+
camerasSeen: z.number().nullable(),
|
|
96926
|
+
findings: z.array(HealthFindingSchema).readonly(),
|
|
96927
|
+
nodes: z.array(HealthNodeSummarySchema).readonly(),
|
|
96928
|
+
sources: z.array(HealthSourceStatusSchema).readonly(),
|
|
96929
|
+
/** Signals the digest does not cover yet, and why — never computed by scanning. */
|
|
96930
|
+
notCovered: z.array(z.string()).readonly()
|
|
96931
|
+
});
|
|
96932
|
+
var HealthDigestInputSchema = z.object({
|
|
96933
|
+
/** Newest first; 1 = the latest digest. */
|
|
96934
|
+
history: z.number().int().min(1).max(24).default(1) });
|
|
96935
|
+
var HealthDigestAnswerSchema = z.object({
|
|
96936
|
+
/** Null until the first tick has run. */
|
|
96937
|
+
latest: HealthDigestSchema.nullable(),
|
|
96938
|
+
/** Older digests, newest first, when `history` > 1. */
|
|
96939
|
+
previous: z.array(HealthDigestSchema).readonly()
|
|
96940
|
+
});
|
|
96816
96941
|
var CameraPipelineConfigSchema = z.object({
|
|
96817
96942
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
96818
96943
|
steps: z.array(PipelineStepInputSchema).readonly(),
|
|
@@ -97779,6 +97904,16 @@ var pipelineOrchestratorCapability = {
|
|
|
97779
97904
|
*/
|
|
97780
97905
|
getPlacementStats: method(PlacementStatsInputSchema, PlacementStatsSchema, { auth: "admin" }),
|
|
97781
97906
|
/**
|
|
97907
|
+
* Health digest (planning#572) — findings an operator can act on, built
|
|
97908
|
+
* every 5 minutes from state the orchestrator already holds in memory
|
|
97909
|
+
* (no log scan, no database read): motion that never becomes a detection,
|
|
97910
|
+
* candidates all under the class floor, inference slower than the fps it
|
|
97911
|
+
* must allow, shed frames, unusable inference devices. `latest` is null
|
|
97912
|
+
* until the first tick; `previous` holds older digests when `history` > 1.
|
|
97913
|
+
* In memory on the hub — a restart starts empty.
|
|
97914
|
+
*/
|
|
97915
|
+
getHealthDigest: method(HealthDigestInputSchema, HealthDigestAnswerSchema, { auth: "admin" }),
|
|
97916
|
+
/**
|
|
97782
97917
|
* Load balancing (D748, D755) — shares proportional to each node's
|
|
97783
97918
|
* capacity in parallel sessions: from the latency table at the models
|
|
97784
97919
|
* Auto tune picks (`hardware`), or from node benchmark results
|
|
@@ -121979,6 +122114,13 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
121979
122114
|
access: "delete",
|
|
121980
122115
|
role: "admin"
|
|
121981
122116
|
},
|
|
122117
|
+
"deviceHistory.deleteSeriesRange": {
|
|
122118
|
+
capName: "device-history",
|
|
122119
|
+
capScope: "system",
|
|
122120
|
+
addonId: null,
|
|
122121
|
+
access: "delete",
|
|
122122
|
+
role: "admin"
|
|
122123
|
+
},
|
|
121982
122124
|
"deviceHistory.getDeviceEnabled": {
|
|
121983
122125
|
capName: "device-history",
|
|
121984
122126
|
capScope: "system",
|
|
@@ -126795,6 +126937,13 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
126795
126937
|
access: "view",
|
|
126796
126938
|
role: "admin"
|
|
126797
126939
|
},
|
|
126940
|
+
"pipelineOrchestrator.getHealthDigest": {
|
|
126941
|
+
capName: "pipeline-orchestrator",
|
|
126942
|
+
capScope: "system",
|
|
126943
|
+
addonId: null,
|
|
126944
|
+
access: "view",
|
|
126945
|
+
role: "admin"
|
|
126946
|
+
},
|
|
126798
126947
|
"pipelineOrchestrator.getIngestOwner": {
|
|
126799
126948
|
capName: "pipeline-orchestrator",
|
|
126800
126949
|
capScope: "system",
|
|
@@ -131344,6 +131493,11 @@ Object.freeze({
|
|
|
131344
131493
|
form: "single",
|
|
131345
131494
|
optional: false
|
|
131346
131495
|
}],
|
|
131496
|
+
"deviceHistory.deleteSeriesRange": [{
|
|
131497
|
+
name: "deviceId",
|
|
131498
|
+
form: "single",
|
|
131499
|
+
optional: false
|
|
131500
|
+
}],
|
|
131347
131501
|
"deviceHistory.getDeviceEnabled": [{
|
|
131348
131502
|
name: "deviceId",
|
|
131349
131503
|
form: "single",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
require("./chunk-Cek0wNdY.js");
|
|
2
|
-
const require_wal_maintenance = require("./wal-maintenance-
|
|
2
|
+
const require_wal_maintenance = require("./wal-maintenance-BTqfYbnU.js");
|
|
3
3
|
let node_worker_threads = require("node:worker_threads");
|
|
4
4
|
//#region src/builtins/sqlite-storage/file-host-worker.ts
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as callRecords, C as isFileHostWorkerData, D as RecordsEngine, M as controlTargetOf, O as callControl, S as isFileHostRequest, a as WalMaintenance, b as collectTransferables, d as callMigrate, f as migrateTargetOf, j as callVector, k as callData, l as SqliteSettingsBackend, o as createVectorIndex, s as vectorProviderOf, u as HUB_MIGRATIONS, v as serializeError, w as trustInput } from "./wal-maintenance-
|
|
1
|
+
import { A as callRecords, C as isFileHostWorkerData, D as RecordsEngine, M as controlTargetOf, O as callControl, S as isFileHostRequest, a as WalMaintenance, b as collectTransferables, d as callMigrate, f as migrateTargetOf, j as callVector, k as callData, l as SqliteSettingsBackend, o as createVectorIndex, s as vectorProviderOf, u as HUB_MIGRATIONS, v as serializeError, w as trustInput } from "./wal-maintenance-Ck_hJBJr.mjs";
|
|
2
2
|
import { parentPort, threadId, workerData } from "node:worker_threads";
|
|
3
3
|
//#region src/builtins/sqlite-storage/file-host-worker.ts
|
|
4
4
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
2
|
-
const require_dist = require("./dist-
|
|
2
|
+
const require_dist = require("./dist-DNZdEzw0.js");
|
|
3
3
|
const require_x509_es = require("./x509.es-WtnRNyYS.js");
|
|
4
4
|
let zod = require("zod");
|
|
5
5
|
let node_crypto = require("node:crypto");
|