Merge pull request #629 from prakhar1605/feat/byok-onboarding-simplify

Simplify BYOK onboarding to provider + key (tasks 4 & 6)
This commit is contained in:
PRAKHAR PANDEY 2026-06-22 11:59:55 +05:30 committed by GitHub
commit 51ca8778b5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 136 additions and 166 deletions

View file

@ -2,7 +2,7 @@ import { z } from 'zod';
import { RelPath, Encoding, Stat, DirEntry, ReaddirOptions, ReadFileResult, WorkspaceChangeEvent, WriteFileOptions, WriteFileResult, RemoveOptions } from './workspace.js';
import { ListToolsResponse } from './mcp.js';
import { AskHumanResponsePayload, CreateRunOptions, Run, ListRunsResponse, ToolPermissionAuthorizePayload } from './runs.js';
import { LlmModelConfig } from './models.js';
import { LlmModelConfig, LlmProvider } from './models.js';
import { AgentScheduleConfig, AgentScheduleEntry } from './agent-schedule.js';
import { AgentScheduleState } from './agent-schedule-state.js';
import { ServiceEvent } from './service-events.js';
@ -403,6 +403,16 @@ const ipcSchemas = {
error: z.string().optional(),
}),
},
'models:listForProvider': {
req: z.object({
provider: LlmProvider,
}),
res: z.object({
success: z.boolean(),
models: z.array(z.string()).optional(),
error: z.string().optional(),
}),
},
'llm:getDefaultModel': {
req: z.null(),
res: z.object({