@camstack/server 1.2.863 → 1.2.865
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 +12 -0
- package/package.json +16 -13
- 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 +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/migrations/migration-engine.d.ts +3 -1
- package/system/dist/builtins/sqlite-storage/migrations/migrations-provider.d.ts +1 -0
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +12 -8
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +12 -8
- 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-Cofev-f3.js → capture-engine-Clmt-fJa.js} +1 -1
- package/system/dist/{capture-engine-CK9f9H7b.mjs → capture-engine-D5sYBI_I.mjs} +1 -1
- package/system/dist/{composition-sources-Cah5d873.mjs → composition-sources-CjrnaGwh.mjs} +1 -1
- package/system/dist/{composition-sources-Pqrpujem.js → composition-sources-DnYuWHYU.js} +1 -1
- package/system/dist/{constants-DzdeUhhD.js → constants-Byd26V-T.js} +1 -1
- package/system/dist/{constants-BKiAEgH1.mjs → constants-CsgsFdRW.mjs} +1 -1
- package/system/dist/{device-ca-MvTMcE3C.mjs → device-ca-C1gHYbCN.mjs} +1 -1
- package/system/dist/{device-ca-DfFm8dSR.js → device-ca-DqPEhWEH.js} +1 -1
- package/system/dist/{dist-BJBp-Cna.js → dist-CF92pa72.js} +24 -15
- package/system/dist/{dist-BDIq20ng.mjs → dist-DnTfEXeA.mjs} +24 -15
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-identity-DErvD_Y9.mjs → hub-identity-C6owA7YL.mjs} +1 -1
- package/system/dist/{hub-identity-DZw5bjVe.js → hub-identity-Cqa2wmJK.js} +1 -1
- package/system/dist/{hub-mdns-ciao-Cn4CZvKD.js → hub-mdns-ciao-B1ysJDYu.js} +2 -2
- package/system/dist/{hub-mdns-ciao-DBtitWew.mjs → hub-mdns-ciao-CzUhdxBB.mjs} +2 -2
- package/system/dist/index.js +8 -8
- package/system/dist/index.mjs +8 -8
- package/system/dist/{legacy-integration-rows-door-Dm8DXrzQ.js → legacy-integration-rows-door-Cma1uaHZ.js} +1 -1
- package/system/dist/{legacy-integration-rows-door-CT9d6do5.mjs → legacy-integration-rows-door-Dr44AxTF.mjs} +1 -1
- package/system/dist/{rename-composition-block-CMrV8Rou.js → rename-composition-block-CjZxnsrV.js} +1 -1
- package/system/dist/{rename-composition-block-BgjpGf0d.mjs → rename-composition-block-XxBRj8Ga.mjs} +1 -1
- package/system/dist/{restore-archive-BTpU7KMz.mjs → restore-archive-BS3logm4.mjs} +1 -1
- package/system/dist/{restore-archive-BRIGjOQv.js → restore-archive-Cu2eCasa.js} +1 -1
- package/system/dist/{wal-maintenance-BsgOZJxC.mjs → wal-maintenance-CMcUiy0x.mjs} +0 -0
- package/system/dist/{wal-maintenance-DAzeawfH.js → wal-maintenance-EyJ-ljow.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-CF92pa72.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 { Fl as DeviceType, Fn as batteryCapability, Il as errMsg, Is as BaseAddon, Ji as memoizePinnedFfmpeg, Nl as DeviceFeature, Oo as streamQualityLabel, Pn as bareAddonId, Rl as EventCategory, ll as nodePin, wr as deriveBatteryPresence, y as BatteryStatusSchema, yo as snapshotCapability } from "../../dist-
|
|
1
|
+
import { Fl as DeviceType, Fn as batteryCapability, Il as errMsg, Is as BaseAddon, Ji as memoizePinnedFfmpeg, Nl as DeviceFeature, Oo as streamQualityLabel, Pn as bareAddonId, Rl as EventCategory, ll as nodePin, wr as deriveBatteryPresence, y as BatteryStatusSchema, yo as snapshotCapability } from "../../dist-DnTfEXeA.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-CF92pa72.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 { $r as filesystemBrowseCapability, Eo as storageProviderCapability, Is as BaseAddon } from "../../dist-
|
|
1
|
+
import { $r as filesystemBrowseCapability, Eo as storageProviderCapability, Is as BaseAddon } from "../../dist-DnTfEXeA.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-EyJ-ljow.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-CMcUiy0x.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 {
|
|
@@ -39,6 +39,8 @@ export declare class MigrationEngine {
|
|
|
39
39
|
private readonly statuses;
|
|
40
40
|
/** Addon catalogues offered this boot, by owner (M3): the owner drives, the engine gates. */
|
|
41
41
|
private readonly addonMetas;
|
|
42
|
+
/** Ids each owner deliberately removed: an applied row of one is fine, not a newer database. */
|
|
43
|
+
private readonly addonRetired;
|
|
42
44
|
/** Files whose pre-migration snapshot was refused: nothing runs on them, owner or hub. */
|
|
43
45
|
private readonly snapshotRefused;
|
|
44
46
|
/** Ids whose `startMigration` said proceed and whose `finishMigration` has not landed yet. */
|
|
@@ -97,7 +99,7 @@ export declare class MigrationEngine {
|
|
|
97
99
|
* catalogue whole (throws, writes nothing). A hold from a restore is honoured as for
|
|
98
100
|
* a hub migration.
|
|
99
101
|
*/
|
|
100
|
-
declareOwner(owner: string, offered: readonly MigrationMeta[], caller: string | null): Promise<{
|
|
102
|
+
declareOwner(owner: string, offered: readonly MigrationMeta[], caller: string | null, retired?: readonly string[]): Promise<{
|
|
101
103
|
readonly bootId: string;
|
|
102
104
|
readonly snapshot: "none" | "written" | "refused";
|
|
103
105
|
readonly steps: readonly MigrationOwnerStep[];
|
|
@@ -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-CF92pa72.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-EyJ-ljow.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-Cma1uaHZ.js");
|
|
12
12
|
let zod = require("zod");
|
|
13
13
|
let node_crypto = require("node:crypto");
|
|
14
14
|
let node_fs = require("node:fs");
|
|
@@ -1299,6 +1299,8 @@ var MigrationEngine = class {
|
|
|
1299
1299
|
statuses = /* @__PURE__ */ new Map();
|
|
1300
1300
|
/** Addon catalogues offered this boot, by owner (M3): the owner drives, the engine gates. */
|
|
1301
1301
|
addonMetas = /* @__PURE__ */ new Map();
|
|
1302
|
+
/** Ids each owner deliberately removed: an applied row of one is fine, not a newer database. */
|
|
1303
|
+
addonRetired = /* @__PURE__ */ new Map();
|
|
1302
1304
|
/** Files whose pre-migration snapshot was refused: nothing runs on them, owner or hub. */
|
|
1303
1305
|
snapshotRefused = /* @__PURE__ */ new Map();
|
|
1304
1306
|
/** Ids whose `startMigration` said proceed and whose `finishMigration` has not landed yet. */
|
|
@@ -1475,6 +1477,7 @@ var MigrationEngine = class {
|
|
|
1475
1477
|
...entry,
|
|
1476
1478
|
ownerNotLoaded: true
|
|
1477
1479
|
};
|
|
1480
|
+
if (this.addonRetired.get(entry.owner)?.has(entry.id) === true) return entry;
|
|
1478
1481
|
return declared.some((meta) => meta.id === entry.id) ? entry : {
|
|
1479
1482
|
...entry,
|
|
1480
1483
|
status: "skipped-newer"
|
|
@@ -1636,15 +1639,15 @@ var MigrationEngine = class {
|
|
|
1636
1639
|
* catalogue whole (throws, writes nothing). A hold from a restore is honoured as for
|
|
1637
1640
|
* a hub migration.
|
|
1638
1641
|
*/
|
|
1639
|
-
declareOwner(owner, offered, caller) {
|
|
1642
|
+
declareOwner(owner, offered, caller, retired = []) {
|
|
1640
1643
|
const run = this.tail.catch(() => void 0).then(() => {
|
|
1641
1644
|
this.assertOwnerCaller(owner, caller);
|
|
1642
|
-
return this.declare(owner, offered);
|
|
1645
|
+
return this.declare(owner, offered, retired);
|
|
1643
1646
|
});
|
|
1644
1647
|
this.tail = run;
|
|
1645
1648
|
return run;
|
|
1646
1649
|
}
|
|
1647
|
-
async declare(owner, offered) {
|
|
1650
|
+
async declare(owner, offered, retired) {
|
|
1648
1651
|
const metas = offered.map((meta) => require_dist.MigrationMetaSchema.parse(meta));
|
|
1649
1652
|
const refusal = this.refusalOfCatalogue(owner, metas);
|
|
1650
1653
|
if (refusal !== null) {
|
|
@@ -1689,11 +1692,12 @@ var MigrationEngine = class {
|
|
|
1689
1692
|
});
|
|
1690
1693
|
}
|
|
1691
1694
|
}
|
|
1692
|
-
for (const entry of rows.values()) if (entry.owner === owner && !metas.some((meta) => meta.id === entry.id) && entry.status === "applied") log.warn("migration ledger names an id this addon does not declare — skipped-newer, nothing written for it", { tags: { migrationId: entry.id } });
|
|
1695
|
+
for (const entry of rows.values()) if (entry.owner === owner && !metas.some((meta) => meta.id === entry.id) && !retired.includes(entry.id) && entry.status === "applied") log.warn("migration ledger names an id this addon does not declare — skipped-newer, nothing written for it", { tags: { migrationId: entry.id } });
|
|
1693
1696
|
let snapshot = "none";
|
|
1694
1697
|
for (const [file, first] of firstRunnable) if (await this.snapshotBefore(file, first, log) === "refused") snapshot = "refused";
|
|
1695
1698
|
else if (snapshot === "none") snapshot = "written";
|
|
1696
1699
|
this.addonMetas.set(owner, metas);
|
|
1700
|
+
this.addonRetired.set(owner, new Set(retired));
|
|
1697
1701
|
return {
|
|
1698
1702
|
bootId: this.bootId,
|
|
1699
1703
|
snapshot,
|
|
@@ -1971,7 +1975,7 @@ var MigrationsProvider = class {
|
|
|
1971
1975
|
return { entries: [...await this.engine.retry(input.id)] };
|
|
1972
1976
|
}
|
|
1973
1977
|
declareOwner(input) {
|
|
1974
|
-
return this.engine.declareOwner(input.owner, input.metas, callerOf(input)).then((out) => ({
|
|
1978
|
+
return this.engine.declareOwner(input.owner, input.metas, callerOf(input), input.retired).then((out) => ({
|
|
1975
1979
|
...out,
|
|
1976
1980
|
steps: [...out.steps],
|
|
1977
1981
|
migrationApi: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { $a as resolveRunnerId, F as DATABASE_SNAPSHOT_PARTIAL_SUFFIX, Hs as DeclarationRefusedError, I as DATABASE_SNAPSHOT_SUFFIX, Ic as defineCustomActions, Il as errMsg$1, Is as BaseAddon, Js as NoCallerError, L as DATABASE_SNAPSHOT_TIMEOUT_MS, Lt as MigrationMetaSchema, Mt as MIGRATION_API_V1_METHODS, Na as recordsCapability, Pc as customAction, Pn as bareAddonId, R as DATA_STORE_DATABASES, Rl as EventCategory, So as storageAdminCapability, Yn as catalogueIssues, Zi as migrationsCapability, dl as normalizeSecretOwner, ec as RECORD_SWEEP_INTERVAL_MS, gc as UnknownRecordKindError, kc as collectSecretMarkerRefs, la as orderMigrations, mc as TransactRefusedError, qo as vectorStoreCapability, qs as InvalidRecordError, rc as RUNTIME_DEFAULTS, sc as RecordKindDeclarationSchema, vr as dataStoreProviderCapability, yr as databaseSnapshotCapability } from "../../dist-
|
|
1
|
+
import { $a as resolveRunnerId, F as DATABASE_SNAPSHOT_PARTIAL_SUFFIX, Hs as DeclarationRefusedError, I as DATABASE_SNAPSHOT_SUFFIX, Ic as defineCustomActions, Il as errMsg$1, Is as BaseAddon, Js as NoCallerError, L as DATABASE_SNAPSHOT_TIMEOUT_MS, Lt as MigrationMetaSchema, Mt as MIGRATION_API_V1_METHODS, Na as recordsCapability, Pc as customAction, Pn as bareAddonId, R as DATA_STORE_DATABASES, Rl as EventCategory, So as storageAdminCapability, Yn as catalogueIssues, Zi as migrationsCapability, dl as normalizeSecretOwner, ec as RECORD_SWEEP_INTERVAL_MS, gc as UnknownRecordKindError, kc as collectSecretMarkerRefs, la as orderMigrations, mc as TransactRefusedError, qo as vectorStoreCapability, qs as InvalidRecordError, rc as RUNTIME_DEFAULTS, sc as RecordKindDeclarationSchema, vr as dataStoreProviderCapability, yr as databaseSnapshotCapability } from "../../dist-DnTfEXeA.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-CMcUiy0x.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-Dr44AxTF.mjs";
|
|
7
7
|
import { createRequire } from "node:module";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
import { randomUUID } from "node:crypto";
|
|
@@ -1293,6 +1293,8 @@ var MigrationEngine = class {
|
|
|
1293
1293
|
statuses = /* @__PURE__ */ new Map();
|
|
1294
1294
|
/** Addon catalogues offered this boot, by owner (M3): the owner drives, the engine gates. */
|
|
1295
1295
|
addonMetas = /* @__PURE__ */ new Map();
|
|
1296
|
+
/** Ids each owner deliberately removed: an applied row of one is fine, not a newer database. */
|
|
1297
|
+
addonRetired = /* @__PURE__ */ new Map();
|
|
1296
1298
|
/** Files whose pre-migration snapshot was refused: nothing runs on them, owner or hub. */
|
|
1297
1299
|
snapshotRefused = /* @__PURE__ */ new Map();
|
|
1298
1300
|
/** Ids whose `startMigration` said proceed and whose `finishMigration` has not landed yet. */
|
|
@@ -1469,6 +1471,7 @@ var MigrationEngine = class {
|
|
|
1469
1471
|
...entry,
|
|
1470
1472
|
ownerNotLoaded: true
|
|
1471
1473
|
};
|
|
1474
|
+
if (this.addonRetired.get(entry.owner)?.has(entry.id) === true) return entry;
|
|
1472
1475
|
return declared.some((meta) => meta.id === entry.id) ? entry : {
|
|
1473
1476
|
...entry,
|
|
1474
1477
|
status: "skipped-newer"
|
|
@@ -1630,15 +1633,15 @@ var MigrationEngine = class {
|
|
|
1630
1633
|
* catalogue whole (throws, writes nothing). A hold from a restore is honoured as for
|
|
1631
1634
|
* a hub migration.
|
|
1632
1635
|
*/
|
|
1633
|
-
declareOwner(owner, offered, caller) {
|
|
1636
|
+
declareOwner(owner, offered, caller, retired = []) {
|
|
1634
1637
|
const run = this.tail.catch(() => void 0).then(() => {
|
|
1635
1638
|
this.assertOwnerCaller(owner, caller);
|
|
1636
|
-
return this.declare(owner, offered);
|
|
1639
|
+
return this.declare(owner, offered, retired);
|
|
1637
1640
|
});
|
|
1638
1641
|
this.tail = run;
|
|
1639
1642
|
return run;
|
|
1640
1643
|
}
|
|
1641
|
-
async declare(owner, offered) {
|
|
1644
|
+
async declare(owner, offered, retired) {
|
|
1642
1645
|
const metas = offered.map((meta) => MigrationMetaSchema.parse(meta));
|
|
1643
1646
|
const refusal = this.refusalOfCatalogue(owner, metas);
|
|
1644
1647
|
if (refusal !== null) {
|
|
@@ -1683,11 +1686,12 @@ var MigrationEngine = class {
|
|
|
1683
1686
|
});
|
|
1684
1687
|
}
|
|
1685
1688
|
}
|
|
1686
|
-
for (const entry of rows.values()) if (entry.owner === owner && !metas.some((meta) => meta.id === entry.id) && entry.status === "applied") log.warn("migration ledger names an id this addon does not declare — skipped-newer, nothing written for it", { tags: { migrationId: entry.id } });
|
|
1689
|
+
for (const entry of rows.values()) if (entry.owner === owner && !metas.some((meta) => meta.id === entry.id) && !retired.includes(entry.id) && entry.status === "applied") log.warn("migration ledger names an id this addon does not declare — skipped-newer, nothing written for it", { tags: { migrationId: entry.id } });
|
|
1687
1690
|
let snapshot = "none";
|
|
1688
1691
|
for (const [file, first] of firstRunnable) if (await this.snapshotBefore(file, first, log) === "refused") snapshot = "refused";
|
|
1689
1692
|
else if (snapshot === "none") snapshot = "written";
|
|
1690
1693
|
this.addonMetas.set(owner, metas);
|
|
1694
|
+
this.addonRetired.set(owner, new Set(retired));
|
|
1691
1695
|
return {
|
|
1692
1696
|
bootId: this.bootId,
|
|
1693
1697
|
snapshot,
|
|
@@ -1964,7 +1968,7 @@ var MigrationsProvider = class {
|
|
|
1964
1968
|
return { entries: [...await this.engine.retry(input.id)] };
|
|
1965
1969
|
}
|
|
1966
1970
|
declareOwner(input) {
|
|
1967
|
-
return this.engine.declareOwner(input.owner, input.metas, callerOf(input)).then((out) => ({
|
|
1971
|
+
return this.engine.declareOwner(input.owner, input.metas, callerOf(input), input.retired).then((out) => ({
|
|
1968
1972
|
...out,
|
|
1969
1973
|
steps: [...out.steps],
|
|
1970
1974
|
migrationApi: {
|
|
@@ -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-CF92pa72.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 { $i as modeMayWrite, Co as storageCapability, Dc as collectSecretConfigKeys, Ec as buildSecretRef, Ei as isLocationEnabled, El as toSecretFieldView, Fc as defineAddonMigrations, Gi as mayWriteToLocation, Ic as defineCustomActions, Is as BaseAddon, Ja as resolveLocationMode, Pc as customAction, Qi as modeForSwitch, Rc as defineRecordKinds, Rl as EventCategory, Ur as evictionPolicyOfLocation, Wi as mayReadLocation, Xo as withLocationMode, dn as StorageCleanupJobSchema, do as settingsStoreCapability, fi as integrationInstancesCapability, fn as StorageLocationModeSchema, gl as recordSecretRef, ii as gbToBytes, jo as switchStateOfMode, ml as parseSecretRef, mn as StorageMigrationJobSchema, nl as isSecretFieldView, ol as makeSecretMarker, pn as StorageLocationTypeSchema, rl as isSecretMarker, rn as STORAGE_LOCATION_MODES, tc as REDACTED_SECRET, tl as isSecretClear, ul as normalizeNodeId, vl as resolveSecretMarkers, wo as storageMigrationCapability } from "../../dist-
|
|
1
|
+
import { $i as modeMayWrite, Co as storageCapability, Dc as collectSecretConfigKeys, Ec as buildSecretRef, Ei as isLocationEnabled, El as toSecretFieldView, Fc as defineAddonMigrations, Gi as mayWriteToLocation, Ic as defineCustomActions, Is as BaseAddon, Ja as resolveLocationMode, Pc as customAction, Qi as modeForSwitch, Rc as defineRecordKinds, Rl as EventCategory, Ur as evictionPolicyOfLocation, Wi as mayReadLocation, Xo as withLocationMode, dn as StorageCleanupJobSchema, do as settingsStoreCapability, fi as integrationInstancesCapability, fn as StorageLocationModeSchema, gl as recordSecretRef, ii as gbToBytes, jo as switchStateOfMode, ml as parseSecretRef, mn as StorageMigrationJobSchema, nl as isSecretFieldView, ol as makeSecretMarker, pn as StorageLocationTypeSchema, rl as isSecretMarker, rn as STORAGE_LOCATION_MODES, tc as REDACTED_SECRET, tl as isSecretClear, ul as normalizeNodeId, vl as resolveSecretMarkers, wo as storageMigrationCapability } from "../../dist-DnTfEXeA.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-CF92pa72.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-Cqa2wmJK.js");
|
|
10
|
+
const require_constants$8 = require("../../constants-Byd26V-T.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 { Ic as defineCustomActions, Il as errMsg, Is as BaseAddon, Pc as customAction, cn as ServerNameSchema, go as shortHostname, qc as hydrateSchema } from "../../dist-
|
|
2
|
+
import { Ic as defineCustomActions, Il as errMsg, Is as BaseAddon, Pc as customAction, cn as ServerNameSchema, go as shortHostname, qc as hydrateSchema } from "../../dist-DnTfEXeA.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 SERVER_AUTH_OID, i as MESH_CA_FIELD, 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-C6owA7YL.mjs";
|
|
6
|
+
import { a as MESH_CA_KEY_REF, c as SERVER_AUTH_OID, i as MESH_CA_FIELD, 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-CsgsFdRW.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-CF92pa72.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 { Fc as defineAddonMigrations, Is as BaseAddon, Vi as logDestinationCapability, xa as preconditionOf } from "../../dist-
|
|
1
|
+
import { Fc as defineAddonMigrations, Is as BaseAddon, Vi as logDestinationCapability, xa as preconditionOf } from "../../dist-DnTfEXeA.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-CF92pa72.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 { Fl as DeviceType, Gc as historyItemFieldPath, Ks as HISTORY_DEFAULT_MIN_INTERVAL_MS } from "./dist-
|
|
1
|
+
import { Fl as DeviceType, Gc as historyItemFieldPath, Ks as HISTORY_DEFAULT_MIN_INTERVAL_MS } from "./dist-DnTfEXeA.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 { Il as errMsg, _s as compositionSourceKey } from "./dist-
|
|
1
|
+
import { Il as errMsg, _s as compositionSourceKey } from "./dist-DnTfEXeA.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-CF92pa72.js").buildSecretRef({
|
|
3
3
|
owner: "system",
|
|
4
4
|
scope: { kind: "global" },
|
|
5
5
|
fieldPath: "meshCaKey"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ec as buildSecretRef, K as DEVICE_SAN_CREDENTIAL_PREFIX, q as DEVICE_SAN_USER_PREFIX } from "./dist-
|
|
1
|
+
import { Ec as buildSecretRef, K as DEVICE_SAN_CREDENTIAL_PREFIX, q as DEVICE_SAN_USER_PREFIX } from "./dist-DnTfEXeA.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
|
|
@@ -812,7 +812,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
812
812
|
return EventCategory;
|
|
813
813
|
}({});
|
|
814
814
|
//#endregion
|
|
815
|
-
//#region ../types/dist/composed-stable-id-
|
|
815
|
+
//#region ../types/dist/composed-stable-id-COP6zOXx.mjs
|
|
816
816
|
/**
|
|
817
817
|
import { errMsg } from '@camstack/types'
|
|
818
818
|
* Extract a human-readable message from an unknown error value.
|
|
@@ -825,8 +825,6 @@ function errMsg(err) {
|
|
|
825
825
|
}
|
|
826
826
|
var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
827
827
|
DeviceType["Camera"] = "camera";
|
|
828
|
-
/** Legacy stored value, read only by the hub-to-integration migrations; no live device carries it. */
|
|
829
|
-
DeviceType["Hub"] = "hub";
|
|
830
828
|
DeviceType["Light"] = "light";
|
|
831
829
|
DeviceType["Siren"] = "siren";
|
|
832
830
|
DeviceType["Switch"] = "switch";
|
|
@@ -1261,7 +1259,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
|
1261
1259
|
*/
|
|
1262
1260
|
var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
|
|
1263
1261
|
//#endregion
|
|
1264
|
-
//#region ../types/dist/sleep-
|
|
1262
|
+
//#region ../types/dist/sleep-B5XPl2YP.mjs
|
|
1265
1263
|
/**
|
|
1266
1264
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
1267
1265
|
* window to float samples (D455).
|
|
@@ -1988,7 +1986,8 @@ async function runAddonMigrations(host, migrations, logger, options = {}) {
|
|
|
1988
1986
|
try {
|
|
1989
1987
|
declaration = await host.declareOwner({
|
|
1990
1988
|
owner,
|
|
1991
|
-
metas: migrations.map((m) => m.meta)
|
|
1989
|
+
metas: migrations.map((m) => m.meta),
|
|
1990
|
+
...options.retired === void 0 ? {} : { retired: [...options.retired] }
|
|
1992
1991
|
});
|
|
1993
1992
|
} catch (err) {
|
|
1994
1993
|
log.error("the migration engine refused or could not take this addon catalogue — none ran", { meta: { error: errMsg(err) } });
|
|
@@ -4039,6 +4038,14 @@ var BaseAddon = class {
|
|
|
4039
4038
|
declareRegistrySwitch(spec) {
|
|
4040
4039
|
this.registrySwitchSpec = spec;
|
|
4041
4040
|
}
|
|
4041
|
+
/**
|
|
4042
|
+
* Ids this addon removed from its catalogue on purpose (`declareRetiredMigrations`): sent with
|
|
4043
|
+
* every declaration so the engine does not read their applied rows as a newer database.
|
|
4044
|
+
*/
|
|
4045
|
+
retiredMigrationIds = [];
|
|
4046
|
+
declareRetiredMigrations(ids) {
|
|
4047
|
+
this.retiredMigrationIds = ids;
|
|
4048
|
+
}
|
|
4042
4049
|
registrySwitchSpec = null;
|
|
4043
4050
|
registrySwitchBound() {
|
|
4044
4051
|
const spec = this.registrySwitchSpec;
|
|
@@ -4062,10 +4069,14 @@ var BaseAddon = class {
|
|
|
4062
4069
|
async runBound(declared, options) {
|
|
4063
4070
|
const added = this.registrySwitchBound();
|
|
4064
4071
|
const migrations = [...declared, ...added];
|
|
4065
|
-
const
|
|
4072
|
+
const widened = options?.only === void 0 || added.length === 0 ? options : {
|
|
4066
4073
|
...options,
|
|
4067
4074
|
only: [...options.only, ...added.map((m) => m.meta.id)]
|
|
4068
4075
|
};
|
|
4076
|
+
const phased = this.retiredMigrationIds.length === 0 ? widened ?? {} : {
|
|
4077
|
+
...widened,
|
|
4078
|
+
retired: this.retiredMigrationIds
|
|
4079
|
+
};
|
|
4069
4080
|
const api = this.ctx.api.migrations;
|
|
4070
4081
|
const report = await runAddonMigrations({
|
|
4071
4082
|
declareOwner: (input) => api.declareOwner.mutate(input),
|
|
@@ -18130,7 +18141,7 @@ function sleep(ms) {
|
|
|
18130
18141
|
return new Promise((resolve) => setTimeout(resolve, Math.max(0, ms)));
|
|
18131
18142
|
}
|
|
18132
18143
|
//#endregion
|
|
18133
|
-
//#region ../types/dist/implemented-methods-
|
|
18144
|
+
//#region ../types/dist/implemented-methods-0xxMOekw.mjs
|
|
18134
18145
|
var AUDIO_ENCODER_BY_CODEC = {
|
|
18135
18146
|
opus: "libopus",
|
|
18136
18147
|
aac: "aac",
|
|
@@ -62091,7 +62102,6 @@ var CAP_CUSTOMIZE_CATALOG = {
|
|
|
62091
62102
|
cardinality: "keyedArray",
|
|
62092
62103
|
deviceTypes: [
|
|
62093
62104
|
DeviceType.Camera,
|
|
62094
|
-
DeviceType.Hub,
|
|
62095
62105
|
DeviceType.Light,
|
|
62096
62106
|
DeviceType.Siren,
|
|
62097
62107
|
DeviceType.Switch,
|
|
@@ -71398,7 +71408,7 @@ var deviceTransitionsCapability = {
|
|
|
71398
71408
|
mode: "singleton",
|
|
71399
71409
|
kind: "wrapper",
|
|
71400
71410
|
defaultActive: true,
|
|
71401
|
-
deviceTypes: Object.values(DeviceType).filter((type) => type !== DeviceType.
|
|
71411
|
+
deviceTypes: Object.values(DeviceType).filter((type) => type !== DeviceType.Container),
|
|
71402
71412
|
methods: {
|
|
71403
71413
|
/**
|
|
71404
71414
|
* Transitions of a device, newest first. `limit` is bounded; page with `cursor`.
|
|
@@ -75678,7 +75688,6 @@ var HeroSceneSchema = zod.z.object({
|
|
|
75678
75688
|
});
|
|
75679
75689
|
var HERO_SCENE_BY_TYPE = {
|
|
75680
75690
|
[DeviceType.Camera]: "camera",
|
|
75681
|
-
[DeviceType.Hub]: "gateway",
|
|
75682
75691
|
[DeviceType.Light]: "light",
|
|
75683
75692
|
[DeviceType.Siren]: "siren",
|
|
75684
75693
|
[DeviceType.Switch]: "plug",
|
|
@@ -81939,7 +81948,9 @@ var migrationsCapability = {
|
|
|
81939
81948
|
*/
|
|
81940
81949
|
declareOwner: method(zod.z.object({
|
|
81941
81950
|
owner: zod.z.string().min(1),
|
|
81942
|
-
metas: zod.z.array(MigrationMetaSchema)
|
|
81951
|
+
metas: zod.z.array(MigrationMetaSchema),
|
|
81952
|
+
/** Ids the owner deliberately removed: an applied row of one is fine, never "newer". */
|
|
81953
|
+
retired: zod.z.array(zod.z.string().min(1)).optional()
|
|
81943
81954
|
}), zod.z.object({
|
|
81944
81955
|
bootId: zod.z.string(),
|
|
81945
81956
|
snapshot: zod.z.enum([
|
|
@@ -113116,7 +113127,7 @@ var DeclaredDevices = class {
|
|
|
113116
113127
|
return removed;
|
|
113117
113128
|
}
|
|
113118
113129
|
};
|
|
113119
|
-
DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.HeatPump, DeviceType.EnergySystem, DeviceType.Camera, DeviceType.
|
|
113130
|
+
DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.HeatPump, DeviceType.EnergySystem, DeviceType.Camera, DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, DeviceType.Sensor, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Gateway;
|
|
113120
113131
|
new Set(Object.values(DeviceType));
|
|
113121
113132
|
/** True when a value is a navigable node: a plain object OR a tRPC v11 client
|
|
113122
113133
|
* proxy node (a callable `Proxy(noop)` → `typeof === 'function'`, NOT an
|
|
@@ -115985,7 +115996,6 @@ var CONTROL_LAYOUT = { rows: ["control"] };
|
|
|
115985
115996
|
var BUTTON_LAYOUT = { rows: ["button"] };
|
|
115986
115997
|
var HERO_LAYOUT_BY_TYPE = {
|
|
115987
115998
|
[DeviceType.Camera]: HERO_LAYOUT_DEFAULT,
|
|
115988
|
-
[DeviceType.Hub]: HERO_LAYOUT_DEFAULT,
|
|
115989
115999
|
[DeviceType.Light]: LIGHT_LAYOUT,
|
|
115990
116000
|
[DeviceType.Siren]: HERO_LAYOUT_DEFAULT,
|
|
115991
116001
|
[DeviceType.Switch]: SWITCH_LAYOUT,
|
|
@@ -116709,7 +116719,6 @@ var HERO_MODE_LOOK = {
|
|
|
116709
116719
|
var MODE_LOOK_TYPES = [DeviceType.Climate];
|
|
116710
116720
|
var HERO_LOOK_BY_TYPE = {
|
|
116711
116721
|
[DeviceType.Camera]: CAMERA_LOOK,
|
|
116712
|
-
[DeviceType.Hub]: HERO_LOOK_DEFAULT,
|
|
116713
116722
|
[DeviceType.Light]: LIGHT_LOOK,
|
|
116714
116723
|
[DeviceType.Siren]: HERO_LOOK_DEFAULT,
|
|
116715
116724
|
[DeviceType.Switch]: SWITCH_LOOK,
|
|
@@ -127814,7 +127823,7 @@ function offered(received) {
|
|
|
127814
127823
|
};
|
|
127815
127824
|
}
|
|
127816
127825
|
offered(HA_AS), withheld(HOMEKIT_REASON), withheld(ALEXA_REASON), withheld(GOOGLE_REASON), withheld(MATTER_REASON);
|
|
127817
|
-
DeviceType.Camera, DeviceType.
|
|
127826
|
+
DeviceType.Camera, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Climate, DeviceType.HeatPump, DeviceType.EnergySystem, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Gateway;
|
|
127818
127827
|
DeviceRole.Siren, DeviceRole.Floodlight, DeviceRole.Spotlight, DeviceRole.PirSensor, DeviceRole.Chime, DeviceRole.Autotrack, DeviceRole.Nightvision, DeviceRole.PrivacyMask, DeviceRole.Doorbell, DeviceRole.CoverBlind, DeviceRole.CoverShutter, DeviceRole.CoverAwning, DeviceRole.CoverCurtain, DeviceRole.CoverGarage, DeviceRole.CoverGate, DeviceRole.CoverDoor, DeviceRole.CoverWindow, DeviceRole.BinaryHelper, DeviceRole.Outlet, DeviceRole.SwitchHeater, DeviceRole.SwitchFan, DeviceRole.SwitchLight, DeviceRole.ClimateAc, DeviceRole.ClimateThermostat, DeviceRole.ClimateFloor, DeviceRole.ClimateRadiator, DeviceRole.ClimateHeater, DeviceRole.ClimateHeatPumpCircuit, DeviceRole.MotionSensor, DeviceRole.ContactSensor, DeviceRole.LeakSensor, DeviceRole.SmokeSensor, DeviceRole.COSensor, DeviceRole.GasSensor, DeviceRole.TamperSensor, DeviceRole.VibrationSensor, DeviceRole.ConnectivitySensor, DeviceRole.SoundSensor, DeviceRole.BinarySensor, DeviceRole.TemperatureSensor, DeviceRole.HumiditySensor, DeviceRole.AmbientLightSensor, DeviceRole.PressureSensor, DeviceRole.WindSensor, DeviceRole.RainSensor, DeviceRole.UvSensor, DeviceRole.SolarRadiationSensor, DeviceRole.SoilMoistureSensor, DeviceRole.PowerSensor, DeviceRole.EnergySensor, DeviceRole.VoltageSensor, DeviceRole.CurrentSensor, DeviceRole.AirQualitySensor, DeviceRole.BatterySensor, DeviceRole.NumericSensor, DeviceRole.EnumSensor, DeviceRole.DateTimeSensor, DeviceRole.GenericSensor, DeviceRole.NumericControl, DeviceRole.SelectControl, DeviceRole.TextControl, DeviceRole.DateTimeControl, DeviceRole.MobilePushNotifier, DeviceRole.MessagingNotifier, DeviceRole.EmailNotifier, DeviceRole.GenericNotifier, DeviceRole.IrTransmitter;
|
|
127819
127828
|
new Set(Object.values(DeviceType));
|
|
127820
127829
|
new Set(Object.values(DeviceRole));
|