@camstack/server 1.2.782 → 1.2.784
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 +14 -9
- package/system/dist/addon-utils.js +1 -1
- package/system/dist/addon-utils.mjs +1 -1
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +2 -2
- 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 +2 -2
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/alerts/alerts.addon.d.ts +6 -0
- package/system/dist/builtins/alerts/alerts.addon.js +240 -17
- package/system/dist/builtins/alerts/alerts.addon.mjs +264 -50
- package/system/dist/builtins/alerts/runner-alert.d.ts +6 -1
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +5 -5
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +3 -3
- package/system/dist/builtins/camera-grid/index.js +1 -1
- package/system/dist/builtins/camera-grid/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 +2 -2
- package/system/dist/builtins/keychain/index.js +1 -1
- package/system/dist/builtins/keychain/index.mjs +1 -1
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +3 -3
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +2 -2
- package/system/dist/builtins/local-auth/local-auth.addon.js +2 -2
- package/system/dist/builtins/local-auth/local-auth.addon.mjs +1 -1
- 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/native-metrics/native-metrics.addon.js +2 -2
- package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +2 -2
- package/system/dist/builtins/platform-probe/index.js +2 -2
- package/system/dist/builtins/platform-probe/index.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 +3 -3
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +2 -2
- package/system/dist/builtins/sqlite-storage/index.js +1 -1
- package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +3 -3
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +3 -3
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +2 -2
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +2 -2
- package/system/dist/builtins/system-config/system-config.addon.js +4 -4
- 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/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-mdns-ciao-DHlokCDH.js → hub-mdns-ciao-DYD3STlf.js} +3 -3
- package/system/dist/{hub-mdns-ciao-DWzAoaKF.mjs → hub-mdns-ciao-VOfs7CqC.mjs} +3 -3
- package/system/dist/index.js +29 -112
- package/system/dist/index.mjs +23 -106
- package/system/dist/kernel/moleculer/process-service.d.ts +3 -0
- package/system/dist/kernel/moleculer/runner-failure-info.d.ts +13 -0
- package/system/dist/log-file-read-worker.js +1 -1
- package/system/dist/log-file-read-worker.mjs +1 -1
- package/system/package.json +1 -1
- package/system/dist/{agent-https-kG6BvwKf.js → agent-https-BobAhSU6.js} +1 -1
- package/system/dist/{agent-https-CEBLv9BA.mjs → agent-https-Ds3-zbz-.mjs} +1 -1
- package/system/dist/{custom-action-registry-oHl1xltx.mjs → custom-action-registry-B9zFBNVa.mjs} +3 -3
- package/system/dist/{custom-action-registry-JuMHGKEc.js → custom-action-registry-CmWpSeMS.js} +3 -3
- package/system/dist/{log-file-read-protocol-D0WcLbIV.js → log-file-read-protocol-DSV_vQRb.js} +2 -2
- package/system/dist/{log-file-read-protocol-B7M3X3bT.mjs → log-file-read-protocol-hTaAsYlX.mjs} +1 -1
- package/system/dist/{restore-archive-CfET1ups.mjs → restore-archive-B2l00XlI.mjs} +4 -4
- package/system/dist/{restore-archive-ChBlqNSj.js → restore-archive-BCXQaw89.js} +6 -6
- package/system/dist/{wal-maintenance-CNSrfmr8.js → wal-maintenance-Z4MNv6Vn.js} +0 -0
- package/system/dist/{wal-maintenance-Bg3rwpny.mjs → wal-maintenance-bvjbNKbx.mjs} +0 -0
|
@@ -8,10 +8,10 @@ import { createRequire } from "node:module";
|
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
import { randomUUID } from "node:crypto";
|
|
10
10
|
import { customizationBlockName } from "@camstack/types/node";
|
|
11
|
-
import * as fs from "node:fs/promises";
|
|
12
11
|
import * as path$1 from "node:path";
|
|
13
|
-
import { isDeepStrictEqual } from "node:util";
|
|
14
12
|
import { nodeIdOfScopedKey } from "@camstack/types/addon";
|
|
13
|
+
import * as fs from "node:fs/promises";
|
|
14
|
+
import { isDeepStrictEqual } from "node:util";
|
|
15
15
|
import * as os$1 from "node:os";
|
|
16
16
|
import { pathToFileURL } from "node:url";
|
|
17
17
|
//#region src/builtins/core-blocks/block-package.ts
|
|
@@ -11,9 +11,9 @@ const require_constants = require("../../constants-_Zq5aGIs.js");
|
|
|
11
11
|
const require_platform_key_source = require("../../platform-key-source-Di7HrlGR.js");
|
|
12
12
|
let node_crypto = require("node:crypto");
|
|
13
13
|
let _camstack_types_node = require("@camstack/types/node");
|
|
14
|
+
let node_fs = require("node:fs");
|
|
14
15
|
let node_path = require("node:path");
|
|
15
16
|
node_path = require_chunk.__toESM(node_path);
|
|
16
|
-
let node_fs = require("node:fs");
|
|
17
17
|
var IV_BYTES = 12;
|
|
18
18
|
var TAG_BYTES = 16;
|
|
19
19
|
var VALUE_PREFIX = "ck1";
|
|
@@ -6,8 +6,8 @@ import { a as MESH_CA_KEY_REF } from "../../constants-BmX7aeHq.mjs";
|
|
|
6
6
|
import { n as getPlatformKeychainKey } from "../../platform-key-source-BWlq0jjn.mjs";
|
|
7
7
|
import { createCipheriv, createDecipheriv, createHmac, randomBytes, randomUUID, timingSafeEqual } from "node:crypto";
|
|
8
8
|
import { restrictDirToOwnerSync, restrictFileToOwnerSync, writeOwnerOnlyFileSync } from "@camstack/types/node";
|
|
9
|
-
import * as path$1 from "node:path";
|
|
10
9
|
import { promises } from "node:fs";
|
|
10
|
+
import * as path$1 from "node:path";
|
|
11
11
|
var IV_BYTES = 12;
|
|
12
12
|
var TAG_BYTES = 16;
|
|
13
13
|
var VALUE_PREFIX = "ck1";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
3
3
|
const require_dist = require("../../dist-CA672buZ.js");
|
|
4
|
-
let
|
|
5
|
-
node_fs_promises = require_chunk.__toESM(node_fs_promises);
|
|
4
|
+
let node_fs = require("node:fs");
|
|
6
5
|
let node_path = require("node:path");
|
|
7
6
|
node_path = require_chunk.__toESM(node_path);
|
|
8
|
-
let
|
|
7
|
+
let node_fs_promises = require("node:fs/promises");
|
|
8
|
+
node_fs_promises = require_chunk.__toESM(node_fs_promises);
|
|
9
9
|
//#region src/builtins/liveness-monitor/liveness-checks.ts
|
|
10
10
|
var NO_DEVICES = "liveness:no-devices";
|
|
11
11
|
var ALL_OFFLINE = "liveness:all-devices-offline";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Ao as BaseAddon, Bt as RecordingStatusSchema, It as RECORDING_SOURCE_CAMSTACK_ADDON, _c as EventCategory, bs as createEvent, di as mayWriteToLocation, gc as errMsg } from "../../dist-W0Eyg7Fm.mjs";
|
|
2
|
-
import * as fsp from "node:fs/promises";
|
|
3
|
-
import path from "node:path";
|
|
4
2
|
import { constants } from "node:fs";
|
|
3
|
+
import path from "node:path";
|
|
4
|
+
import * as fsp from "node:fs/promises";
|
|
5
5
|
//#region src/builtins/liveness-monitor/liveness-checks.ts
|
|
6
6
|
var NO_DEVICES = "liveness:no-devices";
|
|
7
7
|
var ALL_OFFLINE = "liveness:all-devices-offline";
|
|
@@ -13,10 +13,10 @@ let node_crypto = require("node:crypto");
|
|
|
13
13
|
node_crypto = require_chunk.__toESM(node_crypto);
|
|
14
14
|
let crypto$1 = require("crypto");
|
|
15
15
|
crypto$1 = require_chunk.__toESM(crypto$1, 1);
|
|
16
|
-
let node_path = require("node:path");
|
|
17
|
-
node_path = require_chunk.__toESM(node_path);
|
|
18
16
|
let node_fs = require("node:fs");
|
|
19
17
|
node_fs = require_chunk.__toESM(node_fs);
|
|
18
|
+
let node_path = require("node:path");
|
|
19
|
+
node_path = require_chunk.__toESM(node_path);
|
|
20
20
|
//#region ../../node_modules/bcryptjs/index.js
|
|
21
21
|
/**
|
|
22
22
|
* The random implementation to use as a fallback.
|
|
@@ -8,8 +8,8 @@ import { z } from "zod";
|
|
|
8
8
|
import * as crypto$1 from "node:crypto";
|
|
9
9
|
import { X509Certificate, createHash, randomUUID, timingSafeEqual } from "node:crypto";
|
|
10
10
|
import nodeCrypto from "crypto";
|
|
11
|
-
import * as path$1 from "node:path";
|
|
12
11
|
import * as fs$1 from "node:fs";
|
|
12
|
+
import * as path$1 from "node:path";
|
|
13
13
|
//#region ../../node_modules/bcryptjs/index.js
|
|
14
14
|
/**
|
|
15
15
|
* The random implementation to use as a fallback.
|
|
@@ -2,12 +2,12 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
3
3
|
const require_dist = require("../../dist-CA672buZ.js");
|
|
4
4
|
const require_dns_wire = require("../../dns-wire-B1BvF9Ao.js");
|
|
5
|
-
const require_hub_mdns_ciao = require("../../hub-mdns-ciao-
|
|
5
|
+
const require_hub_mdns_ciao = require("../../hub-mdns-ciao-DYD3STlf.js");
|
|
6
6
|
let zod = require("zod");
|
|
7
7
|
let node_net = require("node:net");
|
|
8
|
+
let node_fs = require("node:fs");
|
|
8
9
|
let node_os = require("node:os");
|
|
9
10
|
node_os = require_chunk.__toESM(node_os);
|
|
10
|
-
let node_fs = require("node:fs");
|
|
11
11
|
let node_http = require("node:http");
|
|
12
12
|
node_http = require_chunk.__toESM(node_http);
|
|
13
13
|
let node_dgram = require("node:dgram");
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Ao as BaseAddon, Ba as validateCustomAddress, Br as isAppLinkBase, Dt as NetworkTunnelStartedDataSchema, Ni as pickAppLinkHub, Nn as checkRoleAddress, Ri as preconditionOf, Ss as defineAddonMigrations, Wr as isDefaultAppConnectionEndpoint, Zi as resolveAppConnections, _ as CAMSTACK_APP_LINK_ORIGIN, _c as EventCategory, aa as resolveNotificationTapAddress, dt as HUB_MDNS_TXT_KEYS, gc as errMsg, ri as localNetworkCapability, ta as resolveHubAddressRoles, ut as HUB_MDNS_SERVICE_TYPE, ya as shortHostname } from "../../dist-W0Eyg7Fm.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-VOfs7CqC.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { isIP } from "node:net";
|
|
6
|
-
import * as os$1 from "node:os";
|
|
7
6
|
import { readFileSync } from "node:fs";
|
|
7
|
+
import * as os$1 from "node:os";
|
|
8
8
|
import * as http from "node:http";
|
|
9
9
|
import { createSocket } from "node:dgram";
|
|
10
10
|
import * as https from "node:https";
|
|
@@ -4,12 +4,12 @@ Object.defineProperties(exports, {
|
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
6
|
const require_dist = require("../../dist-CA672buZ.js");
|
|
7
|
+
let node_fs = require("node:fs");
|
|
8
|
+
node_fs = require_chunk.__toESM(node_fs);
|
|
7
9
|
let node_fs_promises = require("node:fs/promises");
|
|
8
10
|
let node_util = require("node:util");
|
|
9
11
|
let node_os = require("node:os");
|
|
10
12
|
node_os = require_chunk.__toESM(node_os);
|
|
11
|
-
let node_fs = require("node:fs");
|
|
12
|
-
node_fs = require_chunk.__toESM(node_fs);
|
|
13
13
|
let node_child_process = require("node:child_process");
|
|
14
14
|
//#region src/builtins/native-metrics/cgroup-memory.ts
|
|
15
15
|
/** `readFileSync`, with every failure flattened to `null`. */
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Ao as BaseAddon, Ki as reducePoints, Qi as resolveBucketMs, Rt as ROOT_BUCKET_KEY, _c as EventCategory, bs as createEvent, gc as errMsg, gi as metricsProviderCapability, in as UNATTRIBUTED_BUCKET_KEY, kr as foldSnapshotByFunction } from "../../dist-W0Eyg7Fm.mjs";
|
|
2
|
+
import * as fs$1 from "node:fs";
|
|
3
|
+
import { constants, readFileSync } from "node:fs";
|
|
2
4
|
import { access, readFile, readdir } from "node:fs/promises";
|
|
3
5
|
import { promisify } from "node:util";
|
|
4
6
|
import * as os$1 from "node:os";
|
|
5
7
|
import { platform } from "node:os";
|
|
6
|
-
import * as fs$1 from "node:fs";
|
|
7
|
-
import { constants, readFileSync } from "node:fs";
|
|
8
8
|
import { execFile } from "node:child_process";
|
|
9
9
|
//#region src/builtins/native-metrics/cgroup-memory.ts
|
|
10
10
|
/** `readFileSync`, with every failure flattened to `null`. */
|
|
@@ -5,13 +5,13 @@ Object.defineProperties(exports, {
|
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
6
|
const require_dist = require("../../dist-CA672buZ.js");
|
|
7
7
|
const require_coral_accelerators = require("../../coral-accelerators-BSVsBVzt.js");
|
|
8
|
+
let node_fs = require("node:fs");
|
|
9
|
+
node_fs = require_chunk.__toESM(node_fs);
|
|
8
10
|
let node_path = require("node:path");
|
|
9
11
|
node_path = require_chunk.__toESM(node_path);
|
|
10
12
|
let node_util = require("node:util");
|
|
11
13
|
let node_os = require("node:os");
|
|
12
14
|
node_os = require_chunk.__toESM(node_os);
|
|
13
|
-
let node_fs = require("node:fs");
|
|
14
|
-
node_fs = require_chunk.__toESM(node_fs);
|
|
15
15
|
let node_child_process = require("node:child_process");
|
|
16
16
|
//#region src/builtins/platform-probe/accelerator-reprobe.ts
|
|
17
17
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { o as __toESM, r as __exportAll } from "../../chunk-CNf5ZN-e.mjs";
|
|
2
2
|
import { Ai as parseAcceleratorFactsJson, Ao as BaseAddon, Ds as emitReadiness, Fi as platformProbeCapability, _c as EventCategory, gc as errMsg, hr as enumerateInferenceDevices, ma as scoreRuntimes } from "../../dist-W0Eyg7Fm.mjs";
|
|
3
3
|
import { n as detectCoralAccelerator, r as nodeCoralFs } from "../../coral-accelerators-DBlgWB8k.mjs";
|
|
4
|
+
import * as fs$1 from "node:fs";
|
|
4
5
|
import * as path$1 from "node:path";
|
|
5
6
|
import { promisify } from "node:util";
|
|
6
7
|
import * as os$1 from "node:os";
|
|
7
|
-
import * as fs$1 from "node:fs";
|
|
8
8
|
import { execFile } from "node:child_process";
|
|
9
9
|
//#region src/builtins/platform-probe/accelerator-reprobe.ts
|
|
10
10
|
/**
|
|
@@ -8,8 +8,8 @@ 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");
|
|
10
10
|
let _camstack_types_node = require("@camstack/types/node");
|
|
11
|
-
let node_path = require("node:path");
|
|
12
11
|
let node_fs = require("node:fs");
|
|
12
|
+
let node_path = require("node:path");
|
|
13
13
|
let node_child_process = require("node:child_process");
|
|
14
14
|
let sharp = require("sharp");
|
|
15
15
|
sharp = require_chunk.__toESM(sharp);
|
|
@@ -3,8 +3,8 @@ import { i as renderCourtesyOverlayJpeg, n as courtesyCacheKey, r as renderCourt
|
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
5
5
|
import { signExpiringUrl, verifyExpiringUrl } from "@camstack/types/node";
|
|
6
|
-
import { join } from "node:path";
|
|
7
6
|
import { promises } from "node:fs";
|
|
7
|
+
import { join } from "node:path";
|
|
8
8
|
import { execFile } from "node:child_process";
|
|
9
9
|
import sharp from "sharp";
|
|
10
10
|
//#region src/builtins/snapshot/snapshot-cache.ts
|
|
@@ -5,12 +5,12 @@ Object.defineProperties(exports, {
|
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
6
|
const require_dist = require("../../dist-CA672buZ.js");
|
|
7
7
|
let node_crypto = require("node:crypto");
|
|
8
|
-
let
|
|
8
|
+
let node_fs = require("node:fs");
|
|
9
|
+
node_fs = require_chunk.__toESM(node_fs);
|
|
9
10
|
let node_path = require("node:path");
|
|
10
11
|
node_path = require_chunk.__toESM(node_path);
|
|
12
|
+
let node_fs_promises = require("node:fs/promises");
|
|
11
13
|
let node_os = require("node:os");
|
|
12
|
-
let node_fs = require("node:fs");
|
|
13
|
-
node_fs = require_chunk.__toESM(node_fs);
|
|
14
14
|
//#region src/builtins/sqlite-storage/path-guard.ts
|
|
15
15
|
/**
|
|
16
16
|
* Guards for the filesystem-browse cap. Pure + synchronous so they are
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Ao as BaseAddon, Oa as storageProviderCapability, Or as filesystemBrowseCapability } from "../../dist-W0Eyg7Fm.mjs";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
|
-
import
|
|
3
|
+
import * as fs$1 from "node:fs";
|
|
4
4
|
import * as path$1 from "node:path";
|
|
5
5
|
import { basename, dirname, isAbsolute, join, resolve, sep } from "node:path";
|
|
6
|
+
import { mkdir, readdir, realpath, statfs } from "node:fs/promises";
|
|
6
7
|
import { homedir } from "node:os";
|
|
7
|
-
import * as fs$1 from "node:fs";
|
|
8
8
|
//#region src/builtins/sqlite-storage/path-guard.ts
|
|
9
9
|
/**
|
|
10
10
|
* Guards for the filesystem-browse cap. Pure + synchronous so they are
|
|
@@ -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-Z4MNv6Vn.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-bvjbNKbx.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 {
|
|
@@ -5,17 +5,17 @@ Object.defineProperties(exports, {
|
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
6
|
const require_dist = require("../../dist-CA672buZ.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-Z4MNv6Vn.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
|
const require_legacy_integration_rows_door = require("../../legacy-integration-rows-door-BzVepX_e.js");
|
|
12
12
|
let zod = require("zod");
|
|
13
13
|
let node_crypto = require("node:crypto");
|
|
14
|
-
let
|
|
14
|
+
let node_fs = require("node:fs");
|
|
15
15
|
let node_path = require("node:path");
|
|
16
16
|
node_path = require_chunk.__toESM(node_path);
|
|
17
|
+
let node_fs_promises = require("node:fs/promises");
|
|
17
18
|
let node_module = require("node:module");
|
|
18
|
-
let node_fs = require("node:fs");
|
|
19
19
|
let node_worker_threads = require("node:worker_threads");
|
|
20
20
|
//#region src/builtins/sqlite-storage/file-host-client.ts
|
|
21
21
|
/**
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { $n as databaseSnapshotCapability, $o as RecordKindDeclarationSchema, Ao as BaseAddon, Bo as InvalidRecordError, Cs as defineCustomActions, Et as MigrationMetaSchema, Ga as vectorStoreCapability, Gi as recordsCapability, Io as DeclarationRefusedError, M as DATABASE_SNAPSHOT_SUFFIX, Mn as catalogueIssues, N as DATABASE_SNAPSHOT_TIMEOUT_MS, P as DATA_STORE_DATABASES, Qn as dataStoreProviderCapability, Vo as NoCallerError, Xo as RUNTIME_DEFAULTS, Ys as normalizeSecretOwner, _c as EventCategory, _i as migrationsCapability, bn as bareAddonId, cs as UnknownRecordKindError, gc as errMsg$1, j as DATABASE_SNAPSHOT_PARTIAL_SUFFIX, ki as orderMigrations, oa as resolveRunnerId, os as TransactRefusedError, qo as RECORD_SWEEP_INTERVAL_MS, vs as collectSecretMarkerRefs, wa as storageAdminCapability, xs as customAction, xt as MIGRATION_API_V1_METHODS } from "../../dist-W0Eyg7Fm.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-bvjbNKbx.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 { a as patchLegacyIntegrationRows, i as legacyIntegrationAddonId, n as clearLegacyIntegrationRows, o as readLegacyIntegrationRows, r as deleteLegacyIntegrationRowKeys } from "../../legacy-integration-rows-door-CF_0_-U9.mjs";
|
|
7
7
|
import { createRequire } from "node:module";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
import { randomUUID } from "node:crypto";
|
|
10
|
-
import { mkdir } from "node:fs/promises";
|
|
11
|
-
import path from "node:path";
|
|
12
10
|
import { existsSync, promises, readFileSync, readdirSync, statSync } from "node:fs";
|
|
11
|
+
import path from "node:path";
|
|
12
|
+
import { mkdir } from "node:fs/promises";
|
|
13
13
|
import { Worker } from "node:worker_threads";
|
|
14
14
|
//#region src/builtins/sqlite-storage/file-host-client.ts
|
|
15
15
|
/**
|
|
@@ -8,10 +8,10 @@ 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");
|
|
10
10
|
let _camstack_types_node = require("@camstack/types/node");
|
|
11
|
-
let node_fs_promises = require("node:fs/promises");
|
|
12
|
-
node_fs_promises = require_chunk.__toESM(node_fs_promises);
|
|
13
11
|
let node_path = require("node:path");
|
|
14
12
|
node_path = require_chunk.__toESM(node_path);
|
|
13
|
+
let node_fs_promises = require("node:fs/promises");
|
|
14
|
+
node_fs_promises = require_chunk.__toESM(node_fs_promises);
|
|
15
15
|
//#region src/builtins/storage-orchestrator/record-kinds.ts
|
|
16
16
|
var import_read_all_rows = require_read_all_rows$1.require_read_all_rows();
|
|
17
17
|
/**
|
|
@@ -3,10 +3,10 @@ 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";
|
|
5
5
|
import { containsOrEquals, physicalRootOf } from "@camstack/types/node";
|
|
6
|
-
import * as fs from "node:fs/promises";
|
|
7
|
-
import { opendir, readdir } from "node:fs/promises";
|
|
8
6
|
import * as path$1 from "node:path";
|
|
9
7
|
import path from "node:path";
|
|
8
|
+
import * as fs from "node:fs/promises";
|
|
9
|
+
import { opendir, readdir } from "node:fs/promises";
|
|
10
10
|
//#region src/builtins/storage-orchestrator/record-kinds.ts
|
|
11
11
|
var import_read_all_rows = require_read_all_rows();
|
|
12
12
|
/**
|
|
@@ -6,19 +6,19 @@ const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
|
6
6
|
const require_dist = require("../../dist-CA672buZ.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-
|
|
9
|
+
const require_agent_https = require("../../agent-https-BobAhSU6.js");
|
|
10
10
|
const require_constants$8 = require("../../constants-_Zq5aGIs.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");
|
|
14
14
|
let node_net = require("node:net");
|
|
15
|
-
let
|
|
15
|
+
let node_fs = require("node:fs");
|
|
16
|
+
node_fs = require_chunk.__toESM(node_fs, 1);
|
|
16
17
|
let node_path = require("node:path");
|
|
18
|
+
let node_fs_promises = require("node:fs/promises");
|
|
17
19
|
let node_os = require("node:os");
|
|
18
20
|
node_os = require_chunk.__toESM(node_os);
|
|
19
21
|
let node_url = require("node:url");
|
|
20
|
-
let node_fs = require("node:fs");
|
|
21
|
-
node_fs = require_chunk.__toESM(node_fs, 1);
|
|
22
22
|
let node_tls = require("node:tls");
|
|
23
23
|
node_tls = require_chunk.__toESM(node_tls);
|
|
24
24
|
let node_events = require("node:events");
|
|
@@ -2,17 +2,17 @@ import { a as __toCommonJS, i as __require, n as __esmMin, o as __toESM, r as __
|
|
|
2
2
|
import { Ao as BaseAddon, Cs as defineCustomActions, Ns as hydrateSchema, Yt as ServerNameSchema, gc as errMsg, xs as customAction, ya as shortHostname } from "../../dist-W0Eyg7Fm.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-
|
|
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-Ds3-zbz-.mjs";
|
|
6
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-BmX7aeHq.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";
|
|
10
10
|
import { BlockList, isIP } from "node:net";
|
|
11
|
-
import
|
|
11
|
+
import * as xi from "node:fs";
|
|
12
12
|
import { posix, win32 } from "node:path";
|
|
13
|
+
import { lstat, readdir, readlink, realpath } from "node:fs/promises";
|
|
13
14
|
import os from "node:os";
|
|
14
15
|
import { fileURLToPath } from "node:url";
|
|
15
|
-
import * as xi from "node:fs";
|
|
16
16
|
import * as tls from "node:tls";
|
|
17
17
|
import { EventEmitter } from "node:events";
|
|
18
18
|
import As from "node:stream";
|
|
@@ -5,7 +5,7 @@ Object.defineProperties(exports, {
|
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
6
|
const require_dist = require("../../dist-CA672buZ.js");
|
|
7
7
|
const require_formatter = require("../../formatter-xbxeV4GD.js");
|
|
8
|
-
const require_log_file_read_protocol = require("../../log-file-read-protocol-
|
|
8
|
+
const require_log_file_read_protocol = require("../../log-file-read-protocol-DSV_vQRb.js");
|
|
9
9
|
let node_path = require("node:path");
|
|
10
10
|
node_path = require_chunk.__toESM(node_path);
|
|
11
11
|
let node_module = require("node:module");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ao as BaseAddon, si as logDestinationCapability } from "../../dist-W0Eyg7Fm.mjs";
|
|
2
2
|
import { t as formatLogLine } from "../../formatter-DkYZ4LXp.mjs";
|
|
3
|
-
import { a as LogFileIndexStore, i as serveRead, n as isFromReader, t as CancelBook } from "../../log-file-read-protocol-
|
|
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";
|
|
5
5
|
import * as path$1 from "node:path";
|
|
6
6
|
import path from "node:path";
|
|
@@ -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-Z4MNv6Vn.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-bvjbNKbx.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,12 +1,12 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
2
2
|
const require_dist = require("./dist-CA672buZ.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-BobAhSU6.js");
|
|
5
5
|
let node_crypto = require("node:crypto");
|
|
6
6
|
let _camstack_types_node = require("@camstack/types/node");
|
|
7
|
-
let node_fs_promises = require("node:fs/promises");
|
|
8
|
-
let node_path = require("node:path");
|
|
9
7
|
let node_fs = require("node:fs");
|
|
8
|
+
let node_path = require("node:path");
|
|
9
|
+
let node_fs_promises = require("node:fs/promises");
|
|
10
10
|
let node_tls = require("node:tls");
|
|
11
11
|
let node_http = require("node:http");
|
|
12
12
|
//#region src/http/lan-http-bind.ts
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { o as __toESM } from "./chunk-CNf5ZN-e.mjs";
|
|
2
2
|
import { dc as userError } from "./dist-W0Eyg7Fm.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-Ds3-zbz-.mjs";
|
|
5
5
|
import { X509Certificate, createPrivateKey } from "node:crypto";
|
|
6
6
|
import { writeOwnerOnlyFileSync } from "@camstack/types/node";
|
|
7
|
-
import { mkdir, writeFile } from "node:fs/promises";
|
|
8
|
-
import { dirname, join } from "node:path";
|
|
9
7
|
import { copyFileSync, existsSync, mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
8
|
+
import { dirname, join } from "node:path";
|
|
9
|
+
import { mkdir, writeFile } from "node:fs/promises";
|
|
10
10
|
import { rootCertificates } from "node:tls";
|
|
11
11
|
import { createServer } from "node:http";
|
|
12
12
|
//#region src/http/lan-http-bind.ts
|