@camstack/server 1.2.787 → 1.2.789
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 +13 -0
- package/dist/core/addon/addon-registry.service.js +12 -15
- package/dist/core/addon/boot-health-snapshot.js +42 -0
- package/dist/core/addon/hub-spawn-gate.js +1 -0
- package/package.json +15 -39
- package/system/dist/addon-utils.mjs +1 -1
- package/system/dist/{agent-https--lvZp4PX.js → agent-https-jJDe-XNl.js} +1 -1
- package/system/dist/{agent-https-pSCzmbQd.mjs → agent-https-szf2FU49.mjs} +1 -1
- 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 +4 -4
- 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 +5 -5
- package/system/dist/builtins/alerts/alerts.addon.js +1 -1
- package/system/dist/builtins/alerts/alerts.addon.mjs +3 -3
- 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 +5 -5
- 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 +3 -3
- package/system/dist/builtins/composer/composer.addon.mjs +3 -3
- package/system/dist/builtins/console-logging/index.js +1 -1
- package/system/dist/builtins/console-logging/index.mjs +1 -1
- package/system/dist/builtins/core-blocks/core-blocks.addon.js +3 -3
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +3 -3
- package/system/dist/builtins/device-history/device-history.addon.js +2 -2
- package/system/dist/builtins/device-history/device-history.addon.mjs +2 -2
- package/system/dist/builtins/device-manager/device-manager.addon.js +1 -1
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +1 -1
- 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 +5 -5
- package/system/dist/builtins/local-network/local-network.addon.js +2 -2
- package/system/dist/builtins/local-network/local-network.addon.mjs +2 -2
- 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 +10 -10
- package/system/dist/builtins/platform-probe/index.js +1 -1
- package/system/dist/builtins/platform-probe/index.mjs +10 -10
- 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 +20 -20
- 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 +285 -285
- 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-N1-UaQr0.mjs → capture-engine-BsKY_3xa.mjs} +1 -1
- package/system/dist/{capture-engine-CTFHb-UX.js → capture-engine-DNHgjQot.js} +1 -1
- package/system/dist/{composition-sources-Qe3MRI1x.mjs → composition-sources-BRdGsbVT.mjs} +1 -1
- package/system/dist/{composition-sources-Yjz-b6-8.js → composition-sources-BgO0GQYW.js} +1 -1
- package/system/dist/{constants-7gannWcO.js → constants-C3jGKQSQ.js} +1 -1
- package/system/dist/{constants-lWMAnwmj.mjs → constants-CQeMrR4f.mjs} +1 -1
- package/system/dist/{coral-accelerators-BW3OcrLD.mjs → coral-accelerators-DBlgWB8k.mjs} +6 -6
- package/system/dist/{custom-action-registry-N7flBDwT.mjs → custom-action-registry-B9zFBNVa.mjs} +37 -37
- package/system/dist/{device-ca-8lpRo9Ss.mjs → device-ca-ByVi5eUC.mjs} +1 -1
- package/system/dist/{device-ca-HGx3Pwb6.js → device-ca-D3y6wGmn.js} +1 -1
- package/system/dist/{dist-j7uy5oG9.js → dist-BRI-Mwx0.js} +69 -31
- package/system/dist/{dist-DgZrPBbX.mjs → dist-BsQA6-0i.mjs} +69 -31
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-mdns-ciao-BM3peDu1.mjs → hub-mdns-ciao-8dJTW2LI.mjs} +2 -2
- package/system/dist/{hub-mdns-ciao-BUKHJL6N.js → hub-mdns-ciao-Ry_Jpljx.js} +2 -2
- package/system/dist/index.js +53 -11
- package/system/dist/index.mjs +264 -222
- package/system/dist/kernel/addon-health-monitor.d.ts +21 -0
- package/system/dist/{legacy-integration-rows-door-DIm4Q3Jj.mjs → legacy-integration-rows-door-CjXTbmvH.mjs} +1 -1
- package/system/dist/{legacy-integration-rows-door-D51X6Fdr.js → legacy-integration-rows-door-D5BdSNla.js} +1 -1
- package/system/dist/migrations/hub/2026-11-06-addon-settings-bare-rows.d.ts +3 -0
- package/system/dist/{restore-archive-8jRnSzmw.js → restore-archive-GoWJMdHy.js} +1 -1
- package/system/dist/{restore-archive-D-Wmp8OK.mjs → restore-archive-vn4co_kf.mjs} +150 -150
- package/system/dist/{wal-maintenance-CBnqPn4u.mjs → wal-maintenance-CadfiGWy.mjs} +0 -0
- package/system/dist/{wal-maintenance-D0FMnpba.js → wal-maintenance-sSlXJm4k.js} +0 -0
- package/system/package.json +1 -1
|
@@ -63,6 +63,12 @@ export interface AddonHealthState {
|
|
|
63
63
|
alertEmitted: boolean;
|
|
64
64
|
/** True if a retry attempt is currently in flight. */
|
|
65
65
|
retrying: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* True while the hub spawn gate holds the addon back (its package is below what
|
|
68
|
+
* the running server requires). Retried on the same backoff, but never a
|
|
69
|
+
* failure: no alert, no failure event.
|
|
70
|
+
*/
|
|
71
|
+
heldBack: boolean;
|
|
66
72
|
}
|
|
67
73
|
export interface AddonHealthSnapshot {
|
|
68
74
|
readonly packageName: string;
|
|
@@ -78,6 +84,7 @@ export interface AddonHealthSnapshot {
|
|
|
78
84
|
readonly nextRetryAt: number | null;
|
|
79
85
|
readonly alertEmitted: boolean;
|
|
80
86
|
readonly retrying: boolean;
|
|
87
|
+
readonly heldBack: boolean;
|
|
81
88
|
/** Whether the boot grace window is still open (suppresses alerts). */
|
|
82
89
|
readonly inGracePeriod: boolean;
|
|
83
90
|
}
|
|
@@ -91,6 +98,11 @@ export interface AddonHealthMonitorOptions {
|
|
|
91
98
|
* success; throws on failure (the monitor records the new error).
|
|
92
99
|
*/
|
|
93
100
|
readonly retryFn: (packageName: string) => Promise<void>;
|
|
101
|
+
/**
|
|
102
|
+
* Whether the spawn gate currently holds this addon back. A failure recorded for
|
|
103
|
+
* a held-back addon (a retry the gate refused) stays a quiet retry, not an alert.
|
|
104
|
+
*/
|
|
105
|
+
readonly isHeldBack?: (addonId: string) => boolean;
|
|
94
106
|
/** Override for tests. Defaults to `HEALTH_MONITOR_TICK_MS`. */
|
|
95
107
|
readonly tickIntervalMs?: number;
|
|
96
108
|
/** Override for tests. Defaults to `HEALTH_MONITOR_GRACE_PERIOD_MS`. */
|
|
@@ -110,6 +122,7 @@ export declare class AddonHealthMonitor {
|
|
|
110
122
|
private readonly logger;
|
|
111
123
|
private readonly retryFn;
|
|
112
124
|
private readonly now;
|
|
125
|
+
private readonly isHeldBack;
|
|
113
126
|
private timer;
|
|
114
127
|
private graceEmittedFor;
|
|
115
128
|
constructor(opts: AddonHealthMonitorOptions);
|
|
@@ -128,6 +141,14 @@ export declare class AddonHealthMonitor {
|
|
|
128
141
|
*/
|
|
129
142
|
recordFailure(packageName: string, err: unknown, addonId?: string): void;
|
|
130
143
|
/**
|
|
144
|
+
* The spawn gate holds this addon back (its package is not yet at the version the
|
|
145
|
+
* server requires). Not a failure: the same retry backoff is armed, so the addon
|
|
146
|
+
* is reloaded once its package is current, but no failure is logged as a warning
|
|
147
|
+
* and no `AddonLoadFailed` / `AddonRetryScheduled` event is emitted. A retry that
|
|
148
|
+
* finds the gate open records success the normal way.
|
|
149
|
+
*/
|
|
150
|
+
recordHeldBack(packageName: string, reason: string, addonId?: string): void;
|
|
151
|
+
/**
|
|
131
152
|
* Force an immediate retry attempt for a package, resetting the
|
|
132
153
|
* counter back to 0 (next failure goes to the 60s interval again).
|
|
133
154
|
* Used by the user-facing `addons.retryLoad` tRPC procedure and by
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Es as collectSecretMarkerRefs } from "./dist-
|
|
1
|
+
import { Es as collectSecretMarkerRefs } from "./dist-BsQA6-0i.mjs";
|
|
2
2
|
//#region src/builtins/sqlite-storage/migrations/legacy-integration-rows-door.ts
|
|
3
3
|
/**
|
|
4
4
|
* Migration-only door for the leftover integration rows (planning#416).
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { HubPlanMigration } from "../../builtins/sqlite-storage/migrations/migration-types.js";
|
|
2
|
+
export declare const ADDON_SETTINGS_BARE_ROWS_MIGRATION_ID = "hub/2026-11-06-addon-settings-bare-rows";
|
|
3
|
+
export declare const ADDON_SETTINGS_BARE_ROWS_MIGRATION: HubPlanMigration;
|