import { access } from 'node:fs/promises';
import { join } from 'node:path';
import { GEMINI_PROJECT_MAPPINGS, GEMINI_USER_MAPPINGS } from './paths.js';
async function detectGemini(scopeRoot) {
    try {
        await access(join(scopeRoot, '.gemini'));
        return true;
    }
    catch {
        return false;
    }
}
export const geminiAdapter = {
    name: 'gemini',
    displayName: 'Gemini CLI',
    defaultStrategy: 'auto',
    projectMappings: GEMINI_PROJECT_MAPPINGS,
    userMappings: GEMINI_USER_MAPPINGS,
    detect: detectGemini,
};
