@camstack/server 1.2.888 → 1.2.890
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-mounts.js +2 -1
- package/dist/api/trpc/generated-cap-routers.js +529 -487
- package/package.json +17 -10
- package/system/assets/loki-logging/icon.png +0 -0
- 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 +12 -2
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +12 -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/location-occupancy.d.ts +1 -1
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +21 -11
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +21 -11
- 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-CIzuHcW5.mjs → capture-engine-B1bMuzVX.mjs} +1 -1
- package/system/dist/{capture-engine-BQtS1bJu.js → capture-engine-C1vdBL88.js} +1 -1
- package/system/dist/{composition-sources-Ck2SVb6t.js → composition-sources-BfLlyKRe.js} +1 -1
- package/system/dist/{composition-sources-BG56kyxT.mjs → composition-sources-Dj6qn5PP.mjs} +1 -1
- package/system/dist/{constants-BOtRWcUU.mjs → constants-Ba51ywI4.mjs} +1 -1
- package/system/dist/{constants-B2rCPAir.js → constants-DuB_xXYx.js} +1 -1
- package/system/dist/{device-ca-CZ_wWfyt.js → device-ca-CVjaotgX.js} +1 -1
- package/system/dist/{device-ca-DKemGRa7.mjs → device-ca-CkXjf3ms.mjs} +1 -1
- package/system/dist/{dist-1r7BFeuz.mjs → dist-BKojK6Wf.mjs} +341 -18
- package/system/dist/{dist-BC9-zzD-.js → dist-BjhII4Uq.js} +341 -18
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-identity-E3mTM7Ll.js → hub-identity-C0ehkt78.js} +1 -1
- package/system/dist/{hub-identity-CtxGsQyr.mjs → hub-identity-C0qf888i.mjs} +1 -1
- package/system/dist/{hub-mdns-ciao-CPoiWmkG.mjs → hub-mdns-ciao-BYe34S2Q.mjs} +2 -2
- package/system/dist/{hub-mdns-ciao-ruddeiE8.js → hub-mdns-ciao-DJHjyjvT.js} +2 -2
- package/system/dist/index.js +8 -8
- package/system/dist/index.mjs +8 -8
- package/system/dist/{legacy-integration-rows-door-BwR2uJMG.mjs → legacy-integration-rows-door-BEYgXSXr.mjs} +1 -1
- package/system/dist/{legacy-integration-rows-door-cMhRbXzP.js → legacy-integration-rows-door-G6EceE_J.js} +1 -1
- package/system/dist/{rename-composition-block-Bcc0x_Oi.js → rename-composition-block-D1mO51F9.js} +1 -1
- package/system/dist/{rename-composition-block-DjVFKD_K.mjs → rename-composition-block-D6bq3Twf.mjs} +1 -1
- package/system/dist/{restore-archive-DyFnTC0y.js → restore-archive-CJvMq13C.js} +1 -1
- package/system/dist/{restore-archive-Cytts2c1.mjs → restore-archive-FXsCWq_f.mjs} +1 -1
- package/system/dist/{wal-maintenance-DzJQxMoR.js → wal-maintenance-COJ_JxrD.js} +0 -0
- package/system/dist/{wal-maintenance-GGloLxfY.mjs → wal-maintenance-Ci9Dl-lB.mjs} +0 -0
- package/system/package.json +2 -2
- package/system/assets/loki-logging/icon.svg +0 -7
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-BjhII4Uq.js");
|
|
7
7
|
let zod = require("zod");
|
|
8
8
|
//#region src/builtins/remote-access-orchestrator/enabled-providers-reconcile.ts
|
|
9
9
|
/**
|
package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Jl as EventCategory, Ks as BaseAddon } from "../../dist-
|
|
1
|
+
import { Jl as EventCategory, Ks as BaseAddon } from "../../dist-BKojK6Wf.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/builtins/remote-access-orchestrator/enabled-providers-reconcile.ts
|
|
4
4
|
/**
|
|
@@ -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-BjhII4Uq.js");
|
|
7
7
|
const require_snapshot_courtesy = require("../../snapshot-courtesy-D_C5-nC0.js");
|
|
8
8
|
let zod = require("zod");
|
|
9
9
|
let node_crypto = require("node:crypto");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Do as snapshotCapability, Gl as DeviceType, Io as streamQualityLabel, Jl as EventCategory, Kl as errMsg, Ks as BaseAddon, Ln as bareAddonId, Or as deriveBatteryPresence, Qi as memoizePinnedFfmpeg, Rn as batteryCapability, Ul as DeviceFeature, y as BatteryStatusSchema, yl as nodePin } from "../../dist-
|
|
1
|
+
import { Do as snapshotCapability, Gl as DeviceType, Io as streamQualityLabel, Jl as EventCategory, Kl as errMsg, Ks as BaseAddon, Ln as bareAddonId, Or as deriveBatteryPresence, Qi as memoizePinnedFfmpeg, Rn as batteryCapability, Ul as DeviceFeature, y as BatteryStatusSchema, yl as nodePin } from "../../dist-BKojK6Wf.mjs";
|
|
2
2
|
import { i as renderCourtesyOverlayJpeg, n as courtesyCacheKey, r as renderCourtesyJpeg } from "../../snapshot-courtesy-CyFs1M3I.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
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-BjhII4Uq.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-BKojK6Wf.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-COJ_JxrD.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-Ci9Dl-lB.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-BjhII4Uq.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-COJ_JxrD.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-G6EceE_J.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-BKojK6Wf.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-Ci9Dl-lB.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-BEYgXSXr.mjs";
|
|
7
7
|
import { createRequire } from "node:module";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
import { randomUUID } from "node:crypto";
|
|
@@ -10,7 +10,7 @@ export declare const STORAGE_CLASS_SUBTREES: Readonly<Record<string, readonly st
|
|
|
10
10
|
* Occupancy of `basePath` for a location of `type`.
|
|
11
11
|
*
|
|
12
12
|
* - missing root → `empty` (nothing this delete can strand)
|
|
13
|
-
* - class-mapped type → occupied iff any `<camera>/<subtree>`
|
|
13
|
+
* - class-mapped type → occupied iff any `<camera>/<subtree>` holds a file (empty folders do not count)
|
|
14
14
|
* - other types → occupied iff the root has a non-dot entry
|
|
15
15
|
*/
|
|
16
16
|
export declare function probeLocalDirectoryOccupancy(input: {
|
|
@@ -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-BjhII4Uq.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");
|
|
@@ -1320,9 +1320,10 @@ function locationSecretPortsOver(deps) {
|
|
|
1320
1320
|
* drained `eventMedia:default` still looks full because high footage is
|
|
1321
1321
|
* writing next to it (observed 2026-09-01).
|
|
1322
1322
|
*
|
|
1323
|
-
*
|
|
1324
|
-
*
|
|
1325
|
-
*
|
|
1323
|
+
* A subtree is occupied iff a FILE exists anywhere beneath it: a drain
|
|
1324
|
+
* leaves empty date folders behind, and those must not block a delete. The
|
|
1325
|
+
* walk is depth-first and stops at the first file, so an occupied disk is
|
|
1326
|
+
* answered fast; only a drained tree is walked in full (directories only).
|
|
1326
1327
|
*/
|
|
1327
1328
|
/**
|
|
1328
1329
|
* Class → directories under `<root>/<camera>/`. Same map as the discard
|
|
@@ -1339,10 +1340,13 @@ function isDotEntry(name) {
|
|
|
1339
1340
|
return name.startsWith(".");
|
|
1340
1341
|
}
|
|
1341
1342
|
/**
|
|
1342
|
-
* True when `dir` exists and
|
|
1343
|
-
*
|
|
1343
|
+
* True when `dir` exists and holds at least one non-directory entry (a file,
|
|
1344
|
+
* symlink, …) anywhere beneath it. Empty folders (the date directories a
|
|
1345
|
+
* drain leaves behind) do not count. Depth-first, stops at the first file.
|
|
1346
|
+
* Missing → false. Any other errno throws so the caller can answer
|
|
1347
|
+
* `unknown` (D49).
|
|
1344
1348
|
*/
|
|
1345
|
-
async function
|
|
1349
|
+
async function dirHasAnyFile(dir) {
|
|
1346
1350
|
let handle;
|
|
1347
1351
|
try {
|
|
1348
1352
|
handle = await (0, node_fs_promises.opendir)(dir);
|
|
@@ -1350,17 +1354,23 @@ async function dirHasAnyEntry(dir) {
|
|
|
1350
1354
|
if (err.code === "ENOENT") return false;
|
|
1351
1355
|
throw err;
|
|
1352
1356
|
}
|
|
1357
|
+
const subdirs = [];
|
|
1353
1358
|
try {
|
|
1354
|
-
|
|
1359
|
+
for await (const entry of handle) {
|
|
1360
|
+
if (!entry.isDirectory()) return true;
|
|
1361
|
+
subdirs.push(node_path.default.join(dir, entry.name));
|
|
1362
|
+
}
|
|
1355
1363
|
} finally {
|
|
1356
|
-
await handle.close();
|
|
1364
|
+
await handle.close().catch(() => void 0);
|
|
1357
1365
|
}
|
|
1366
|
+
for (const sub of subdirs) if (await dirHasAnyFile(sub)) return true;
|
|
1367
|
+
return false;
|
|
1358
1368
|
}
|
|
1359
1369
|
/**
|
|
1360
1370
|
* Occupancy of `basePath` for a location of `type`.
|
|
1361
1371
|
*
|
|
1362
1372
|
* - missing root → `empty` (nothing this delete can strand)
|
|
1363
|
-
* - class-mapped type → occupied iff any `<camera>/<subtree>`
|
|
1373
|
+
* - class-mapped type → occupied iff any `<camera>/<subtree>` holds a file (empty folders do not count)
|
|
1364
1374
|
* - other types → occupied iff the root has a non-dot entry
|
|
1365
1375
|
*/
|
|
1366
1376
|
async function probeLocalDirectoryOccupancy(input) {
|
|
@@ -1375,7 +1385,7 @@ async function probeLocalDirectoryOccupancy(input) {
|
|
|
1375
1385
|
const subtrees = STORAGE_CLASS_SUBTREES[input.type];
|
|
1376
1386
|
if (subtrees === void 0) return visible.length > 0 ? "occupied" : "empty";
|
|
1377
1387
|
try {
|
|
1378
|
-
for (const camera of visible) for (const subtree of subtrees) if (await
|
|
1388
|
+
for (const camera of visible) for (const subtree of subtrees) if (await dirHasAnyFile(node_path.default.join(input.basePath, camera, subtree))) return "occupied";
|
|
1379
1389
|
} catch {
|
|
1380
1390
|
return "unknown";
|
|
1381
1391
|
}
|
|
@@ -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-BKojK6Wf.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";
|
|
@@ -1315,9 +1315,10 @@ function locationSecretPortsOver(deps) {
|
|
|
1315
1315
|
* drained `eventMedia:default` still looks full because high footage is
|
|
1316
1316
|
* writing next to it (observed 2026-09-01).
|
|
1317
1317
|
*
|
|
1318
|
-
*
|
|
1319
|
-
*
|
|
1320
|
-
*
|
|
1318
|
+
* A subtree is occupied iff a FILE exists anywhere beneath it: a drain
|
|
1319
|
+
* leaves empty date folders behind, and those must not block a delete. The
|
|
1320
|
+
* walk is depth-first and stops at the first file, so an occupied disk is
|
|
1321
|
+
* answered fast; only a drained tree is walked in full (directories only).
|
|
1321
1322
|
*/
|
|
1322
1323
|
/**
|
|
1323
1324
|
* Class → directories under `<root>/<camera>/`. Same map as the discard
|
|
@@ -1334,10 +1335,13 @@ function isDotEntry(name) {
|
|
|
1334
1335
|
return name.startsWith(".");
|
|
1335
1336
|
}
|
|
1336
1337
|
/**
|
|
1337
|
-
* True when `dir` exists and
|
|
1338
|
-
*
|
|
1338
|
+
* True when `dir` exists and holds at least one non-directory entry (a file,
|
|
1339
|
+
* symlink, …) anywhere beneath it. Empty folders (the date directories a
|
|
1340
|
+
* drain leaves behind) do not count. Depth-first, stops at the first file.
|
|
1341
|
+
* Missing → false. Any other errno throws so the caller can answer
|
|
1342
|
+
* `unknown` (D49).
|
|
1339
1343
|
*/
|
|
1340
|
-
async function
|
|
1344
|
+
async function dirHasAnyFile(dir) {
|
|
1341
1345
|
let handle;
|
|
1342
1346
|
try {
|
|
1343
1347
|
handle = await opendir(dir);
|
|
@@ -1345,17 +1349,23 @@ async function dirHasAnyEntry(dir) {
|
|
|
1345
1349
|
if (err.code === "ENOENT") return false;
|
|
1346
1350
|
throw err;
|
|
1347
1351
|
}
|
|
1352
|
+
const subdirs = [];
|
|
1348
1353
|
try {
|
|
1349
|
-
|
|
1354
|
+
for await (const entry of handle) {
|
|
1355
|
+
if (!entry.isDirectory()) return true;
|
|
1356
|
+
subdirs.push(path.join(dir, entry.name));
|
|
1357
|
+
}
|
|
1350
1358
|
} finally {
|
|
1351
|
-
await handle.close();
|
|
1359
|
+
await handle.close().catch(() => void 0);
|
|
1352
1360
|
}
|
|
1361
|
+
for (const sub of subdirs) if (await dirHasAnyFile(sub)) return true;
|
|
1362
|
+
return false;
|
|
1353
1363
|
}
|
|
1354
1364
|
/**
|
|
1355
1365
|
* Occupancy of `basePath` for a location of `type`.
|
|
1356
1366
|
*
|
|
1357
1367
|
* - missing root → `empty` (nothing this delete can strand)
|
|
1358
|
-
* - class-mapped type → occupied iff any `<camera>/<subtree>`
|
|
1368
|
+
* - class-mapped type → occupied iff any `<camera>/<subtree>` holds a file (empty folders do not count)
|
|
1359
1369
|
* - other types → occupied iff the root has a non-dot entry
|
|
1360
1370
|
*/
|
|
1361
1371
|
async function probeLocalDirectoryOccupancy(input) {
|
|
@@ -1370,7 +1380,7 @@ async function probeLocalDirectoryOccupancy(input) {
|
|
|
1370
1380
|
const subtrees = STORAGE_CLASS_SUBTREES[input.type];
|
|
1371
1381
|
if (subtrees === void 0) return visible.length > 0 ? "occupied" : "empty";
|
|
1372
1382
|
try {
|
|
1373
|
-
for (const camera of visible) for (const subtree of subtrees) if (await
|
|
1383
|
+
for (const camera of visible) for (const subtree of subtrees) if (await dirHasAnyFile(path.join(input.basePath, camera, subtree))) return "occupied";
|
|
1374
1384
|
} catch {
|
|
1375
1385
|
return "unknown";
|
|
1376
1386
|
}
|
|
@@ -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-BjhII4Uq.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-C0ehkt78.js");
|
|
10
|
+
const require_constants$8 = require("../../constants-DuB_xXYx.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-BKojK6Wf.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-C0qf888i.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-Ba51ywI4.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-BjhII4Uq.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-BKojK6Wf.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 { 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-BKojK6Wf.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-BjhII4Uq.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 { Ds as compositionSourceKey, Kl as errMsg } from "./dist-
|
|
1
|
+
import { Ds as compositionSourceKey, Kl as errMsg } from "./dist-BKojK6Wf.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-BjhII4Uq.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-BKojK6Wf.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
|