mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-01-31 20:03:37 +00:00
feat: Integrate CursorProvider into ProviderFactory
- Added CursorProvider to the ProviderFactory for handling cursor-* models. - Updated getProviderNameForModel method to determine the appropriate provider based on model identifiers. - Enhanced getAllProviders method to return both ClaudeProvider and CursorProvider. - Updated documentation to reflect the completion of the Provider Factory integration phase.
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
| 0 | [Analysis & Documentation](phases/phase-0-analysis.md) | `completed` | ✅ |
|
||||
| 1 | [Core Types & Configuration](phases/phase-1-types.md) | `completed` | ✅ |
|
||||
| 2 | [Cursor Provider Implementation](phases/phase-2-provider.md) | `completed` | ✅ |
|
||||
| 3 | [Provider Factory Integration](phases/phase-3-factory.md) | `pending` | - |
|
||||
| 3 | [Provider Factory Integration](phases/phase-3-factory.md) | `completed` | ✅ |
|
||||
| 4 | [Setup Routes & Status Endpoints](phases/phase-4-routes.md) | `pending` | - |
|
||||
| 5 | [Log Parser Integration](phases/phase-5-log-parser.md) | `pending` | - |
|
||||
| 6 | [UI Setup Wizard](phases/phase-6-setup-wizard.md) | `pending` | - |
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Phase 3: Provider Factory Integration
|
||||
|
||||
**Status:** `pending`
|
||||
**Status:** `completed`
|
||||
**Dependencies:** Phase 2 (Provider)
|
||||
**Estimated Effort:** Small (routing logic only)
|
||||
|
||||
@@ -16,7 +16,7 @@ Integrate CursorProvider into the ProviderFactory so models are automatically ro
|
||||
|
||||
### Task 3.1: Update Provider Factory
|
||||
|
||||
**Status:** `pending`
|
||||
**Status:** `completed`
|
||||
|
||||
**File:** `apps/server/src/providers/provider-factory.ts`
|
||||
|
||||
@@ -132,7 +132,7 @@ export class ProviderFactory {
|
||||
|
||||
### Task 3.2: Export CursorProvider
|
||||
|
||||
**Status:** `pending`
|
||||
**Status:** `completed`
|
||||
|
||||
**File:** `apps/server/src/providers/index.ts`
|
||||
|
||||
@@ -203,13 +203,13 @@ console.log('Total models:', allModels.length);
|
||||
|
||||
Before marking this phase complete:
|
||||
|
||||
- [ ] ProviderFactory routes `cursor-*` models to CursorProvider
|
||||
- [ ] ProviderFactory routes Claude models to ClaudeProvider
|
||||
- [ ] `getAllProviders()` returns both providers
|
||||
- [ ] `getProviderByName('cursor')` returns CursorProvider
|
||||
- [ ] `checkAllProviders()` returns status for both providers
|
||||
- [ ] `getAllAvailableModels()` includes Cursor models
|
||||
- [ ] Existing Claude routing not broken
|
||||
- [x] ProviderFactory routes `cursor-*` models to CursorProvider
|
||||
- [x] ProviderFactory routes Claude models to ClaudeProvider
|
||||
- [x] `getAllProviders()` returns both providers
|
||||
- [x] `getProviderByName('cursor')` returns CursorProvider
|
||||
- [x] `checkAllProviders()` returns status for both providers
|
||||
- [x] `getAllAvailableModels()` includes Cursor models
|
||||
- [x] Existing Claude routing not broken
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user