mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-02 08:33:36 +00:00
fix: improve auth status display and remove verbose console logging
- Fix authentication status display in settings showing "Method: Unknown" - Add support for CLAUDE_CODE_OAUTH_TOKEN environment variable - Update ClaudeAuthStatus type to include all auth methods - Fix method mapping in use-cli-status hook - Display correct auth method labels in UI - Remove verbose console logging from: - claude-cli-detector.js - codex-cli-detector.js - agent-service.js - main.js (IPC, Security logs) - Fix TypeScript errors: - Add proper type exports for AutoModeEvent - Fix Project import paths - Add null checks for api.features - Add openExternalLink to ElectronAPI type - Add type annotation for REQUIRED_STRUCTURE - Update README with clearer getting started guide 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -41,8 +41,22 @@ export interface StatResult {
|
||||
error?: string;
|
||||
}
|
||||
|
||||
// Auto Mode types - Import from electron.d.ts to avoid duplication
|
||||
// Auto Mode types - Import from electron.d.ts for internal use
|
||||
import type {
|
||||
AutoModeEvent as AutoModeEventType,
|
||||
ModelDefinition as ModelDefinitionType,
|
||||
ProviderStatus as ProviderStatusType,
|
||||
WorktreeAPI as WorktreeAPIType,
|
||||
GitAPI as GitAPIType,
|
||||
WorktreeInfo as WorktreeInfoType,
|
||||
WorktreeStatus as WorktreeStatusType,
|
||||
FileDiffsResult as FileDiffsResultType,
|
||||
FileDiffResult as FileDiffResultType,
|
||||
FileStatus as FileStatusType,
|
||||
} from "@/types/electron";
|
||||
|
||||
// Re-export types for external use
|
||||
export type {
|
||||
AutoModeEvent,
|
||||
ModelDefinition,
|
||||
ProviderStatus,
|
||||
@@ -55,6 +69,18 @@ import type {
|
||||
FileStatus,
|
||||
} from "@/types/electron";
|
||||
|
||||
// Type aliases for internal use
|
||||
type AutoModeEvent = AutoModeEventType;
|
||||
type ModelDefinition = ModelDefinitionType;
|
||||
type ProviderStatus = ProviderStatusType;
|
||||
type WorktreeAPI = WorktreeAPIType;
|
||||
type GitAPI = GitAPIType;
|
||||
type WorktreeInfo = WorktreeInfoType;
|
||||
type WorktreeStatus = WorktreeStatusType;
|
||||
type FileDiffsResult = FileDiffsResultType;
|
||||
type FileDiffResult = FileDiffResultType;
|
||||
type FileStatus = FileStatusType;
|
||||
|
||||
// Feature type - Import from app-store
|
||||
import type { Feature } from "@/store/app-store";
|
||||
|
||||
@@ -308,17 +334,19 @@ export interface ElectronAPI {
|
||||
getClaudeStatus: () => Promise<{
|
||||
success: boolean;
|
||||
status?: string;
|
||||
installed?: boolean;
|
||||
method?: string;
|
||||
version?: string;
|
||||
path?: string;
|
||||
auth?: {
|
||||
authenticated: boolean;
|
||||
method: string;
|
||||
hasCredentialsFile: boolean;
|
||||
hasToken: boolean;
|
||||
hasCredentialsFile?: boolean;
|
||||
hasToken?: boolean;
|
||||
hasStoredOAuthToken?: boolean;
|
||||
hasStoredApiKey?: boolean;
|
||||
hasEnvApiKey?: boolean;
|
||||
hasEnvOAuthToken?: boolean;
|
||||
};
|
||||
error?: string;
|
||||
}>;
|
||||
|
||||
Reference in New Issue
Block a user