feat: add codebase context capabilities to gemini-cli (#1163)
* feat: add support for claude code context - code context for: - add-task - update-subtask - update-task - update * feat: fix CI and format + refactor * chore: format * chore: fix test * feat: add gemini-cli support for codebase context * feat: add google cli integration and fix tests * chore: apply requested coderabbit changes * chore: bump gemini cli package
This commit is contained in:
@@ -428,16 +428,19 @@ function getResearchProvider(explicitRoot = null) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if Claude Code is being used as the provider
|
||||
* Check if a codebase analysis provider is being used (Claude Code or Gemini CLI)
|
||||
* @param {boolean} useResearch - Whether to check research provider or main provider
|
||||
* @param {string|null} projectRoot - Project root path (optional)
|
||||
* @returns {boolean} True if Claude Code is the current provider
|
||||
* @returns {boolean} True if a codebase analysis provider is the current provider
|
||||
*/
|
||||
function isClaudeCode(useResearch = false, projectRoot = null) {
|
||||
function hasCodebaseAnalysis(useResearch = false, projectRoot = null) {
|
||||
const currentProvider = useResearch
|
||||
? getResearchProvider(projectRoot)
|
||||
: getMainProvider(projectRoot);
|
||||
return currentProvider === CUSTOM_PROVIDERS.CLAUDE_CODE;
|
||||
return (
|
||||
currentProvider === CUSTOM_PROVIDERS.CLAUDE_CODE ||
|
||||
currentProvider === CUSTOM_PROVIDERS.GEMINI_CLI
|
||||
);
|
||||
}
|
||||
|
||||
function getResearchModelId(explicitRoot = null) {
|
||||
@@ -996,7 +999,7 @@ export {
|
||||
getResearchModelId,
|
||||
getResearchMaxTokens,
|
||||
getResearchTemperature,
|
||||
isClaudeCode,
|
||||
hasCodebaseAnalysis,
|
||||
getFallbackProvider,
|
||||
getFallbackModelId,
|
||||
getFallbackMaxTokens,
|
||||
|
||||
Reference in New Issue
Block a user