import openUrl from "./open-url";
export async function openApproval(url) {
    // Always surface the URL so the user has a clickable fallback if openUrl
    // silently no-ops (headless servers, WSL without a handler, misconfigured
    // default browser, etc.).
    console.error(`Approval required. Opening browser: ${url}`);
    try {
        await openUrl(url);
    }
    catch {
        // Best-effort — URL already printed to stderr above.
    }
}
