import { access } from 'node:fs/promises';
import { join } from 'node:path';
import { CLAUDE_PROJECT_MAPPINGS, CLAUDE_USER_MAPPINGS } from './paths.js';
async function detectClaude(scopeRoot) {
    try {
        await access(join(scopeRoot, '.claude'));
        return true;
    }
    catch {
        return false;
    }
}
export const claudeAdapter = {
    name: 'claude',
    displayName: 'Claude Code',
    defaultStrategy: 'symlink',
    projectMappings: CLAUDE_PROJECT_MAPPINGS,
    userMappings: CLAUDE_USER_MAPPINGS,
    detect: detectClaude,
};
