/** Runs a mutation whose failure the mutation itself reports, resolving whether it succeeded. */ export async function attempt(mutation: () => Promise): Promise { try { await mutation(); return true; } catch { // Error toast is handled by the mutation. return false; } }