export async function prepareGenerationInput(inputPath: string | null | undefined): Promise { if (!inputPath) return null const result = await window.electronAPI.prepareGenerationInput({ path: inputPath }) if (!result.success) throw new Error(result.error) return result.path }