@camstack/server 1.2.828 → 1.2.829
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 +14 -3
- package/dist/agent/agent-boot-mode.js +14 -1
- package/dist/agent/agent-http.js +12 -0
- package/dist/agent/agent-hub-rediscovery.js +205 -0
- package/dist/agent/agent-membership-watch.js +29 -1
- package/dist/agent/agent-pairing-store.js +47 -3
- package/dist/agent/hubs-found.js +1 -0
- package/dist/agent/main.js +64 -6
- package/dist/api/core/agent-pairing.router.js +9 -0
- package/dist/api/core/cluster-update.provider.js +98 -0
- package/dist/api/mesh-membership-routes.js +3 -2
- package/dist/api/trpc/generated-cap-mounts.js +2 -1
- package/dist/api/trpc/generated-cap-routers.js +2339 -2286
- package/dist/api/trpc/server-provided-caps.js +1 -0
- package/dist/api/trpc/trpc.router.js +5 -0
- package/dist/auth/auth-provider-gate.js +6 -2
- package/dist/core/addon/device-meta-mirror.js +1 -0
- package/dist/core/cluster-update/cluster-update-job-store.js +106 -0
- package/dist/core/cluster-update/cluster-update-plan.js +147 -0
- package/dist/core/cluster-update/cluster-update-seams.js +13 -0
- package/dist/core/cluster-update/cluster-update-steps.js +293 -0
- package/dist/core/cluster-update/cluster-update.service.js +319 -0
- package/dist/main.js +3 -0
- package/dist/manual-boot.js +19 -0
- package/package.json +17 -10
- package/system/dist/addon-runner.js +12 -0
- package/system/dist/addon-runner.mjs +12 -0
- 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/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-aggregation.d.ts +25 -1
- package/system/dist/builtins/device-manager/device-manager.addon.d.ts +6 -0
- package/system/dist/builtins/device-manager/device-manager.addon.js +354 -7
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +354 -7
- package/system/dist/builtins/device-manager/device-meta-actions.d.ts +6 -0
- package/system/dist/builtins/device-manager/device-meta-types.d.ts +4 -0
- package/system/dist/builtins/device-manager/device-row-store.d.ts +2 -1
- package/system/dist/builtins/device-manager/device-search.d.ts +42 -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/hub-mdns.d.ts +5 -1
- package/system/dist/builtins/local-network/local-network.addon.js +24 -13
- package/system/dist/builtins/local-network/local-network.addon.mjs +24 -13
- 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 +59 -20
- package/system/dist/builtins/system-config/system-config.addon.mjs +48 -10
- 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-B0yQx6hA.mjs → capture-engine-CsFrmbpC.mjs} +1 -1
- package/system/dist/{capture-engine-1A7HAX3x.js → capture-engine-Cvetsl63.js} +1 -1
- package/system/dist/{composition-sources-CyJ0d6Sc.mjs → composition-sources-Yw0KDrdI.mjs} +1 -1
- package/system/dist/{composition-sources-BzM19ASO.js → composition-sources-wNOckeFb.js} +1 -1
- package/system/dist/{constants-B_FLEjP_.mjs → constants-B7-Ccoim.mjs} +1 -1
- package/system/dist/{constants-DSO4ZEO3.js → constants-BqrgVNCL.js} +1 -1
- package/system/dist/{device-ca-CveuNCHp.mjs → device-ca-BDKMOSKW.mjs} +1 -1
- package/system/dist/{device-ca-DLTDsonl.js → device-ca-C9VMoted.js} +1 -1
- package/system/dist/{dist-CIyyHwVx.mjs → dist-Bv_ADY4Y.mjs} +385 -20
- package/system/dist/{dist-DhbzVygm.js → dist-KJhkakFo.js} +385 -20
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{agent-https-BlLVD9hG.js → hub-identity-BS1rzEes.js} +120 -1
- package/system/dist/{agent-https-BSxTUzKT.mjs → hub-identity-DSLLzLph.mjs} +97 -2
- package/system/dist/{hub-mdns-ciao-C_ITDs0-.js → hub-mdns-ciao-BQh04Eo9.js} +18 -18
- package/system/dist/{hub-mdns-ciao-CQdCUsrI.mjs → hub-mdns-ciao-FVifxI5j.mjs} +2 -2
- package/system/dist/index.js +61 -44
- package/system/dist/index.mjs +22 -10
- package/system/dist/kernel/hub-identity.d.ts +17 -0
- package/system/dist/kernel/index.d.ts +2 -0
- package/system/dist/kernel/moleculer/mesh-mtls/mesh-membership.d.ts +7 -0
- package/system/dist/kernel/moleculer/mesh-mtls/pairing/agent-pairing.d.ts +11 -1
- package/system/dist/kernel/moleculer/mesh-mtls/pairing/hub-pairing.d.ts +5 -0
- package/system/dist/kernel/moleculer/mesh-mtls/pairing/index.d.ts +1 -1
- package/system/dist/kernel/moleculer/mesh-mtls/pairing/pairing-protocol.d.ts +2 -0
- package/system/dist/{legacy-integration-rows-door-D_tfRhsx.js → legacy-integration-rows-door-B3K3A9JU.js} +1 -1
- package/system/dist/{legacy-integration-rows-door-tX6Qktxd.mjs → legacy-integration-rows-door-Cu9uee1R.mjs} +1 -1
- package/system/dist/{rename-composition-block-DNhbAonr.js → rename-composition-block-31JmUak2.js} +1 -1
- package/system/dist/{rename-composition-block-COaMxshT.mjs → rename-composition-block-BglTrMYB.mjs} +1 -1
- package/system/dist/{restore-archive-BMqp_hMT.mjs → restore-archive-5UHNYi4u.mjs} +1 -1
- package/system/dist/{restore-archive-Dbzuv5hK.js → restore-archive-BHOc02Fh.js} +1 -1
- package/system/dist/{wal-maintenance-CWODOTsa.js → wal-maintenance-At5TeYwr.js} +0 -0
- package/system/dist/{wal-maintenance-ITsLGvFA.mjs → wal-maintenance-COJdLp-y.mjs} +0 -0
- package/system/package.json +1 -1
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ClusterUpdateService = void 0;
|
|
4
|
+
const cluster_update_plan_js_1 = require("./cluster-update-plan.js");
|
|
5
|
+
const cluster_update_seams_js_1 = require("./cluster-update-seams.js");
|
|
6
|
+
const cluster_update_steps_js_1 = require("./cluster-update-steps.js");
|
|
7
|
+
function isOpen(step) {
|
|
8
|
+
return step.status === 'pending' || step.status === 'running';
|
|
9
|
+
}
|
|
10
|
+
class ClusterUpdateService {
|
|
11
|
+
seams;
|
|
12
|
+
running = null;
|
|
13
|
+
resumed = false;
|
|
14
|
+
constructor(seams) {
|
|
15
|
+
this.seams = seams;
|
|
16
|
+
}
|
|
17
|
+
/** What a start would do now. */
|
|
18
|
+
async preview(options) {
|
|
19
|
+
this.resume();
|
|
20
|
+
const plan = await (0, cluster_update_plan_js_1.readClusterUpdatePlan)(this.seams, options);
|
|
21
|
+
const { job: active, unreadable } = this.activeJobOrUnreadable();
|
|
22
|
+
if (unreadable !== null) {
|
|
23
|
+
return {
|
|
24
|
+
...plan,
|
|
25
|
+
blocker: 'status-unreadable',
|
|
26
|
+
blockerDetail: `the cluster update job file is unreadable: ${unreadable}`,
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
if (active !== null) {
|
|
30
|
+
return {
|
|
31
|
+
...plan,
|
|
32
|
+
blocker: 'job-running',
|
|
33
|
+
blockerDetail: `cluster update ${active.id} is running (target ${active.targetVersion})`,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
return plan;
|
|
37
|
+
}
|
|
38
|
+
/** Start the job; returns at once. One job at a time. */
|
|
39
|
+
async start(options, requestedBy) {
|
|
40
|
+
this.resume();
|
|
41
|
+
const { job: active, unreadable } = this.activeJobOrUnreadable();
|
|
42
|
+
if (unreadable !== null) {
|
|
43
|
+
return {
|
|
44
|
+
accepted: false,
|
|
45
|
+
jobId: null,
|
|
46
|
+
blocker: 'status-unreadable',
|
|
47
|
+
message: `the cluster update job file is unreadable: ${unreadable}`,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
if (active !== null) {
|
|
51
|
+
return {
|
|
52
|
+
accepted: false,
|
|
53
|
+
jobId: active.id,
|
|
54
|
+
blocker: 'job-running',
|
|
55
|
+
message: `cluster update ${active.id} is already running`,
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
const plan = await (0, cluster_update_plan_js_1.readClusterUpdatePlan)(this.seams, options);
|
|
59
|
+
if (plan.blocker !== null || plan.targetVersion === null) {
|
|
60
|
+
return {
|
|
61
|
+
accepted: false,
|
|
62
|
+
jobId: null,
|
|
63
|
+
blocker: plan.blocker ?? 'no-target',
|
|
64
|
+
message: plan.blockerDetail ?? 'no target version',
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
const job = {
|
|
68
|
+
id: this.seams.newId(),
|
|
69
|
+
state: 'running',
|
|
70
|
+
targetVersion: plan.targetVersion,
|
|
71
|
+
requestedBy,
|
|
72
|
+
startedAt: this.seams.now(),
|
|
73
|
+
steps: plan.steps,
|
|
74
|
+
skippedOffline: plan.skippedOffline,
|
|
75
|
+
};
|
|
76
|
+
this.seams.store.save(job);
|
|
77
|
+
this.seams.logger.info('Cluster update started', {
|
|
78
|
+
meta: {
|
|
79
|
+
jobId: job.id,
|
|
80
|
+
target: job.targetVersion,
|
|
81
|
+
steps: job.steps.length,
|
|
82
|
+
requestedBy,
|
|
83
|
+
},
|
|
84
|
+
});
|
|
85
|
+
this.launch(job, 0);
|
|
86
|
+
return {
|
|
87
|
+
accepted: true,
|
|
88
|
+
jobId: job.id,
|
|
89
|
+
blocker: null,
|
|
90
|
+
message: `cluster update ${job.id} started, target ${job.targetVersion}`,
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
/** The job (the latest without `jobId`), or `null`. */
|
|
94
|
+
getJob(jobId) {
|
|
95
|
+
this.resume();
|
|
96
|
+
const job = this.seams.store.load();
|
|
97
|
+
if (job === null)
|
|
98
|
+
return null;
|
|
99
|
+
return jobId === undefined || job.id === jobId ? job : null;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Pick up a job the previous boot left running. Idempotent and cheap: boot
|
|
103
|
+
* calls it once the addons are up, and every RPC calls it too, so a dropped
|
|
104
|
+
* boot event still resumes on the next read (D49).
|
|
105
|
+
*/
|
|
106
|
+
resume() {
|
|
107
|
+
if (this.resumed)
|
|
108
|
+
return;
|
|
109
|
+
let job;
|
|
110
|
+
try {
|
|
111
|
+
job = this.seams.store.load();
|
|
112
|
+
}
|
|
113
|
+
catch (err) {
|
|
114
|
+
// Unreadable is not absent: stay resumable, the next call retries.
|
|
115
|
+
this.seams.logger.warn('Cluster update job unreadable; will retry to resume it', {
|
|
116
|
+
meta: { error: (0, cluster_update_seams_js_1.errText)(err) },
|
|
117
|
+
});
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
this.resumed = true;
|
|
121
|
+
if (job === null || job.state !== 'running' || this.running !== null)
|
|
122
|
+
return;
|
|
123
|
+
const index = job.steps.findIndex(isOpen);
|
|
124
|
+
const step = index >= 0 ? job.steps[index] : undefined;
|
|
125
|
+
if (step === undefined) {
|
|
126
|
+
this.finish({ ...job }, null);
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
if (step.kind === 'hub-server' && step.status === 'running') {
|
|
130
|
+
this.seams.logger.info('Cluster update resumed after the hub restart', {
|
|
131
|
+
meta: { jobId: job.id, target: job.targetVersion },
|
|
132
|
+
});
|
|
133
|
+
this.launch(job, index, true);
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
this.stop(job, index, {
|
|
137
|
+
status: 'failed',
|
|
138
|
+
reason: 'interrupted',
|
|
139
|
+
detail: `the hub restarted while this step was ${step.status}; nothing resumes a step blind`,
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
/** Resolves when the job this process runs has ended (tests, shutdown). */
|
|
143
|
+
async idle() {
|
|
144
|
+
await this.running;
|
|
145
|
+
}
|
|
146
|
+
/** The running job; throws when the store is unreadable (absent is `null`). */
|
|
147
|
+
activeJob() {
|
|
148
|
+
const job = this.seams.store.load();
|
|
149
|
+
return job !== null && job.state === 'running' ? job : null;
|
|
150
|
+
}
|
|
151
|
+
/** `activeJob`, but an unreadable store is a refusal the caller reports, not a crash. */
|
|
152
|
+
activeJobOrUnreadable() {
|
|
153
|
+
try {
|
|
154
|
+
return { job: this.activeJob(), unreadable: null };
|
|
155
|
+
}
|
|
156
|
+
catch (err) {
|
|
157
|
+
this.seams.logger.warn('Cluster update job store unreadable', {
|
|
158
|
+
meta: { error: (0, cluster_update_seams_js_1.errText)(err) },
|
|
159
|
+
});
|
|
160
|
+
return { job: null, unreadable: (0, cluster_update_seams_js_1.errText)(err) };
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
launch(job, from, resumingHub = false) {
|
|
164
|
+
this.running = this.execute(job, from, resumingHub)
|
|
165
|
+
.catch((err) => {
|
|
166
|
+
this.seams.logger.error('Cluster update crashed', {
|
|
167
|
+
meta: { jobId: job.id, error: (0, cluster_update_seams_js_1.errText)(err) },
|
|
168
|
+
});
|
|
169
|
+
const latest = this.loadOr(job);
|
|
170
|
+
const index = latest.steps.findIndex(isOpen);
|
|
171
|
+
if (latest.state === 'running') {
|
|
172
|
+
this.stop(latest, index >= 0 ? index : latest.steps.length - 1, {
|
|
173
|
+
status: 'failed',
|
|
174
|
+
reason: 'interrupted',
|
|
175
|
+
detail: `the job crashed: ${(0, cluster_update_seams_js_1.errText)(err)}`,
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
})
|
|
179
|
+
.finally(() => {
|
|
180
|
+
this.running = null;
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
loadOr(fallback) {
|
|
184
|
+
try {
|
|
185
|
+
return this.seams.store.load() ?? fallback;
|
|
186
|
+
}
|
|
187
|
+
catch {
|
|
188
|
+
return fallback;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
async execute(job, from, resumingHub) {
|
|
192
|
+
let current = job;
|
|
193
|
+
for (let i = from; i < current.steps.length; i += 1) {
|
|
194
|
+
const step = current.steps[i];
|
|
195
|
+
if (step === undefined || step.status === 'skipped' || step.status === 'ok')
|
|
196
|
+
continue;
|
|
197
|
+
const resumed = resumingHub && i === from;
|
|
198
|
+
if (!resumed) {
|
|
199
|
+
current = this.patchStep(current, i, {
|
|
200
|
+
status: 'running',
|
|
201
|
+
startedAt: this.seams.now(),
|
|
202
|
+
detail: runningDetail(step),
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
const outcome = resumed
|
|
206
|
+
? await (0, cluster_update_steps_js_1.verifyServerStep)(this.seams, null, current.targetVersion, 'resumed after the hub restart')
|
|
207
|
+
: await this.runStep(current, step);
|
|
208
|
+
this.seams.logger.info('Cluster update step finished', {
|
|
209
|
+
tags: step.nodeId !== undefined ? { nodeId: step.nodeId } : {},
|
|
210
|
+
meta: {
|
|
211
|
+
jobId: current.id,
|
|
212
|
+
step: step.kind,
|
|
213
|
+
status: outcome.status,
|
|
214
|
+
detail: outcome.detail,
|
|
215
|
+
},
|
|
216
|
+
});
|
|
217
|
+
if (outcome.status === 'failed') {
|
|
218
|
+
this.stop(current, i, outcome);
|
|
219
|
+
return;
|
|
220
|
+
}
|
|
221
|
+
current = this.patchStep(current, i, {
|
|
222
|
+
status: outcome.status,
|
|
223
|
+
detail: outcome.detail,
|
|
224
|
+
finishedAt: this.seams.now(),
|
|
225
|
+
...(outcome.packages !== undefined ? { packages: outcome.packages } : {}),
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
this.finish(current, null);
|
|
229
|
+
}
|
|
230
|
+
async runStep(job, step) {
|
|
231
|
+
switch (step.kind) {
|
|
232
|
+
case 'backup':
|
|
233
|
+
return (0, cluster_update_steps_js_1.runBackupStep)(this.seams, `cluster-update ${job.id}`);
|
|
234
|
+
case 'hub-server':
|
|
235
|
+
return (0, cluster_update_steps_js_1.runServerStep)(this.seams, null, job.targetVersion);
|
|
236
|
+
case 'agent-server': {
|
|
237
|
+
const nodeId = step.nodeId ?? '';
|
|
238
|
+
if (job.skippedOffline.includes(nodeId)) {
|
|
239
|
+
return { status: 'skipped', detail: `${nodeId} was offline when the plan was made` };
|
|
240
|
+
}
|
|
241
|
+
const notOnline = await (0, cluster_update_steps_js_1.waitForAgentOnline)(this.seams, nodeId);
|
|
242
|
+
if (notOnline !== null)
|
|
243
|
+
return notOnline;
|
|
244
|
+
return (0, cluster_update_steps_js_1.runServerStep)(this.seams, nodeId, job.targetVersion);
|
|
245
|
+
}
|
|
246
|
+
case 'addons':
|
|
247
|
+
return (0, cluster_update_steps_js_1.runAddonsStep)(this.seams);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
patchStep(job, index, patch) {
|
|
251
|
+
const next = {
|
|
252
|
+
...job,
|
|
253
|
+
steps: job.steps.map((s, i) => (i === index ? { ...s, ...patch } : s)),
|
|
254
|
+
};
|
|
255
|
+
this.seams.store.save(next);
|
|
256
|
+
return next;
|
|
257
|
+
}
|
|
258
|
+
/** Fail at `index`: the later steps are skipped and say why. */
|
|
259
|
+
stop(job, index, outcome) {
|
|
260
|
+
const failedStep = job.steps[index];
|
|
261
|
+
const stoppedAt = failedStep?.nodeId ?? failedStep?.kind ?? 'unknown';
|
|
262
|
+
const steps = job.steps.map((s, i) => {
|
|
263
|
+
if (i === index) {
|
|
264
|
+
return {
|
|
265
|
+
...s,
|
|
266
|
+
status: 'failed',
|
|
267
|
+
detail: outcome.detail,
|
|
268
|
+
finishedAt: this.seams.now(),
|
|
269
|
+
...(outcome.reason !== undefined ? { reason: outcome.reason } : {}),
|
|
270
|
+
...(outcome.packages !== undefined ? { packages: outcome.packages } : {}),
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
if (i > index && isOpen(s)) {
|
|
274
|
+
return {
|
|
275
|
+
...s,
|
|
276
|
+
status: 'skipped',
|
|
277
|
+
detail: `not run: ${stoppedAt} failed`,
|
|
278
|
+
};
|
|
279
|
+
}
|
|
280
|
+
return s;
|
|
281
|
+
});
|
|
282
|
+
this.seams.logger.warn('Cluster update stopped', {
|
|
283
|
+
meta: {
|
|
284
|
+
jobId: job.id,
|
|
285
|
+
stoppedAt,
|
|
286
|
+
reason: outcome.reason,
|
|
287
|
+
detail: outcome.detail,
|
|
288
|
+
},
|
|
289
|
+
});
|
|
290
|
+
this.finish({ ...job, steps }, { stoppedAt, reason: outcome.reason ?? 'interrupted' });
|
|
291
|
+
}
|
|
292
|
+
finish(job, failure) {
|
|
293
|
+
const done = {
|
|
294
|
+
...job,
|
|
295
|
+
state: failure === null ? 'succeeded' : 'failed',
|
|
296
|
+
finishedAt: this.seams.now(),
|
|
297
|
+
...(failure !== null ? { stoppedAt: failure.stoppedAt, reason: failure.reason } : {}),
|
|
298
|
+
};
|
|
299
|
+
this.seams.store.save(done);
|
|
300
|
+
if (failure === null) {
|
|
301
|
+
this.seams.logger.info('Cluster update succeeded', {
|
|
302
|
+
meta: { jobId: job.id, target: job.targetVersion },
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
exports.ClusterUpdateService = ClusterUpdateService;
|
|
308
|
+
function runningDetail(step) {
|
|
309
|
+
switch (step.kind) {
|
|
310
|
+
case 'backup':
|
|
311
|
+
return 'backing up';
|
|
312
|
+
case 'hub-server':
|
|
313
|
+
return 'updating the hub; it restarts and the job resumes on the new boot';
|
|
314
|
+
case 'agent-server':
|
|
315
|
+
return `updating ${step.nodeId ?? 'the agent'} and waiting until it runs the target`;
|
|
316
|
+
case 'addons':
|
|
317
|
+
return 'updating the addons on the hub; agents follow by reconciliation';
|
|
318
|
+
}
|
|
319
|
+
}
|
package/dist/main.js
CHANGED
|
@@ -137,6 +137,7 @@ const moleculer_service_1 = require("./core/moleculer/moleculer.service");
|
|
|
137
137
|
const network_quality_service_1 = require("./core/network/network-quality.service");
|
|
138
138
|
const repl_engine_service_1 = require("./core/repl/repl-engine.service");
|
|
139
139
|
const server_update_service_1 = require("./core/server-update/server-update.service");
|
|
140
|
+
const cluster_update_service_1 = require("./core/cluster-update/cluster-update.service");
|
|
140
141
|
const storage_service_1 = require("./core/storage/storage.service");
|
|
141
142
|
const stream_probe_service_1 = require("./core/streaming/stream-probe.service");
|
|
142
143
|
const manual_boot_1 = require("./manual-boot");
|
|
@@ -483,6 +484,7 @@ async function bootstrap() {
|
|
|
483
484
|
// A refused (forgotten / unpaired) agent asks here whether it is still a member (D857).
|
|
484
485
|
(0, mesh_membership_routes_1.registerMeshMembershipRoutes)(fastify, {
|
|
485
486
|
logger: app.get(logging_service_1.LoggingService).createLogger('mesh-membership'),
|
|
487
|
+
hubId: () => (0, system_1.loadOrCreateHubId)(dataPath).hubId,
|
|
486
488
|
});
|
|
487
489
|
}
|
|
488
490
|
catch (err) {
|
|
@@ -667,6 +669,7 @@ async function bootstrap() {
|
|
|
667
669
|
capabilityRegistry,
|
|
668
670
|
streamProbe: app.get(stream_probe_service_1.StreamProbeService),
|
|
669
671
|
serverUpdateService: app.get(server_update_service_1.ServerUpdateService),
|
|
672
|
+
clusterUpdateService: app.get(cluster_update_service_1.ClusterUpdateService),
|
|
670
673
|
});
|
|
671
674
|
// ── The core-cap mesh bridge, mounted BEFORE a single addon boots (D171) ──
|
|
672
675
|
//
|
package/dist/manual-boot.js
CHANGED
|
@@ -78,6 +78,8 @@ const notification_wrapper_service_1 = require("./core/notification/notification
|
|
|
78
78
|
const toast_wrapper_service_1 = require("./core/notification/toast-wrapper.service");
|
|
79
79
|
const repl_engine_service_1 = require("./core/repl/repl-engine.service");
|
|
80
80
|
const server_update_service_1 = require("./core/server-update/server-update.service");
|
|
81
|
+
const cluster_update_service_1 = require("./core/cluster-update/cluster-update.service");
|
|
82
|
+
const cluster_update_provider_1 = require("./api/core/cluster-update.provider");
|
|
81
83
|
const runner_boot_check_1 = require("./core/runner-health/runner-boot-check");
|
|
82
84
|
const storage_service_1 = require("./core/storage/storage.service");
|
|
83
85
|
const stream_probe_service_1 = require("./core/streaming/stream-probe.service");
|
|
@@ -357,6 +359,19 @@ async function bootManual(opts) {
|
|
|
357
359
|
eventBus: eventBusService,
|
|
358
360
|
updateAvailabilityStore: new update_availability_store_js_1.FileUpdateAvailabilityStore(availabilityDataDir, 'server-update', loggingService.createLogger('UpdateAvailability')),
|
|
359
361
|
});
|
|
362
|
+
// The one cluster update flow (planning#493). Its job survives the hub's own
|
|
363
|
+
// restart: it is resumed once the addons are up (below), and by any RPC that
|
|
364
|
+
// reads it first, so a dropped boot event cannot leave it "running".
|
|
365
|
+
const clusterUpdateService = new cluster_update_service_1.ClusterUpdateService((0, cluster_update_provider_1.buildClusterUpdateSeams)({
|
|
366
|
+
dataDir: availabilityDataDir,
|
|
367
|
+
serverUpdate: serverUpdateService,
|
|
368
|
+
moleculer: moleculerService,
|
|
369
|
+
agentRegistry: agentRegistryService,
|
|
370
|
+
addonRegistry: addonRegistryService,
|
|
371
|
+
addonPackages: addonPackageService,
|
|
372
|
+
configService,
|
|
373
|
+
loggingService,
|
|
374
|
+
}));
|
|
360
375
|
const topologyEmitterService = new topology_emitter_service_1.TopologyEmitterService(eventBusService, agentRegistryService, addonRegistryService, (0, cap_providers_1.createNodeRootPackageLookup)(moleculerService, serverUpdateService), (nodeId) => moleculerService.isNodeRegistered(nodeId));
|
|
361
376
|
const postBootService = new post_boot_service_1.PostBootService(addonRegistryService, eventBusService, loggingService);
|
|
362
377
|
// ---- Update availability poller ---------------------------------------
|
|
@@ -430,6 +445,9 @@ async function bootManual(opts) {
|
|
|
430
445
|
});
|
|
431
446
|
addonPackageService.setUpdateCheckRescheduler(() => updateCheckScheduler.reschedule());
|
|
432
447
|
updateCheckScheduler.start();
|
|
448
|
+
eventBusService.subscribe({ category: types_1.EventCategory.SystemAddonsReady }, () => {
|
|
449
|
+
clusterUpdateService.resume();
|
|
450
|
+
});
|
|
433
451
|
// The running server's `requires.addons` are brought current once the addons
|
|
434
452
|
// are up, with auto-update on or off (planning#447). A failure is an alert and
|
|
435
453
|
// the boot goes on; agents follow through the registration reconcile (D840).
|
|
@@ -477,6 +495,7 @@ async function bootManual(opts) {
|
|
|
477
495
|
container.register(addon_package_service_1.AddonPackageService, addonPackageService);
|
|
478
496
|
container.register(repl_engine_service_1.ReplEngineService, replEngineService);
|
|
479
497
|
container.register(server_update_service_1.ServerUpdateService, serverUpdateService);
|
|
498
|
+
container.register(cluster_update_service_1.ClusterUpdateService, clusterUpdateService);
|
|
480
499
|
container.register(runner_boot_check_1.RunnerBootCheckService, hubRunnerBootCheck);
|
|
481
500
|
// A runner settling (READY / crashed / failed / refused) re-evaluates a verdict
|
|
482
501
|
// that still had runners on their way (D877).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/server",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.829",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -66,7 +66,14 @@
|
|
|
66
66
|
],
|
|
67
67
|
"requires": {
|
|
68
68
|
"addons": {
|
|
69
|
-
"@camstack/addon-
|
|
69
|
+
"@camstack/addon-admin-ui": ">=1.2.635",
|
|
70
|
+
"@camstack/addon-agent-ui": ">=1.2.359",
|
|
71
|
+
"@camstack/addon-auth": ">=1.2.182",
|
|
72
|
+
"@camstack/addon-import-alexa": ">=0.2.202",
|
|
73
|
+
"@camstack/addon-notifiers": ">=1.2.636",
|
|
74
|
+
"@camstack/addon-post-analysis": ">=1.2.693",
|
|
75
|
+
"@camstack/addon-provider-enpal": ">=0.1.16",
|
|
76
|
+
"@camstack/addon-provider-homeassistant": ">=1.2.678"
|
|
70
77
|
},
|
|
71
78
|
"wrapper": {
|
|
72
79
|
"desktop": ">=0.0.1",
|
|
@@ -75,19 +82,19 @@
|
|
|
75
82
|
}
|
|
76
83
|
},
|
|
77
84
|
"dependencies": {
|
|
78
|
-
"@camstack/addon-admin-ui": "1.2.
|
|
79
|
-
"@camstack/addon-agent-ui": "1.2.
|
|
80
|
-
"@camstack/addon-auth": "1.2.
|
|
85
|
+
"@camstack/addon-admin-ui": "1.2.635",
|
|
86
|
+
"@camstack/addon-agent-ui": "1.2.359",
|
|
87
|
+
"@camstack/addon-auth": "1.2.182",
|
|
81
88
|
"@camstack/addon-benchmark": "1.2.313",
|
|
82
89
|
"@camstack/addon-decoder-nodeav": "1.2.149",
|
|
83
|
-
"@camstack/addon-notifiers": "1.2.
|
|
90
|
+
"@camstack/addon-notifiers": "1.2.636",
|
|
84
91
|
"@camstack/addon-pipeline": "1.2.649",
|
|
85
92
|
"@camstack/addon-pipeline-orchestrator": "1.2.677",
|
|
86
|
-
"@camstack/addon-post-analysis": "1.2.
|
|
87
|
-
"@camstack/develop": "0.1.
|
|
93
|
+
"@camstack/addon-post-analysis": "1.2.693",
|
|
94
|
+
"@camstack/develop": "0.1.52",
|
|
88
95
|
"@camstack/sdk": "1.2.157",
|
|
89
|
-
"@camstack/types": "1.2.
|
|
90
|
-
"@camstack/ui-library": "1.2.
|
|
96
|
+
"@camstack/types": "1.2.541",
|
|
97
|
+
"@camstack/ui-library": "1.2.419",
|
|
91
98
|
"@fastify/compress": "^9.0.0",
|
|
92
99
|
"@fastify/cookie": "^11.0.2",
|
|
93
100
|
"@fastify/cors": "^11.2.0",
|
|
@@ -6622,6 +6622,18 @@ function createBrokerDeviceManagerApi(opts) {
|
|
|
6622
6622
|
meta: { error: err instanceof Error ? err.message : String(err) }
|
|
6623
6623
|
});
|
|
6624
6624
|
});
|
|
6625
|
+
if (initialMeta.primaryChildPreference !== void 0) await callDeviceManager(api, "setPrimaryChildPreference", {
|
|
6626
|
+
deviceId: id,
|
|
6627
|
+
primaryChildPreference: initialMeta.primaryChildPreference
|
|
6628
|
+
}).catch((err) => {
|
|
6629
|
+
opts.logger.warn("create: setPrimaryChildPreference pre-seed failed", {
|
|
6630
|
+
tags: {
|
|
6631
|
+
stableId,
|
|
6632
|
+
deviceId: id
|
|
6633
|
+
},
|
|
6634
|
+
meta: { error: err instanceof Error ? err.message : String(err) }
|
|
6635
|
+
});
|
|
6636
|
+
});
|
|
6625
6637
|
if (initialMeta.display !== void 0) await callDeviceManager(api, "setDisplay", {
|
|
6626
6638
|
deviceId: id,
|
|
6627
6639
|
display: initialMeta.display
|
|
@@ -6567,6 +6567,18 @@ function createBrokerDeviceManagerApi(opts) {
|
|
|
6567
6567
|
meta: { error: err instanceof Error ? err.message : String(err) }
|
|
6568
6568
|
});
|
|
6569
6569
|
});
|
|
6570
|
+
if (initialMeta.primaryChildPreference !== void 0) await callDeviceManager(api, "setPrimaryChildPreference", {
|
|
6571
|
+
deviceId: id,
|
|
6572
|
+
primaryChildPreference: initialMeta.primaryChildPreference
|
|
6573
|
+
}).catch((err) => {
|
|
6574
|
+
opts.logger.warn("create: setPrimaryChildPreference pre-seed failed", {
|
|
6575
|
+
tags: {
|
|
6576
|
+
stableId,
|
|
6577
|
+
deviceId: id
|
|
6578
|
+
},
|
|
6579
|
+
meta: { error: err instanceof Error ? err.message : String(err) }
|
|
6580
|
+
});
|
|
6581
|
+
});
|
|
6570
6582
|
if (initialMeta.display !== void 0) await callDeviceManager(api, "setDisplay", {
|
|
6571
6583
|
deviceId: id,
|
|
6572
6584
|
display: initialMeta.display
|
|
@@ -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-KJhkakFo.js");
|
|
7
7
|
const require_settle_sources = require("../../settle-sources-Bhsy57y-.js");
|
|
8
8
|
let node_crypto = require("node:crypto");
|
|
9
9
|
let node_fs = require("node:fs");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { dl as errMsg, pl as EventCategory, ps as BaseAddon, yn as addonPagesCapability } from "../../dist-
|
|
1
|
+
import { dl as errMsg, pl as EventCategory, ps as BaseAddon, yn as addonPagesCapability } from "../../dist-Bv_ADY4Y.mjs";
|
|
2
2
|
import { t as settleSourcesWithTimeout } from "../../settle-sources-CDtNC8ub.mjs";
|
|
3
3
|
import { createHash, randomUUID } from "node:crypto";
|
|
4
4
|
import * as fs$1 from "node:fs";
|
|
@@ -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-KJhkakFo.js");
|
|
7
7
|
const require_settle_sources = require("../../settle-sources-Bhsy57y-.js");
|
|
8
8
|
let node_crypto = require("node:crypto");
|
|
9
9
|
let node_fs = require("node:fs");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { dl as errMsg, pl as EventCategory, ps as BaseAddon, xn as addonWidgetsCapability } from "../../dist-
|
|
1
|
+
import { dl as errMsg, pl as EventCategory, ps as BaseAddon, xn as addonWidgetsCapability } from "../../dist-Bv_ADY4Y.mjs";
|
|
2
2
|
import { t as settleSourcesWithTimeout } from "../../settle-sources-CDtNC8ub.mjs";
|
|
3
3
|
import { createHash, randomUUID } from "node:crypto";
|
|
4
4
|
import * as fs$1 from "node:fs";
|
|
@@ -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-KJhkakFo.js");
|
|
7
7
|
const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
|
|
8
8
|
const require_log_redactor = require("../../log-redactor-BhIEMaG9.js");
|
|
9
9
|
let node_fs = require("node:fs");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Cn as alertEpisodePayload, Sn as alertEpisodeId, T as CORE_BLOCK_ADDON_PREFIX, dl as errMsg, lc as createEvent, mc as defineRecordKinds, ni as isAlertEpisodeSeverity, p as AlertSchema, pl as EventCategory, ps as BaseAddon, ti as isAlertEpisodeOpen, wn as alertsCapability } from "../../dist-
|
|
1
|
+
import { Cn as alertEpisodePayload, Sn as alertEpisodeId, T as CORE_BLOCK_ADDON_PREFIX, dl as errMsg, lc as createEvent, mc as defineRecordKinds, ni as isAlertEpisodeSeverity, p as AlertSchema, pl as EventCategory, ps as BaseAddon, ti as isAlertEpisodeOpen, wn as alertsCapability } from "../../dist-Bv_ADY4Y.mjs";
|
|
2
2
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
3
3
|
import { a as redactLogText } from "../../log-redactor-XLDrPzOi.mjs";
|
|
4
4
|
import * as fs$1 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-KJhkakFo.js");
|
|
7
7
|
let zod = require("zod");
|
|
8
8
|
//#region src/builtins/autotrack/autotrack-config.ts
|
|
9
9
|
var DEFAULT_AUTOTRACK_LOOP_CONFIG = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Dc as isEvent, da as ptzAutotrackCapability, dl as errMsg, kn as bareAddonId, lt as FIRST_LEVEL_MACRO_CLASSES, pl as EventCategory, ps as BaseAddon } from "../../dist-
|
|
1
|
+
import { Dc as isEvent, da as ptzAutotrackCapability, dl as errMsg, kn as bareAddonId, lt as FIRST_LEVEL_MACRO_CLASSES, pl as EventCategory, ps as BaseAddon } from "../../dist-Bv_ADY4Y.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/builtins/autotrack/autotrack-config.ts
|
|
4
4
|
var DEFAULT_AUTOTRACK_LOOP_CONFIG = {
|
|
@@ -3,9 +3,9 @@ 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-KJhkakFo.js");
|
|
7
7
|
const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
|
|
8
|
-
const require_restore_archive = require("../../restore-archive-
|
|
8
|
+
const require_restore_archive = require("../../restore-archive-BHOc02Fh.js");
|
|
9
9
|
let node_crypto = require("node:crypto");
|
|
10
10
|
let node_fs = require("node:fs");
|
|
11
11
|
node_fs = require_chunk.__toESM(node_fs);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { On as backupCapability, ao as storageOccupancyCapability, ki as mayWriteToLocation, pl as EventCategory, ps as BaseAddon, tl as toNodeId, zc as nodePin } from "../../dist-
|
|
1
|
+
import { On as backupCapability, ao as storageOccupancyCapability, ki as mayWriteToLocation, pl as EventCategory, ps as BaseAddon, tl as toNodeId, zc as nodePin } from "../../dist-Bv_ADY4Y.mjs";
|
|
2
2
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
3
|
-
import { _ as backupRecordStoresOf, a as BackupSnapshotRefusedError, d as ENCRYPTED_BACKUP_SUFFIX, f as generateBackupKeyPair, g as backupOrchestratorRecordKinds, i as BackupCancelledError, l as BackupKeyFormatError, m as parseBackupSecretKey, n as precheckRestoreKey, o as DEFAULT_BACKUP_DATABASES, p as parseBackupPublicKey, r as prepareRestoreArchive, s as SystemBackupService } from "../../restore-archive-
|
|
3
|
+
import { _ as backupRecordStoresOf, a as BackupSnapshotRefusedError, d as ENCRYPTED_BACKUP_SUFFIX, f as generateBackupKeyPair, g as backupOrchestratorRecordKinds, i as BackupCancelledError, l as BackupKeyFormatError, m as parseBackupSecretKey, n as precheckRestoreKey, o as DEFAULT_BACKUP_DATABASES, p as parseBackupPublicKey, r as prepareRestoreArchive, s as SystemBackupService } from "../../restore-archive-5UHNYi4u.mjs";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
5
5
|
import * as fs$1 from "node:fs";
|
|
6
6
|
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-KJhkakFo.js");
|
|
7
7
|
const require_settle_sources = require("../../settle-sources-Bhsy57y-.js");
|
|
8
8
|
let zod = require("zod");
|
|
9
9
|
//#region src/builtins/calendars/calendar-color.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as CalendarPreferencesSchema, Rn as calendarsCapability, mc as defineRecordKinds, ps as BaseAddon } from "../../dist-
|
|
1
|
+
import { D as CalendarPreferencesSchema, Rn as calendarsCapability, mc as defineRecordKinds, ps as BaseAddon } from "../../dist-Bv_ADY4Y.mjs";
|
|
2
2
|
import { t as settleSourcesWithTimeout } from "../../settle-sources-CDtNC8ub.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region src/builtins/calendars/calendar-color.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-KJhkakFo.js");
|
|
7
7
|
let zod = require("zod");
|
|
8
8
|
let node_crypto = require("node:crypto");
|
|
9
9
|
let _camstack_types_node = require("@camstack/types/node");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $a as snapshotCapability, At as MOTION_CLOSE_AFTER_MS, B as DERIVED_CAMERA_SILENCED_CAP_NAMES, Cc as hydrateSchema, Ls as RecordIntegrationInstances, Mi as memoizePinnedFfmpeg, Oc as isInstanceEnabled, Qr as integrationInstancesCapability, Ri as motionCapability, Vo as buildFfmpegArgs, cl as DeviceFeature, dl as errMsg, et as DeclaredDevices, fr as declarationOwnerNodeId, g as BaseDevice, kn as bareAddonId, lc as createEvent, pc as defineEntryKind, pl as EventCategory, ps as BaseAddon, so as streamCatalogCapability, ul as DeviceType, zn as cameraGridLayoutCapability } from "../../dist-
|
|
1
|
+
import { $a as snapshotCapability, At as MOTION_CLOSE_AFTER_MS, B as DERIVED_CAMERA_SILENCED_CAP_NAMES, Cc as hydrateSchema, Ls as RecordIntegrationInstances, Mi as memoizePinnedFfmpeg, Oc as isInstanceEnabled, Qr as integrationInstancesCapability, Ri as motionCapability, Vo as buildFfmpegArgs, cl as DeviceFeature, dl as errMsg, et as DeclaredDevices, fr as declarationOwnerNodeId, g as BaseDevice, kn as bareAddonId, lc as createEvent, pc as defineEntryKind, pl as EventCategory, ps as BaseAddon, so as streamCatalogCapability, ul as DeviceType, zn as cameraGridLayoutCapability } from "../../dist-Bv_ADY4Y.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { createHash } from "node:crypto";
|
|
4
4
|
import { FfmpegProcess } from "@camstack/types/node";
|
|
@@ -3,11 +3,11 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
7
|
-
const require_composition_sources = require("../../composition-sources-
|
|
8
|
-
const require_capture_engine = require("../../capture-engine-
|
|
6
|
+
const require_dist = require("../../dist-KJhkakFo.js");
|
|
7
|
+
const require_composition_sources = require("../../composition-sources-wNOckeFb.js");
|
|
8
|
+
const require_capture_engine = require("../../capture-engine-Cvetsl63.js");
|
|
9
9
|
const require_retention = require("../../retention-BcOSL6b9.js");
|
|
10
|
-
const require_rename_composition_block = require("../../rename-composition-block-
|
|
10
|
+
const require_rename_composition_block = require("../../rename-composition-block-31JmUak2.js");
|
|
11
11
|
let zod = require("zod");
|
|
12
12
|
//#region src/builtins/composer/actuator-invoke.ts
|
|
13
13
|
/**
|