@camstack/server 1.2.735 → 1.2.736
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/dist/api/core/cap-providers.js +114 -8
- package/dist/api/trpc/generated-cap-mounts.js +17 -1
- package/dist/api/trpc/generated-cap-routers.js +1789 -1708
- package/dist/core/addon/addon-registry.service.js +2 -0
- package/dist/core/addon/addon-settings-provider.js +4 -0
- package/dist/core/addon/integration-instances-provider.js +21 -0
- package/package.json +4 -4
- package/system/dist/{agent-https-DrCbFr4p.js → agent-https-Bi3JY1e0.js} +1 -1
- package/system/dist/{agent-https-BVCIU0eH.mjs → agent-https-DiK6iQzW.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.js +1 -1
- package/system/dist/builtins/alerts/alerts.addon.mjs +1 -1
- package/system/dist/builtins/autotrack/index.js +1 -1
- package/system/dist/builtins/autotrack/index.mjs +1 -1
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
- package/system/dist/builtins/calendars/calendars.addon.js +1 -1
- package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
- package/system/dist/builtins/camera-grid/index.js +1 -1
- package/system/dist/builtins/camera-grid/index.mjs +1 -1
- package/system/dist/builtins/composer/composer.addon.js +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 +2 -2
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +2 -2
- 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 +440 -25
- package/system/dist/builtins/loki-logging/index.mjs +438 -25
- package/system/dist/builtins/loki-logging/loki-logging.addon.d.ts +23 -14
- package/system/dist/builtins/loki-logging/loki-record-kinds.d.ts +33 -0
- package/system/dist/builtins/loki-logging/migrations/connection-to-records.d.ts +47 -0
- package/system/dist/builtins/loki-logging/migrations/index.d.ts +8 -0
- 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 +2 -22
- package/system/dist/builtins/record-entries/index.mjs +2 -22
- 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 +2 -2
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +2 -2
- 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 +7 -7
- package/system/dist/builtins/winston-logging/index.js +1 -1
- package/system/dist/builtins/winston-logging/index.mjs +1 -1
- package/system/dist/{composition-sources-BV9n2ivT.js → composition-sources-DQLGJMMh.js} +1 -1
- package/system/dist/{composition-sources-CI2tZzAo.mjs → composition-sources-lnsR-YuH.mjs} +1 -1
- package/system/dist/{constants-Bskr2h1W.mjs → constants-D7I0cM20.mjs} +1 -1
- package/system/dist/{constants-dYIQm8ab.js → constants-DA5jgmYT.js} +1 -1
- package/system/dist/{device-ca-04o7NByo.mjs → device-ca-Clr2bCe-.mjs} +1 -1
- package/system/dist/{device-ca-BF8N9fC6.js → device-ca-GPjZE-Mm.js} +1 -1
- package/system/dist/{dist-CnC8-kF6.mjs → dist-Cyj93AvD.mjs} +529 -152
- package/system/dist/{dist-B4r3_aYb.js → dist-Xi7ZQ7UI.js} +564 -151
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-mdns-ciao-MdXDARI0.js → hub-mdns-ciao-BMgUdxgG.js} +2 -2
- package/system/dist/{hub-mdns-ciao-BE1vqriF.mjs → hub-mdns-ciao-ouzCfqVS.mjs} +2 -2
- package/system/dist/index.js +7 -7
- package/system/dist/index.mjs +7 -7
- package/system/dist/{restore-archive-Dx9F-3zV.mjs → restore-archive-BG22FodH.mjs} +5 -5
- package/system/dist/{restore-archive-BEUIhG8U.js → restore-archive-CZozfCX-.js} +1 -1
- package/system/dist/{retention-fsBjIfxP.mjs → retention-BfC_C1vy.mjs} +1 -1
- package/system/dist/{retention-nNCAON-6.js → retention-DCrdPMot.js} +1 -1
- package/system/dist/{wal-maintenance-0XhlopB5.mjs → wal-maintenance-C2GNRuvy.mjs} +0 -0
- package/system/dist/{wal-maintenance-UKXXEEoS.js → wal-maintenance-PjOoh6-K.js} +0 -0
- package/system/package.json +4 -1
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-Xi7ZQ7UI.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 {
|
|
1
|
+
import { $s as errMsg, $t as UNATTRIBUTED_BUCKET_KEY, Bi as resolveBucketMs, Nt as ROOT_BUCKET_KEY, Pi as reducePoints, ec as EventCategory, oi as metricsProviderCapability, po as BaseAddon, rs as createEvent, xr as foldSnapshotByFunction } from "../../dist-Cyj93AvD.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-Xi7ZQ7UI.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 { $
|
|
2
|
+
import { $s as errMsg, Ti as platformProbeCapability, bi as parseAcceleratorFactsJson, ec as EventCategory, po as BaseAddon, sr as enumerateInferenceDevices, ta as scoreRuntimes, us as emitReadiness } from "../../dist-Cyj93AvD.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-Xi7ZQ7UI.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
|
|
@@ -23,26 +23,6 @@ var ENTRIES_LIST_MAX = 2e3;
|
|
|
23
23
|
function isRecord(value) {
|
|
24
24
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
25
25
|
}
|
|
26
|
-
/**
|
|
27
|
-
* A stored secret, as an entries read shows it: a VIEW naming the row's own
|
|
28
|
-
* keychain ref (`set: true`), never the value and no longer the bare redaction
|
|
29
|
-
* token. The form hands it to the secret field, which reveals the value by
|
|
30
|
-
* ref through the audited `keychain-admin.reveal`; sent back untouched it
|
|
31
|
-
* keeps the stored secret (the records door reads a view as KEEP).
|
|
32
|
-
*/
|
|
33
|
-
function secretViewsOf(owner, kind, id, info, data) {
|
|
34
|
-
const decl = info.declaration;
|
|
35
|
-
if (decl.secretPaths.length === 0) return data;
|
|
36
|
-
const shown = require_dist.mapSecretLeaves(data, decl.secretPaths, decl.secretArrayKeys, (leaf) => {
|
|
37
|
-
if (leaf.value !== "__camstack_redacted__") return leaf.value;
|
|
38
|
-
return {
|
|
39
|
-
$secret: require_dist.recordSecretRef(owner, kind, id, leaf.concrete),
|
|
40
|
-
v: 1,
|
|
41
|
-
set: true
|
|
42
|
-
};
|
|
43
|
-
});
|
|
44
|
-
return isRecord(shown) ? shown : data;
|
|
45
|
-
}
|
|
46
26
|
var EntriesService = class {
|
|
47
27
|
deps;
|
|
48
28
|
constructor(deps) {
|
|
@@ -97,7 +77,7 @@ var EntriesService = class {
|
|
|
97
77
|
name: typeof name === "string" ? name : row.id,
|
|
98
78
|
rev: row.rev,
|
|
99
79
|
updatedAt: row.updatedAt,
|
|
100
|
-
data: secretViewsOf(input.owner, input.kind, row.id, info, row.data)
|
|
80
|
+
data: require_dist.secretViewsOf(input.owner, input.kind, row.id, info.declaration, row.data)
|
|
101
81
|
});
|
|
102
82
|
}
|
|
103
83
|
cursor = page.nextCursor ?? void 0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Co as InvalidRecordError, Go as UnknownRecordKindError, Mi as recordEntriesCapability, Us as secretViewsOf, po as BaseAddon } from "../../dist-Cyj93AvD.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { randomUUID } from "node:crypto";
|
|
4
4
|
//#region src/builtins/record-entries/entries-service.ts
|
|
@@ -18,26 +18,6 @@ var ENTRIES_LIST_MAX = 2e3;
|
|
|
18
18
|
function isRecord(value) {
|
|
19
19
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
20
20
|
}
|
|
21
|
-
/**
|
|
22
|
-
* A stored secret, as an entries read shows it: a VIEW naming the row's own
|
|
23
|
-
* keychain ref (`set: true`), never the value and no longer the bare redaction
|
|
24
|
-
* token. The form hands it to the secret field, which reveals the value by
|
|
25
|
-
* ref through the audited `keychain-admin.reveal`; sent back untouched it
|
|
26
|
-
* keeps the stored secret (the records door reads a view as KEEP).
|
|
27
|
-
*/
|
|
28
|
-
function secretViewsOf(owner, kind, id, info, data) {
|
|
29
|
-
const decl = info.declaration;
|
|
30
|
-
if (decl.secretPaths.length === 0) return data;
|
|
31
|
-
const shown = mapSecretLeaves(data, decl.secretPaths, decl.secretArrayKeys, (leaf) => {
|
|
32
|
-
if (leaf.value !== "__camstack_redacted__") return leaf.value;
|
|
33
|
-
return {
|
|
34
|
-
$secret: recordSecretRef(owner, kind, id, leaf.concrete),
|
|
35
|
-
v: 1,
|
|
36
|
-
set: true
|
|
37
|
-
};
|
|
38
|
-
});
|
|
39
|
-
return isRecord(shown) ? shown : data;
|
|
40
|
-
}
|
|
41
21
|
var EntriesService = class {
|
|
42
22
|
deps;
|
|
43
23
|
constructor(deps) {
|
|
@@ -92,7 +72,7 @@ var EntriesService = class {
|
|
|
92
72
|
name: typeof name === "string" ? name : row.id,
|
|
93
73
|
rev: row.rev,
|
|
94
74
|
updatedAt: row.updatedAt,
|
|
95
|
-
data: secretViewsOf(input.owner, input.kind, row.id, info, row.data)
|
|
75
|
+
data: secretViewsOf(input.owner, input.kind, row.id, info.declaration, row.data)
|
|
96
76
|
});
|
|
97
77
|
}
|
|
98
78
|
cursor = page.nextCursor ?? void 0;
|
|
@@ -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-Xi7ZQ7UI.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 {
|
|
1
|
+
import { ec as EventCategory, po as BaseAddon } from "../../dist-Cyj93AvD.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-Xi7ZQ7UI.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 { $s as errMsg, As as nodePin, Qs as DeviceType, Xs as DeviceFeature, Zn as deriveBatteryPresence, _a as streamQualityLabel, ec as EventCategory, gn as batteryCapability, h as BatteryStatusSchema, hn as bareAddonId, ii as memoizePinnedFfmpeg, la as snapshotCapability, po as BaseAddon } from "../../dist-Cyj93AvD.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-Xi7ZQ7UI.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 { br as filesystemBrowseCapability, ha as storageProviderCapability, po as BaseAddon } from "../../dist-Cyj93AvD.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-PjOoh6-K.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-C2GNRuvy.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-Xi7ZQ7UI.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-PjOoh6-K.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");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $
|
|
1
|
+
import { $s as errMsg$1, Ao as RECORD_SWEEP_INTERVAL_MS, Co as InvalidRecordError, Dn as catalogueIssues, Gn as dataStoreProviderCapability, Go as UnknownRecordKindError, Io as RecordKindDeclarationSchema, Kn as databaseSnapshotCapability, M as DATABASE_SNAPSHOT_SUFFIX, Ms as normalizeSecretOwner, N as DATABASE_SNAPSHOT_TIMEOUT_MS, Ni as recordsCapability, No as RUNTIME_DEFAULTS, P as DATA_STORE_DATABASES, Tt as MigrationMetaSchema, Uo as TransactRefusedError, da as storageAdminCapability, ec as EventCategory, hn as bareAddonId, is as customAction, j as DATABASE_SNAPSHOT_PARTIAL_SUFFIX, ja as vectorStoreCapability, os as defineCustomActions, po as BaseAddon, si as migrationsCapability, ts as collectSecretMarkerRefs, wo as NoCallerError, yi as orderMigrations, yo as DeclarationRefusedError } from "../../dist-Cyj93AvD.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-C2GNRuvy.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";
|
|
@@ -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-Xi7ZQ7UI.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 { $
|
|
1
|
+
import { $o as collectSecretConfigKeys, Gr as legacyModeOf, Jt as StorageLocationTypeSchema, Kt as StorageCleanupJobSchema, Ns as parseJsonObject, Pa as withLocationMode, Rr as isLocationEnabled, Vs as secretTreeFromPaths, Wi as resolveLocationMode, Yt as StorageMigrationJobSchema, ci as modeMayWrite, cs as defineRecordKinds, ec as EventCategory, fa as storageCapability, fr as evictionPolicyOfLocation, jo as REDACTED_SECRET, js as normalizeNodeId, na as settingsStoreCapability, ni as mayWriteToLocation, pa as storageMigrationCapability, po as BaseAddon, qs as transformSecretWrite, qt as StorageLocationModeSchema, ti as mayReadLocation, wr as gbToBytes, ws as isSecretMarker, yt as LegacyStorageLocationDefaultSchema, zs as resolveSecretMarkers } from "../../dist-Cyj93AvD.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-Xi7ZQ7UI.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-Bi3JY1e0.js");
|
|
10
|
+
const require_constants$8 = require("../../constants-DA5jgmYT.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 {
|
|
2
|
+
import { $s as errMsg, Wt as ServerNameSchema, gs as hydrateSchema, is as customAction, oa as shortHostname, os as defineCustomActions, po as BaseAddon } from "../../dist-Cyj93AvD.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-DiK6iQzW.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-D7I0cM20.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";
|
|
@@ -15,7 +15,7 @@ import { fileURLToPath } from "node:url";
|
|
|
15
15
|
import * as xi from "node:fs";
|
|
16
16
|
import * as tls from "node:tls";
|
|
17
17
|
import { EventEmitter } from "node:events";
|
|
18
|
-
import
|
|
18
|
+
import As from "node:stream";
|
|
19
19
|
import { StringDecoder } from "node:string_decoder";
|
|
20
20
|
import { lstatSync, readdir as readdir$1, readdirSync as readdirSync$1, readlinkSync, realpathSync } from "fs";
|
|
21
21
|
import "path";
|
|
@@ -83699,7 +83699,7 @@ var xs = new Set([
|
|
|
83699
83699
|
"+",
|
|
83700
83700
|
"*",
|
|
83701
83701
|
"@"
|
|
83702
|
-
]), be = (n) => xs.has(n), vs = "(?!(?:^|/)\\.\\.?(?:$|/))", Ct = "(?!\\.)", Cs = new Set(["[", "."]), Ts = new Set(["..", "."]), As = /* @__PURE__ */ new Set("().*{}+?[]^$\\!"), ks = (n) => n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), Kt = "[^/]", Se = Kt + "*?", Ee = Kt + "+?", Q = class n {
|
|
83702
|
+
]), be = (n) => xs.has(n), vs = "(?!(?:^|/)\\.\\.?(?:$|/))", Ct = "(?!\\.)", Cs = new Set(["[", "."]), Ts = new Set(["..", "."]), As$1 = /* @__PURE__ */ new Set("().*{}+?[]^$\\!"), ks = (n) => n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), Kt = "[^/]", Se = Kt + "*?", Ee = Kt + "+?", Q = class n {
|
|
83703
83703
|
type;
|
|
83704
83704
|
#t;
|
|
83705
83705
|
#s;
|
|
@@ -83906,7 +83906,7 @@ var xs = new Set([
|
|
|
83906
83906
|
for (let a = 0; a < t.length; a++) {
|
|
83907
83907
|
let l = t.charAt(a);
|
|
83908
83908
|
if (i) {
|
|
83909
|
-
i = !1, r += (As.has(l) ? "\\" : "") + l;
|
|
83909
|
+
i = !1, r += (As$1.has(l) ? "\\" : "") + l;
|
|
83910
83910
|
continue;
|
|
83911
83911
|
}
|
|
83912
83912
|
if (l === "*") {
|
|
@@ -84890,7 +84890,7 @@ var q = (n) => n && n === Math.floor(n) && n > 0 && isFinite(n), De = (n) => q(n
|
|
|
84890
84890
|
var Ne = typeof process == "object" && process ? process : {
|
|
84891
84891
|
stdout: null,
|
|
84892
84892
|
stderr: null
|
|
84893
|
-
}, oi = (n) => !!n && typeof n == "object" && (n instanceof V || n instanceof
|
|
84893
|
+
}, oi = (n) => !!n && typeof n == "object" && (n instanceof V || n instanceof As || hi(n) || ai(n)), hi = (n) => !!n && typeof n == "object" && n instanceof EventEmitter && typeof n.pipe == "function" && n.pipe !== As.Writable.prototype.pipe, ai = (n) => !!n && typeof n == "object" && n instanceof EventEmitter && typeof n.write == "function" && typeof n.end == "function", G = Symbol("EOF"), H = Symbol("maybeEmitEnd"), K = Symbol("emittedEnd"), kt = Symbol("emittingEnd"), ut = Symbol("emittedError"), Rt = Symbol("closed"), _e = Symbol("read"), Ot = Symbol("flush"), Le = Symbol("flushChunk"), P = Symbol("encoding"), et = Symbol("decoder"), v = Symbol("flowing"), dt = Symbol("paused"), st = Symbol("resume"), C = Symbol("buffer"), F = Symbol("pipes"), T = Symbol("bufferLength"), Yt = Symbol("bufferPush"), Ft = Symbol("bufferShift"), k = Symbol("objectMode"), x = Symbol("destroyed"), Xt = Symbol("error"), Jt = Symbol("emitData"), We = Symbol("emitEnd"), Zt = Symbol("emitEnd2"), B = Symbol("async"), Qt = Symbol("abort"), Dt = Symbol("aborted"), pt = Symbol("signal"), Y = Symbol("dataListeners"), M = Symbol("discarded"), mt = (n) => Promise.resolve().then(n), li = (n) => n(), ci = (n) => n === "end" || n === "finish" || n === "prefinish", fi = (n) => n instanceof ArrayBuffer || !!n && typeof n == "object" && n.constructor && n.constructor.name === "ArrayBuffer" && n.byteLength >= 0, ui = (n) => !Buffer.isBuffer(n) && ArrayBuffer.isView(n), Mt = class {
|
|
84894
84894
|
src;
|
|
84895
84895
|
dest;
|
|
84896
84896
|
opts;
|
|
@@ -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-Xi7ZQ7UI.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 {
|
|
1
|
+
import { Qr as logDestinationCapability, po as BaseAddon } from "../../dist-Cyj93AvD.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 {
|
|
1
|
+
import { $s as errMsg, Xa as compositionSourceKey } from "./dist-Cyj93AvD.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-Xi7ZQ7UI.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,
|
|
1
|
+
import { H as DEVICE_SAN_CREDENTIAL_PREFIX, Qo as buildSecretRef, U as DEVICE_SAN_USER_PREFIX } from "./dist-Cyj93AvD.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
|