fix(server): make remote updates rollback-safe (#5181)

This commit is contained in:
Theo Browne authored and GitHub committed 2026-08-01 05:48:03 -07:00
1 parent 0ad91b6e7f
commit d3037064e6
40 files changed
+2856 -2270

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
import * as Console from "effect/Console";
import * as Effect from "effect/Effect";
import { Command, Flag } from "effect/unstable/cli";
import { runServicePreflight } from "../cloud/servicePreflight.ts";
export const servicePreflightCommand = Command.make("__service-preflight", {
databasePath: Flag.string("database-path"),
launcherProtocol: Flag.integer("launcher-protocol"),
}).pipe(
Command.withHidden,
Command.withHandler(({ databasePath, launcherProtocol }) =>
Console.log(JSON.stringify(runServicePreflight({ databasePath, launcherProtocol }))).pipe(
Effect.asVoid,
),
),
);