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

@@ -14,7 +14,7 @@
| 5 | [Log Parser Integration](phases/phase-5-log-parser.md) | `completed` | ✅ |
| 6 | [UI Setup Wizard](phases/phase-6-setup-wizard.md) | `completed` | ✅ |
| 7 | [Settings View Provider Tabs](phases/phase-7-settings.md) | `completed` | ✅ |
| 8 | [AI Profiles Integration](phases/phase-8-profiles.md) | `pending` | - |
| 8 | [AI Profiles Integration](phases/phase-8-profiles.md) | `completed` | |
| 9 | [Task Execution Integration](phases/phase-9-execution.md) | `pending` | - |
| 10 | [Testing & Validation](phases/phase-10-testing.md) | `pending` | - |

View File

@@ -1,6 +1,6 @@
# Phase 8: AI Profiles Integration
**Status:** `pending`
**Status:** `completed`
**Dependencies:** Phase 1 (Types), Phase 7 (Settings)
**Estimated Effort:** Medium (UI + types)
@@ -31,7 +31,7 @@ Extend the AI Profiles system to support Cursor as a provider, with proper handl
### Task 8.1: Update AIProfile Type
**Status:** `pending`
**Status:** `completed`
**File:** `libs/types/src/settings.ts`
@@ -93,7 +93,7 @@ export function getProfileModelString(profile: AIProfile): string {
### Task 8.2: Update Profile Form Component
**Status:** `pending`
**Status:** `completed`
**File:** `apps/ui/src/components/views/profiles-view/components/profile-form.tsx`
@@ -289,7 +289,7 @@ export function ProfileForm({ profile, onSave, onCancel }: ProfileFormProps) {
### Task 8.3: Update Profile Card Display
**Status:** `pending`
**Status:** `completed`
**File:** `apps/ui/src/components/views/profiles-view/components/profile-card.tsx`
@@ -374,7 +374,7 @@ export function ProfileCard({ profile, onEdit, onDelete }: ProfileCardProps) {
### Task 8.4: Add Default Cursor Profiles
**Status:** `pending`
**Status:** `completed`
**File:** `apps/ui/src/components/views/profiles-view/constants.ts`
@@ -430,7 +430,7 @@ export const DEFAULT_PROFILES: AIProfile[] = [
### Task 8.5: Update Profile Validation
**Status:** `pending`
**Status:** `completed`
Add validation for profile data: