Add Prettier and ESLint tooling (Refs #77)

This commit is contained in:
2026-10-09 15:56:13 -04:00
parent 8ed059b8d3
commit 16469e2d43
711 changed files with 99737 additions and 28286 deletions
+7 -2
View File
@@ -1,9 +1,14 @@
/** File/history unit tests simulate the activation leaf. Provisioning tests cover
* the occupancy, capacity, source, and restart gates before reaching this leaf. */
export async function activateFiles(kind: 'beta' | 'campaign', id: number | string): Promise<void> {
const { stagedFileChanges, applyStagedFilesForOperation } = await import('../../src/lib/server/fleet/staged-files.js');
const { stagedFileChanges, applyStagedFilesForOperation } =
await import('../../src/lib/server/fleet/staged-files.js');
const { requestRestart } = await import('../../src/lib/server/provisioning/index.js');
for (const server of new Set(stagedFileChanges(kind, String(id)).filter(row => row.state === 'pending').map(row => row.server))) {
for (const server of new Set(
stagedFileChanges(kind, String(id))
.filter((row) => row.state === 'pending')
.map((row) => row.server)
)) {
const operation = requestRestart(server, { kind, id: String(id) });
applyStagedFilesForOperation(operation.id, server);
}