Default server config contract to strict livestore mode

Co-authored-by: Julius Marminge <[email protected]>
This commit is contained in:
Cursor AgentandJulius Marminge committed 2026-02-20 12:44:11 +00:00
1 parent 7ee0cce572
commit 0611b8220f
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -2,7 +2,7 @@ import { describe, expect, it } from "vitest";
import { serverConfigSchema } from "./server";
describe("serverConfigSchema", () => {
it("defaults syncEngineMode to legacy when omitted", () => {
it("defaults syncEngineMode to livestore when omitted", () => {
expect(
serverConfigSchema.parse({
cwd: "/workspace",
@@ -10,7 +10,7 @@ describe("serverConfigSchema", () => {
}),
).toEqual({
cwd: "/workspace",
syncEngineMode: "legacy",
syncEngineMode: "livestore",
keybindings: [],
});
});
+1 -1
View File
@@ -5,7 +5,7 @@ export const serverConfigSchema = z.object({
cwd: z.string().min(1),
syncEngineMode: z
.enum(["legacy", "shadow", "livestore-read-pilot", "livestore"])
.default("legacy"),
.default("livestore"),
keybindings: resolvedKeybindingsConfigSchema.default([]),
});