@camstack/server 1.2.894 → 1.2.896
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/dist/api/trpc/generated-cap-mounts.js +3 -1
- package/dist/api/trpc/generated-cap-routers.js +1528 -1499
- package/package.json +23 -17
- 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 +5 -5
- package/system/dist/builtins/composer/composer.addon.mjs +5 -5
- package/system/dist/builtins/composer/graft-host.d.ts +1 -1
- package/system/dist/builtins/console-logging/index.js +1 -1
- package/system/dist/builtins/console-logging/index.mjs +1 -1
- package/system/dist/builtins/core-blocks/core-blocks.addon.js +3 -3
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +3 -3
- package/system/dist/builtins/device-history/device-history.addon.js +2 -2
- package/system/dist/builtins/device-history/device-history.addon.mjs +2 -2
- package/system/dist/builtins/device-manager/device-manager.addon.js +2 -2
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +2 -2
- package/system/dist/builtins/hub-forwarder/index.js +1 -1
- package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/system/dist/builtins/keychain/index.js +4 -4
- package/system/dist/builtins/keychain/index.mjs +4 -4
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/system/dist/builtins/local-auth/local-auth.addon.js +2 -2
- package/system/dist/builtins/local-auth/local-auth.addon.mjs +2 -2
- package/system/dist/builtins/local-network/local-network.addon.js +3 -3
- package/system/dist/builtins/local-network/local-network.addon.mjs +3 -3
- package/system/dist/builtins/loki-logging/index.js +1 -1
- package/system/dist/builtins/loki-logging/index.mjs +1 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
- package/system/dist/builtins/platform-probe/index.js +1 -1
- package/system/dist/builtins/platform-probe/index.mjs +1 -1
- package/system/dist/builtins/record-entries/index.js +1 -1
- package/system/dist/builtins/record-entries/index.mjs +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/snapshot/index.js +14 -12
- package/system/dist/builtins/snapshot/index.mjs +14 -12
- package/system/dist/builtins/snapshot/snapshot.addon.d.ts +6 -4
- 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 +3 -3
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +3 -3
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/system-config/system-config.addon.js +3 -3
- package/system/dist/builtins/system-config/system-config.addon.mjs +3 -3
- package/system/dist/builtins/winston-logging/index.js +1 -1
- package/system/dist/builtins/winston-logging/index.mjs +1 -1
- package/system/dist/{capture-engine-DhqkkOfH.js → capture-engine-BgIjQWh6.js} +1 -1
- package/system/dist/{capture-engine-6UsbHfRF.mjs → capture-engine-DPn6JaPc.mjs} +1 -1
- package/system/dist/{composition-sources-DmDAqBqM.mjs → composition-sources-B0rdPm85.mjs} +1 -1
- package/system/dist/{composition-sources-AbyhP_uF.js → composition-sources-Bec_hQMM.js} +1 -1
- package/system/dist/{constants-CLyC9O9i.js → constants-CsYMak6g.js} +1 -1
- package/system/dist/{constants-DMeh8SL7.mjs → constants-DsQsO8PD.mjs} +1 -1
- package/system/dist/{device-ca-C4odTE-a.js → device-ca-BeK8EI_7.js} +1 -1
- package/system/dist/{device-ca-BJ714blt.mjs → device-ca-BuDqRFZd.mjs} +1 -1
- package/system/dist/{dist-BDciHA-9.js → dist-CHC8tlB1.js} +253 -88
- package/system/dist/{dist-DLp5CYDy.mjs → dist-DiknL6UU.mjs} +236 -77
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-identity-BLkehzWw.js → hub-identity-BM26oLpK.js} +1 -1
- package/system/dist/{hub-identity-C6c6E6Xn.mjs → hub-identity-Dt-mbtkY.mjs} +1 -1
- package/system/dist/{hub-mdns-ciao-ByOblmkT.js → hub-mdns-ciao-BDgSHCPM.js} +2 -2
- package/system/dist/{hub-mdns-ciao-oQtUklUf.mjs → hub-mdns-ciao-CHq7b1FX.mjs} +2 -2
- package/system/dist/index.js +8 -8
- package/system/dist/index.mjs +8 -8
- package/system/dist/kernel/status-overlay.d.ts +1 -1
- package/system/dist/{legacy-integration-rows-door-D_FBo1b1.mjs → legacy-integration-rows-door-1WauJNCy.mjs} +1 -1
- package/system/dist/{legacy-integration-rows-door-CVwsY9u6.js → legacy-integration-rows-door-BYJa0xPI.js} +1 -1
- package/system/dist/{rename-composition-block-CnA_Dslb.mjs → rename-composition-block-BOoAElGp.mjs} +1 -1
- package/system/dist/{rename-composition-block-_LotNQv9.js → rename-composition-block-fMaUic9d.js} +1 -1
- package/system/dist/{restore-archive-CXPBPM61.js → restore-archive-CeZV08vh.js} +1 -1
- package/system/dist/{restore-archive-WMuoi9Ve.mjs → restore-archive-DNLe1z5A.mjs} +1 -1
- package/system/dist/{wal-maintenance-COXWd5qA.mjs → wal-maintenance-CekT_qH6.mjs} +0 -0
- package/system/dist/{wal-maintenance-h2cm6gDJ.js → wal-maintenance-CmCCUKZO.js} +0 -0
- package/system/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Tn as UNATTRIBUTED_BUCKET_KEY, do as resolveBucketMs, eo as reducePoints, ha as metricsProviderCapability, hu as EventCategory, pc as BaseAddon, pi as foldSnapshotByFunction, pu as errMsg, tn as ROOT_BUCKET_KEY, ul as createEvent } from "../../dist-DiknL6UU.mjs";
|
|
2
2
|
import * as fs$1 from "node:fs";
|
|
3
3
|
import { constants, readFileSync } from "node:fs";
|
|
4
4
|
import { access, readFile, readdir } from "node:fs/promises";
|
|
@@ -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-CHC8tlB1.js");
|
|
7
7
|
const require_coral_accelerators = require("../../coral-accelerators-BSVsBVzt.js");
|
|
8
8
|
let node_fs = require("node:fs");
|
|
9
9
|
node_fs = require_chunk.__toESM(node_fs);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { o as __toESM, r as __exportAll } from "../../chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { Aa as parseAcceleratorFactsJson, La as platformProbeCapability, Mo as scoreRuntimes, Yr as enumerateInferenceDevices, _l as emitReadiness, hu as EventCategory, pc as BaseAddon, pu as errMsg } from "../../dist-DiknL6UU.mjs";
|
|
3
3
|
import { n as detectCoralAccelerator, r as nodeCoralFs } from "../../coral-accelerators-DBlgWB8k.mjs";
|
|
4
4
|
import * as fs$1 from "node:fs";
|
|
5
5
|
import * as path$1 from "node:path";
|
|
@@ -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-CHC8tlB1.js");
|
|
7
7
|
let zod = require("zod");
|
|
8
8
|
let node_crypto = require("node:crypto");
|
|
9
9
|
//#region src/builtins/record-entries/entries-service.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Qa as recordEntriesCapability, eu as secretViewsOf, pc as BaseAddon, qc as UnknownRecordKindError, wc as InvalidRecordError } from "../../dist-DiknL6UU.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { randomUUID } from "node:crypto";
|
|
4
4
|
//#region src/builtins/record-entries/entries-service.ts
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-CHC8tlB1.js");
|
|
7
7
|
let zod = require("zod");
|
|
8
8
|
//#region src/builtins/remote-access-orchestrator/enabled-providers-reconcile.ts
|
|
9
9
|
/**
|
package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { hu as EventCategory, pc as BaseAddon } from "../../dist-DiknL6UU.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/builtins/remote-access-orchestrator/enabled-providers-reconcile.ts
|
|
4
4
|
/**
|
|
@@ -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-CHC8tlB1.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");
|
|
@@ -1471,11 +1471,11 @@ var SnapshotAddon = class SnapshotAddon extends require_dist.BaseAddon {
|
|
|
1471
1471
|
const meta = await this.lookupDeviceMeta(deviceId);
|
|
1472
1472
|
const state = await this.resolveSnapshotState(deviceId, meta);
|
|
1473
1473
|
const hit = this.cache.latest(deviceId);
|
|
1474
|
-
const
|
|
1474
|
+
const sleepSlice = await this.ctx.api.deviceState.getCapSlice.query({
|
|
1475
1475
|
deviceId,
|
|
1476
|
-
capName: require_dist.
|
|
1476
|
+
capName: require_dist.lowPowerSleepCapability.name
|
|
1477
1477
|
}).catch(() => null);
|
|
1478
|
-
const parsed = require_dist.
|
|
1478
|
+
const parsed = require_dist.LowPowerSleepStatusSchema.safeParse(sleepSlice);
|
|
1479
1479
|
return {
|
|
1480
1480
|
battery: parsed.success ? {
|
|
1481
1481
|
sleeping: parsed.data.sleeping,
|
|
@@ -2181,11 +2181,13 @@ var SnapshotAddon = class SnapshotAddon extends require_dist.BaseAddon {
|
|
|
2181
2181
|
* Resolve the state that must be visible on a snapshot.
|
|
2182
2182
|
*
|
|
2183
2183
|
* Uses the same two canonical sources as wake-on-play:
|
|
2184
|
-
* 1. `deviceManager.getDevice` for the registry's
|
|
2185
|
-
* 2. `deviceState.getCapSlice('
|
|
2184
|
+
* 1. `deviceManager.getDevice` for the registry's `Sleeps` feature;
|
|
2185
|
+
* 2. `deviceState.getCapSlice('low-power-sleep')` for the durable mirror of
|
|
2186
|
+
* the sleep inputs.
|
|
2186
2187
|
*
|
|
2187
|
-
* A valid
|
|
2188
|
-
*
|
|
2188
|
+
* A valid `low-power-sleep` slice is itself positive evidence that the device
|
|
2189
|
+
* sleeps. A `battery` slice is NOT: a battery sensor reports charge and never
|
|
2190
|
+
* sleeps (#459, Q2). That closes the field failure where "Baby monitor" had a
|
|
2189
2191
|
* sleeping battery slice but a stale persisted feature projection, so the
|
|
2190
2192
|
* snapshot wrapper classified it as mains and a Viewer thumbnail logged in
|
|
2191
2193
|
* to the sleeping camera. The reverse is deliberately not guessed: no
|
|
@@ -2206,12 +2208,12 @@ var SnapshotAddon = class SnapshotAddon extends require_dist.BaseAddon {
|
|
|
2206
2208
|
try {
|
|
2207
2209
|
const raw = await this.ctx.api.deviceState.getCapSlice.query({
|
|
2208
2210
|
deviceId,
|
|
2209
|
-
capName: require_dist.
|
|
2211
|
+
capName: require_dist.lowPowerSleepCapability.name
|
|
2210
2212
|
});
|
|
2211
|
-
const parsed = require_dist.
|
|
2213
|
+
const parsed = require_dist.LowPowerSleepStatusSchema.safeParse(raw);
|
|
2212
2214
|
if (parsed.success) batteryStatus = parsed.data;
|
|
2213
2215
|
} catch (err) {
|
|
2214
|
-
this.ctx.logger.debug("snapshot:
|
|
2216
|
+
this.ctx.logger.debug("snapshot: sleep runtime-state read failed", {
|
|
2215
2217
|
tags: { deviceId },
|
|
2216
2218
|
meta: { error: require_dist.errMsg(err) }
|
|
2217
2219
|
});
|
|
@@ -2542,7 +2544,7 @@ var SnapshotAddon = class SnapshotAddon extends require_dist.BaseAddon {
|
|
|
2542
2544
|
const row = found;
|
|
2543
2545
|
return {
|
|
2544
2546
|
...found.name ? { name: found.name } : {},
|
|
2545
|
-
isBattery:
|
|
2547
|
+
isBattery: require_dist.deviceSleeps(features),
|
|
2546
2548
|
...rawType ? { type: rawType } : {},
|
|
2547
2549
|
disabled: row.disabled === true,
|
|
2548
2550
|
online: row.online !== false
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $o as streamQualityLabel, Bl as nodePin, Fr as deriveBatteryPresence, Gr as deviceSleeps, Nt as LowPowerSleepStatusSchema, Wn as bareAddonId, Wo as snapshotCapability, fa as memoizePinnedFfmpeg, fu as DeviceType, hu as EventCategory, pc as BaseAddon, pu as errMsg, sa as lowPowerSleepCapability } from "../../dist-DiknL6UU.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";
|
|
@@ -1465,11 +1465,11 @@ var SnapshotAddon = class SnapshotAddon extends BaseAddon {
|
|
|
1465
1465
|
const meta = await this.lookupDeviceMeta(deviceId);
|
|
1466
1466
|
const state = await this.resolveSnapshotState(deviceId, meta);
|
|
1467
1467
|
const hit = this.cache.latest(deviceId);
|
|
1468
|
-
const
|
|
1468
|
+
const sleepSlice = await this.ctx.api.deviceState.getCapSlice.query({
|
|
1469
1469
|
deviceId,
|
|
1470
|
-
capName:
|
|
1470
|
+
capName: lowPowerSleepCapability.name
|
|
1471
1471
|
}).catch(() => null);
|
|
1472
|
-
const parsed =
|
|
1472
|
+
const parsed = LowPowerSleepStatusSchema.safeParse(sleepSlice);
|
|
1473
1473
|
return {
|
|
1474
1474
|
battery: parsed.success ? {
|
|
1475
1475
|
sleeping: parsed.data.sleeping,
|
|
@@ -2175,11 +2175,13 @@ var SnapshotAddon = class SnapshotAddon extends BaseAddon {
|
|
|
2175
2175
|
* Resolve the state that must be visible on a snapshot.
|
|
2176
2176
|
*
|
|
2177
2177
|
* Uses the same two canonical sources as wake-on-play:
|
|
2178
|
-
* 1. `deviceManager.getDevice` for the registry's
|
|
2179
|
-
* 2. `deviceState.getCapSlice('
|
|
2178
|
+
* 1. `deviceManager.getDevice` for the registry's `Sleeps` feature;
|
|
2179
|
+
* 2. `deviceState.getCapSlice('low-power-sleep')` for the durable mirror of
|
|
2180
|
+
* the sleep inputs.
|
|
2180
2181
|
*
|
|
2181
|
-
* A valid
|
|
2182
|
-
*
|
|
2182
|
+
* A valid `low-power-sleep` slice is itself positive evidence that the device
|
|
2183
|
+
* sleeps. A `battery` slice is NOT: a battery sensor reports charge and never
|
|
2184
|
+
* sleeps (#459, Q2). That closes the field failure where "Baby monitor" had a
|
|
2183
2185
|
* sleeping battery slice but a stale persisted feature projection, so the
|
|
2184
2186
|
* snapshot wrapper classified it as mains and a Viewer thumbnail logged in
|
|
2185
2187
|
* to the sleeping camera. The reverse is deliberately not guessed: no
|
|
@@ -2200,12 +2202,12 @@ var SnapshotAddon = class SnapshotAddon extends BaseAddon {
|
|
|
2200
2202
|
try {
|
|
2201
2203
|
const raw = await this.ctx.api.deviceState.getCapSlice.query({
|
|
2202
2204
|
deviceId,
|
|
2203
|
-
capName:
|
|
2205
|
+
capName: lowPowerSleepCapability.name
|
|
2204
2206
|
});
|
|
2205
|
-
const parsed =
|
|
2207
|
+
const parsed = LowPowerSleepStatusSchema.safeParse(raw);
|
|
2206
2208
|
if (parsed.success) batteryStatus = parsed.data;
|
|
2207
2209
|
} catch (err) {
|
|
2208
|
-
this.ctx.logger.debug("snapshot:
|
|
2210
|
+
this.ctx.logger.debug("snapshot: sleep runtime-state read failed", {
|
|
2209
2211
|
tags: { deviceId },
|
|
2210
2212
|
meta: { error: errMsg(err) }
|
|
2211
2213
|
});
|
|
@@ -2536,7 +2538,7 @@ var SnapshotAddon = class SnapshotAddon extends BaseAddon {
|
|
|
2536
2538
|
const row = found;
|
|
2537
2539
|
return {
|
|
2538
2540
|
...found.name ? { name: found.name } : {},
|
|
2539
|
-
isBattery: features
|
|
2541
|
+
isBattery: deviceSleeps(features),
|
|
2540
2542
|
...rawType ? { type: rawType } : {},
|
|
2541
2543
|
disabled: row.disabled === true,
|
|
2542
2544
|
online: row.online !== false
|
|
@@ -424,11 +424,13 @@ export declare class SnapshotAddon extends BaseAddon<SnapshotAddonConfig> {
|
|
|
424
424
|
* Resolve the state that must be visible on a snapshot.
|
|
425
425
|
*
|
|
426
426
|
* Uses the same two canonical sources as wake-on-play:
|
|
427
|
-
* 1. `deviceManager.getDevice` for the registry's
|
|
428
|
-
* 2. `deviceState.getCapSlice('
|
|
427
|
+
* 1. `deviceManager.getDevice` for the registry's `Sleeps` feature;
|
|
428
|
+
* 2. `deviceState.getCapSlice('low-power-sleep')` for the durable mirror of
|
|
429
|
+
* the sleep inputs.
|
|
429
430
|
*
|
|
430
|
-
* A valid
|
|
431
|
-
*
|
|
431
|
+
* A valid `low-power-sleep` slice is itself positive evidence that the device
|
|
432
|
+
* sleeps. A `battery` slice is NOT: a battery sensor reports charge and never
|
|
433
|
+
* sleeps (#459, Q2). That closes the field failure where "Baby monitor" had a
|
|
432
434
|
* sleeping battery slice but a stale persisted feature projection, so the
|
|
433
435
|
* snapshot wrapper classified it as mains and a Viewer thumbnail logged in
|
|
434
436
|
* to the sleeping camera. The reverse is deliberately not guessed: no
|
|
@@ -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-CHC8tlB1.js");
|
|
7
7
|
let node_crypto = require("node:crypto");
|
|
8
8
|
let node_fs = require("node:fs");
|
|
9
9
|
node_fs = require_chunk.__toESM(node_fs);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Zo as storageProviderCapability, di as filesystemBrowseCapability, pc as BaseAddon } from "../../dist-DiknL6UU.mjs";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
import * as fs$1 from "node:fs";
|
|
4
4
|
import * as path$1 from "node:path";
|
|
@@ -4,7 +4,7 @@ Object.defineProperties(exports, {
|
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
6
|
const require_builtins_sqlite_storage_filesystem_storage_addon = require("./filesystem-storage.addon.js");
|
|
7
|
-
const require_wal_maintenance = require("../../wal-maintenance-
|
|
7
|
+
const require_wal_maintenance = require("../../wal-maintenance-CmCCUKZO.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-CekT_qH6.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,12 +3,12 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-CHC8tlB1.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-CmCCUKZO.js");
|
|
9
9
|
const require_sqlite_snapshot_protocol = require("../../sqlite-snapshot-protocol-B9OndqZv.js");
|
|
10
10
|
const require_wal_checkpoint_policy = require("../../wal-checkpoint-policy-d2z2qPqx.js");
|
|
11
|
-
const require_legacy_integration_rows_door = require("../../legacy-integration-rows-door-
|
|
11
|
+
const require_legacy_integration_rows_door = require("../../legacy-integration-rows-door-BYJa0xPI.js");
|
|
12
12
|
let zod = require("zod");
|
|
13
13
|
let node_crypto = require("node:crypto");
|
|
14
14
|
let node_fs = require("node:fs");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $a as recordsCapability, Bt as MigrationMetaSchema, F as DATABASE_SNAPSHOT_SUFFIX, Ft as MIGRATION_API_V1_METHODS, Gc as TransactRefusedError, Hl as normalizeSecretOwner, I as DATABASE_SNAPSHOT_TIMEOUT_MS, L as DATA_STORE_DATABASES, Or as dataStoreProviderCapability, P as DATABASE_SNAPSHOT_PARTIAL_SUFFIX, Pc as RUNTIME_DEFAULTS, Rc as RecordKindDeclarationSchema, Tc as NoCallerError, Wn as bareAddonId, dl as customAction, ga as migrationsCapability, hu as EventCategory, ir as catalogueIssues, jc as RECORD_SWEEP_INTERVAL_MS, ka as orderMigrations, kr as databaseSnapshotCapability, ol as collectSecretMarkerRefs, pc as BaseAddon, pl as defineCustomActions, pu as errMsg$1, qc as UnknownRecordKindError, qo as storageAdminCapability, wc as InvalidRecordError, xo as resolveRunnerId, xs as vectorStoreCapability, yc as DeclarationRefusedError } from "../../dist-DiknL6UU.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-CekT_qH6.mjs";
|
|
4
4
|
import { r as isSnapshotWorkerMessage } from "../../sqlite-snapshot-protocol-2QaTouWV.mjs";
|
|
5
5
|
import { a as isWorkerMessage, t as WAL_CHECKPOINT_LARGE_PASS_FRAMES } from "../../wal-checkpoint-policy-BahrTtyD.mjs";
|
|
6
|
-
import { a as patchLegacyIntegrationRows, i as legacyIntegrationAddonId, n as clearLegacyIntegrationRows, o as readLegacyIntegrationRows, r as deleteLegacyIntegrationRowKeys } from "../../legacy-integration-rows-door-
|
|
6
|
+
import { a as patchLegacyIntegrationRows, i as legacyIntegrationAddonId, n as clearLegacyIntegrationRows, o as readLegacyIntegrationRows, r as deleteLegacyIntegrationRowKeys } from "../../legacy-integration-rows-door-1WauJNCy.mjs";
|
|
7
7
|
import { createRequire } from "node:module";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
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-CHC8tlB1.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 { Ei as integrationInstancesCapability, Gl as parseSecretRef, Io as settingsStoreCapability, Jo as storageCapability, Ll as makeSecretMarker, Mc as REDACTED_SECRET, Ml as isSecretClear, Nl as isSecretFieldView, Pl as isSecretMarker, Vi as isLocationEnabled, Vl as normalizeNodeId, Yl as resolveSecretMarkers, Yo as storageMigrationCapability, _a as modeForSwitch, _n as StorageLocationModeSchema, ca as mayReadLocation, dl as customAction, fl as defineAddonMigrations, gi as gbToBytes, gn as StorageCleanupJobSchema, go as resolveLocationMode, hl as defineRecordKinds, hu as EventCategory, il as collectSecretConfigKeys, la as mayWriteToLocation, pc as BaseAddon, pl as defineCustomActions, ql as recordSecretRef, rl as buildSecretRef, rs as switchStateOfMode, ru as toSecretFieldView, sn as STORAGE_LOCATION_MODES, ti as evictionPolicyOfLocation, va as modeMayWrite, vn as StorageLocationTypeSchema, ws as withLocationMode, yn as StorageMigrationJobSchema } from "../../dist-DiknL6UU.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-CHC8tlB1.js");
|
|
7
7
|
const require_safe_buffer$1 = require("../../safe-buffer-D3aoa-7X.js");
|
|
8
8
|
const require_x509_es = require("../../x509.es-WtnRNyYS.js");
|
|
9
|
-
const require_hub_identity = require("../../hub-identity-
|
|
10
|
-
const require_constants$8 = require("../../constants-
|
|
9
|
+
const require_hub_identity = require("../../hub-identity-BM26oLpK.js");
|
|
10
|
+
const require_constants$8 = require("../../constants-CsYMak6g.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 { Vo as shortHostname, dl as customAction, pc as BaseAddon, pl as defineCustomActions, pn as ServerNameSchema, pu as errMsg, wl as hydrateSchema } from "../../dist-DiknL6UU.mjs";
|
|
3
3
|
import { t as require_safe_buffer } from "../../safe-buffer-B1OjL1I9.mjs";
|
|
4
4
|
import { C as backdatedNotBefore, S as withUtcTimeEncoding, a as KeyUsageFlags, c as Pkcs10CertificateRequest, d as SubjectKeyIdentifierExtension, f as X509Certificate$1, l as Pkcs10CertificateRequestGenerator, m as cryptoProvider, n as BasicConstraintsExtension, o as KeyUsagesExtension, p as X509CertificateGenerator, r as ExtendedKeyUsageExtension, s as PemConverter, t as AuthorityKeyIdentifierExtension } from "../../x509.es-BRiJgOvu.mjs";
|
|
5
|
-
import { B as AGENT_HTTPS_NAMES_COLLECTION, G as systemConfigRecordKinds, H as AgentHttpsNames, I as isLocalOnlyHostname, U as getProcessAgentHttpsNames, V as AGENT_HTTPS_NAMES_COLUMNS, W as setProcessAgentHttpsNames, m as isPrivateAddress, r as isAnnouncedHubId } from "../../hub-identity-
|
|
6
|
-
import { a as MESH_CA_KEY_REF, c as MESH_LEAF_NOT_AFTER, i as MESH_CA_FIELD, l as SERVER_AUTH_OID, n as DEFAULT_HUB_TLS_TCP_PORT, o as MESH_CA_SETTINGS_KEY, r as MESH_CA_COMMON_NAME, s as MESH_CA_VALIDITY_DAYS, t as CLIENT_AUTH_OID } from "../../constants-
|
|
5
|
+
import { B as AGENT_HTTPS_NAMES_COLLECTION, G as systemConfigRecordKinds, H as AgentHttpsNames, I as isLocalOnlyHostname, U as getProcessAgentHttpsNames, V as AGENT_HTTPS_NAMES_COLUMNS, W as setProcessAgentHttpsNames, m as isPrivateAddress, r as isAnnouncedHubId } from "../../hub-identity-Dt-mbtkY.mjs";
|
|
6
|
+
import { a as MESH_CA_KEY_REF, c as MESH_LEAF_NOT_AFTER, i as MESH_CA_FIELD, l as SERVER_AUTH_OID, 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-DsQsO8PD.mjs";
|
|
7
7
|
import { t as require_src } from "../../src-hG4grMU4.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
import { X509Certificate, createHash, createPrivateKey, randomBytes, randomInt, sign, timingSafeEqual, verify, webcrypto } from "node:crypto";
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-CHC8tlB1.js");
|
|
7
7
|
const require_formatter = require("../../formatter-xbxeV4GD.js");
|
|
8
8
|
const require_log_file_read_protocol = require("../../log-file-read-protocol-DSV_vQRb.js");
|
|
9
9
|
let node_path = require("node:path");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Va as preconditionOf, fl as defineAddonMigrations, ia as logDestinationCapability, pc as BaseAddon } from "../../dist-DiknL6UU.mjs";
|
|
2
2
|
import { t as formatLogLine } from "../../formatter-DkYZ4LXp.mjs";
|
|
3
3
|
import { a as LogFileIndexStore, i as serveRead, n as isFromReader, t as CancelBook } from "../../log-file-read-protocol-hTaAsYlX.mjs";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_dist = require("./dist-
|
|
1
|
+
const require_dist = require("./dist-CHC8tlB1.js");
|
|
2
2
|
//#region src/builtins/device-history/store/series-registry.ts
|
|
3
3
|
function subjectIdOf(subject) {
|
|
4
4
|
return subject.kind === "device" ? `d:${subject.deviceId}` : `n:${subject.nodeId}`;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Cc as HISTORY_DEFAULT_MIN_INTERVAL_MS, Sl as historyItemFieldPath, fu as DeviceType } from "./dist-DiknL6UU.mjs";
|
|
2
2
|
//#region src/builtins/device-history/store/series-registry.ts
|
|
3
3
|
function subjectIdOf(subject) {
|
|
4
4
|
return subject.kind === "device" ? `d:${subject.deviceId}` : `n:${subject.nodeId}`;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { pu as errMsg, qs as compositionSourceKey } from "./dist-DiknL6UU.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-CHC8tlB1.js").buildSecretRef({
|
|
3
3
|
owner: "system",
|
|
4
4
|
scope: { kind: "global" },
|
|
5
5
|
fieldPath: "meshCaKey"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { K as DEVICE_SAN_CREDENTIAL_PREFIX, q as DEVICE_SAN_USER_PREFIX, rl as buildSecretRef } from "./dist-DiknL6UU.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
|