import { mkdirSync, writeFileSync } from 'node:fs';
import { join } from 'node:path';
const settingsContent = JSON.stringify({ worktree: { bgIsolation: 'none' } }, null, 2);
export async function writeWorktreeSettings(worktreePath) {
    try {
        const claudeDirectory = join(worktreePath, '.claude');
        mkdirSync(claudeDirectory, { recursive: true });
        writeFileSync(join(claudeDirectory, 'settings.json'), settingsContent);
        return { status: 'ok' };
    }
    catch (error) {
        const message = error instanceof Error ? error.message : String(error);
        return { status: 'failed', reason: message };
    }
}
//# sourceMappingURL=worktreeSettingsWriter.js.map