feat: Integrate Cursor provider support in AI profiles

- Updated AIProfile type to include support for Cursor provider, adding cursorModel and validation logic.
- Enhanced ProfileForm component to handle provider selection and corresponding model configurations for both Claude and Cursor.
- Implemented display functions for model and thinking configurations in ProfileQuickSelect.
- Added default Cursor profiles to the application state.
- Updated UI components to reflect provider-specific settings and validations.
- Marked completion of the AI Profiles Integration phase in the project plan.
This commit is contained in:
Shirone
2025-12-28 01:32:55 +01:00
parent c602314312
commit de11908db1
9 changed files with 355 additions and 61 deletions

View File

@@ -859,6 +859,7 @@ export interface AppActions {
// Default built-in AI profiles
const DEFAULT_AI_PROFILES: AIProfile[] = [
// Claude profiles
{
id: 'profile-heavy-task',
name: 'Heavy Task',
@@ -890,6 +891,34 @@ const DEFAULT_AI_PROFILES: AIProfile[] = [
isBuiltIn: true,
icon: 'Zap',
},
// Cursor profiles
{
id: 'profile-cursor-auto',
name: 'Cursor Auto',
description: 'Let Cursor choose the best model automatically.',
provider: 'cursor',
cursorModel: 'auto',
isBuiltIn: true,
icon: 'Sparkles',
},
{
id: 'profile-cursor-fast',
name: 'Cursor Fast',
description: 'Quick responses with GPT-4o Mini via Cursor.',
provider: 'cursor',
cursorModel: 'gpt-4o-mini',
isBuiltIn: true,
icon: 'Zap',
},
{
id: 'profile-cursor-thinking',
name: 'Cursor Thinking',
description: 'Claude Sonnet 4 with extended thinking via Cursor for complex tasks.',
provider: 'cursor',
cursorModel: 'claude-sonnet-4-thinking',
isBuiltIn: true,
icon: 'Brain',
},
];
const initialState: AppState = {