mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-04 09:13:08 +00:00
fix: Also check hasApiKey for CLI authentication
Address CodeRabbit review comment - API keys stored in CLI credentials file should also be detected as valid authentication. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -133,7 +133,8 @@ const BOX_CONTENT_WIDTH = 67;
|
|||||||
const hasCliAuth =
|
const hasCliAuth =
|
||||||
indicators.hasStatsCacheWithActivity ||
|
indicators.hasStatsCacheWithActivity ||
|
||||||
(indicators.hasSettingsFile && indicators.hasProjectsSessions) ||
|
(indicators.hasSettingsFile && indicators.hasProjectsSessions) ||
|
||||||
(indicators.hasCredentialsFile && indicators.credentials?.hasOAuthToken);
|
(indicators.hasCredentialsFile &&
|
||||||
|
(indicators.credentials?.hasOAuthToken || indicators.credentials?.hasApiKey));
|
||||||
|
|
||||||
if (hasCliAuth) {
|
if (hasCliAuth) {
|
||||||
logger.info('✓ Claude Code CLI authentication detected');
|
logger.info('✓ Claude Code CLI authentication detected');
|
||||||
|
|||||||
Reference in New Issue
Block a user