import { access } from 'node:fs/promises';
import { join } from 'node:path';
import { CURSOR_PROJECT_MAPPINGS, CURSOR_USER_MAPPINGS } from './paths.js';
async function detectCursor(scopeRoot) {
    try {
        await access(join(scopeRoot, '.cursor'));
        return true;
    }
    catch {
        return false;
    }
}
export const cursorAdapter = {
    name: 'cursor',
    displayName: 'Cursor',
    defaultStrategy: 'symlink',
    projectMappings: CURSOR_PROJECT_MAPPINGS,
    userMappings: CURSOR_USER_MAPPINGS,
    detect: detectCursor,
};
