mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-02 08:33:36 +00:00
chore: Fix all 246 TypeScript errors in UI
- Extended SetupAPI interface with 20+ missing methods for Cursor, Codex, OpenCode, Gemini, and Copilot CLI integrations - Fixed WorktreeInfo type to include isCurrent and hasWorktree fields - Added null checks for optional API properties across all hooks - Fixed Feature type conflicts between @automaker/types and local definitions - Added missing CLI status hooks for all providers - Fixed type mismatches in mutation callbacks and event handlers - Removed dead code referencing non-existent GlobalSettings properties - Updated mock implementations in electron.ts for all new API methods Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -99,7 +99,7 @@ export function useProjectSettingsLoader() {
|
||||
// These are stored directly on the project, so we need to update both
|
||||
// currentProject AND the projects array to keep them in sync
|
||||
// Type assertion needed because API returns Record<string, unknown>
|
||||
const settingsWithExtras = settings as Record<string, unknown>;
|
||||
const settingsWithExtras = settings as unknown as Record<string, unknown>;
|
||||
const activeClaudeApiProfileId = settingsWithExtras.activeClaudeApiProfileId as
|
||||
| string
|
||||
| null
|
||||
|
||||
Reference in New Issue
Block a user