@camstack/server 1.2.897 → 1.2.899
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/cap-router-runtime.js +1 -0
- package/dist/api/trpc/generated-cap-mounts.js +2 -1
- package/dist/api/trpc/generated-cap-routers.js +1894 -1870
- package/dist/core/addon/hub-addon-api.js +1 -0
- package/dist/core/moleculer/moleculer.service.js +1 -0
- package/package.json +11 -10
- package/system/dist/addon-runner.js +207 -13
- package/system/dist/addon-runner.mjs +207 -13
- 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 +14 -11
- package/system/dist/builtins/composer/composer.addon.mjs +11 -8
- 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 +170 -14
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +169 -13
- package/system/dist/builtins/core-blocks/migrations/automation-confirmed-view.d.ts +23 -0
- package/system/dist/builtins/core-blocks/migrations/index.d.ts +1 -0
- package/system/dist/builtins/core-blocks/migrations/pump-cycle-split.d.ts +1 -0
- package/system/dist/builtins/device-history/device-history.addon.js +10 -9
- package/system/dist/builtins/device-history/device-history.addon.mjs +10 -9
- package/system/dist/builtins/device-manager/command-holds-wiring.d.ts +22 -0
- package/system/dist/builtins/device-manager/command-holds.d.ts +77 -0
- package/system/dist/builtins/device-manager/device-manager.addon.d.ts +3 -0
- package/system/dist/builtins/device-manager/device-manager.addon.js +1078 -41
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +1062 -42
- package/system/dist/builtins/device-manager/device-state-mirror.d.ts +42 -9
- package/system/dist/builtins/device-manager/state-refresh-scheduler.d.ts +92 -0
- package/system/dist/builtins/device-manager/state-refresh-wiring.d.ts +23 -0
- 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/shared/device-state-changed.d.ts +8 -0
- 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 +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 +284 -284
- 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-Bjgs__i9.mjs → capture-engine-BcD6iCZM.mjs} +37 -2
- package/system/dist/{capture-engine-D1rjl2dW.js → capture-engine-LHKTf-nM.js} +48 -1
- package/system/dist/{composition-sources-B727nlA0.mjs → composition-sources-C3ARJk2g.mjs} +2 -21
- package/system/dist/{composition-sources-CF2-u58e.js → composition-sources-DNUDbuXy.js} +1 -32
- package/system/dist/{constants-DaR1SUh7.js → constants-dL8fl9aI.js} +1 -1
- package/system/dist/{constants-BF309c_I.mjs → constants-er38mZOb.mjs} +1 -1
- package/system/dist/{device-ca-DT1hYtdW.mjs → device-ca-Ccz5olgH.mjs} +1 -1
- package/system/dist/{device-ca-BqcX5_f2.js → device-ca-KWa6uJRU.js} +1 -1
- package/system/dist/{dist-DorY_sjS.mjs → dist-DBanWvHF.mjs} +819 -54
- package/system/dist/{dist-BoEy9sm9.js → dist-DEAjZE_-.js} +848 -53
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-identity-CZ0nE3GK.mjs → hub-identity-CVv79TVO.mjs} +1 -1
- package/system/dist/{hub-identity-DH1rxUMD.js → hub-identity-Dy8ZSUuq.js} +1 -1
- package/system/dist/{hub-mdns-ciao-N0nL34fx.js → hub-mdns-ciao-C_XjO7YI.js} +2 -2
- package/system/dist/{hub-mdns-ciao-7HK57Vtx.mjs → hub-mdns-ciao-DtmIyWDL.mjs} +2 -2
- package/system/dist/index.js +96 -17
- package/system/dist/index.mjs +92 -19
- package/system/dist/kernel/cap-router-builder.d.ts +7 -0
- package/system/dist/kernel/command-follow-up.d.ts +33 -0
- package/system/dist/kernel/command-hold-overrides.d.ts +42 -0
- package/system/dist/kernel/command-observation.d.ts +3 -0
- package/system/dist/kernel/index.d.ts +3 -0
- package/system/dist/kernel/moleculer/child-cap-descriptors.d.ts +5 -0
- package/system/dist/kernel/moleculer/device-cap-proxy.d.ts +3 -1
- package/system/dist/kernel/state-refresh-policies.d.ts +53 -0
- package/system/dist/kernel/transport/child-cap-protocol.d.ts +11 -1
- package/system/dist/kernel/transport/local-child-registry.d.ts +14 -0
- package/system/dist/{legacy-integration-rows-door-CdAQlIvv.mjs → legacy-integration-rows-door-BL8T4lya.mjs} +1 -1
- package/system/dist/{legacy-integration-rows-door-BTfeULYt.js → legacy-integration-rows-door-DPInWtE6.js} +1 -1
- package/system/dist/{rename-composition-block-B1x-yK5U.js → rename-composition-block-BxzETYOf.js} +1 -1
- package/system/dist/{rename-composition-block-CIQjxBUa.mjs → rename-composition-block-Dgo-9-Ts.mjs} +1 -1
- package/system/dist/{restore-archive-Bj_gYmE9.mjs → restore-archive-BUtuNTe1.mjs} +82 -82
- package/system/dist/{restore-archive-B086o8pL.js → restore-archive-Zvx9sHZP.js} +1 -1
- package/system/dist/{wal-maintenance-MVIyxmu7.js → wal-maintenance-DS2IKwtK.js} +0 -0
- package/system/dist/{wal-maintenance-Dgfmi-Ao.mjs → wal-maintenance-cASt_sYy.mjs} +0 -0
- package/system/package.json +1 -1
|
@@ -3,8 +3,16 @@ import type { DeviceManagerSettings } from "./device-meta-store.js";
|
|
|
3
3
|
import { type RuntimeStateSchemaLookup } from "./device-state-claim-views.js";
|
|
4
4
|
import { type MergedSlice, type OwnedCap, type OwnedCaps } from "./field-ownership.js";
|
|
5
5
|
import { type MirrorWriteHold } from "./mirror-row-writer.js";
|
|
6
|
+
import { type ArmRequest, type HoldRelease } from "./command-holds.js";
|
|
6
7
|
import { type RuntimeStatePolicyLookup } from "./runtime-state-persist-gate.js";
|
|
7
8
|
/**
|
|
9
|
+
* Which slice a read wants (D1061): `effective` is what a UI or an exporter
|
|
10
|
+
* shows — a held command's value over the device's; `confirmed` is what the
|
|
11
|
+
* device reported (or a claim's merge), the only view history, automations and
|
|
12
|
+
* transition records read.
|
|
13
|
+
*/
|
|
14
|
+
export type SliceView = "effective" | "confirmed";
|
|
15
|
+
/**
|
|
8
16
|
* What the seed consults first: the claims index (Task 6). It is written
|
|
9
17
|
* BEFORE the row, so a loaded index is a superset of the rows' claims and a
|
|
10
18
|
* device it does not name has nothing to merge — no row read (D447).
|
|
@@ -25,6 +33,8 @@ export type ClaimsIndexView = {
|
|
|
25
33
|
export type SeedMode = "fill" | "replace";
|
|
26
34
|
/** Told of a native slice that changed: the slice before (if any) and the one stored now. */
|
|
27
35
|
export type SliceChangeTap = (deviceId: number, capName: string, prior: Readonly<Record<string, unknown>> | undefined, slice: Readonly<Record<string, unknown>>) => void;
|
|
36
|
+
/** Told of every native slice a provider reported, changed or not (D1062 push health). */
|
|
37
|
+
export type SliceReportTap = (deviceId: number, capName: string) => void;
|
|
28
38
|
export declare class DeviceStateMirror {
|
|
29
39
|
private readonly ctx;
|
|
30
40
|
/**
|
|
@@ -34,6 +44,7 @@ export declare class DeviceStateMirror {
|
|
|
34
44
|
*/
|
|
35
45
|
private readonly policyFor;
|
|
36
46
|
private transitionTap;
|
|
47
|
+
private reportTap;
|
|
37
48
|
/**
|
|
38
49
|
* Hub-side mirror of every device's cap-keyed NATIVE runtime state — what the
|
|
39
50
|
* provider wrote. Key: deviceId. Value: per-cap slice map. Empty by default —
|
|
@@ -42,6 +53,8 @@ export declare class DeviceStateMirror {
|
|
|
42
53
|
private readonly stateMirror;
|
|
43
54
|
/** The claims and the merged view of every claimed cap (D663). */
|
|
44
55
|
private readonly claims;
|
|
56
|
+
/** Commanded values shown before the device confirms them (D1061). Memory only. */
|
|
57
|
+
private readonly holds;
|
|
45
58
|
/**
|
|
46
59
|
* Devices whose CLAIMS are known: the row was read, or a loaded claims index
|
|
47
60
|
* vouched that it names none (D447). This is a READ-path fact — what a
|
|
@@ -67,6 +80,20 @@ export declare class DeviceStateMirror {
|
|
|
67
80
|
constructor(ctx: AddonContext, policyFor?: RuntimeStatePolicyLookup, schemaFor?: RuntimeStateSchemaLookup);
|
|
68
81
|
/** Set once by the device-manager: told, after the mirror stored it, of every native slice that actually changed (D1022). */
|
|
69
82
|
setTransitionTap(tap: SliceChangeTap | null): void;
|
|
83
|
+
/** Set once by the device-manager: told of every native slice reported, before the no-change check (D1062). */
|
|
84
|
+
setReportTap(tap: SliceReportTap | null): void;
|
|
85
|
+
/**
|
|
86
|
+
* Hold what a command leads to: the effective slice shows it at once (and
|
|
87
|
+
* `DeviceStateChanged` carries it), the stored, persisted and recorded slice
|
|
88
|
+
* does not change. Returns the token {@link releaseCommand} takes, or `null`.
|
|
89
|
+
*/
|
|
90
|
+
holdCommand(request: ArmRequest): number | null;
|
|
91
|
+
/** End a command's hold: refused (rolled back at once) or unconfirmed (at the limit). */
|
|
92
|
+
releaseCommand(token: number, reason: HoldRelease): void;
|
|
93
|
+
/** Whether any command hold on the device is still unconfirmed (D1062). */
|
|
94
|
+
isHoldingDevice(deviceId: number): boolean;
|
|
95
|
+
/** Stop the hold timers (shutdown). */
|
|
96
|
+
disposeHolds(): void;
|
|
70
97
|
/** The native slice the mirror holds for `capName`, as a read-only view. */
|
|
71
98
|
currentSlice(deviceId: number, capName: string): Readonly<Record<string, unknown>> | undefined;
|
|
72
99
|
/**
|
|
@@ -255,18 +282,22 @@ export declare class DeviceStateMirror {
|
|
|
255
282
|
* `true` — a brief transient window, same as `resolveDeviceOnline`.
|
|
256
283
|
*/
|
|
257
284
|
resolveDeviceProbed(deviceId: number): boolean;
|
|
258
|
-
/** The
|
|
259
|
-
*
|
|
260
|
-
|
|
261
|
-
|
|
285
|
+
/** The slices of a device: native for an unclaimed cap, the merge for a
|
|
286
|
+
* claimed one (a held cap is not reported) — and, in the `effective` view,
|
|
287
|
+
* a commanded value over either (D1061). */
|
|
288
|
+
snapshotForDevice(deviceId: number, view?: SliceView): Record<string, Record<string, unknown>>;
|
|
289
|
+
/** One cap's slice in `view`, cloned. Null when the device has never written
|
|
262
290
|
* it — callers read that as "the cap has no state", never as an empty slice —
|
|
263
291
|
* and null while a claim holds it. */
|
|
264
|
-
capSlice(deviceId: number, cap: string): Record<string, unknown> | null;
|
|
292
|
+
capSlice(deviceId: number, cap: string, view?: SliceView): Record<string, unknown> | null;
|
|
293
|
+
/** What the device reported for the cap, or the claim's merge — never a hold. Not cloned. */
|
|
294
|
+
private baseSlice;
|
|
295
|
+
private viewOf;
|
|
265
296
|
/** The device's NATIVE slices — what the row stores under the cap names. */
|
|
266
297
|
private nativeSnapshotForDevice;
|
|
267
298
|
/** Whole-system mirror dump. Backs `deviceState.getAllSnapshots` — one
|
|
268
299
|
* round-trip for a warm boot instead of N per-device calls. */
|
|
269
|
-
allSnapshots(): Record<string, Record<string, Record<string, unknown>>>;
|
|
300
|
+
allSnapshots(view?: SliceView): Record<string, Record<string, Record<string, unknown>>>;
|
|
270
301
|
/**
|
|
271
302
|
* The `workload` cap's events (#585): judged from the PUBLIC slice like the
|
|
272
303
|
* running flip, so a provider only writes its state. The first state seen is
|
|
@@ -276,9 +307,11 @@ export declare class DeviceStateMirror {
|
|
|
276
307
|
/** Remember a restored running bit so the first public merge does not emit a flip. */
|
|
277
308
|
private seedRunningFlip;
|
|
278
309
|
/**
|
|
279
|
-
* The PUBLIC event:
|
|
280
|
-
*
|
|
281
|
-
* `
|
|
310
|
+
* The PUBLIC event: `{ deviceId, capName, slice }` for every device, claimed
|
|
311
|
+
* or not; `slice` is the EFFECTIVE slice. While a command hold changes it
|
|
312
|
+
* (D1061), `confirmed` carries the slice without the hold — what history,
|
|
313
|
+
* automations and the edge detectors below read. The native shadow of a
|
|
314
|
+
* claim never rides here (D224) — see `emitNativeShadow`.
|
|
282
315
|
*/
|
|
283
316
|
private emitStateChanged;
|
|
284
317
|
/**
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The state-refresh scheduler (D1062, amending D224): the core decides WHEN a
|
|
3
|
+
* migrated provider re-reads a device; the provider only knows HOW.
|
|
4
|
+
*
|
|
5
|
+
* The policy each provider declared on its `device-state-refresh`
|
|
6
|
+
* registration (`StateRefreshPolicyRegistry`) drives it. Devices are grouped
|
|
7
|
+
* per integration instance (`addonId::integrationId`):
|
|
8
|
+
*
|
|
9
|
+
* - cadence: `effectiveRefreshIntervalMs` — the declared minimum, slowed (never
|
|
10
|
+
* sped up) by the integration's own setting, no idle back-off;
|
|
11
|
+
* `push: 'full'` is never scheduled. A batching integration (`batch: true`)
|
|
12
|
+
* has ONE schedule for the group — one due time, one read of every device
|
|
13
|
+
* per interval; a device that registers later joins the group's next tick.
|
|
14
|
+
* A non-batching integration keeps one schedule per device;
|
|
15
|
+
* - command (`onCommand`, awaited by the D1022 seams): a polled device is read
|
|
16
|
+
* at once and the command returns after it, then read again at ~3 s and
|
|
17
|
+
* ~10 s while a D1061 hold on it is still pending; a push device waits
|
|
18
|
+
* `PUSH_CONFIRM_WINDOW_MS` for the confirming push and reads once if none
|
|
19
|
+
* came. These reads are per device and never move a batched group's schedule;
|
|
20
|
+
* - push health: silence past `heartbeatMs` reads the integration, asks it to
|
|
21
|
+
* resubscribe and reads again; a new `connectionEpoch` reads everything.
|
|
22
|
+
*
|
|
23
|
+
* Reads of one device are serialized: each starts after the previous one on
|
|
24
|
+
* that device ended. A scheduled tick that finds its last read still running
|
|
25
|
+
* is skipped (debug line); a command waits for the read in flight at most
|
|
26
|
+
* `COMMAND_WAIT_BOUND_MS`, then reads its own device (debug line). A refresh
|
|
27
|
+
* failure is a warn line per device and never fails a command.
|
|
28
|
+
*/
|
|
29
|
+
import { type IScopedLogger, type StateRefreshReason } from "@camstack/types";
|
|
30
|
+
import type { CommandCallOutcome, CommandFollowUpTarget } from "../../kernel/command-follow-up.js";
|
|
31
|
+
import type { StateRefreshPolicyEntry } from "../../kernel/state-refresh-policies.js";
|
|
32
|
+
/** The registry surface the scheduler reads. */
|
|
33
|
+
export interface StateRefreshPolicySource {
|
|
34
|
+
entries(): readonly StateRefreshPolicyEntry[];
|
|
35
|
+
get(deviceId: number): StateRefreshPolicyEntry | undefined;
|
|
36
|
+
subscribe(listener: () => void): () => void;
|
|
37
|
+
}
|
|
38
|
+
export interface StateRefreshSchedulerDeps {
|
|
39
|
+
readonly policies: StateRefreshPolicySource;
|
|
40
|
+
readonly logger: IScopedLogger;
|
|
41
|
+
/** Whether a D1061 command hold on the device is still unconfirmed. */
|
|
42
|
+
readonly holdsPending: (deviceId: number) => boolean;
|
|
43
|
+
/** Ask the provider to re-read `deviceIds`, routed through `routeDeviceId`. */
|
|
44
|
+
readonly refresh: (routeDeviceId: number, deviceIds: readonly number[], reason: StateRefreshReason) => Promise<void>;
|
|
45
|
+
/** Ask the provider to re-establish its push subscription. */
|
|
46
|
+
readonly resubscribe: (routeDeviceId: number) => Promise<void>;
|
|
47
|
+
}
|
|
48
|
+
/** The longest a command waits for a read already in flight on its device. */
|
|
49
|
+
export declare const COMMAND_WAIT_BOUND_MS = 5e3;
|
|
50
|
+
export declare class StateRefreshScheduler {
|
|
51
|
+
private readonly deps;
|
|
52
|
+
private readonly devices;
|
|
53
|
+
private readonly groups;
|
|
54
|
+
private readonly unsubscribe;
|
|
55
|
+
private disposed;
|
|
56
|
+
constructor(deps: StateRefreshSchedulerDeps);
|
|
57
|
+
/** The command follow-up (awaited by the D1022 seams; never throws). */
|
|
58
|
+
readonly onCommand: (target: CommandFollowUpTarget, outcome: CommandCallOutcome) => Promise<void>;
|
|
59
|
+
/** A state report reached the mirror for `deviceId` (push or read). */
|
|
60
|
+
onReport(deviceId: number): void;
|
|
61
|
+
dispose(): void;
|
|
62
|
+
private reconcile;
|
|
63
|
+
/** Track the group's connection epoch; `true` when it moved past a known one. */
|
|
64
|
+
private noteEpoch;
|
|
65
|
+
private rebuildGroups;
|
|
66
|
+
private groupPolicy;
|
|
67
|
+
private armSchedule;
|
|
68
|
+
private tick;
|
|
69
|
+
/** One read of the whole group per interval, unless the last one still runs. */
|
|
70
|
+
private tickBatched;
|
|
71
|
+
private tickPerDevice;
|
|
72
|
+
private logSkippedTick;
|
|
73
|
+
/** A scheduled read, remembered on each device until it settles. */
|
|
74
|
+
private runScheduled;
|
|
75
|
+
private armBurst;
|
|
76
|
+
private armPushWindow;
|
|
77
|
+
private cancelFollowUps;
|
|
78
|
+
private armHeartbeat;
|
|
79
|
+
private onSilence;
|
|
80
|
+
private refreshGroup;
|
|
81
|
+
/** One call for a batching integration, else one per device. */
|
|
82
|
+
private refreshDevices;
|
|
83
|
+
/**
|
|
84
|
+
* Read `deviceIds` once every read already queued on them ended — or, with
|
|
85
|
+
* `waitBoundMs`, once that long passed (a debug line per device that was
|
|
86
|
+
* still busy). The read becomes the devices' new tail.
|
|
87
|
+
*/
|
|
88
|
+
private runRefresh;
|
|
89
|
+
/** Resolves when every `prior` read ended, or after `waitBoundMs` (logged per busy device). */
|
|
90
|
+
private afterPrior;
|
|
91
|
+
private clearGroupTimers;
|
|
92
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Starts the state-refresh scheduler (D1062) in the hub's device-manager.
|
|
3
|
+
*
|
|
4
|
+
* The scheduler reads the providers' declared policies from the process-wide
|
|
5
|
+
* registry, is told of every report by the mirror's report tap (push health,
|
|
6
|
+
* push confirmation), asks the mirror whether a command hold is still pending
|
|
7
|
+
* (the burst stops when none is), and is installed as the command follow-up
|
|
8
|
+
* the D1022 seams await. The calls reach the provider's process through the
|
|
9
|
+
* `device-state-refresh` cap.
|
|
10
|
+
*/
|
|
11
|
+
import type { IScopedLogger, StateRefreshReason } from "@camstack/types";
|
|
12
|
+
import type { DeviceStateMirror } from "./device-state-mirror.js";
|
|
13
|
+
import { type StateRefreshPolicySource } from "./state-refresh-scheduler.js";
|
|
14
|
+
export interface StateRefreshWiringDeps {
|
|
15
|
+
readonly mirror: DeviceStateMirror;
|
|
16
|
+
readonly logger: IScopedLogger;
|
|
17
|
+
readonly refresh: (deviceId: number, deviceIds: readonly number[], reason: StateRefreshReason) => Promise<void>;
|
|
18
|
+
readonly resubscribe: (deviceId: number) => Promise<void>;
|
|
19
|
+
/** Defaults to the process-wide registry. */
|
|
20
|
+
readonly policies?: StateRefreshPolicySource;
|
|
21
|
+
}
|
|
22
|
+
/** Start the scheduler; returns the stop. */
|
|
23
|
+
export declare function startStateRefresh(deps: StateRefreshWiringDeps): () => void;
|
|
@@ -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-DEAjZE_-.js");
|
|
7
7
|
const require_formatter = require("../../formatter-xbxeV4GD.js");
|
|
8
8
|
//#region src/builtins/hub-forwarder/hub-forwarder-destination.ts
|
|
9
9
|
var DEFAULT_OUTBOUND_BUFFER_SIZE = 500;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ca as logDestinationCapability, vc as BaseAddon } from "../../dist-DBanWvHF.mjs";
|
|
2
2
|
import { t as formatLogLine } from "../../formatter-DkYZ4LXp.mjs";
|
|
3
3
|
//#region src/builtins/hub-forwarder/hub-forwarder-destination.ts
|
|
4
4
|
var DEFAULT_OUTBOUND_BUFFER_SIZE = 500;
|
|
@@ -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-
|
|
7
|
-
const require_device_ca = require("../../device-ca-
|
|
6
|
+
const require_dist = require("../../dist-DEAjZE_-.js");
|
|
7
|
+
const require_device_ca = require("../../device-ca-KWa6uJRU.js");
|
|
8
8
|
const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
|
|
9
|
-
const require_legacy_integration_rows_door = require("../../legacy-integration-rows-door-
|
|
10
|
-
const require_constants = require("../../constants-
|
|
9
|
+
const require_legacy_integration_rows_door = require("../../legacy-integration-rows-door-DPInWtE6.js");
|
|
10
|
+
const require_constants = require("../../constants-dL8fl9aI.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");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { At as
|
|
2
|
-
import { d as JWT_SIGNING_KEY_REF, n as DEVICE_CA_KEY_REF, p as SYSTEM_SECRET_OWNER } from "../../device-ca-
|
|
1
|
+
import { At as KEYCHAIN_RESET_TRIGGER_ACTOR, Mt as KeychainResetRecordSchema, Qi as keychainCapability, Tl as formatSecretScope, Xl as parseSecretRef, Zi as keychainAdminCapability, bl as defineRecordKinds, bu as EventCategory, jt as KeychainAuditEntrySchema, ql as normalizeSecretOwner, vc as BaseAddon } from "../../dist-DBanWvHF.mjs";
|
|
2
|
+
import { d as JWT_SIGNING_KEY_REF, n as DEVICE_CA_KEY_REF, p as SYSTEM_SECRET_OWNER } from "../../device-ca-Ccz5olgH.mjs";
|
|
3
3
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
4
|
-
import { t as LEGACY_INTEGRATION_ROWS_TABLE } from "../../legacy-integration-rows-door-
|
|
5
|
-
import { a as MESH_CA_KEY_REF } from "../../constants-
|
|
4
|
+
import { t as LEGACY_INTEGRATION_ROWS_TABLE } from "../../legacy-integration-rows-door-BL8T4lya.mjs";
|
|
5
|
+
import { a as MESH_CA_KEY_REF } from "../../constants-er38mZOb.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";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_dist = require("../../dist-
|
|
3
|
+
const require_dist = require("../../dist-DEAjZE_-.js");
|
|
4
4
|
let node_fs = require("node:fs");
|
|
5
5
|
let node_path = require("node:path");
|
|
6
6
|
node_path = require_chunk.__toESM(node_path);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { an as RecordingStatusSchema, bu as EventCategory, hl as createEvent, nn as RECORDING_SOURCE_CAMSTACK_ADDON, pa as mayWriteToLocation, vc as BaseAddon, vu as errMsg } from "../../dist-DBanWvHF.mjs";
|
|
2
2
|
import { constants } from "node:fs";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import * as fsp from "node:fs/promises";
|
|
@@ -3,10 +3,10 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-DEAjZE_-.js");
|
|
7
7
|
const require_safe_buffer$1 = require("../../safe-buffer-D3aoa-7X.js");
|
|
8
8
|
const require_ms$1 = require("../../ms-LB3giGoU.js");
|
|
9
|
-
const require_device_ca = require("../../device-ca-
|
|
9
|
+
const require_device_ca = require("../../device-ca-KWa6uJRU.js");
|
|
10
10
|
const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
|
|
11
11
|
let zod = require("zod");
|
|
12
12
|
let node_crypto = require("node:crypto");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { i as __require, o as __toESM, t as __commonJSMin } from "../../chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { $t as PreferenceNamespaceSchema, Bi as isCredentialTokenPayload, Dn as TokenScopeSchema, Gn as authProviderCapability, H as DEVICE_ENROLLMENT_TTL_MS, Hl as makeSecretMarker, K as DEVICE_NONCE_TTL_MS, Kt as PREFERENCES_MAX_VALUE_BYTES, O as CREDENTIAL_TOKEN_AUDIENCE, P as CredentialTokenClaimsSchema, Qn as buildDeviceSignatureMessage, Qt as PreferenceDeviceIdSchema, Vr as deviceCredentialsCapability, Zn as buildDeviceEnrollmentLink, bl as defineRecordKinds, en as PreferenceValueSchema, hn as ScopedTokenSchema, kn as UserRecordSchema, uu as userError, vc as BaseAddon, vi as formatDeviceRevoker, vn as SsoBridgeClaimsSchema, ys as userManagementCapability, zl as isSecretMarker } from "../../dist-DBanWvHF.mjs";
|
|
3
3
|
import { t as require_safe_buffer } from "../../safe-buffer-B1OjL1I9.mjs";
|
|
4
4
|
import { t as require_ms } from "../../ms-CgH2OFlD.mjs";
|
|
5
|
-
import { _ as setProcessJwtSigningKey, a as importDevicePublicKey, c as rebuildDeviceCaCertificate, d as JWT_SIGNING_KEY_REF, g as processJwtSigningKey, h as loadJwtSigningKey, i as generateDeviceCa, l as verifyDeviceLeaf, m as getProcessJwtSigningKeyState, n as DEVICE_CA_KEY_REF, o as issueDeviceLeaf, r as DEVICE_CA_SETTINGS_SECTION, s as loadDeviceCa, t as DEVICE_CA_FIELD, u as verifyDeviceSignature } from "../../device-ca-
|
|
5
|
+
import { _ as setProcessJwtSigningKey, a as importDevicePublicKey, c as rebuildDeviceCaCertificate, d as JWT_SIGNING_KEY_REF, g as processJwtSigningKey, h as loadJwtSigningKey, i as generateDeviceCa, l as verifyDeviceLeaf, m as getProcessJwtSigningKeyState, n as DEVICE_CA_KEY_REF, o as issueDeviceLeaf, r as DEVICE_CA_SETTINGS_SECTION, s as loadDeviceCa, t as DEVICE_CA_FIELD, u as verifyDeviceSignature } from "../../device-ca-Ccz5olgH.mjs";
|
|
6
6
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
import * as crypto$1 from "node:crypto";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_dist = require("../../dist-
|
|
3
|
+
const require_dist = require("../../dist-DEAjZE_-.js");
|
|
4
4
|
const require_dns_wire = require("../../dns-wire-B1BvF9Ao.js");
|
|
5
|
-
const require_hub_identity = require("../../hub-identity-
|
|
6
|
-
const require_hub_mdns_ciao = require("../../hub-mdns-ciao-
|
|
5
|
+
const require_hub_identity = require("../../hub-identity-Dy8ZSUuq.js");
|
|
6
|
+
const require_hub_mdns_ciao = require("../../hub-mdns-ciao-C_XjO7YI.js");
|
|
7
7
|
let zod = require("zod");
|
|
8
8
|
let node_net = require("node:net");
|
|
9
9
|
let node_fs = require("node:fs");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ga as preconditionOf, Ii as isAppLinkBase, Ko as shortHostname, Tt as HUB_MDNS_TXT_KEYS, Ut as NetworkTunnelStartedDataSchema, Vi as isDefaultAppConnectionEndpoint, _l as defineAddonMigrations, b as CAMSTACK_APP_LINK_ORIGIN, bo as resolveHubAddressRoles, bu as EventCategory, ia as localNetworkCapability, lr as checkRoleAddress, mo as resolveAppConnections, vc as BaseAddon, vu as errMsg, wo as resolveNotificationTapAddress, wt as HUB_MDNS_SERVICE_TYPE, xs as validateCustomAddress, za as pickAppLinkHub } from "../../dist-DBanWvHF.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 { i as loadOrCreateHubId, r as isAnnouncedHubId } from "../../hub-identity-
|
|
4
|
-
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 { i as loadOrCreateHubId, r as isAnnouncedHubId } from "../../hub-identity-CVv79TVO.mjs";
|
|
4
|
+
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-DtmIyWDL.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
import { isIP } from "node:net";
|
|
7
7
|
import { readFileSync } from "node:fs";
|
|
@@ -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-DEAjZE_-.js");
|
|
7
7
|
const require_log_read_filter = require("../../log-read-filter-Bi066jwU.js");
|
|
8
8
|
let zod = require("zod");
|
|
9
9
|
//#region src/builtins/loki-logging/loki-payload.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ai as integrationInstancesCapability, Ga as preconditionOf, Hc as RecordIntegrationInstances, Pl as isInstanceEnabled, Rl as isSecretFieldView, _l as defineAddonMigrations, ca as logDestinationCapability, qc as RevConflictError, qi as isSameAddonId, qn as bareAddonId, vc as BaseAddon, yl as defineEntryKind, zl as isSecretMarker } from "../../dist-DBanWvHF.mjs";
|
|
2
2
|
import { n as compileLogFilter, o as lineMatches } from "../../log-read-filter-D7Ev3zm-.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region src/builtins/loki-logging/loki-payload.ts
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-DEAjZE_-.js");
|
|
7
7
|
let node_fs = require("node:fs");
|
|
8
8
|
node_fs = require_chunk.__toESM(node_fs);
|
|
9
9
|
let node_fs_promises = require("node:fs/promises");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { On as UNATTRIBUTED_BUCKET_KEY, _i as foldSnapshotByFunction, bu as EventCategory, hl as createEvent, ho as resolveBucketMs, in as ROOT_BUCKET_KEY, io as reducePoints, vc as BaseAddon, vu as errMsg, ya as metricsProviderCapability } from "../../dist-DBanWvHF.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-DEAjZE_-.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 { $r as enumerateInferenceDevices, Lo as scoreRuntimes, Pa as parseAcceleratorFactsJson, Sl as emitReadiness, Va as platformProbeCapability, bu as EventCategory, vc as BaseAddon, vu as errMsg } from "../../dist-DBanWvHF.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-DEAjZE_-.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 { Qc as UnknownRecordKindError, au as secretViewsOf, kc as InvalidRecordError, no as recordEntriesCapability, vc as BaseAddon } from "../../dist-DBanWvHF.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-DEAjZE_-.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 { bu as EventCategory, vc as BaseAddon } from "../../dist-DBanWvHF.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/builtins/remote-access-orchestrator/enabled-providers-reconcile.ts
|
|
4
4
|
/**
|
|
@@ -14,3 +14,11 @@ export interface DeviceStateChangedData {
|
|
|
14
14
|
/** Structural narrowing helper for untrusted bus payloads. */
|
|
15
15
|
export declare function isRecord(value: unknown): value is Readonly<Record<string, unknown>>;
|
|
16
16
|
export declare function parseDeviceStateChanged(data: unknown): DeviceStateChangedData | null;
|
|
17
|
+
/**
|
|
18
|
+
* The same payload with `slice` set to what the DEVICE reported (D1061). While a
|
|
19
|
+
* command hold changes the slice the event carries the effective one in `slice`
|
|
20
|
+
* and the reported one in `confirmed`; history, automations and every
|
|
21
|
+
* decision read this view, so a value the device never confirmed is never
|
|
22
|
+
* recorded or acted on.
|
|
23
|
+
*/
|
|
24
|
+
export declare function parseConfirmedStateChanged(data: unknown): DeviceStateChangedData | null;
|
|
@@ -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-DEAjZE_-.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 { Gl as nodePin, Jr as deviceSleeps, Pt as LowPowerSleepStatusSchema, Rr as deriveBatteryPresence, Yo as snapshotCapability, _u as DeviceType, bu as EventCategory, da as lowPowerSleepCapability, ga as memoizePinnedFfmpeg, is as streamQualityLabel, qn as bareAddonId, vc as BaseAddon, vu as errMsg } from "../../dist-DBanWvHF.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-DEAjZE_-.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 { hi as filesystemBrowseCapability, ns as storageProviderCapability, vc as BaseAddon } from "../../dist-DBanWvHF.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-DS2IKwtK.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-cASt_sYy.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-DEAjZE_-.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-DS2IKwtK.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-DPInWtE6.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 { Ac as NoCallerError, Eo as resolveRunnerId, Es as vectorStoreCapability, F as DATABASE_SNAPSHOT_PARTIAL_SUFFIX, I as DATABASE_SNAPSHOT_SUFFIX, Ic as RECORD_SWEEP_INTERVAL_MS, It as MIGRATION_API_V1_METHODS, L as DATABASE_SNAPSHOT_TIMEOUT_MS, Mr as databaseSnapshotCapability, Na as orderMigrations, Qc as UnknownRecordKindError, Qo as storageAdminCapability, R as DATA_STORE_DATABASES, Uc as RecordKindDeclarationSchema, Vt as MigrationMetaSchema, Xc as TransactRefusedError, ba as migrationsCapability, bu as EventCategory, dl as collectSecretMarkerRefs, gl as customAction, jr as dataStoreProviderCapability, kc as InvalidRecordError, ql as normalizeSecretOwner, qn as bareAddonId, ro as recordsCapability, sr as catalogueIssues, vc as BaseAddon, vl as defineCustomActions, vu as errMsg$1, wc as DeclarationRefusedError, zc as RUNTIME_DEFAULTS } from "../../dist-DBanWvHF.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-cASt_sYy.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-BL8T4lya.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-DEAjZE_-.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 storageCapability, Ai as integrationInstancesCapability, Gi as isLocationEnabled, Hl as makeSecretMarker, Kl as normalizeNodeId, Lc as REDACTED_SECRET, Ll as isSecretClear, Ql as recordSecretRef, Rl as isSecretFieldView, Sa as modeMayWrite, Sn as StorageMigrationJobSchema, Vo as settingsStoreCapability, Xl as parseSecretRef, _l as defineAddonMigrations, ai as evictionPolicyOfLocation, bi as gbToBytes, bl as defineRecordKinds, bn as StorageLocationModeSchema, bu as EventCategory, cl as buildSecretRef, cs as switchStateOfMode, cu as toSecretFieldView, es as storageMigrationCapability, eu as resolveSecretMarkers, fa as mayReadLocation, gl as customAction, ks as withLocationMode, ll as collectSecretConfigKeys, pa as mayWriteToLocation, un as STORAGE_LOCATION_MODES, vc as BaseAddon, vl as defineCustomActions, xa as modeForSwitch, xn as StorageLocationTypeSchema, xo as resolveLocationMode, yn as StorageCleanupJobSchema, zl as isSecretMarker } from "../../dist-DBanWvHF.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-DEAjZE_-.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-Dy8ZSUuq.js");
|
|
10
|
+
const require_constants$8 = require("../../constants-dL8fl9aI.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");
|