@camstack/server 1.2.762 → 1.2.763
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 +6 -0
- package/package.json +6 -17
- package/system/dist/{agent-https-BHpDnJr0.js → agent-https-DJAX08DO.js} +1 -1
- package/system/dist/{agent-https-UksJdbes.mjs → agent-https-DvdcveCd.mjs} +1 -1
- 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.d.ts +7 -0
- package/system/dist/builtins/alerts/alerts.addon.js +50 -3
- package/system/dist/builtins/alerts/alerts.addon.mjs +50 -3
- 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 +3 -3
- package/system/dist/builtins/composer/composer.addon.mjs +3 -3
- 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 +1 -1
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +1 -1
- 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 +3 -3
- package/system/dist/builtins/keychain/index.mjs +3 -3
- 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 +2 -2
- package/system/dist/builtins/local-network/local-network.addon.mjs +2 -2
- 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 +7 -3
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +7 -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-Btq9LseJ.mjs → capture-engine-5KqfVEyZ.mjs} +1 -1
- package/system/dist/{capture-engine-DgcmHuIi.js → capture-engine-Aq9_3cDa.js} +1 -1
- package/system/dist/{composition-sources-DrGLoV8D.js → composition-sources-JszOBvBv.js} +1 -1
- package/system/dist/{composition-sources-xyPI-9ja.mjs → composition-sources-bbu-Zpc3.mjs} +1 -1
- package/system/dist/{constants-B8q9KsGq.mjs → constants-BNmGDQke.mjs} +1 -1
- package/system/dist/{constants-BiE3GU1C.js → constants-CHGHz6jj.js} +1 -1
- package/system/dist/{device-ca-Bel2vDyJ.js → device-ca-BEhhnh7w.js} +1 -1
- package/system/dist/{device-ca-D5U9i2AO.mjs → device-ca-C6UYk5Rm.mjs} +1 -1
- package/system/dist/{dist-B6-AUY2T.js → dist-DiyRxDa1.js} +17 -5
- package/system/dist/{dist-Dd_vXorK.mjs → dist-LA9NIY-I.mjs} +17 -5
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-mdns-ciao-DV7bwoub.js → hub-mdns-ciao-CiMvKezA.js} +2 -2
- package/system/dist/{hub-mdns-ciao-Dz9w_pd0.mjs → hub-mdns-ciao-Dvavkx33.mjs} +2 -2
- package/system/dist/index.js +7 -7
- package/system/dist/index.mjs +7 -7
- package/system/dist/{restore-archive-BcstsRhG.js → restore-archive-CV8S0D4h.js} +1 -1
- package/system/dist/{restore-archive-BcdcInFR.mjs → restore-archive-oC0JX7Aj.mjs} +1 -1
- package/system/dist/{wal-maintenance-CzjpuF7n.js → wal-maintenance--DYbopvj.js} +0 -0
- package/system/dist/{wal-maintenance-Ctp8Q-y7.mjs → wal-maintenance-C28BGIti.mjs} +0 -0
- package/system/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $r as localNetworkCapability, Br as isDefaultAppConnectionEndpoint, Et as NetworkTunnelStartedDataSchema, Ir as isAppLinkBase, Ki as resolveAppConnections, Pa as validateCustomAddress, Pi as preconditionOf, Xi as resolveHubAddressRoles, _ as CAMSTACK_APP_LINK_ORIGIN, dc as EventCategory, dt as HUB_MDNS_TXT_KEYS, ea as resolveNotificationTapAddress, gs as defineAddonMigrations, jn as checkRoleAddress, ki as pickAppLinkHub, ma as shortHostname, uc as errMsg, ut as HUB_MDNS_SERVICE_TYPE, wo as BaseAddon } from "../../dist-
|
|
1
|
+
import { $r as localNetworkCapability, Br as isDefaultAppConnectionEndpoint, Et as NetworkTunnelStartedDataSchema, Ir as isAppLinkBase, Ki as resolveAppConnections, Pa as validateCustomAddress, Pi as preconditionOf, Xi as resolveHubAddressRoles, _ as CAMSTACK_APP_LINK_ORIGIN, dc as EventCategory, dt as HUB_MDNS_TXT_KEYS, ea as resolveNotificationTapAddress, gs as defineAddonMigrations, jn as checkRoleAddress, ki as pickAppLinkHub, ma as shortHostname, uc as errMsg, ut as HUB_MDNS_SERVICE_TYPE, wo as BaseAddon } from "../../dist-LA9NIY-I.mjs";
|
|
2
2
|
import { a as emptyMdnsRecords, c as parseMdnsMessage, i as buildRecordQuery, l as parseMdnsRecords, n as MDNS_PORT, o as mergeMdnsRecords, r as buildPtrQuery, s as normalizeServiceType, t as MDNS_GROUP } from "../../dns-wire-Dm3H_7ST.mjs";
|
|
3
|
-
import { E as ensureTlsCert, I as readLanHttpState, N as applyLanHttp, _ as readTlsMode, a as storeUploadedCertificate, b as writeTlsEnabled, d as servedHttpsLeafFingerprint, h as readTlsAccessStatus, i as revertToGeneratedCertificate, j as DEFAULT_LAN_HTTP_PORT, m as readExtraSans, n as applyCertificateToListener, o as useStoredUploadedCertificate, r as regenerateCertificate, t as createCiaoPublisher, y as writeExtraSans } from "../../hub-mdns-ciao-
|
|
3
|
+
import { E as ensureTlsCert, I as readLanHttpState, N as applyLanHttp, _ as readTlsMode, a as storeUploadedCertificate, b as writeTlsEnabled, d as servedHttpsLeafFingerprint, h as readTlsAccessStatus, i as revertToGeneratedCertificate, j as DEFAULT_LAN_HTTP_PORT, m as readExtraSans, n as applyCertificateToListener, o as useStoredUploadedCertificate, r as regenerateCertificate, t as createCiaoPublisher, y as writeExtraSans } from "../../hub-mdns-ciao-Dvavkx33.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { isIP } from "node:net";
|
|
6
6
|
import * as os$1 from "node:os";
|
|
@@ -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-DiyRxDa1.js");
|
|
7
7
|
const require_log_read_filter = require("../../log-read-filter-Bi066jwU.js");
|
|
8
8
|
let zod = require("zod");
|
|
9
9
|
//#region src/builtins/loki-logging/loki-payload.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Fs as isSecretMarker, Lt as RecordIntegrationInstances, Pi as preconditionOf, Ps as isSecretFieldView, Wr as isSameAddonId, Zo as RevConflictError, gs as defineAddonMigrations, jr as integrationInstancesCapability, ri as logDestinationCapability, vn as bareAddonId, vs as defineEntryKind, wo as BaseAddon } from "../../dist-
|
|
1
|
+
import { Fs as isSecretMarker, Lt as RecordIntegrationInstances, Pi as preconditionOf, Ps as isSecretFieldView, Wr as isSameAddonId, Zo as RevConflictError, gs as defineAddonMigrations, jr as integrationInstancesCapability, ri as logDestinationCapability, vn as bareAddonId, vs as defineEntryKind, wo as BaseAddon } from "../../dist-LA9NIY-I.mjs";
|
|
2
2
|
import { n as compileLogFilter, o as lineMatches } from "../../log-read-filter-D7Ev3zm-.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region src/builtins/loki-logging/loki-payload.ts
|
|
@@ -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-DiyRxDa1.js");
|
|
7
7
|
let node_fs_promises = require("node:fs/promises");
|
|
8
8
|
let node_util = require("node:util");
|
|
9
9
|
let node_os = require("node:os");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { It as ROOT_BUCKET_KEY, Tr as foldSnapshotByFunction, Vi as reducePoints, dc as EventCategory, fi as metricsProviderCapability, ms as createEvent, nn as UNATTRIBUTED_BUCKET_KEY, qi as resolveBucketMs, uc as errMsg, wo as BaseAddon } from "../../dist-
|
|
1
|
+
import { It as ROOT_BUCKET_KEY, Tr as foldSnapshotByFunction, Vi as reducePoints, dc as EventCategory, fi as metricsProviderCapability, ms as createEvent, nn as UNATTRIBUTED_BUCKET_KEY, qi as resolveBucketMs, uc as errMsg, wo as BaseAddon } from "../../dist-LA9NIY-I.mjs";
|
|
2
2
|
import { access, readFile, readdir } from "node:fs/promises";
|
|
3
3
|
import { promisify } from "node:util";
|
|
4
4
|
import * as os$1 from "node:os";
|
|
@@ -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-DiyRxDa1.js");
|
|
7
7
|
const require_coral_accelerators = require("../../coral-accelerators-BSVsBVzt.js");
|
|
8
8
|
let node_path = require("node:path");
|
|
9
9
|
node_path = require_chunk.__toESM(node_path);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { o as __toESM, r as __exportAll } from "../../chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import { Ei as parseAcceleratorFactsJson, dc as EventCategory, dr as enumerateInferenceDevices, ji as platformProbeCapability, la as scoreRuntimes, uc as errMsg, wo as BaseAddon, xs as emitReadiness } from "../../dist-
|
|
2
|
+
import { Ei as parseAcceleratorFactsJson, dc as EventCategory, dr as enumerateInferenceDevices, ji as platformProbeCapability, la as scoreRuntimes, uc as errMsg, wo as BaseAddon, xs as emitReadiness } from "../../dist-LA9NIY-I.mjs";
|
|
3
3
|
import { n as detectCoralAccelerator, r as nodeCoralFs } from "../../coral-accelerators-DBlgWB8k.mjs";
|
|
4
4
|
import * as path$1 from "node:path";
|
|
5
5
|
import { promisify } from "node:util";
|
|
@@ -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-DiyRxDa1.js");
|
|
7
7
|
let zod = require("zod");
|
|
8
8
|
let node_crypto = require("node:crypto");
|
|
9
9
|
//#region src/builtins/record-entries/entries-service.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Po as InvalidRecordError, ec as secretViewsOf, ns as UnknownRecordKindError, wo as BaseAddon, zi as recordEntriesCapability } from "../../dist-
|
|
1
|
+
import { Po as InvalidRecordError, ec as secretViewsOf, ns as UnknownRecordKindError, wo as BaseAddon, zi as recordEntriesCapability } from "../../dist-LA9NIY-I.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { randomUUID } from "node:crypto";
|
|
4
4
|
//#region src/builtins/record-entries/entries-service.ts
|
|
@@ -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-DiyRxDa1.js");
|
|
7
7
|
//#region src/builtins/remote-access-orchestrator/enabled-providers-reconcile.ts
|
|
8
8
|
/**
|
|
9
9
|
* Reconcile the durable `enabledProviders` set against authoritative
|
package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { dc as EventCategory, wo as BaseAddon } from "../../dist-
|
|
1
|
+
import { dc as EventCategory, wo as BaseAddon } from "../../dist-LA9NIY-I.mjs";
|
|
2
2
|
//#region src/builtins/remote-access-orchestrator/enabled-providers-reconcile.ts
|
|
3
3
|
/**
|
|
4
4
|
* Reconcile the durable `enabledProviders` set against authoritative
|
|
@@ -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-DiyRxDa1.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 { Ta as streamQualityLabel, Vs as nodePin, _a as snapshotCapability, dc as EventCategory, h as BatteryStatusSchema, lc as DeviceType, sc as DeviceFeature, tr as deriveBatteryPresence, uc as errMsg, ui as memoizePinnedFfmpeg, vn as bareAddonId, wo as BaseAddon, yn as batteryCapability } from "../../dist-
|
|
1
|
+
import { Ta as streamQualityLabel, Vs as nodePin, _a as snapshotCapability, dc as EventCategory, h as BatteryStatusSchema, lc as DeviceType, sc as DeviceFeature, tr as deriveBatteryPresence, uc as errMsg, ui as memoizePinnedFfmpeg, vn as bareAddonId, wo as BaseAddon, yn as batteryCapability } from "../../dist-LA9NIY-I.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-DiyRxDa1.js");
|
|
7
7
|
let node_crypto = require("node:crypto");
|
|
8
8
|
let node_fs_promises = require("node:fs/promises");
|
|
9
9
|
let node_path = require("node:path");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ca as storageProviderCapability, wo as BaseAddon, wr as filesystemBrowseCapability } from "../../dist-
|
|
1
|
+
import { Ca as storageProviderCapability, wo as BaseAddon, wr as filesystemBrowseCapability } from "../../dist-LA9NIY-I.mjs";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
import { mkdir, readdir, realpath, statfs } from "node:fs/promises";
|
|
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--DYbopvj.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-C28BGIti.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,9 +3,9 @@ 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-DiyRxDa1.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--DYbopvj.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
11
|
let zod = require("zod");
|
|
@@ -1449,8 +1449,12 @@ var MigrationEngine = class {
|
|
|
1449
1449
|
}
|
|
1450
1450
|
/** An applied row of a DECLARED owner whose id that owner no longer lists: a newer database. */
|
|
1451
1451
|
judgeAddonRow(entry) {
|
|
1452
|
+
if (entry.owner === "hub" || entry.status !== "applied") return entry;
|
|
1452
1453
|
const declared = this.addonMetas.get(entry.owner);
|
|
1453
|
-
if (declared === void 0
|
|
1454
|
+
if (declared === void 0) return {
|
|
1455
|
+
...entry,
|
|
1456
|
+
ownerNotLoaded: true
|
|
1457
|
+
};
|
|
1454
1458
|
return declared.some((meta) => meta.id === entry.id) ? entry : {
|
|
1455
1459
|
...entry,
|
|
1456
1460
|
status: "skipped-newer"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { An as catalogueIssues, Ao as DeclarationRefusedError, Bi as recordsCapability, Fo as NoCallerError, M as DATABASE_SNAPSHOT_SUFFIX, N as DATABASE_SNAPSHOT_TIMEOUT_MS, P as DATA_STORE_DATABASES, Po as InvalidRecordError, Ti as orderMigrations, Tt as MigrationMetaSchema, Us as normalizeSecretOwner, Vo as RECORD_SWEEP_INTERVAL_MS, Wo as RUNTIME_DEFAULTS, Xn as databaseSnapshotCapability, Yn as dataStoreProviderCapability, _s as defineCustomActions, dc as EventCategory, es as TransactRefusedError, fs as collectSecretMarkerRefs, hs as customAction, j as DATABASE_SNAPSHOT_PARTIAL_SUFFIX, ns as UnknownRecordKindError, pi as migrationsCapability, qo as RecordKindDeclarationSchema, ta as resolveRunnerId, uc as errMsg$1, vn as bareAddonId, wo as BaseAddon, ya as storageAdminCapability, za as vectorStoreCapability } from "../../dist-
|
|
1
|
+
import { An as catalogueIssues, Ao as DeclarationRefusedError, Bi as recordsCapability, Fo as NoCallerError, M as DATABASE_SNAPSHOT_SUFFIX, N as DATABASE_SNAPSHOT_TIMEOUT_MS, P as DATA_STORE_DATABASES, Po as InvalidRecordError, Ti as orderMigrations, Tt as MigrationMetaSchema, Us as normalizeSecretOwner, Vo as RECORD_SWEEP_INTERVAL_MS, Wo as RUNTIME_DEFAULTS, Xn as databaseSnapshotCapability, Yn as dataStoreProviderCapability, _s as defineCustomActions, dc as EventCategory, es as TransactRefusedError, fs as collectSecretMarkerRefs, hs as customAction, j as DATABASE_SNAPSHOT_PARTIAL_SUFFIX, ns as UnknownRecordKindError, pi as migrationsCapability, qo as RecordKindDeclarationSchema, ta as resolveRunnerId, uc as errMsg$1, vn as bareAddonId, wo as BaseAddon, ya as storageAdminCapability, za as vectorStoreCapability } from "../../dist-LA9NIY-I.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-C28BGIti.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
6
|
import { createRequire } from "node:module";
|
|
@@ -1443,8 +1443,12 @@ var MigrationEngine = class {
|
|
|
1443
1443
|
}
|
|
1444
1444
|
/** An applied row of a DECLARED owner whose id that owner no longer lists: a newer database. */
|
|
1445
1445
|
judgeAddonRow(entry) {
|
|
1446
|
+
if (entry.owner === "hub" || entry.status !== "applied") return entry;
|
|
1446
1447
|
const declared = this.addonMetas.get(entry.owner);
|
|
1447
|
-
if (declared === void 0
|
|
1448
|
+
if (declared === void 0) return {
|
|
1449
|
+
...entry,
|
|
1450
|
+
ownerNotLoaded: true
|
|
1451
|
+
};
|
|
1448
1452
|
return declared.some((meta) => meta.id === entry.id) ? entry : {
|
|
1449
1453
|
...entry,
|
|
1450
1454
|
status: "skipped-newer"
|
|
@@ -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-DiyRxDa1.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 { Fs as isSecretMarker, Ha as withLocationMode, Ho as REDACTED_SECRET, Hr as isLocationEnabled, Hs as normalizeNodeId, Or as gbToBytes, Qs as secretTreeFromPaths, Qt as StorageMigrationJobSchema, Ws as parseJsonObject, Xr as legacyModeOf, Xs as resolveSecretMarkers, Xt as StorageLocationModeSchema, Yt as StorageCleanupJobSchema, Zi as resolveLocationMode, Zt as StorageLocationTypeSchema, ba as storageCapability, dc as EventCategory, gr as evictionPolicyOfLocation, gs as defineAddonMigrations, ic as transformSecretWrite, mi as modeMayWrite, oi as mayReadLocation, si as mayWriteToLocation, ua as settingsStoreCapability, us as collectSecretConfigKeys, wo as BaseAddon, xa as storageMigrationCapability, ys as defineRecordKinds, yt as LegacyStorageLocationDefaultSchema } from "../../dist-
|
|
1
|
+
import { Fs as isSecretMarker, Ha as withLocationMode, Ho as REDACTED_SECRET, Hr as isLocationEnabled, Hs as normalizeNodeId, Or as gbToBytes, Qs as secretTreeFromPaths, Qt as StorageMigrationJobSchema, Ws as parseJsonObject, Xr as legacyModeOf, Xs as resolveSecretMarkers, Xt as StorageLocationModeSchema, Yt as StorageCleanupJobSchema, Zi as resolveLocationMode, Zt as StorageLocationTypeSchema, ba as storageCapability, dc as EventCategory, gr as evictionPolicyOfLocation, gs as defineAddonMigrations, ic as transformSecretWrite, mi as modeMayWrite, oi as mayReadLocation, si as mayWriteToLocation, ua as settingsStoreCapability, us as collectSecretConfigKeys, wo as BaseAddon, xa as storageMigrationCapability, ys as defineRecordKinds, yt as LegacyStorageLocationDefaultSchema } from "../../dist-LA9NIY-I.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-DiyRxDa1.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_agent_https = require("../../agent-https-
|
|
10
|
-
const require_constants$8 = require("../../constants-
|
|
9
|
+
const require_agent_https = require("../../agent-https-DJAX08DO.js");
|
|
10
|
+
const require_constants$8 = require("../../constants-CHGHz6jj.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 { Ds as hydrateSchema, _s as defineCustomActions, hs as customAction, ma as shortHostname, qt as ServerNameSchema, uc as errMsg, wo as BaseAddon } from "../../dist-
|
|
2
|
+
import { Ds as hydrateSchema, _s as defineCustomActions, hs as customAction, ma as shortHostname, qt as ServerNameSchema, uc as errMsg, wo as BaseAddon } from "../../dist-LA9NIY-I.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 setProcessAgentHttpsNames, I as AGENT_HTTPS_NAMES_COLLECTION, L as AGENT_HTTPS_NAMES_COLUMNS, M as isLocalOnlyHostname, R as AgentHttpsNames, V as systemConfigRecordKinds, u as isPrivateAddress, z as getProcessAgentHttpsNames } from "../../agent-https-
|
|
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 setProcessAgentHttpsNames, I as AGENT_HTTPS_NAMES_COLLECTION, L as AGENT_HTTPS_NAMES_COLUMNS, M as isLocalOnlyHostname, R as AgentHttpsNames, V as systemConfigRecordKinds, u as isPrivateAddress, z as getProcessAgentHttpsNames } from "../../agent-https-DvdcveCd.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-BNmGDQke.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-DiyRxDa1.js");
|
|
7
7
|
const require_formatter = require("../../formatter-xbxeV4GD.js");
|
|
8
8
|
const require_log_file_read_protocol = require("../../log-file-read-protocol-D0WcLbIV.js");
|
|
9
9
|
let node_path = require("node:path");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ri as logDestinationCapability, wo as BaseAddon } from "../../dist-
|
|
1
|
+
import { ri as logDestinationCapability, wo as BaseAddon } from "../../dist-LA9NIY-I.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-B7M3X3bT.mjs";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { No as HISTORY_DEFAULT_MIN_INTERVAL_MS, Ts as historyItemFieldPath, lc as DeviceType } from "./dist-
|
|
1
|
+
import { No as HISTORY_DEFAULT_MIN_INTERVAL_MS, Ts as historyItemFieldPath, lc as DeviceType } from "./dist-LA9NIY-I.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-DiyRxDa1.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 { oo as compositionSourceKey, uc as errMsg } from "./dist-
|
|
1
|
+
import { oo as compositionSourceKey, uc as errMsg } from "./dist-LA9NIY-I.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-DiyRxDa1.js").buildSecretRef({
|
|
3
3
|
owner: "system",
|
|
4
4
|
scope: { kind: "global" },
|
|
5
5
|
fieldPath: "meshCaKey"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as DEVICE_SAN_CREDENTIAL_PREFIX, U as DEVICE_SAN_USER_PREFIX, ls as buildSecretRef } from "./dist-
|
|
1
|
+
import { H as DEVICE_SAN_CREDENTIAL_PREFIX, U as DEVICE_SAN_USER_PREFIX, ls as buildSecretRef } from "./dist-LA9NIY-I.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
|
|
@@ -1171,7 +1171,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
|
1171
1171
|
return DeviceRole;
|
|
1172
1172
|
}({});
|
|
1173
1173
|
//#endregion
|
|
1174
|
-
//#region ../types/dist/sleep-
|
|
1174
|
+
//#region ../types/dist/sleep-Cv4Zmie9.mjs
|
|
1175
1175
|
/**
|
|
1176
1176
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
1177
1177
|
* window to float samples (D455).
|
|
@@ -1835,7 +1835,7 @@ var NOT_RUN = {
|
|
|
1835
1835
|
* throws: an unreachable or refusing engine is logged and reported `declared: false`,
|
|
1836
1836
|
* because the hub (and this addon's boot) must not hang on a migration.
|
|
1837
1837
|
*/
|
|
1838
|
-
async function runAddonMigrations(host, migrations, logger) {
|
|
1838
|
+
async function runAddonMigrations(host, migrations, logger, options = {}) {
|
|
1839
1839
|
const first = migrations[0];
|
|
1840
1840
|
if (first === void 0) return NOT_RUN;
|
|
1841
1841
|
const owner = first.meta.owner;
|
|
@@ -1864,7 +1864,9 @@ async function runAddonMigrations(host, migrations, logger) {
|
|
|
1864
1864
|
else if (status === "blocked") blocked.push(id);
|
|
1865
1865
|
else skipped.push(id);
|
|
1866
1866
|
};
|
|
1867
|
+
const selected = options.only === void 0 ? null : new Set(options.only);
|
|
1867
1868
|
for (const step of declaration.steps) {
|
|
1869
|
+
if (selected !== null && !selected.has(step.id)) continue;
|
|
1868
1870
|
const bound = byId.get(step.id);
|
|
1869
1871
|
if (bound === void 0 || step.action === "skip") {
|
|
1870
1872
|
skipped.push(step.id);
|
|
@@ -3037,14 +3039,18 @@ var BaseAddon = class {
|
|
|
3037
3039
|
* nothing; the boot continues. A migration that FAILED (or was blocked by one)
|
|
3038
3040
|
* and declares `onFailure: 'block-owner'` makes this throw, so the addon does not
|
|
3039
3041
|
* serve data whose shape it cannot trust; `tolerate` migrations never do.
|
|
3042
|
+
*
|
|
3043
|
+
* ALWAYS pass the whole catalogue; a phase that must run only some of it passes
|
|
3044
|
+
* `{ only: [ids] }` — never a filtered catalogue (the engine would judge the
|
|
3045
|
+
* omitted applied ids "newer").
|
|
3040
3046
|
*/
|
|
3041
|
-
async runMigrations(migrations) {
|
|
3047
|
+
async runMigrations(migrations, options) {
|
|
3042
3048
|
const api = this.ctx.api.migrations;
|
|
3043
3049
|
const report = await runAddonMigrations({
|
|
3044
3050
|
declareOwner: (input) => api.declareOwner.mutate(input),
|
|
3045
3051
|
startMigration: (input) => api.startMigration.mutate(input),
|
|
3046
3052
|
finishMigration: (input) => api.finishMigration.mutate(input)
|
|
3047
|
-
}, migrations, this.ctx.logger);
|
|
3053
|
+
}, migrations, this.ctx.logger, options);
|
|
3048
3054
|
if (report.blockOwner.length > 0) throw new AddonMigrationsBlockedError(report.blockOwner);
|
|
3049
3055
|
return report;
|
|
3050
3056
|
}
|
|
@@ -12647,7 +12653,13 @@ var MigrationLedgerEntrySchema = zod.z.object({
|
|
|
12647
12653
|
* joined by the engine from the catalogues it knows this boot. Absent when no
|
|
12648
12654
|
* catalogue lists the id (a newer database).
|
|
12649
12655
|
*/
|
|
12650
|
-
meta: MigrationMetaSchema.optional()
|
|
12656
|
+
meta: MigrationMetaSchema.optional(),
|
|
12657
|
+
/**
|
|
12658
|
+
* Set when this is an applied row of an addon owner whose catalogue the answering
|
|
12659
|
+
* process has not loaded (the owner has not declared yet): the row is applied, the
|
|
12660
|
+
* process just cannot judge it. Never `skipped-newer` — that needs the owner loaded.
|
|
12661
|
+
*/
|
|
12662
|
+
ownerNotLoaded: zod.z.boolean().optional()
|
|
12651
12663
|
});
|
|
12652
12664
|
/** A catalogued migration that is not applied, with where it stands. */
|
|
12653
12665
|
var MigrationPendingEntrySchema = zod.z.object({
|
|
@@ -1171,7 +1171,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
|
1171
1171
|
return DeviceRole;
|
|
1172
1172
|
}({});
|
|
1173
1173
|
//#endregion
|
|
1174
|
-
//#region ../types/dist/sleep-
|
|
1174
|
+
//#region ../types/dist/sleep-Cv4Zmie9.mjs
|
|
1175
1175
|
/**
|
|
1176
1176
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
1177
1177
|
* window to float samples (D455).
|
|
@@ -1835,7 +1835,7 @@ var NOT_RUN = {
|
|
|
1835
1835
|
* throws: an unreachable or refusing engine is logged and reported `declared: false`,
|
|
1836
1836
|
* because the hub (and this addon's boot) must not hang on a migration.
|
|
1837
1837
|
*/
|
|
1838
|
-
async function runAddonMigrations(host, migrations, logger) {
|
|
1838
|
+
async function runAddonMigrations(host, migrations, logger, options = {}) {
|
|
1839
1839
|
const first = migrations[0];
|
|
1840
1840
|
if (first === void 0) return NOT_RUN;
|
|
1841
1841
|
const owner = first.meta.owner;
|
|
@@ -1864,7 +1864,9 @@ async function runAddonMigrations(host, migrations, logger) {
|
|
|
1864
1864
|
else if (status === "blocked") blocked.push(id);
|
|
1865
1865
|
else skipped.push(id);
|
|
1866
1866
|
};
|
|
1867
|
+
const selected = options.only === void 0 ? null : new Set(options.only);
|
|
1867
1868
|
for (const step of declaration.steps) {
|
|
1869
|
+
if (selected !== null && !selected.has(step.id)) continue;
|
|
1868
1870
|
const bound = byId.get(step.id);
|
|
1869
1871
|
if (bound === void 0 || step.action === "skip") {
|
|
1870
1872
|
skipped.push(step.id);
|
|
@@ -3037,14 +3039,18 @@ var BaseAddon = class {
|
|
|
3037
3039
|
* nothing; the boot continues. A migration that FAILED (or was blocked by one)
|
|
3038
3040
|
* and declares `onFailure: 'block-owner'` makes this throw, so the addon does not
|
|
3039
3041
|
* serve data whose shape it cannot trust; `tolerate` migrations never do.
|
|
3042
|
+
*
|
|
3043
|
+
* ALWAYS pass the whole catalogue; a phase that must run only some of it passes
|
|
3044
|
+
* `{ only: [ids] }` — never a filtered catalogue (the engine would judge the
|
|
3045
|
+
* omitted applied ids "newer").
|
|
3040
3046
|
*/
|
|
3041
|
-
async runMigrations(migrations) {
|
|
3047
|
+
async runMigrations(migrations, options) {
|
|
3042
3048
|
const api = this.ctx.api.migrations;
|
|
3043
3049
|
const report = await runAddonMigrations({
|
|
3044
3050
|
declareOwner: (input) => api.declareOwner.mutate(input),
|
|
3045
3051
|
startMigration: (input) => api.startMigration.mutate(input),
|
|
3046
3052
|
finishMigration: (input) => api.finishMigration.mutate(input)
|
|
3047
|
-
}, migrations, this.ctx.logger);
|
|
3053
|
+
}, migrations, this.ctx.logger, options);
|
|
3048
3054
|
if (report.blockOwner.length > 0) throw new AddonMigrationsBlockedError(report.blockOwner);
|
|
3049
3055
|
return report;
|
|
3050
3056
|
}
|
|
@@ -12647,7 +12653,13 @@ var MigrationLedgerEntrySchema = z.object({
|
|
|
12647
12653
|
* joined by the engine from the catalogues it knows this boot. Absent when no
|
|
12648
12654
|
* catalogue lists the id (a newer database).
|
|
12649
12655
|
*/
|
|
12650
|
-
meta: MigrationMetaSchema.optional()
|
|
12656
|
+
meta: MigrationMetaSchema.optional(),
|
|
12657
|
+
/**
|
|
12658
|
+
* Set when this is an applied row of an addon owner whose catalogue the answering
|
|
12659
|
+
* process has not loaded (the owner has not declared yet): the row is applied, the
|
|
12660
|
+
* process just cannot judge it. Never `skipped-newer` — that needs the owner loaded.
|
|
12661
|
+
*/
|
|
12662
|
+
ownerNotLoaded: z.boolean().optional()
|
|
12651
12663
|
});
|
|
12652
12664
|
/** A catalogued migration that is not applied, with where it stands. */
|
|
12653
12665
|
var MigrationPendingEntrySchema = z.object({
|
|
@@ -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--DYbopvj.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-C28BGIti.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,7 +1,7 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
2
|
-
const require_dist = require("./dist-
|
|
2
|
+
const require_dist = require("./dist-DiyRxDa1.js");
|
|
3
3
|
const require_x509_es = require("./x509.es-WtnRNyYS.js");
|
|
4
|
-
const require_agent_https = require("./agent-https-
|
|
4
|
+
const require_agent_https = require("./agent-https-DJAX08DO.js");
|
|
5
5
|
let node_crypto = require("node:crypto");
|
|
6
6
|
let _camstack_types_node = require("@camstack/types/node");
|
|
7
7
|
let node_fs_promises = require("node:fs/promises");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { o as __toESM } from "./chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import { ac as userError } from "./dist-
|
|
2
|
+
import { ac as userError } from "./dist-LA9NIY-I.mjs";
|
|
3
3
|
import { f as X509Certificate$1 } from "./x509.es-BRiJgOvu.mjs";
|
|
4
|
-
import { D as reasonRequiresNewCa, E as evaluateExistingCert, F as readNameConstraints, N as permitsIdentity, _ as issueLeaf, b as collectCertIdentity, g as generateCa, j as isConstrainedCa, v as loadCa, y as localCaCommonName } from "./agent-https-
|
|
4
|
+
import { D as reasonRequiresNewCa, E as evaluateExistingCert, F as readNameConstraints, N as permitsIdentity, _ as issueLeaf, b as collectCertIdentity, g as generateCa, j as isConstrainedCa, v as loadCa, y as localCaCommonName } from "./agent-https-DvdcveCd.mjs";
|
|
5
5
|
import { X509Certificate, createPrivateKey } from "node:crypto";
|
|
6
6
|
import { writeOwnerOnlyFileSync } from "@camstack/types/node";
|
|
7
7
|
import { mkdir, writeFile } from "node:fs/promises";
|
package/system/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
3
|
-
const require_dist = require("./dist-
|
|
4
|
-
const require_device_ca = require("./device-ca-
|
|
3
|
+
const require_dist = require("./dist-DiyRxDa1.js");
|
|
4
|
+
const require_device_ca = require("./device-ca-BEhhnh7w.js");
|
|
5
5
|
const require_read_all_rows$1 = require("./read-all-rows-CVoO1ONM.js");
|
|
6
6
|
const require_builtins_alerts_alerts_addon = require("./builtins/alerts/alerts.addon.js");
|
|
7
7
|
require("./builtins/alerts/index.js");
|
|
@@ -26,21 +26,21 @@ const require_builtins_loki_logging_index = require("./builtins/loki-logging/ind
|
|
|
26
26
|
const require_builtins_native_metrics_native_metrics_addon = require("./builtins/native-metrics/native-metrics.addon.js");
|
|
27
27
|
const require_builtins_device_history_device_history_addon = require("./builtins/device-history/device-history.addon.js");
|
|
28
28
|
const require_builtins_sqlite_storage_filesystem_storage_addon = require("./builtins/sqlite-storage/filesystem-storage.addon.js");
|
|
29
|
-
const require_wal_maintenance = require("./wal-maintenance
|
|
29
|
+
const require_wal_maintenance = require("./wal-maintenance--DYbopvj.js");
|
|
30
30
|
const require_builtins_sqlite_storage_sqlite_settings_addon = require("./builtins/sqlite-storage/sqlite-settings.addon.js");
|
|
31
31
|
const require_builtins_sqlite_storage_index = require("./builtins/sqlite-storage/index.js");
|
|
32
32
|
const require_builtins_storage_orchestrator_storage_orchestrator_addon = require("./builtins/storage-orchestrator/storage-orchestrator.addon.js");
|
|
33
33
|
require("./builtins/storage-orchestrator/index.js");
|
|
34
|
-
const require_agent_https = require("./agent-https-
|
|
35
|
-
const require_constants = require("./constants-
|
|
34
|
+
const require_agent_https = require("./agent-https-DJAX08DO.js");
|
|
35
|
+
const require_constants = require("./constants-CHGHz6jj.js");
|
|
36
36
|
const require_builtins_system_config_system_config_addon = require("./builtins/system-config/system-config.addon.js");
|
|
37
37
|
require("./builtins/system-config/index.js");
|
|
38
38
|
const require_builtins_winston_logging_index = require("./builtins/winston-logging/index.js");
|
|
39
39
|
const require_custom_action_registry = require("./custom-action-registry-JuMHGKEc.js");
|
|
40
|
-
const require_hub_mdns_ciao = require("./hub-mdns-ciao-
|
|
40
|
+
const require_hub_mdns_ciao = require("./hub-mdns-ciao-CiMvKezA.js");
|
|
41
41
|
const require_platform_key_source = require("./platform-key-source-Di7HrlGR.js");
|
|
42
42
|
const require_resource_monitor = require("./resource-monitor-mio9dSCT.js");
|
|
43
|
-
const require_restore_archive = require("./restore-archive-
|
|
43
|
+
const require_restore_archive = require("./restore-archive-CV8S0D4h.js");
|
|
44
44
|
const require_coral_accelerators = require("./coral-accelerators-BSVsBVzt.js");
|
|
45
45
|
let zod = require("zod");
|
|
46
46
|
let node_crypto = require("node:crypto");
|