@camstack/server 1.2.898 → 1.2.900
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 +1944 -1870
- package/dist/core/addon/hub-addon-api.js +1 -0
- package/dist/core/moleculer/moleculer.service.js +1 -0
- package/package.json +10 -15
- package/system/dist/addon-runner.js +111 -8
- package/system/dist/addon-runner.mjs +111 -8
- 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 +4 -4
- package/system/dist/builtins/composer/composer.addon.mjs +4 -4
- 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/composition-api.d.ts +37 -1
- package/system/dist/builtins/core-blocks/core-blocks.addon.d.ts +14 -0
- package/system/dist/builtins/core-blocks/core-blocks.addon.js +516 -7
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +516 -7
- package/system/dist/builtins/core-blocks/link-contributions.d.ts +85 -0
- package/system/dist/builtins/core-blocks/power-source-service.d.ts +25 -1
- 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/command-holds.d.ts +2 -0
- package/system/dist/builtins/device-manager/device-identifiers-action.d.ts +8 -0
- package/system/dist/builtins/device-manager/device-identity-index.d.ts +56 -2
- package/system/dist/builtins/device-manager/device-manager.addon.d.ts +1 -0
- package/system/dist/builtins/device-manager/device-manager.addon.js +1329 -84
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +1316 -84
- package/system/dist/builtins/device-manager/device-meta-types.d.ts +9 -1
- package/system/dist/builtins/device-manager/device-provider-context.d.ts +3 -0
- package/system/dist/builtins/device-manager/device-row-store.d.ts +4 -2
- package/system/dist/builtins/device-manager/device-state-mirror.d.ts +7 -0
- package/system/dist/builtins/device-manager/identity-link-reconciler.d.ts +66 -0
- package/system/dist/builtins/device-manager/identity-links-store.d.ts +22 -0
- package/system/dist/builtins/device-manager/record-kinds.d.ts +2 -1
- 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/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-BWS0KTbm.js → capture-engine-B3csK2sW.js} +1 -1
- package/system/dist/{capture-engine-DBQDaDxJ.mjs → capture-engine-CCAzcezv.mjs} +1 -1
- package/system/dist/{composition-sources-CGUWmf-T.mjs → composition-sources-BX7u-Hdf.mjs} +1 -1
- package/system/dist/{composition-sources-CDOW1dnY.js → composition-sources-Bkbk5Oh5.js} +1 -1
- package/system/dist/{constants-BwrRoq-j.js → constants-BqxCksdV.js} +1 -1
- package/system/dist/{constants-BmrLkwZs.mjs → constants-_bOm_ae5.mjs} +1 -1
- package/system/dist/{device-ca-BGgZXEto.mjs → device-ca-DRqN1P5Y.mjs} +1 -1
- package/system/dist/{device-ca-DiuwWyZY.js → device-ca-KNx_DazP.js} +1 -1
- package/system/dist/{dist-CCd8IeIU.js → dist-BNrIzdrJ.js} +514 -7
- package/system/dist/{dist-D7t8wLTF.mjs → dist-S-zGcCEr.mjs} +455 -8
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-identity-BohJeqdO.mjs → hub-identity-DSdbZxeR.mjs} +1 -1
- package/system/dist/{hub-identity-G_ZdyPpc.js → hub-identity-pN0LtUhx.js} +1 -1
- package/system/dist/{hub-mdns-ciao-CKD4EgkG.js → hub-mdns-ciao-GafEbDm8.js} +2 -2
- package/system/dist/{hub-mdns-ciao-D5RxSMrH.mjs → hub-mdns-ciao-wAcv5VBY.mjs} +2 -2
- package/system/dist/index.js +59 -12
- package/system/dist/index.mjs +55 -14
- 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-observation.d.ts +3 -0
- package/system/dist/kernel/index.d.ts +3 -0
- package/system/dist/kernel/moleculer/child-cap-descriptors.d.ts +3 -1
- package/system/dist/kernel/moleculer/device-cap-proxy.d.ts +2 -1
- package/system/dist/kernel/state-refresh-policies.d.ts +53 -0
- package/system/dist/kernel/transport/child-cap-protocol.d.ts +6 -1
- package/system/dist/kernel/transport/local-child-registry.d.ts +14 -0
- package/system/dist/{legacy-integration-rows-door-Rm9JmIsl.mjs → legacy-integration-rows-door--186Wij_.mjs} +1 -1
- package/system/dist/{legacy-integration-rows-door-BgCl68ek.js → legacy-integration-rows-door-B1swGb0r.js} +1 -1
- package/system/dist/{rename-composition-block-DNO3mNEO.mjs → rename-composition-block-Cf5syiM4.mjs} +1 -1
- package/system/dist/{rename-composition-block-2Z2ED7Og.js → rename-composition-block-gJ_4GdHr.js} +1 -1
- package/system/dist/{restore-archive-2L5TymvF.mjs → restore-archive-D7UwwT1L.mjs} +82 -82
- package/system/dist/{restore-archive-CZkQO8t3.js → restore-archive-DXi9iBay.js} +1 -1
- package/system/dist/{wal-maintenance-YjDJ73Qd.js → wal-maintenance-BA9XNPvt.js} +0 -0
- package/system/dist/{wal-maintenance-BMYe_n18.mjs → wal-maintenance-s3KdED98.mjs} +0 -0
- package/system/package.json +1 -1
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* the decoders that turn an untyped store read into one of them — nothing that
|
|
8
8
|
* touches a store, a device or an event.
|
|
9
9
|
*/
|
|
10
|
-
import type { ChildLayout, DeviceDisplayOverride, DeviceIdentifiers, IconKey, RoleDisplayDefault } from "@camstack/types";
|
|
10
|
+
import type { ChildLayout, DeviceDisplayOverride, DeviceIdentifierKey, DeviceIdentifiers, IconKey, RoleDisplayDefault } from "@camstack/types";
|
|
11
11
|
/**
|
|
12
12
|
* Wire shape matching `z.infer<typeof SettingsSchemaWithValuesSchema>` —
|
|
13
13
|
* duplicated as a plain interface because importing the Zod schema across
|
|
@@ -180,6 +180,14 @@ export interface PersistedDeviceMeta {
|
|
|
180
180
|
* owning provider only. Absent ⇒ none declared. Rides the device row like
|
|
181
181
|
* `display`, so a re-registration never clobbers it. */
|
|
182
182
|
identifiers?: DeviceIdentifiers;
|
|
183
|
+
/** The far end of the device's physical link (D1063), set via
|
|
184
|
+
* `setAttachedIdentifiers` by the owning provider only. Absent ⇒ none. */
|
|
185
|
+
attachedIdentifiers?: DeviceIdentifiers;
|
|
186
|
+
/** The attached keys the provider last declared UNREAD (D1063): their stored
|
|
187
|
+
* value is kept (D49) but was not seen on the latest read — a port with no
|
|
188
|
+
* client now retains its last MAC. A fresh read of another port beats it.
|
|
189
|
+
* Absent ⇒ every attached key was read fresh. */
|
|
190
|
+
attachedRetained?: readonly DeviceIdentifierKey[];
|
|
183
191
|
}
|
|
184
192
|
/**
|
|
185
193
|
* The device-manager's own `addon-settings` row set — everything that is NOT a
|
|
@@ -27,6 +27,7 @@ import type { RemovalFence } from "./removal-fence.js";
|
|
|
27
27
|
import type { SecretConfigPathRegistry } from "./secret-config-paths.js";
|
|
28
28
|
import type { SeedMode } from "./device-state-mirror.js";
|
|
29
29
|
import type { MirrorWriteHold } from "./mirror-row-writer.js";
|
|
30
|
+
import type { IdentityLinkReconciler } from "./identity-link-reconciler.js";
|
|
30
31
|
type IDeviceProviderCap = InferProvider<typeof deviceProviderCapability>;
|
|
31
32
|
/**
|
|
32
33
|
* The addon-instance surface the extracted provider functions need. Exposed by
|
|
@@ -113,6 +114,8 @@ export interface ProviderContext {
|
|
|
113
114
|
readonly removalCleanup: RemovalCleanup;
|
|
114
115
|
/** The tombstone of every deleted device — the reliable record other addons reconcile from (D865). */
|
|
115
116
|
readonly tombstones: DeviceTombstoneStore;
|
|
117
|
+
/** The identity links (D1063): a removed device's links go with it. Absent in specs that never link. */
|
|
118
|
+
readonly identityLinks?: Pick<IdentityLinkReconciler, "removeDevice">;
|
|
116
119
|
/** Tells every `device-removal-hook` implementer a device was deleted (D865). */
|
|
117
120
|
readonly removalHooks: RemovalHookDeps;
|
|
118
121
|
/** The secret config paths each device declared at `registerDevice` (D783). */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ChildLayout, CollectionColumn, CollectionIndex, DeviceDisplayOverride, DeviceIdentifiers, IScopedLogger, MutationFilter, QueryFilter, SettingsRecord, SettingsStoreClient } from "@camstack/types";
|
|
1
|
+
import type { ChildLayout, CollectionColumn, CollectionIndex, DeviceDisplayOverride, DeviceIdentifierKey, DeviceIdentifiers, IScopedLogger, MutationFilter, QueryFilter, SettingsRecord, SettingsStoreClient } from "@camstack/types";
|
|
2
2
|
import type { RetiredRowStore } from "../sqlite-storage/retired-settings-keys.js";
|
|
3
3
|
import type { PersistedDeviceMeta } from "./device-meta-types.js";
|
|
4
4
|
import type { DeviceRowObserver } from "./device-identity-index.js";
|
|
@@ -152,6 +152,8 @@ export interface DeviceRowPatch {
|
|
|
152
152
|
readonly role?: string | null;
|
|
153
153
|
readonly display?: DeviceDisplayOverride | null;
|
|
154
154
|
readonly identifiers?: DeviceIdentifiers | null;
|
|
155
|
+
readonly attachedIdentifiers?: DeviceIdentifiers | null;
|
|
156
|
+
readonly attachedRetained?: readonly DeviceIdentifierKey[] | null;
|
|
155
157
|
readonly metadata?: Record<string, unknown> | null;
|
|
156
158
|
}
|
|
157
159
|
/**
|
|
@@ -165,7 +167,7 @@ export interface DeviceRowPatch {
|
|
|
165
167
|
* required here, and the type is what keeps it that way.
|
|
166
168
|
*
|
|
167
169
|
* Columns NOT listed — `integrationId`, `linkDeviceId`, `primaryChildEntityId`,
|
|
168
|
-
* `childLayout`, `primaryChildPreference`, `role`, `display`, `identifiers`, `metadata` — are not in the statement at
|
|
170
|
+
* `childLayout`, `primaryChildPreference`, `role`, `display`, `identifiers`, `attachedIdentifiers`, `metadata` — are not in the statement at
|
|
169
171
|
* all, so re-registering preserves them. The blob shape had to re-state each
|
|
170
172
|
* one to avoid clobbering it, and every field added since has been one more
|
|
171
173
|
* spread somebody had to remember.
|
|
@@ -33,6 +33,8 @@ export type ClaimsIndexView = {
|
|
|
33
33
|
export type SeedMode = "fill" | "replace";
|
|
34
34
|
/** Told of a native slice that changed: the slice before (if any) and the one stored now. */
|
|
35
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;
|
|
36
38
|
export declare class DeviceStateMirror {
|
|
37
39
|
private readonly ctx;
|
|
38
40
|
/**
|
|
@@ -42,6 +44,7 @@ export declare class DeviceStateMirror {
|
|
|
42
44
|
*/
|
|
43
45
|
private readonly policyFor;
|
|
44
46
|
private transitionTap;
|
|
47
|
+
private reportTap;
|
|
45
48
|
/**
|
|
46
49
|
* Hub-side mirror of every device's cap-keyed NATIVE runtime state — what the
|
|
47
50
|
* provider wrote. Key: deviceId. Value: per-cap slice map. Empty by default —
|
|
@@ -77,6 +80,8 @@ export declare class DeviceStateMirror {
|
|
|
77
80
|
constructor(ctx: AddonContext, policyFor?: RuntimeStatePolicyLookup, schemaFor?: RuntimeStateSchemaLookup);
|
|
78
81
|
/** Set once by the device-manager: told, after the mirror stored it, of every native slice that actually changed (D1022). */
|
|
79
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;
|
|
80
85
|
/**
|
|
81
86
|
* Hold what a command leads to: the effective slice shows it at once (and
|
|
82
87
|
* `DeviceStateChanged` carries it), the stored, persisted and recorded slice
|
|
@@ -85,6 +90,8 @@ export declare class DeviceStateMirror {
|
|
|
85
90
|
holdCommand(request: ArmRequest): number | null;
|
|
86
91
|
/** End a command's hold: refused (rolled back at once) or unconfirmed (at the limit). */
|
|
87
92
|
releaseCommand(token: number, reason: HoldRelease): void;
|
|
93
|
+
/** Whether any command hold on the device is still unconfirmed (D1062). */
|
|
94
|
+
isHoldingDevice(deviceId: number): boolean;
|
|
88
95
|
/** Stop the hold timers (shutdown). */
|
|
89
96
|
disposeHolds(): void;
|
|
90
97
|
/** The native slice the mirror holds for `capName`, as a read-only view. */
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Turns the identity index's link candidates into `identity-links` records
|
|
3
|
+
* (D1063), and serves the operator's decisions on them.
|
|
4
|
+
*
|
|
5
|
+
* | Situation | Result |
|
|
6
|
+
* | ------------------------------------------- | ---------------------------------------------- |
|
|
7
|
+
* | `auto` candidate, no row | `linked` / `auto`, `identity-link.created` |
|
|
8
|
+
* | `proposal` candidate, no row | `proposed`, no event |
|
|
9
|
+
* | `proposed` row, candidate now `auto` | `linked` / `auto`, created |
|
|
10
|
+
* | `dismissed` row | stays dismissed: nothing re-proposes it |
|
|
11
|
+
* | `linked`/`auto` row, evidence gone | row deleted, `identity-link.lost` evidence-gone |
|
|
12
|
+
* | `linked`/`operator` row, evidence gone | kept, flagged `evidenceGone`, `lost` evidence-gone |
|
|
13
|
+
* | `linked`/`operator` flagged, evidence back | flag cleared, `identity-link.created` |
|
|
14
|
+
* | `proposed` row, evidence gone | row deleted, no event (it never linked) |
|
|
15
|
+
*
|
|
16
|
+
* "Evidence gone" is judged from the PERSISTED identifiers, which already keep
|
|
17
|
+
* an unread value (D49): a camera rebooting, a port that read no client this
|
|
18
|
+
* poll, change nothing. A flagged operator link never acts: `power-source`
|
|
19
|
+
* refuses through it and core-blocks withdraws its contribution, so a fresh link
|
|
20
|
+
* on another port can contribute. It waits for the operator (Unlink) or for its
|
|
21
|
+
* evidence to return. A link whose side has no row right now is left alone —
|
|
22
|
+
* a removed device is the `identity-links` removal step's, never a guess here.
|
|
23
|
+
*
|
|
24
|
+
* Runs after the seed and on every identity change the index reports,
|
|
25
|
+
* coalesced: a pass already queued absorbs the next request. No timer. Every
|
|
26
|
+
* write — a pass, an operator decision, a removal — runs on one chain.
|
|
27
|
+
*/
|
|
28
|
+
import { EventCategory, type IdentityLink, type IdentityLinkDecision, type IdentityLinkEventPayload, type IdentityLinkLostReason, type IdentityLinksRead, type IScopedLogger } from "@camstack/types";
|
|
29
|
+
import type { IdentityLinkCandidates } from "./device-identity-index.js";
|
|
30
|
+
import type { IdentityLinksStore } from "./identity-links-store.js";
|
|
31
|
+
export interface IdentityLinkReconcilerDeps {
|
|
32
|
+
readonly candidates: () => IdentityLinkCandidates;
|
|
33
|
+
readonly store: IdentityLinksStore;
|
|
34
|
+
readonly emit: (category: EventCategory.IdentityLinkCreated | EventCategory.IdentityLinkLost, payload: IdentityLinkEventPayload) => void;
|
|
35
|
+
readonly logger: IScopedLogger;
|
|
36
|
+
readonly now?: () => number;
|
|
37
|
+
}
|
|
38
|
+
export declare function payloadOf(link: IdentityLink, reason?: IdentityLinkLostReason): IdentityLinkEventPayload;
|
|
39
|
+
export declare class IdentityLinkReconciler {
|
|
40
|
+
private readonly deps;
|
|
41
|
+
private tail;
|
|
42
|
+
private passQueued;
|
|
43
|
+
private readonly now;
|
|
44
|
+
constructor(deps: IdentityLinkReconcilerDeps);
|
|
45
|
+
/** Queue one pass; a pass already queued (not started) absorbs this request. */
|
|
46
|
+
requestPass(): void;
|
|
47
|
+
/** Resolves when every queued write has run (tests, boot). */
|
|
48
|
+
settled(): Promise<void>;
|
|
49
|
+
list(deviceId?: number): IdentityLinksRead;
|
|
50
|
+
confirm(linkId: string): Promise<IdentityLinkDecision>;
|
|
51
|
+
dismiss(linkId: string): Promise<IdentityLinkDecision>;
|
|
52
|
+
unlink(linkId: string): Promise<IdentityLinkDecision>;
|
|
53
|
+
/** The `identity-links` removal step (D864): every link naming the device goes. */
|
|
54
|
+
removeDevice(deviceId: number): Promise<number>;
|
|
55
|
+
/** One pass over every candidate and every stored link. */
|
|
56
|
+
pass(): Promise<void>;
|
|
57
|
+
private applyCandidate;
|
|
58
|
+
private applyEvidenceGone;
|
|
59
|
+
private dismissed;
|
|
60
|
+
private decide;
|
|
61
|
+
/** One line per side, so each camera's log carries it (`tags.deviceId`). */
|
|
62
|
+
private log;
|
|
63
|
+
private warn;
|
|
64
|
+
private lines;
|
|
65
|
+
private serialized;
|
|
66
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `identity-links` record kind (D1063), held in memory once read.
|
|
3
|
+
*
|
|
4
|
+
* Links are few (a pair per matched device), so the store reads them all once
|
|
5
|
+
* and keeps the working copy here; every write goes to the record first and
|
|
6
|
+
* lands in the map only when it succeeded. Until {@link load} has answered, it
|
|
7
|
+
* says so — `not-loaded` is never an empty list (D315).
|
|
8
|
+
*/
|
|
9
|
+
import type { IdentityLink, IdentityLinkBody, RecordKindHandle, RecordsAccess } from "@camstack/types";
|
|
10
|
+
export declare class IdentityLinksStore {
|
|
11
|
+
private readonly kind;
|
|
12
|
+
private links;
|
|
13
|
+
constructor(kind: RecordKindHandle<IdentityLinkBody>);
|
|
14
|
+
static of(records: Pick<RecordsAccess, "kind">): IdentityLinksStore;
|
|
15
|
+
load(): Promise<void>;
|
|
16
|
+
isLoaded(): boolean;
|
|
17
|
+
/** Every link; `null` until loaded. */
|
|
18
|
+
list(): readonly IdentityLink[] | null;
|
|
19
|
+
get(id: string): IdentityLink | null;
|
|
20
|
+
put(link: IdentityLink): Promise<void>;
|
|
21
|
+
delete(id: string): Promise<void>;
|
|
22
|
+
}
|
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
* Record kinds owned by device-manager (records plan phase 4).
|
|
3
3
|
*/
|
|
4
4
|
import { z } from "zod";
|
|
5
|
-
import { DeviceTombstoneSchema, type DefinedRecordKind, type DiscoveryProposalBody } from "@camstack/types";
|
|
5
|
+
import { DeviceTombstoneSchema, type DefinedRecordKind, type DiscoveryProposalBody, type IdentityLinkBody } from "@camstack/types";
|
|
6
6
|
/** Body excludes `deviceId` — the record id is `String(deviceId)`. */
|
|
7
7
|
export type DeviceTombstoneBody = Omit<z.infer<typeof DeviceTombstoneSchema>, "deviceId">;
|
|
8
8
|
export declare const DeviceTombstoneBodySchema: z.ZodType<DeviceTombstoneBody>;
|
|
9
9
|
export type DeviceManagerRecordKindsMap = {
|
|
10
10
|
readonly tombstones: DefinedRecordKind<z.ZodType<DeviceTombstoneBody>>;
|
|
11
11
|
readonly "discovery-proposals": DefinedRecordKind<z.ZodType<DiscoveryProposalBody>>;
|
|
12
|
+
readonly "identity-links": DefinedRecordKind<z.ZodType<IdentityLinkBody>>;
|
|
12
13
|
};
|
|
13
14
|
export declare const deviceManagerRecordKinds: DeviceManagerRecordKindsMap;
|
|
14
15
|
/** Narrow kind for `records.kind()`. */
|
|
@@ -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-BNrIzdrJ.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 { Tc as BaseAddon, pa as logDestinationCapability } from "../../dist-S-zGcCEr.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-BNrIzdrJ.js");
|
|
7
|
+
const require_device_ca = require("../../device-ca-KNx_DazP.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-B1swGb0r.js");
|
|
10
|
+
const require_constants = require("../../constants-BqxCksdV.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 {
|
|
2
|
-
import { d as JWT_SIGNING_KEY_REF, n as DEVICE_CA_KEY_REF, p as SYSTEM_SECRET_OWNER } from "../../device-ca-
|
|
1
|
+
import { Dl as defineRecordKinds, Du as EventCategory, Ft as KeychainResetRecordSchema, Ml as formatSecretScope, Nt as KEYCHAIN_RESET_TRIGGER_ACTOR, Pt as KeychainAuditEntrySchema, Tc as BaseAddon, eu as normalizeSecretOwner, na as keychainAdminCapability, ra as keychainCapability, ru as parseSecretRef } from "../../dist-S-zGcCEr.mjs";
|
|
2
|
+
import { d as JWT_SIGNING_KEY_REF, n as DEVICE_CA_KEY_REF, p as SYSTEM_SECRET_OWNER } from "../../device-ca-DRqN1P5Y.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--186Wij_.mjs";
|
|
5
|
+
import { a as MESH_CA_KEY_REF } from "../../constants-_bOm_ae5.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-BNrIzdrJ.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 { Du as EventCategory, Sl as createEvent, Tc as BaseAddon, Tu as errMsg, an as RECORDING_SOURCE_CAMSTACK_ADDON, cn as RecordingStatusSchema, va as mayWriteToLocation } from "../../dist-S-zGcCEr.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-BNrIzdrJ.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-KNx_DazP.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 { An as TokenScopeSchema, Dl as defineRecordKinds, Es as userManagementCapability, Gi as isCredentialTokenPayload, H as DEVICE_ENROLLMENT_TTL_MS, Jn as authProviderCapability, K as DEVICE_NONCE_TTL_MS, Kl as isSecretMarker, Mn as UserRecordSchema, O as CREDENTIAL_TOKEN_AUDIENCE, P as CredentialTokenClaimsSchema, Tc as BaseAddon, Wr as deviceCredentialsCapability, Yl as makeSecretMarker, Yt as PREFERENCES_MAX_VALUE_BYTES, _u as userError, er as buildDeviceEnrollmentLink, nn as PreferenceNamespaceSchema, rn as PreferenceValueSchema, tn as PreferenceDeviceIdSchema, tr as buildDeviceSignatureMessage, vn as ScopedTokenSchema, xi as formatDeviceRevoker, xn as SsoBridgeClaimsSchema } from "../../dist-S-zGcCEr.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-DRqN1P5Y.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-BNrIzdrJ.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-pN0LtUhx.js");
|
|
6
|
+
const require_hub_mdns_ciao = require("../../hub-mdns-ciao-GafEbDm8.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 { $o as shortHostname, Do as resolveHubAddressRoles, Du as EventCategory, Et as HUB_MDNS_TXT_KEYS, Ga as pickAppLinkHub, Ki as isDefaultAppConnectionEndpoint, Kt as NetworkTunnelStartedDataSchema, Os as validateCustomAddress, Tc as BaseAddon, Tt as HUB_MDNS_SERVICE_TYPE, Tu as errMsg, Vi as isAppLinkBase, Za as preconditionOf, b as CAMSTACK_APP_LINK_ORIGIN, fr as checkRoleAddress, jo as resolveNotificationTapAddress, la as localNetworkCapability, wl as defineAddonMigrations, xo as resolveAppConnections } from "../../dist-S-zGcCEr.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-DSdbZxeR.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-wAcv5VBY.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-BNrIzdrJ.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 { El as defineEntryKind, Fi as integrationInstancesCapability, Gl as isSecretFieldView, Kl as isSecretMarker, Qi as isSameAddonId, Tc as BaseAddon, Vl as isInstanceEnabled, Xn as bareAddonId, Yc as RecordIntegrationInstances, Za as preconditionOf, el as RevConflictError, pa as logDestinationCapability, wl as defineAddonMigrations } from "../../dist-S-zGcCEr.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-BNrIzdrJ.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 { Du as EventCategory, Sl as createEvent, So as resolveBucketMs, Ta as metricsProviderCapability, Tc as BaseAddon, Tu as errMsg, bi as foldSnapshotByFunction, jn as UNATTRIBUTED_BUCKET_KEY, sn as ROOT_BUCKET_KEY, uo as reducePoints } from "../../dist-S-zGcCEr.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-BNrIzdrJ.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 { Ba as parseAcceleratorFactsJson, Du as EventCategory, Tc as BaseAddon, Tu as errMsg, Wo as scoreRuntimes, kl as emitReadiness, ni as enumerateInferenceDevices, qa as platformProbeCapability } from "../../dist-S-zGcCEr.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-BNrIzdrJ.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 { Ic as InvalidRecordError, Tc as BaseAddon, al as UnknownRecordKindError, co as recordEntriesCapability, fu as secretViewsOf } from "../../dist-S-zGcCEr.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-BNrIzdrJ.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 { Du as EventCategory, Tc as BaseAddon } from "../../dist-S-zGcCEr.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-BNrIzdrJ.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 { Du as EventCategory, Lt as LowPowerSleepStatusSchema, Ql as nodePin, Tc as BaseAddon, Tu as errMsg, Vr as deriveBatteryPresence, Xn as bareAddonId, Zr as deviceSleeps, ds as streamQualityLabel, ga as lowPowerSleepCapability, ns as snapshotCapability, wu as DeviceType, xa as memoizePinnedFfmpeg } from "../../dist-S-zGcCEr.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-BNrIzdrJ.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 { Tc as BaseAddon, ls as storageProviderCapability, vi as filesystemBrowseCapability } from "../../dist-S-zGcCEr.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-BA9XNPvt.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-s3KdED98.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 {
|