@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.
Files changed (90) hide show
  1. package/dist/addon-runner.js +1 -1
  2. package/dist/addon-runner.mjs +1 -1
  3. package/dist/addon-utils.js +1 -1
  4. package/dist/addon-utils.mjs +1 -1
  5. package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
  6. package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
  7. package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
  8. package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
  9. package/dist/builtins/alerts/alerts.addon.js +1 -1
  10. package/dist/builtins/alerts/alerts.addon.mjs +1 -1
  11. package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +3 -3
  12. package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
  13. package/dist/builtins/console-logging/index.js +1 -1
  14. package/dist/builtins/console-logging/index.mjs +1 -1
  15. package/dist/builtins/core-blocks/block-package.d.ts +9 -27
  16. package/dist/builtins/core-blocks/block-supervisor.d.ts +15 -0
  17. package/dist/builtins/core-blocks/core-blocks.addon.js +91 -24
  18. package/dist/builtins/core-blocks/core-blocks.addon.mjs +91 -25
  19. package/dist/builtins/device-manager/device-bindings-store.d.ts +28 -5
  20. package/dist/builtins/device-manager/device-linked-devices.d.ts +2 -2
  21. package/dist/builtins/device-manager/device-manager.addon.d.ts +3 -45
  22. package/dist/builtins/device-manager/device-manager.addon.js +123 -884
  23. package/dist/builtins/device-manager/device-manager.addon.mjs +123 -884
  24. package/dist/builtins/device-manager/device-meta-actions.d.ts +0 -8
  25. package/dist/builtins/device-manager/device-meta-store.d.ts +1 -28
  26. package/dist/builtins/device-manager/device-meta-types.d.ts +2 -6
  27. package/dist/builtins/device-manager/device-projection.d.ts +1 -2
  28. package/dist/builtins/device-manager/device-provider-context.d.ts +2 -13
  29. package/dist/builtins/device-manager/device-queries.d.ts +1 -1
  30. package/dist/builtins/device-manager/device-state-mirror.d.ts +8 -49
  31. package/dist/builtins/device-manager/device-sync-resolvers.d.ts +0 -11
  32. package/dist/builtins/doorbell/virtual-doorbell.addon.js +1 -1
  33. package/dist/builtins/doorbell/virtual-doorbell.addon.mjs +1 -1
  34. package/dist/builtins/hub-forwarder/index.js +1 -1
  35. package/dist/builtins/hub-forwarder/index.mjs +1 -1
  36. package/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
  37. package/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
  38. package/dist/builtins/local-auth/homeassistant-integration.d.ts +7 -0
  39. package/dist/builtins/local-auth/index.d.ts +1 -0
  40. package/dist/builtins/local-auth/index.js +1 -0
  41. package/dist/builtins/local-auth/index.mjs +2 -2
  42. package/dist/builtins/local-auth/local-auth.addon.js +561 -497
  43. package/dist/builtins/local-auth/local-auth.addon.mjs +580 -517
  44. package/dist/builtins/local-auth/oauth-grants.d.ts +11 -0
  45. package/dist/builtins/local-auth/oauth-session-manager.d.ts +1 -1
  46. package/dist/builtins/local-network/local-network.addon.js +1 -1
  47. package/dist/builtins/local-network/local-network.addon.mjs +1 -1
  48. package/dist/builtins/loki-logging/index.js +1 -1
  49. package/dist/builtins/loki-logging/index.mjs +1 -1
  50. package/dist/builtins/native-metrics/native-metrics.addon.js +2 -2
  51. package/dist/builtins/native-metrics/native-metrics.addon.mjs +2 -2
  52. package/dist/builtins/platform-probe/index.js +2 -2
  53. package/dist/builtins/platform-probe/index.mjs +2 -2
  54. package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
  55. package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
  56. package/dist/builtins/snapshot/index.js +319 -20
  57. package/dist/builtins/snapshot/index.mjs +319 -20
  58. package/dist/builtins/snapshot/snapshot-keep-warm.d.ts +86 -0
  59. package/dist/builtins/snapshot/snapshot-media-handler.d.ts +48 -1
  60. package/dist/builtins/snapshot/snapshot.addon.d.ts +65 -1
  61. package/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
  62. package/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
  63. package/dist/builtins/sqlite-storage/retired-settings-keys.d.ts +15 -0
  64. package/dist/builtins/sqlite-storage/sqlite-settings.addon.js +73 -7
  65. package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +73 -7
  66. package/dist/builtins/sqlite-storage/vector-index-vec.d.ts +19 -0
  67. package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
  68. package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
  69. package/dist/builtins/system-config/system-config.addon.js +1 -1
  70. package/dist/builtins/system-config/system-config.addon.mjs +1 -1
  71. package/dist/builtins/winston-logging/index.js +1 -1
  72. package/dist/builtins/winston-logging/index.mjs +1 -1
  73. package/dist/{dist-DnKpFaP1.mjs → dist-CMb7aKS0.mjs} +1227 -1330
  74. package/dist/{dist-DgPUarcs.js → dist-DP3nHlNM.js} +1251 -1366
  75. package/dist/http/asset-compression.d.ts +93 -0
  76. package/dist/index.d.ts +1 -1
  77. package/dist/index.js +64 -9
  78. package/dist/index.mjs +65 -11
  79. package/dist/kernel/heap-watch.d.ts +55 -0
  80. package/dist/kernel/moleculer/device-cap-proxy.d.ts +2 -2
  81. package/dist/{manifest-python-deps-d4acYXVV.js → manifest-python-deps-BE6l8Y4W.js} +21 -15
  82. package/dist/{manifest-python-deps-CX5tGRqf.mjs → manifest-python-deps-Dz1ryHIN.mjs} +21 -15
  83. package/dist/{model-download-service-D8B-4ktF.mjs → model-download-service-CTBHzORJ.mjs} +220 -2
  84. package/dist/{model-download-service-Cpc6SWzV.js → model-download-service-Caj1kaSi.js} +220 -2
  85. package/package.json +5 -1
  86. package/dist/builtins/device-manager/device-link-cycle.d.ts +0 -18
  87. package/dist/builtins/device-manager/device-link-overlay.d.ts +0 -33
  88. package/dist/builtins/device-manager/device-link-resolver.d.ts +0 -44
  89. package/dist/main-CVLq8IzA.js +0 -2356
  90. 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
- * `expectedSourceStableIds` is exposed via a LIVE thunk: the field is
94
- * reassigned to a fresh Set on every `rebuildLinkDependents`, so a captured
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;