feat: add gemini-cli support for codebase context

This commit is contained in:
Ralph Khreish
2025-08-28 18:12:31 +02:00
parent 7fd751a5b8
commit 9f8cb08515
15 changed files with 50 additions and 48 deletions

View File

@@ -7,7 +7,7 @@ import { TASK_PRIORITY_OPTIONS } from '../../../../src/constants/task-priority.j
import { getCurrentTag, isSilentMode, log } from '../../utils.js';
import { Duration } from '../../../../src/utils/timeout-manager.js';
import { CUSTOM_PROVIDERS } from '../../../../src/constants/providers.js';
import { getMainProvider, getResearchProvider } from '../../config-manager.js';
import { getMainProvider, getResearchProvider, hasCodebaseAnalysis } from '../../config-manager.js';
// ============================================================================
// SCHEMAS
@@ -75,13 +75,10 @@ export class PrdParseConfig {
}
/**
* Check if Claude Code is being used
* Check if codebase analysis is available (Claude Code or Gemini CLI)
*/
isClaudeCode() {
const currentProvider = this.research
? getResearchProvider(this.projectRoot)
: getMainProvider(this.projectRoot);
return currentProvider === CUSTOM_PROVIDERS.CLAUDE_CODE;
hasCodebaseAnalysis() {
return hasCodebaseAnalysis(this.research, this.projectRoot);
}
}