'use server';
import { FolderDialogService } from '../../../../../packages/core/src/infrastructure/services/folder-dialog.service.js';
export async function pickFolder() {
    const service = new FolderDialogService();
    try {
        const path = service.pickFolder();
        return { path };
    }
    catch (error) {
        const message = error instanceof Error ? error.message : 'Failed to open folder dialog';
        return { path: null, error: message };
    }
}
