**Release Date:** December 25, 2024
**What's New:**
Commi v2.1.0 brings a range of new features, improvements, and fixes. This release introduces several enhancements, including new functionality for clipboard handling, improved error handling, and updated dependencies. We've also made some changes to improve compatibility with different environments and enhanced the overall user experience.
**New Features:**
- **Clipboard Tool Support:** We’ve added support for managing clipboard contents, improving the workflow for users who want to quickly copy commit messages.
- **Enhanced Diff Handling:** Improved Git diff parsing to handle more complex changes and edge cases with higher accuracy.
- **Expanded API Integration:** The integration with Google’s Gemini AI has been optimized for better performance and stability.
**Improvements:**
- **Error Handling Enhancements:** Several bug fixes related to error handling and better feedback for invalid configurations.
- **Updated Dependencies:** All dependencies have been updated to their latest versions, ensuring better security and performance. Notably, `google-generativeai`, `pyperclip`, `colorlog`, and `gitpython` are now running on the latest stable versions.
- **Platform Compatibility:** Additional checks for clipboard tools (`xclip`, `xsel`) on Linux platforms to ensure smooth installation and operation.
**Bug Fixes:**
- **Clipboard Handling on Linux:** Fixed issues where the clipboard tool (`xclip` or `xsel`) would fail in headless or non-graphical environments.
- **Git Command Failures:** Resolved problems with Git command errors during commit operations that could cause failures in certain scenarios.
- **Configuration Loading:** Improved handling of configuration files, especially with missing or incorrect API keys and environment variables.
**Breaking Changes:**
- **Removed Legacy Clipboard Support:** The previous clipboard handling method has been deprecated in favor of a more stable and maintainable solution using `xclip` and `pyperclip`. Users without these tools installed may need to manually install them.
- **Updated Minimum Python Version:** The minimum required Python version for this release is now Python 3.8.
**Upgrade Notes:**
- **API Key Configuration:** If you're using custom API keys, ensure that they are correctly configured in the environment or passed as parameters.
- **Reinstall Clipboard Tools (Linux Only):** On Linux systems, make sure `xclip` or `xsel` is installed to enable clipboard functionality. You can install them with the following command:
bash
sudo apt-get install xclip
Alternatively, `pyperclip` will automatically fall back to `xsel` if installed.
---
How to Upgrade:
To upgrade to the latest version, run the following command if you're using Poetry:
bash
poetry update commi