Support Beta release channel (#591)

This commit is contained in:
Will Chen
2025-07-07 17:15:02 -07:00
committed by GitHub
parent ab6a9d3b34
commit a93536386b
21 changed files with 181 additions and 2 deletions

View File

@@ -125,6 +125,9 @@ export type ContextPathResults = {
smartContextAutoIncludes: ContextPathResult[];
};
export const ReleaseChannelSchema = z.enum(["stable", "beta"]);
export type ReleaseChannel = z.infer<typeof ReleaseChannelSchema>;
/**
* Zod schema for user settings
*/
@@ -152,6 +155,7 @@ export const UserSettingsSchema = z.object({
enableAutoFixProblems: z.boolean().optional(),
enableNativeGit: z.boolean().optional(),
enableAutoUpdate: z.boolean(),
releaseChannel: ReleaseChannelSchema,
////////////////////////////////
// E2E TESTING ONLY.