feat: add auth entry: coding plan

This commit is contained in:
mingholy.lmh 2026-02-10 17:59:47 +08:00
parent 169ad2d030
commit b9dd080bd1
21 changed files with 721 additions and 447 deletions

View file

@ -17,7 +17,12 @@ import {
import { type SettingScope } from '../../config/settings.js';
import type { AuthState } from '../types.js';
import { type VisionSwitchOutcome } from '../components/ModelSwitchDialog.js';
import { type OpenAICredentials } from '../components/OpenAIKeyPrompt.js';
// OpenAICredentials type (previously imported from OpenAIKeyPrompt)
export interface OpenAICredentials {
apiKey: string;
baseUrl?: string;
model?: string;
}
export interface UIActions {
openThemeDialog: () => void;
@ -35,6 +40,7 @@ export interface UIActions {
authType: AuthType | undefined,
credentials?: OpenAICredentials,
) => Promise<void>;
handleCodingPlanSubmit: (apiKey: string) => Promise<void>;
setAuthState: (state: AuthState) => void;
onAuthError: (error: string) => void;
cancelAuthentication: () => void;