This commit is contained in:
Wilber Ticllasuca 2026-04-23 09:03:38 +07:00 committed by GitHub
commit 153519f01d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
25 changed files with 5144 additions and 18 deletions

View file

@ -275,6 +275,39 @@ const ipcSchemas = {
})),
}),
},
'github-copilot:authenticate': {
req: z.null(),
res: z.union([
z.object({
success: z.literal(true),
userCode: z.string(),
verificationUri: z.string(),
expiresIn: z.number(),
}),
z.object({
success: z.literal(false),
error: z.string(),
}),
]),
},
'github-copilot:isAuthenticated': {
req: z.null(),
res: z.object({
authenticated: z.boolean(),
}),
},
'github-copilot:disconnect': {
req: z.null(),
res: z.union([
z.object({
success: z.literal(true),
}),
z.object({
success: z.literal(false),
error: z.string(),
}),
]),
},
'account:getRowboat': {
req: z.null(),
res: z.object({

View file

@ -1,7 +1,7 @@
import { z } from "zod";
export const LlmProvider = z.object({
flavor: z.enum(["openai", "anthropic", "google", "openrouter", "aigateway", "ollama", "openai-compatible"]),
flavor: z.enum(["openai", "anthropic", "google", "openrouter", "aigateway", "ollama", "openai-compatible", "github-copilot"]),
apiKey: z.string().optional(),
baseURL: z.string().optional(),
headers: z.record(z.string(), z.string()).optional(),