@camstack/system 1.2.423 → 1.2.425
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/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
- package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
- package/dist/builtins/alerts/alerts.addon.js +1 -1
- package/dist/builtins/alerts/alerts.addon.mjs +1 -1
- package/dist/builtins/autotrack/index.js +1 -1
- package/dist/builtins/autotrack/index.mjs +1 -1
- package/dist/builtins/backup-orchestrator/backup-databases.d.ts +51 -0
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.d.ts +13 -0
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +248 -17
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +248 -17
- package/dist/builtins/backup-orchestrator/manifest-store.d.ts +23 -3
- package/dist/builtins/backup-orchestrator/run-queue.d.ts +3 -0
- package/dist/builtins/backup-orchestrator/schedule-store.d.ts +7 -1
- package/dist/builtins/backup-orchestrator/seed-marker-store.d.ts +34 -0
- package/dist/builtins/calendars/calendars.addon.js +1 -1
- package/dist/builtins/calendars/calendars.addon.mjs +1 -1
- package/dist/builtins/camera-grid/index.js +1 -1
- package/dist/builtins/camera-grid/index.mjs +1 -1
- package/dist/builtins/composer/composer.addon.js +2 -2
- package/dist/builtins/composer/composer.addon.mjs +2 -2
- package/dist/builtins/console-logging/index.js +1 -1
- package/dist/builtins/console-logging/index.mjs +1 -1
- package/dist/builtins/core-blocks/core-blocks.addon.js +2 -2
- package/dist/builtins/core-blocks/core-blocks.addon.mjs +2 -2
- package/dist/builtins/device-manager/device-manager.addon.js +2 -2
- package/dist/builtins/device-manager/device-manager.addon.mjs +2 -2
- package/dist/builtins/hub-forwarder/index.js +1 -1
- package/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/dist/builtins/keychain/index.js +3 -3
- package/dist/builtins/keychain/index.mjs +3 -3
- package/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/dist/builtins/local-auth/local-auth.addon.js +2 -2
- package/dist/builtins/local-auth/local-auth.addon.mjs +2 -2
- package/dist/builtins/local-network/local-network.addon.js +1 -1
- package/dist/builtins/local-network/local-network.addon.mjs +1 -1
- package/dist/builtins/loki-logging/index.js +1 -1
- package/dist/builtins/loki-logging/index.mjs +1 -1
- package/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
- package/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
- package/dist/builtins/platform-probe/index.js +1 -1
- package/dist/builtins/platform-probe/index.mjs +1 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/dist/builtins/snapshot/index.js +1 -1
- package/dist/builtins/snapshot/index.mjs +1 -1
- package/dist/builtins/sqlite-storage/database-snapshot-provider.d.ts +18 -0
- package/dist/builtins/sqlite-storage/file-host-client.d.ts +59 -0
- package/dist/builtins/sqlite-storage/file-host-handlers.d.ts +23 -0
- package/dist/builtins/sqlite-storage/file-host-protocol.d.ts +151 -0
- package/dist/builtins/sqlite-storage/file-host-worker.d.ts +1 -0
- package/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
- package/dist/builtins/sqlite-storage/index.js +21 -20
- package/dist/builtins/sqlite-storage/index.mjs +2 -1
- package/dist/builtins/sqlite-storage/owned-sqlite-file.d.ts +136 -0
- package/dist/builtins/sqlite-storage/placement-errors.d.ts +60 -0
- package/dist/builtins/sqlite-storage/placement-router.d.ts +80 -0
- package/dist/builtins/sqlite-storage/retired-collections.d.ts +7 -0
- package/dist/builtins/sqlite-storage/sqlite-settings-backend.d.ts +68 -8
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.d.ts +23 -26
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.js +0 -0
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +0 -0
- package/dist/builtins/sqlite-storage/vector-provider.d.ts +24 -0
- package/dist/builtins/sqlite-storage/wal-maintenance.d.ts +17 -0
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +3 -1
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +3 -1
- package/dist/builtins/system-backup/system-backup.service.d.ts +48 -15
- package/dist/builtins/system-config/system-config.addon.js +2 -2
- package/dist/builtins/system-config/system-config.addon.mjs +2 -2
- package/dist/builtins/winston-logging/index.js +1 -1
- package/dist/builtins/winston-logging/index.mjs +1 -1
- package/dist/{composition-sources-CgiAeG-2.js → composition-sources-197keifF.js} +1 -1
- package/dist/{composition-sources-BXDchWFn.mjs → composition-sources-DmzTSy26.mjs} +1 -1
- package/dist/{constants-1_7QtPNo.js → constants-B5Jd8Zch.js} +1 -1
- package/dist/{constants-C2dhkIuF.mjs → constants-CkNLi-XW.mjs} +1 -1
- package/dist/{dist-DimotS8e.mjs → dist-DMWeqeTF.mjs} +863 -750
- package/dist/{dist-VIIxVsBW.js → dist-DnALrQF-.js} +866 -747
- package/dist/file-host-worker.js +144 -0
- package/dist/file-host-worker.mjs +144 -0
- package/dist/index.js +9 -8
- package/dist/index.mjs +6 -5
- package/dist/{jwt-signing-key-C8nMdNYW.mjs → jwt-signing-key-CCHXAtrs.mjs} +1 -1
- package/dist/{jwt-signing-key-C8s9syVg.js → jwt-signing-key-DeqG7LD9.js} +1 -1
- package/dist/{restore-archive-DjppfrIB.js → restore-archive-C4UhQOsg.js} +156 -65
- package/dist/{restore-archive-bOMZwY0D.mjs → restore-archive-GevpOHw8.mjs} +151 -66
- package/dist/{retired-settings-keys-_muTvNyh.js → retired-settings-keys-0FOsnzIE.js} +1 -1
- package/dist/{retired-settings-keys-BYnjMBE-.mjs → retired-settings-keys-CdVFl7m2.mjs} +1 -1
- package/dist/sqlite-snapshot-worker.js +1 -1
- package/dist/sqlite-snapshot-worker.mjs +1 -1
- package/dist/wal-checkpoint-worker.js +1 -1
- package/dist/wal-checkpoint-worker.mjs +1 -1
- package/dist/wal-maintenance-BtfyfuT5.mjs +0 -0
- package/dist/wal-maintenance-DJV1rde2.js +0 -0
- package/package.json +1 -1
|
@@ -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_composition_sources = require("../../composition-sources-
|
|
3
|
+
const require_dist = require("../../dist-DnALrQF-.js");
|
|
4
|
+
const require_composition_sources = require("../../composition-sources-197keifF.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,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as describeCompositionSources } from "../../composition-sources-
|
|
1
|
+
import { $ as buildCapabilityLookup, Mr as hydrateSchema, Vn as validateComposition, Xn as composedDeviceRef, _n as replacedFieldKeys, bn as resolveCoreBlockEntry, cr as errMsg, ct as coreBlockComposition, d as CORE_BLOCKS_ADDON_ID, dt as coreBlocksCapability, f as CORE_BLOCK_ADDON_PREFIX, fn as planComposition, lr as BaseAddon, lt as coreBlockIdFromAddonId, m as CoreBlockSchema, on as normalizeCoreBlockWrite, ot as compositionSourceRefs, st as coreBlockAddonId, t as ALL_CAPABILITY_DEFINITIONS, tr as compositionSourceKey, u as COMPOSER_RUNNER_ID, ut as coreBlockSourceKind, x as DeclaredDevices, xn as resolveCoreBlockFiles, yt as describeComposableCaps } from "../../dist-DMWeqeTF.mjs";
|
|
2
|
+
import { t as describeCompositionSources } from "../../composition-sources-DmzTSy26.mjs";
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
5
5
|
import { customizationBlockName } from "@camstack/types/node";
|
|
@@ -3,8 +3,8 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
7
|
-
const require_retired_settings_keys = require("../../retired-settings-keys-
|
|
6
|
+
const require_dist = require("../../dist-DnALrQF-.js");
|
|
7
|
+
const require_retired_settings_keys = require("../../retired-settings-keys-0FOsnzIE.js");
|
|
8
8
|
let zod = require("zod");
|
|
9
9
|
let node_crypto = require("node:crypto");
|
|
10
10
|
let _camstack_types_node = require("@camstack/types/node");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { n as purgeRetiredSettingsRows } from "../../retired-settings-keys-
|
|
1
|
+
import { $r as toSecretFieldView, Ct as deviceStatusCapability, En as runtimeStatePolicyFor, Et as enumerateSchemaFields, Fr as isKeychainStoredField, Ir as isSecretClear, Kt as legacyAutoLinkIds, Lr as isSecretMarker, N as MINUTES_PER_DAY, Nr as isDeviceConfigCap, Pt as formatMinutes, R as STREAM_PROFILE_META, Rr as isSecretMarkerLike, S as DeviceStatusSchema, St as deviceStateCapability, T as FieldClaimSchema, Tt as enumerateItemArrayFields, Xt as locationIconKey, Yr as secretTreeFromPaths, Zr as sleep$1, _r as SECRET_CLEAR, _t as defineExtensionSlotProvider, ar as DeviceFeature, bt as deviceExtensionCapability, c as CAP_NAMES_WITH_STATUS, cr as errMsg, ei as transformSecretWrite, et as buildStreamParamsConfigSchema, ft as createDeviceExtensionProvider, j as LocationIconIdSchema, jn as siteZoneKey, kt as expandContainer, lr as BaseAddon, o as CAMERA_SWITCH_ORDER, or as DeviceRole, qr as resolveSecretMarkers, sn as normalizeUnit, sr as DeviceType, t as ALL_CAPABILITY_DEFINITIONS, ti as EventCategory, un as parseStreamParamsFormPatch, vr as WELL_KNOWN_TAB_MAP, w as FieldClaimModeSchema, wr as collectZodSecretPaths, xt as deviceManagerCapability, y as DAY_NAMES } from "../../dist-DMWeqeTF.mjs";
|
|
2
|
+
import { n as purgeRetiredSettingsRows } from "../../retired-settings-keys-CdVFl7m2.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
5
5
|
import { canonicalDeviceFingerprint } from "@camstack/types/node";
|
|
@@ -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-DnALrQF-.js");
|
|
7
7
|
const require_formatter = require("../../formatter-DqAKDlvN.js");
|
|
8
8
|
//#region src/builtins/hub-forwarder/hub-forwarder-destination.ts
|
|
9
9
|
var DEFAULT_OUTBOUND_BUFFER_SIZE = 500;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Zt as logDestinationCapability, lr as BaseAddon } from "../../dist-DMWeqeTF.mjs";
|
|
2
2
|
import { t as formatLogLine } from "../../formatter-B7qW8bPJ.mjs";
|
|
3
3
|
//#region src/builtins/hub-forwarder/hub-forwarder-destination.ts
|
|
4
4
|
var DEFAULT_OUTBOUND_BUFFER_SIZE = 500;
|
|
@@ -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-
|
|
7
|
-
const require_jwt_signing_key = require("../../jwt-signing-key-
|
|
8
|
-
const require_constants = require("../../constants-
|
|
6
|
+
const require_dist = require("../../dist-DnALrQF-.js");
|
|
7
|
+
const require_jwt_signing_key = require("../../jwt-signing-key-DeqG7LD9.js");
|
|
8
|
+
const require_constants = require("../../constants-B5Jd8Zch.js");
|
|
9
9
|
const require_platform_key_source = require("../../platform-key-source-Di7HrlGR.js");
|
|
10
10
|
let node_crypto = require("node:crypto");
|
|
11
11
|
let _camstack_types_node = require("@camstack/types/node");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as SYSTEM_SECRET_OWNER, t as JWT_SIGNING_KEY_REF } from "../../jwt-signing-key-
|
|
3
|
-
import { a as MESH_CA_KEY_REF, p as CLUSTER_SECRET_SETTINGS_KEY } from "../../constants-
|
|
1
|
+
import { Gt as keychainCapability, O as KEYCHAIN_RESET_TRIGGER_ACTOR, Vr as normalizeSecretOwner, Wr as parseSecretRef, Wt as keychainAdminCapability, jr as formatSecretScope, lr as BaseAddon, ti as EventCategory } from "../../dist-DMWeqeTF.mjs";
|
|
2
|
+
import { r as SYSTEM_SECRET_OWNER, t as JWT_SIGNING_KEY_REF } from "../../jwt-signing-key-CCHXAtrs.mjs";
|
|
3
|
+
import { a as MESH_CA_KEY_REF, p as CLUSTER_SECRET_SETTINGS_KEY } from "../../constants-CkNLi-XW.mjs";
|
|
4
4
|
import { n as getPlatformKeychainKey } from "../../platform-key-source-BWlq0jjn.mjs";
|
|
5
5
|
import { createCipheriv, createDecipheriv, createHmac, randomBytes, randomUUID, timingSafeEqual } from "node:crypto";
|
|
6
6
|
import { restrictDirToOwnerSync, restrictFileToOwnerSync, writeOwnerOnlyFileSync } from "@camstack/types/node";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_dist = require("../../dist-
|
|
3
|
+
const require_dist = require("../../dist-DnALrQF-.js");
|
|
4
4
|
//#region src/builtins/liveness-monitor/liveness-checks.ts
|
|
5
5
|
var NO_DEVICES = "liveness:no-devices";
|
|
6
6
|
var ALL_OFFLINE = "liveness:all-devices-offline";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as
|
|
1
|
+
import { F as RECORDING_SOURCE_CAMSTACK_ADDON, I as RecordingStatusSchema, Tr as createEvent, cr as errMsg, lr as BaseAddon, ti as EventCategory } from "../../dist-DMWeqeTF.mjs";
|
|
2
2
|
//#region src/builtins/liveness-monitor/liveness-checks.ts
|
|
3
3
|
var NO_DEVICES = "liveness:no-devices";
|
|
4
4
|
var ALL_OFFLINE = "liveness:all-devices-offline";
|
|
@@ -3,10 +3,10 @@ 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-DnALrQF-.js");
|
|
7
7
|
const require_safe_buffer$1 = require("../../safe-buffer-D3aoa-7X.js");
|
|
8
8
|
const require_ms$1 = require("../../ms-LB3giGoU.js");
|
|
9
|
-
const require_jwt_signing_key = require("../../jwt-signing-key-
|
|
9
|
+
const require_jwt_signing_key = require("../../jwt-signing-key-DeqG7LD9.js");
|
|
10
10
|
let node_crypto = require("node:crypto");
|
|
11
11
|
node_crypto = require_chunk.__toESM(node_crypto);
|
|
12
12
|
let crypto$1 = require("crypto");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { i as __require, o as __toESM, t as __commonJSMin } from "../../chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { Bn as userManagementCapability, W as UserRecordSchema, Y as authProviderCapability, lr as BaseAddon, r as ApiKeyRecordSchema, z as ScopedTokenSchema } from "../../dist-DMWeqeTF.mjs";
|
|
3
3
|
import { t as require_safe_buffer } from "../../safe-buffer-B1OjL1I9.mjs";
|
|
4
4
|
import { t as require_ms } from "../../ms-CgH2OFlD.mjs";
|
|
5
|
-
import { a as loadJwtSigningKey, i as getProcessJwtSigningKeyState, o as processJwtSigningKey, s as setProcessJwtSigningKey, t as JWT_SIGNING_KEY_REF } from "../../jwt-signing-key-
|
|
5
|
+
import { a as loadJwtSigningKey, i as getProcessJwtSigningKeyState, o as processJwtSigningKey, s as setProcessJwtSigningKey, t as JWT_SIGNING_KEY_REF } from "../../jwt-signing-key-CCHXAtrs.mjs";
|
|
6
6
|
import * as crypto$1 from "node:crypto";
|
|
7
7
|
import { createHash, randomUUID, timingSafeEqual } from "node:crypto";
|
|
8
8
|
import nodeCrypto from "crypto";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_dist = require("../../dist-
|
|
3
|
+
const require_dist = require("../../dist-DnALrQF-.js");
|
|
4
4
|
const require_tls = require("../../tls-BgImdxCO.js");
|
|
5
5
|
let zod = require("zod");
|
|
6
6
|
let node_net = require("node:net");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { o as __toESM } from "../../chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { D as HUB_MDNS_TXT_KEYS, E as HUB_MDNS_SERVICE_TYPE, Hn as validateCustomAddress, It as isAppLinkBase, Sn as resolveHubAddressRoles, Tn as resolveNotificationTapAddress, Yt as localNetworkCapability, dn as pickAppLinkHub, lr as BaseAddon, rt as checkRoleAddress, s as CAMSTACK_APP_LINK_ORIGIN, ti as EventCategory, vn as resolveAppConnections, zt as isDefaultAppConnectionEndpoint } from "../../dist-DMWeqeTF.mjs";
|
|
3
3
|
import { P as readLanHttpState, _ as writeExtraSans, h as readTlsMode, i as storeUploadedCertificate, j as applyLanHttp, k as DEFAULT_LAN_HTTP_PORT, m as readTlsAccessStatus, n as regenerateCertificate, p as readExtraSans, r as revertToGeneratedCertificate, t as applyCertificateToListener, u as servedHttpsLeafFingerprint, y as ensureTlsCert } from "../../tls-CaOLZ09W.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { isIP } from "node:net";
|
|
@@ -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-DnALrQF-.js");
|
|
7
7
|
//#region src/builtins/loki-logging/loki-payload.ts
|
|
8
8
|
/**
|
|
9
9
|
* Loki rejects a label name that is not a valid Prometheus label
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Zt as logDestinationCapability, lr as BaseAddon } from "../../dist-DMWeqeTF.mjs";
|
|
2
2
|
//#region src/builtins/loki-logging/loki-payload.ts
|
|
3
3
|
/**
|
|
4
4
|
* Loki rejects a label name that is not a valid Prometheus label
|
|
@@ -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-DnALrQF-.js");
|
|
7
7
|
let node_fs_promises = require("node:fs/promises");
|
|
8
8
|
let node_os = require("node:os");
|
|
9
9
|
node_os = require_chunk.__toESM(node_os);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Nt as foldSnapshotByFunction, Tr as createEvent, cr as errMsg, gn as reducePoints, lr as BaseAddon, rn as metricsProviderCapability, ti as EventCategory, yn as resolveBucketMs } from "../../dist-DMWeqeTF.mjs";
|
|
2
2
|
import { access, readFile, readdir } from "node:fs/promises";
|
|
3
3
|
import * as os from "node:os";
|
|
4
4
|
import { platform } 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-DnALrQF-.js");
|
|
7
7
|
let node_os = require("node:os");
|
|
8
8
|
node_os = require_chunk.__toESM(node_os);
|
|
9
9
|
let node_fs = require("node:fs");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { o as __toESM, r as __exportAll } from "../../chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { cr as errMsg, kn as scoreRuntimes, kr as emitReadiness, lr as BaseAddon, pn as platformProbeCapability, ti as EventCategory, wt as enumerateInferenceDevices } from "../../dist-DMWeqeTF.mjs";
|
|
3
3
|
import * as os from "node:os";
|
|
4
4
|
import * as fs from "node:fs";
|
|
5
5
|
import { execFile } from "node:child_process";
|
|
@@ -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-DnALrQF-.js");
|
|
7
7
|
//#region src/builtins/remote-access-orchestrator/enabled-providers-reconcile.ts
|
|
8
8
|
/**
|
|
9
9
|
* Reconcile the durable `enabledProviders` set against authoritative
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { lr as BaseAddon, ti as EventCategory } from "../../dist-DMWeqeTF.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-DnALrQF-.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 {
|
|
1
|
+
import { Br as nodePin, Mn as snapshotCapability, Q as batteryCapability, Rn as streamQualityLabel, Z as bareAddonId, a as BatteryStatusSchema, ar as DeviceFeature, cr as errMsg, lr as BaseAddon, nn as memoizePinnedFfmpeg, sr as DeviceType, ti as EventCategory, vt as deriveBatteryPresence } from "../../dist-DMWeqeTF.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";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { DatabaseSnapshotRequest, DatabaseSnapshotTargets, DatabaseSnapshotWritten, IDatabaseSnapshotProvider } from "@camstack/types";
|
|
2
|
+
import type { OwnedSqliteFile } from "./owned-sqlite-file.js";
|
|
3
|
+
/** What the provider needs from an owned file. */
|
|
4
|
+
export type SnapshotableFile = Pick<OwnedSqliteFile, "databaseId" | "livePath" | "snapshot">;
|
|
5
|
+
/** What the provider needs from the placement router. */
|
|
6
|
+
export interface OpenFileSource {
|
|
7
|
+
openFiles(): readonly SnapshotableFile[];
|
|
8
|
+
}
|
|
9
|
+
export declare class DatabaseSnapshotProvider implements IDatabaseSnapshotProvider {
|
|
10
|
+
private readonly source;
|
|
11
|
+
/** Same database asked twice: the second call joins the first. */
|
|
12
|
+
private readonly inFlight;
|
|
13
|
+
/** Different databases run one after the other: the disk reserve check is per copy. */
|
|
14
|
+
private tail;
|
|
15
|
+
constructor(source: OpenFileSource);
|
|
16
|
+
listDatabases(): Promise<DatabaseSnapshotTargets>;
|
|
17
|
+
writeSnapshot(input: DatabaseSnapshotRequest): Promise<DatabaseSnapshotWritten>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { IScopedLogger } from "@camstack/types";
|
|
2
|
+
import { type ControlOp, type ControlOps, type DataStoreInput, type DataStoreOp, type DataStoreOutput, type FileHostWorkerData, type OwnedSqliteFileSpec, type VectorInput, type VectorOp, type VectorOutput } from "./file-host-protocol.js";
|
|
3
|
+
/** The members of a `Worker` this class touches — structural, so a spec can substitute. */
|
|
4
|
+
export interface FileHostThread {
|
|
5
|
+
on(event: "message", listener: (message: unknown) => void): unknown;
|
|
6
|
+
on(event: "error", listener: (err: unknown) => void): unknown;
|
|
7
|
+
on(event: "exit", listener: (code: number) => void): unknown;
|
|
8
|
+
postMessage(message: unknown, transfer?: readonly ArrayBuffer[]): void;
|
|
9
|
+
terminate(): Promise<number>;
|
|
10
|
+
}
|
|
11
|
+
export type FileHostThreadFactory = (data: FileHostWorkerData) => FileHostThread;
|
|
12
|
+
/** Where the built worker entry lives (`dist/file-host-worker.js`, next to the checkpoint worker). */
|
|
13
|
+
export declare function defaultFileHostWorkerPath(): string;
|
|
14
|
+
export interface FileHostClientOptions {
|
|
15
|
+
readonly spec: OwnedSqliteFileSpec;
|
|
16
|
+
/** The runner's logger; this class writes through `child('Db/<id>')`. */
|
|
17
|
+
readonly logger: IScopedLogger;
|
|
18
|
+
/** Called when the thread dies unexpectedly. Production: log, then `process.exit(1)`. */
|
|
19
|
+
readonly onFatal: (reason: string) => void;
|
|
20
|
+
readonly workerPath?: string;
|
|
21
|
+
readonly workerExecArgv?: readonly string[];
|
|
22
|
+
readonly threadFactory?: FileHostThreadFactory;
|
|
23
|
+
readonly maxInFlight?: number;
|
|
24
|
+
readonly now?: () => number;
|
|
25
|
+
}
|
|
26
|
+
export declare class FileHostClient {
|
|
27
|
+
private readonly spec;
|
|
28
|
+
private readonly logger;
|
|
29
|
+
private readonly onFatal;
|
|
30
|
+
private readonly maxInFlight;
|
|
31
|
+
private readonly now;
|
|
32
|
+
private readonly thread;
|
|
33
|
+
private readonly pending;
|
|
34
|
+
private nextId;
|
|
35
|
+
private lastOp;
|
|
36
|
+
private stopping;
|
|
37
|
+
private dead;
|
|
38
|
+
private lastBusyLogAt;
|
|
39
|
+
private declared;
|
|
40
|
+
private bootSettled;
|
|
41
|
+
constructor(options: FileHostClientOptions);
|
|
42
|
+
/** Resolves once the thread has opened its file; rejects if it could not. */
|
|
43
|
+
ready(): Promise<void>;
|
|
44
|
+
/** The collections this file's own declarations table names (updated as declarations land). */
|
|
45
|
+
declaredCollections(): ReadonlySet<string>;
|
|
46
|
+
noteDeclared(table: string): void;
|
|
47
|
+
data<K extends DataStoreOp>(op: K, input: DataStoreInput<K>): Promise<DataStoreOutput<K>>;
|
|
48
|
+
vector<K extends VectorOp>(op: K, input: VectorInput<K>): Promise<VectorOutput<K>>;
|
|
49
|
+
control<K extends ControlOp>(op: K, input: ControlOps[K]["input"]): Promise<ControlOps[K]["output"]>;
|
|
50
|
+
/** Ask the thread to close its connection, then end it. */
|
|
51
|
+
stop(): Promise<void>;
|
|
52
|
+
inFlight(): number;
|
|
53
|
+
private request;
|
|
54
|
+
private logBusy;
|
|
55
|
+
private onMessage;
|
|
56
|
+
private writeLog;
|
|
57
|
+
/** The thread is gone and nobody asked it to be: say so, fail what waits, fail the runner. */
|
|
58
|
+
private die;
|
|
59
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a thread does with a request once it has one — shared by the main
|
|
3
|
+
* thread (which serves `camstack.db` in place) and the file-host worker (which
|
|
4
|
+
* serves `events.db` / `history.db`), so the two cannot disagree about what an
|
|
5
|
+
* op means.
|
|
6
|
+
*/
|
|
7
|
+
import type { IVectorStoreProvider } from "@camstack/types";
|
|
8
|
+
import { type ControlOp, type ControlOps, type DataStoreInput, type DataStoreOp, type DataStoreOutput, type VectorInput, type VectorOp, type VectorOutput } from "./file-host-protocol.js";
|
|
9
|
+
import type { SqliteSettingsBackend } from "./sqlite-settings-backend.js";
|
|
10
|
+
/** The data surface as a mapped type — what lets `target[op](input)` type-check for a generic `op`. */
|
|
11
|
+
export type DataTarget = { readonly [K in DataStoreOp]: (input: DataStoreInput<K>) => Promise<DataStoreOutput<K>> };
|
|
12
|
+
export type VectorTarget = { readonly [K in VectorOp]: (input: VectorInput<K>) => Promise<VectorOutput<K>> };
|
|
13
|
+
export declare function callData<K extends DataStoreOp>(target: DataTarget, op: K, input: DataStoreInput<K>): Promise<DataStoreOutput<K>>;
|
|
14
|
+
export declare function callVector<K extends VectorOp>(target: IVectorStoreProvider, op: K, input: VectorInput<K>): Promise<VectorOutput<K>>;
|
|
15
|
+
/** The control surface as a mapped type, for the same reason. */
|
|
16
|
+
type ControlTarget = { readonly [K in ControlOp]: (input: ControlOps[K]["input"]) => ControlOps[K]["output"] };
|
|
17
|
+
/**
|
|
18
|
+
* The control answers a backend can give. `threadId` is supplied by the
|
|
19
|
+
* caller: only the thread knows its own.
|
|
20
|
+
*/
|
|
21
|
+
export declare function controlTargetOf(backend: SqliteSettingsBackend, threadId: number): ControlTarget;
|
|
22
|
+
export declare function callControl<K extends ControlOp>(target: ControlTarget, op: K, input: ControlOps[K]["input"]): ControlOps[K]["output"];
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The vocabulary between the engine's main thread and the thread that serves
|
|
3
|
+
* one database file (D851). Pure: no driver, no kernel — the worker bundle
|
|
4
|
+
* imports it, and so does the main thread.
|
|
5
|
+
*
|
|
6
|
+
* ## The shape
|
|
7
|
+
*
|
|
8
|
+
* A request is `{ id, kind, op, input }`; the answer is `{ id, ok: true,
|
|
9
|
+
* result }` or `{ id, ok: false, error }`. `kind` is `data` (the
|
|
10
|
+
* `data-store-provider` surface), `vector` (the `vector-store` surface) or
|
|
11
|
+
* `control` (what the placement router needs to ask a file that no cap
|
|
12
|
+
* method covers). Errors cross by NAME (`placement-errors.ts`).
|
|
13
|
+
*
|
|
14
|
+
* ## The type boundary
|
|
15
|
+
*
|
|
16
|
+
* A message is `unknown` the moment it crosses `postMessage`. `trustInput` and
|
|
17
|
+
* `trustResult` are the only two places the engine asserts a type it cannot
|
|
18
|
+
* prove: the message was built by {@link OwnedSqliteFile.call} /
|
|
19
|
+
* {@link OwnedSqliteFile.vector}, whose signature IS the typing. Everything
|
|
20
|
+
* else on either side of the boundary is typed.
|
|
21
|
+
*/
|
|
22
|
+
import type { IDataStoreProvider, IVectorStoreProvider } from "@camstack/types";
|
|
23
|
+
import type { DataStoreDatabase, LogTags } from "@camstack/types";
|
|
24
|
+
import type { SerializedError } from "./placement-errors.js";
|
|
25
|
+
/** Every `data-store-provider` method a file serves (all but self-description). */
|
|
26
|
+
export type DataStoreMethods = Omit<IDataStoreProvider, "getEngineInfo">;
|
|
27
|
+
export type DataStoreOp = keyof DataStoreMethods;
|
|
28
|
+
export type DataStoreInput<K extends DataStoreOp> = Parameters<DataStoreMethods[K]>[0];
|
|
29
|
+
export type DataStoreOutput<K extends DataStoreOp> = Awaited<ReturnType<DataStoreMethods[K]>>;
|
|
30
|
+
export type VectorOp = keyof IVectorStoreProvider;
|
|
31
|
+
export type VectorInput<K extends VectorOp> = Parameters<IVectorStoreProvider[K]>[0];
|
|
32
|
+
export type VectorOutput<K extends VectorOp> = Awaited<ReturnType<IVectorStoreProvider[K]>>;
|
|
33
|
+
/** Questions about a file that are not cap methods. */
|
|
34
|
+
export interface ControlOps {
|
|
35
|
+
/** Does a table of this name exist in the file? */
|
|
36
|
+
readonly hasTable: {
|
|
37
|
+
readonly input: {
|
|
38
|
+
readonly name: string;
|
|
39
|
+
};
|
|
40
|
+
readonly output: boolean;
|
|
41
|
+
};
|
|
42
|
+
/** Drop a retired table, reporting the rows that went with it (`null`: not there). */
|
|
43
|
+
readonly dropRetiredTable: {
|
|
44
|
+
readonly input: {
|
|
45
|
+
readonly name: string;
|
|
46
|
+
};
|
|
47
|
+
readonly output: {
|
|
48
|
+
readonly rows: number;
|
|
49
|
+
} | null;
|
|
50
|
+
};
|
|
51
|
+
/** Which thread serves this file. */
|
|
52
|
+
readonly threadId: {
|
|
53
|
+
readonly input: Record<string, never>;
|
|
54
|
+
readonly output: number;
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
export type ControlOp = keyof ControlOps;
|
|
58
|
+
/** At most this many calls in flight per worker; beyond it a call is refused, never queued. */
|
|
59
|
+
export declare const FILE_HOST_MAX_IN_FLIGHT = 512;
|
|
60
|
+
/** A refusal for being busy is logged at most once per this many ms. */
|
|
61
|
+
export declare const FILE_HOST_BUSY_LOG_INTERVAL_MS = 6e4;
|
|
62
|
+
/** How one file is opened. */
|
|
63
|
+
export interface OwnedSqliteFileSpec {
|
|
64
|
+
readonly databaseId: DataStoreDatabase;
|
|
65
|
+
/** `<dataDir>/<file>`, absolute. */
|
|
66
|
+
readonly livePath: string;
|
|
67
|
+
/** `settings` is served on the engine's main thread; `events`, `history` each on a worker. */
|
|
68
|
+
readonly thread: "main" | "worker";
|
|
69
|
+
/** `incremental` only takes effect on a file this open CREATES. */
|
|
70
|
+
readonly autoVacuum: "none" | "incremental";
|
|
71
|
+
/** Load sqlite-vec and serve `vector` calls (`events` only). */
|
|
72
|
+
readonly loadVectorExtension: boolean;
|
|
73
|
+
}
|
|
74
|
+
/** `workerData` of one file-host thread. */
|
|
75
|
+
export interface FileHostWorkerData {
|
|
76
|
+
readonly kind: "file-host";
|
|
77
|
+
readonly spec: OwnedSqliteFileSpec;
|
|
78
|
+
}
|
|
79
|
+
export type FileHostRequest = {
|
|
80
|
+
readonly id: number;
|
|
81
|
+
readonly kind: "data";
|
|
82
|
+
readonly op: DataStoreOp;
|
|
83
|
+
readonly input: unknown;
|
|
84
|
+
} | {
|
|
85
|
+
readonly id: number;
|
|
86
|
+
readonly kind: "vector";
|
|
87
|
+
readonly op: VectorOp;
|
|
88
|
+
readonly input: unknown;
|
|
89
|
+
} | {
|
|
90
|
+
readonly id: number;
|
|
91
|
+
readonly kind: "control";
|
|
92
|
+
readonly op: ControlOp;
|
|
93
|
+
readonly input: unknown;
|
|
94
|
+
} | {
|
|
95
|
+
readonly id: number;
|
|
96
|
+
readonly kind: "stop";
|
|
97
|
+
};
|
|
98
|
+
export type FileHostLogLevel = "debug" | "info" | "warn" | "error";
|
|
99
|
+
export type FileHostMessage = {
|
|
100
|
+
readonly kind: "ready";
|
|
101
|
+
readonly declared: readonly string[];
|
|
102
|
+
} | {
|
|
103
|
+
readonly kind: "log";
|
|
104
|
+
readonly level: FileHostLogLevel;
|
|
105
|
+
readonly message: string;
|
|
106
|
+
readonly scope: string;
|
|
107
|
+
readonly tags?: LogTags;
|
|
108
|
+
readonly meta?: Record<string, unknown>;
|
|
109
|
+
} | {
|
|
110
|
+
readonly kind: "result";
|
|
111
|
+
readonly id: number;
|
|
112
|
+
readonly ok: true;
|
|
113
|
+
readonly result: unknown;
|
|
114
|
+
} | {
|
|
115
|
+
readonly kind: "result";
|
|
116
|
+
readonly id: number;
|
|
117
|
+
readonly ok: false;
|
|
118
|
+
readonly error: SerializedError;
|
|
119
|
+
} | {
|
|
120
|
+
readonly kind: "boot-failed";
|
|
121
|
+
readonly error: SerializedError;
|
|
122
|
+
};
|
|
123
|
+
export declare const DATA_STORE_OPS: readonly DataStoreOp[];
|
|
124
|
+
export declare const VECTOR_OPS: readonly VectorOp[];
|
|
125
|
+
export declare const CONTROL_OPS: readonly ControlOp[];
|
|
126
|
+
export declare function isDataStoreOp(op: string): op is DataStoreOp;
|
|
127
|
+
export declare function isVectorOp(op: string): op is VectorOp;
|
|
128
|
+
export declare function isControlOp(op: string): op is ControlOp;
|
|
129
|
+
/** Narrow an incoming worker message. */
|
|
130
|
+
export declare function isFileHostMessage(value: unknown): value is FileHostMessage;
|
|
131
|
+
/** Narrow an incoming request on the worker side. */
|
|
132
|
+
export declare function isFileHostRequest(value: unknown): value is FileHostRequest;
|
|
133
|
+
export declare function isFileHostWorkerData(value: unknown): value is FileHostWorkerData;
|
|
134
|
+
/**
|
|
135
|
+
* Type boundary (see the file header): the request was built by a typed
|
|
136
|
+
* `call`/`vector`, so its `input` is the op's input.
|
|
137
|
+
*/
|
|
138
|
+
export declare function trustInput<T>(input: unknown): T;
|
|
139
|
+
/** Type boundary (see the file header): the answer was produced by the op's handler. */
|
|
140
|
+
export declare function trustResult<T>(result: unknown): T;
|
|
141
|
+
/**
|
|
142
|
+
* The `ArrayBuffer`s a payload carries within three levels (a typed array,
|
|
143
|
+
* a `Buffer`, or an array/record of them, e.g. `{ items: [{ vector }] }`) — what `postMessage` should TRANSFER
|
|
144
|
+
* rather than clone. A transferred buffer is detached on the sender: ownership
|
|
145
|
+
* passes with the message, and a caller must not reuse a buffer it sent.
|
|
146
|
+
*
|
|
147
|
+
* Only plain, non-shared `ArrayBuffer`s qualify; a view over a pooled
|
|
148
|
+
* `Buffer` slab is cloned instead, because transferring the slab would detach
|
|
149
|
+
* every other `Buffer` carved from it.
|
|
150
|
+
*/
|
|
151
|
+
export declare function collectTransferables(payload: unknown): readonly ArrayBuffer[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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-DnALrQF-.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 {
|
|
1
|
+
import { In as storageProviderCapability, Mt as filesystemBrowseCapability, lr as BaseAddon } from "../../dist-DMWeqeTF.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,6 +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-DJV1rde2.js");
|
|
7
8
|
const require_builtins_sqlite_storage_sqlite_settings_addon = require("./sqlite-settings.addon.js");
|
|
8
9
|
//#region src/builtins/sqlite-storage/config-store.ts
|
|
9
10
|
var ConfigStore = class {
|
|
@@ -57,25 +58,25 @@ exports.DeviceStore = DeviceStore;
|
|
|
57
58
|
exports.DeviceStore$1 = DeviceStore;
|
|
58
59
|
exports.FilesystemStorageAddon = require_builtins_sqlite_storage_filesystem_storage_addon.FilesystemStorageAddon;
|
|
59
60
|
exports.FilesystemStorageProvider = require_builtins_sqlite_storage_filesystem_storage_addon.FilesystemStorageProvider;
|
|
60
|
-
exports.SQLITE_ENGINE_STORM_WALL_SHARE =
|
|
61
|
-
exports.SQLITE_JOURNAL_SIZE_LIMIT_BYTES =
|
|
62
|
-
exports.SQLITE_MMAP_CEILING_BYTES =
|
|
63
|
-
exports.SQLITE_MMAP_FLOOR_BYTES =
|
|
64
|
-
exports.SQLITE_PAGE_CACHE_CEILING_KIB =
|
|
65
|
-
exports.SQLITE_PAGE_CACHE_FLOOR_KIB =
|
|
66
|
-
exports.SQLITE_PROFILE_REPORT_FLOOR_MS =
|
|
67
|
-
exports.SQLITE_PROFILE_REPORT_INTERVAL_MS =
|
|
68
|
-
exports.SQLITE_PROFILE_TOP_N =
|
|
69
|
-
exports.SQLITE_SLOW_CALL_MS =
|
|
70
|
-
exports.SqliteOpProfiler =
|
|
61
|
+
exports.SQLITE_ENGINE_STORM_WALL_SHARE = require_wal_maintenance.SQLITE_ENGINE_STORM_WALL_SHARE;
|
|
62
|
+
exports.SQLITE_JOURNAL_SIZE_LIMIT_BYTES = require_wal_maintenance.SQLITE_JOURNAL_SIZE_LIMIT_BYTES;
|
|
63
|
+
exports.SQLITE_MMAP_CEILING_BYTES = require_wal_maintenance.SQLITE_MMAP_CEILING_BYTES;
|
|
64
|
+
exports.SQLITE_MMAP_FLOOR_BYTES = require_wal_maintenance.SQLITE_MMAP_FLOOR_BYTES;
|
|
65
|
+
exports.SQLITE_PAGE_CACHE_CEILING_KIB = require_wal_maintenance.SQLITE_PAGE_CACHE_CEILING_KIB;
|
|
66
|
+
exports.SQLITE_PAGE_CACHE_FLOOR_KIB = require_wal_maintenance.SQLITE_PAGE_CACHE_FLOOR_KIB;
|
|
67
|
+
exports.SQLITE_PROFILE_REPORT_FLOOR_MS = require_wal_maintenance.SQLITE_PROFILE_REPORT_FLOOR_MS;
|
|
68
|
+
exports.SQLITE_PROFILE_REPORT_INTERVAL_MS = require_wal_maintenance.SQLITE_PROFILE_REPORT_INTERVAL_MS;
|
|
69
|
+
exports.SQLITE_PROFILE_TOP_N = require_wal_maintenance.SQLITE_PROFILE_TOP_N;
|
|
70
|
+
exports.SQLITE_SLOW_CALL_MS = require_wal_maintenance.SQLITE_SLOW_CALL_MS;
|
|
71
|
+
exports.SqliteOpProfiler = require_wal_maintenance.SqliteOpProfiler;
|
|
71
72
|
exports.SqliteSettingsAddon = require_builtins_sqlite_storage_sqlite_settings_addon.SqliteSettingsAddon;
|
|
72
|
-
exports.SqliteSettingsBackend =
|
|
73
|
-
exports.WAL_CHECKPOINT_BUSY_TIMEOUT_MS =
|
|
74
|
-
exports.WAL_HIGH_WATER_BYTES =
|
|
75
|
-
exports.WAL_IDLE_QUIET_MS =
|
|
76
|
-
exports.WAL_MAINTENANCE_INTERVAL_MS =
|
|
77
|
-
exports.WalMaintenance =
|
|
73
|
+
exports.SqliteSettingsBackend = require_wal_maintenance.SqliteSettingsBackend;
|
|
74
|
+
exports.WAL_CHECKPOINT_BUSY_TIMEOUT_MS = require_wal_maintenance.WAL_CHECKPOINT_BUSY_TIMEOUT_MS;
|
|
75
|
+
exports.WAL_HIGH_WATER_BYTES = require_wal_maintenance.WAL_HIGH_WATER_BYTES;
|
|
76
|
+
exports.WAL_IDLE_QUIET_MS = require_wal_maintenance.WAL_IDLE_QUIET_MS;
|
|
77
|
+
exports.WAL_MAINTENANCE_INTERVAL_MS = require_wal_maintenance.WAL_MAINTENANCE_INTERVAL_MS;
|
|
78
|
+
exports.WalMaintenance = require_wal_maintenance.WalMaintenance;
|
|
78
79
|
exports.default = require_builtins_sqlite_storage_filesystem_storage_addon.FilesystemStorageAddon;
|
|
79
|
-
exports.sqliteEngineStorm =
|
|
80
|
-
exports.sqliteMmapSizeFor =
|
|
81
|
-
exports.sqlitePageCacheKibFor =
|
|
80
|
+
exports.sqliteEngineStorm = require_wal_maintenance.sqliteEngineStorm;
|
|
81
|
+
exports.sqliteMmapSizeFor = require_wal_maintenance.sqliteMmapSizeFor;
|
|
82
|
+
exports.sqlitePageCacheKibFor = require_wal_maintenance.sqlitePageCacheKibFor;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FilesystemStorageAddon, t as FilesystemStorageProvider } from "./filesystem-storage.addon.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { A as SQLITE_PAGE_CACHE_CEILING_KIB, B as sqliteEngineStorm, D as SQLITE_JOURNAL_SIZE_LIMIT_BYTES, F as SQLITE_PROFILE_REPORT_FLOOR_MS, I as SQLITE_PROFILE_REPORT_INTERVAL_MS, L as SQLITE_PROFILE_TOP_N, M as sqliteMmapSizeFor, N as sqlitePageCacheKibFor, O as SQLITE_MMAP_CEILING_BYTES, P as SQLITE_ENGINE_STORM_WALL_SHARE, R as SQLITE_SLOW_CALL_MS, a as WalMaintenance, c as SqliteSettingsBackend, i as WAL_MAINTENANCE_INTERVAL_MS, j as SQLITE_PAGE_CACHE_FLOOR_KIB, k as SQLITE_MMAP_FLOOR_BYTES, n as WAL_HIGH_WATER_BYTES, r as WAL_IDLE_QUIET_MS, t as WAL_CHECKPOINT_BUSY_TIMEOUT_MS, z as SqliteOpProfiler } from "../../wal-maintenance-BtfyfuT5.mjs";
|
|
3
|
+
import { SqliteSettingsAddon } from "./sqlite-settings.addon.mjs";
|
|
3
4
|
//#region src/builtins/sqlite-storage/config-store.ts
|
|
4
5
|
var ConfigStore = class {
|
|
5
6
|
db;
|