@camstack/system 1.2.62 → 1.2.64
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/dist/addon-runner.js +1 -1
- package/dist/addon-runner.mjs +1 -1
- package/dist/addon-utils.js +1 -1
- package/dist/addon-utils.mjs +1 -1
- package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
- package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
- package/dist/builtins/alerts/alerts.addon.js +1 -1
- package/dist/builtins/alerts/alerts.addon.mjs +1 -1
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +3 -3
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
- package/dist/builtins/console-logging/index.js +1 -1
- package/dist/builtins/console-logging/index.mjs +1 -1
- package/dist/builtins/core-blocks/block-package.d.ts +9 -27
- package/dist/builtins/core-blocks/block-supervisor.d.ts +15 -0
- package/dist/builtins/core-blocks/core-blocks.addon.js +91 -24
- package/dist/builtins/core-blocks/core-blocks.addon.mjs +91 -25
- package/dist/builtins/device-manager/device-bindings-store.d.ts +28 -5
- package/dist/builtins/device-manager/device-linked-devices.d.ts +2 -2
- package/dist/builtins/device-manager/device-manager.addon.d.ts +3 -45
- package/dist/builtins/device-manager/device-manager.addon.js +123 -884
- package/dist/builtins/device-manager/device-manager.addon.mjs +123 -884
- package/dist/builtins/device-manager/device-meta-actions.d.ts +0 -8
- package/dist/builtins/device-manager/device-meta-store.d.ts +1 -28
- package/dist/builtins/device-manager/device-meta-types.d.ts +2 -6
- package/dist/builtins/device-manager/device-projection.d.ts +1 -2
- package/dist/builtins/device-manager/device-provider-context.d.ts +2 -13
- package/dist/builtins/device-manager/device-queries.d.ts +1 -1
- package/dist/builtins/device-manager/device-state-mirror.d.ts +8 -49
- package/dist/builtins/device-manager/device-sync-resolvers.d.ts +0 -11
- package/dist/builtins/doorbell/virtual-doorbell.addon.js +1 -1
- package/dist/builtins/doorbell/virtual-doorbell.addon.mjs +1 -1
- package/dist/builtins/hub-forwarder/index.js +1 -1
- package/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/dist/builtins/local-auth/homeassistant-integration.d.ts +7 -0
- package/dist/builtins/local-auth/index.d.ts +1 -0
- package/dist/builtins/local-auth/index.js +1 -0
- package/dist/builtins/local-auth/index.mjs +2 -2
- package/dist/builtins/local-auth/local-auth.addon.js +561 -497
- package/dist/builtins/local-auth/local-auth.addon.mjs +580 -517
- package/dist/builtins/local-auth/oauth-grants.d.ts +11 -0
- package/dist/builtins/local-auth/oauth-session-manager.d.ts +1 -1
- package/dist/builtins/local-network/local-network.addon.js +1 -1
- package/dist/builtins/local-network/local-network.addon.mjs +1 -1
- package/dist/builtins/loki-logging/index.js +1 -1
- package/dist/builtins/loki-logging/index.mjs +1 -1
- package/dist/builtins/native-metrics/native-metrics.addon.js +2 -2
- package/dist/builtins/native-metrics/native-metrics.addon.mjs +2 -2
- package/dist/builtins/platform-probe/index.js +2 -2
- package/dist/builtins/platform-probe/index.mjs +2 -2
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/dist/builtins/snapshot/index.js +319 -20
- package/dist/builtins/snapshot/index.mjs +319 -20
- package/dist/builtins/snapshot/snapshot-keep-warm.d.ts +86 -0
- package/dist/builtins/snapshot/snapshot-media-handler.d.ts +48 -1
- package/dist/builtins/snapshot/snapshot.addon.d.ts +65 -1
- package/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
- package/dist/builtins/sqlite-storage/retired-settings-keys.d.ts +15 -0
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.js +73 -7
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +73 -7
- package/dist/builtins/sqlite-storage/vector-index-vec.d.ts +19 -0
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
- package/dist/builtins/system-config/system-config.addon.js +1 -1
- package/dist/builtins/system-config/system-config.addon.mjs +1 -1
- package/dist/builtins/winston-logging/index.js +1 -1
- package/dist/builtins/winston-logging/index.mjs +1 -1
- package/dist/{dist-DnKpFaP1.mjs → dist-CMb7aKS0.mjs} +1227 -1330
- package/dist/{dist-DgPUarcs.js → dist-DP3nHlNM.js} +1251 -1366
- package/dist/http/asset-compression.d.ts +93 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +64 -9
- package/dist/index.mjs +65 -11
- package/dist/kernel/heap-watch.d.ts +55 -0
- package/dist/kernel/moleculer/device-cap-proxy.d.ts +2 -2
- package/dist/{manifest-python-deps-d4acYXVV.js → manifest-python-deps-BE6l8Y4W.js} +21 -15
- package/dist/{manifest-python-deps-CX5tGRqf.mjs → manifest-python-deps-Dz1ryHIN.mjs} +21 -15
- package/dist/{model-download-service-D8B-4ktF.mjs → model-download-service-CTBHzORJ.mjs} +220 -2
- package/dist/{model-download-service-Cpc6SWzV.js → model-download-service-Caj1kaSi.js} +220 -2
- package/package.json +5 -1
- package/dist/builtins/device-manager/device-link-cycle.d.ts +0 -18
- package/dist/builtins/device-manager/device-link-overlay.d.ts +0 -33
- package/dist/builtins/device-manager/device-link-resolver.d.ts +0 -44
- package/dist/main-CVLq8IzA.js +0 -2356
- package/dist/main-CzH19GkU.mjs +0 -2353
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { DeviceBindingEntry, BaseAddon, ProviderRegistration } from '@camstack/types';
|
|
2
2
|
import { mergeAggregates } from './device-aggregation-merge.js';
|
|
3
|
-
import { DependentLink, ResolvedTargetLink } from './device-link-overlay.js';
|
|
4
3
|
import { ContributionShape } from './device-meta-types.js';
|
|
5
4
|
export { mergeAggregates };
|
|
6
5
|
export declare class DeviceManagerAddon extends BaseAddon {
|
|
@@ -49,53 +48,14 @@ export declare class DeviceManagerAddon extends BaseAddon {
|
|
|
49
48
|
* the D3 re-handshake after device restore is the reliable replacement.
|
|
50
49
|
*/
|
|
51
50
|
private remoteNativeCaps;
|
|
52
|
-
/** Device ids that currently have at least one `deviceLinks` entry. O(1) gate
|
|
53
|
-
* consulted by `resolveLinkedStatus` so the cap-mount overlay is a no-op for
|
|
54
|
-
* the vast majority of devices that have no links. Rebuilt on restore. */
|
|
55
|
-
private readonly devicesWithLinks;
|
|
56
|
-
/** Whether a device currently has cross-device links. */
|
|
57
|
-
devicesWithLinksHas(deviceId: number): boolean;
|
|
58
|
-
/** `${targetDeviceId}:${targetCap}` → resolved links feeding that cap's slice. */
|
|
59
|
-
private linkTargets;
|
|
60
|
-
/** `${sourceDeviceId}:${sourceCap}` → targets to recompute when that source changes. */
|
|
61
|
-
private linkDependents;
|
|
62
|
-
/** Expected source `stableId`s (`${container}-${sourceKey}` for sibling
|
|
63
|
-
* sources, the full `sourceStableId` for global sources) across all links,
|
|
64
|
-
* resolved or not — gates the `registerDevice` rebuild so only a registering
|
|
65
|
-
* device that IS a link source triggers a reindex (not every boot restore). */
|
|
66
|
-
private expectedSourceStableIds;
|
|
67
|
-
/** In-flight `${deviceId}:${cap}` pairs of `resolveLinkedStatus` — the P2e
|
|
68
|
-
* defensive re-entrancy guard bounding link cycles at resolve time. Mutated
|
|
69
|
-
* in place (never reassigned), so the host exposes a direct reference. */
|
|
70
|
-
private readonly linkResolveInFlight;
|
|
71
|
-
/** Test/diagnostic accessors. */
|
|
72
|
-
linkTargetKeys(): string[];
|
|
73
|
-
linkDependentsKeys(): string[];
|
|
74
|
-
/** Replace the cross-device link reverse-index maps in one atomic swap.
|
|
75
|
-
* Sole writer of `linkTargets` / `linkDependents` / `expectedSourceStableIds`;
|
|
76
|
-
* called by `DeviceMetaStore.rebuildLinkDependents` via the `LinkIndexHost`. */
|
|
77
|
-
setLinkIndexes(targets: Map<string, ResolvedTargetLink[]>, dependents: Map<string, DependentLink[]>, expectedSourceStableIds: Set<string>): void;
|
|
78
|
-
/** Build the `LinkIndexHost` the meta store mutates — exposes this addon's
|
|
79
|
-
* `devicesWithLinks` gate (read) + `setLinkIndexes` (write) without leaking
|
|
80
|
-
* the private maps. */
|
|
81
|
-
private get linkIndexHost();
|
|
82
51
|
/** The runtime-state mirror, asserted present (constructed in onInitialize). */
|
|
83
52
|
private get stateMirror();
|
|
84
|
-
/** Build the `LinkOverlayHost` the state mirror reads when overlaying linked
|
|
85
|
-
* values — exposes the link reverse-index maps + registry via LIVE thunks
|
|
86
|
-
* (the maps are reassigned on every `rebuildLinkDependents`). Arrow thunks
|
|
87
|
-
* capture `this` lexically so the getters never go stale. */
|
|
88
|
-
private get linkOverlayHost();
|
|
89
53
|
/** Build the `ProviderHost` the extracted provider-method modules
|
|
90
54
|
* (`device-meta-actions`, `device-queries`) reach — exposes the addon's
|
|
91
55
|
* private state/methods they need without leaking the class internals.
|
|
92
56
|
*
|
|
93
|
-
* `
|
|
94
|
-
*
|
|
95
|
-
* reference would go stale. `devicesWithLinks` / `remoteNativeCaps` are
|
|
96
|
-
* mutated in place (never reassigned) so a direct reference preserves the
|
|
97
|
-
* original live semantics. The overlay-emit guard now lives in the state
|
|
98
|
-
* mirror — pruning is routed through `dropDeviceOverlays`. */
|
|
57
|
+
* `remoteNativeCaps` is mutated in place (never reassigned) so a direct
|
|
58
|
+
* reference preserves the live semantics. */
|
|
99
59
|
private get providerHost();
|
|
100
60
|
/** Wait for a device-provider by addonId, returning null on timeout. */
|
|
101
61
|
private waitDeviceProvider;
|
|
@@ -109,9 +69,7 @@ export declare class DeviceManagerAddon extends BaseAddon {
|
|
|
109
69
|
private discoveryProviderLabel;
|
|
110
70
|
/** Provider ids that report `supportsDiscovery() === true` (probed in parallel). */
|
|
111
71
|
private listDiscoveryCapableProviderIds;
|
|
112
|
-
/** Build the dependency context the extracted binding resolvers consume.
|
|
113
|
-
* `devicesWithLinks` is mutated in place (never reassigned) so the direct
|
|
114
|
-
* reference stays live — it gates the virtual `linked` binding step. */
|
|
72
|
+
/** Build the dependency context the extracted binding resolvers consume. */
|
|
115
73
|
private get bindingsDeps();
|
|
116
74
|
getBindings(input: {
|
|
117
75
|
deviceId: number;
|