/**
 * GET /api/magic/info
 *
 * Public — keine Auth. Liefert Metadaten für die Native-App-Settings-Seite:
 * Download-URLs (Mac DMG + Windows Installer) + Latest-Versions.
 *
 * Auto-Updates passieren in den Desktop-Apps selbst — hier nur Erstinstallation.
 */
export default defineEventHandler(() => {
  return {
    success: true,
    data: {
      latestVersion: "0.1.0",
      downloadUrl: "https://rebreak.org/download/rebreakmagic",
      dmgUrl: "https://rebreak.org/downloads/RebreakMagic-latest.dmg",
      minMacosVersion: "13.0",
      // Windows (apps/rebreak-magic-win, Tauri NSIS-Installer)
      windowsInstallerUrl: "https://rebreak.org/downloads/RebreakMagic-Setup.exe",
      minWindowsVersion: "10 (21H2)",
    },
  };
});
