Drift now covers all three destinations

This commit is contained in:
2026-09-12 19:16:14 -04:00
parent 8c40bbeff1
commit 6ae9004ed2
3 changed files with 85 additions and 22 deletions
+2 -2
View File
@@ -5,10 +5,10 @@ import { kick } from '$lib/server/pipeline/worker.js';
// GET returns the current drift plan for the whole fleet without touching disk.
export async function GET() {
const entries = await scanFleetDrift();
const byServer = new Map<string, Array<{ relPath: string; size: number; sha256: string }>>();
const byServer = new Map<string, Array<{ relPath: string; size: number; sha256: string; kind: string }>>();
for (const e of entries) {
const arr = byServer.get(e.server) ?? [];
arr.push({ relPath: e.relPath, size: e.size, sha256: e.sha256 });
arr.push({ relPath: e.relPath, size: e.size, sha256: e.sha256, kind: e.kind });
byServer.set(e.server, arr);
}
return json({