0.0.5 • Published 6 months ago
checkupcodes v0.0.5
checkupcodes
An AI-powered commit message generator CLI tool that analyzes files in the git staging area and suggests appropriate commit messages using advanced AI models (Mistral and Deepseek).
Features
- 🤖 AI-powered commit message generation using Mistral and Deepseek models
- 📝 Analyzes staged files in your git repository
- 🚀 Easy to use CLI interface
- ⚡ Quick and efficient processing
- 🔄 Interactive commit confirmation
- 🎯 Local AI model support
Installation
npm install -g checkupcodes
Prerequisites
- Node.js (v14 or higher)
- Git installed on your system
- Ollama installed with Mistral and Deepseek models
Setup
- Install Ollama and download the required models:
# First install Ollama for your operating system
# Then run these commands to pull the models:
ollama pull mistral
ollama pull deepseek
- Make sure you have staged your files in git:
git add .
Usage
The CLI tool supports several commands:
Generate Commit Message
checkupcodes codes
# or
cc codes
Configure Settings
checkupcodes config
# or
cc config
Set AI Model
checkupcodes set-model
# or
cc set-model
Available Commands
Command | Description |
---|---|
codes | Analyzes staged files and generates a commit message |
config | View or modify configuration settings |
set-model | Change the AI model (choose between Mistral and Deepseek) |
The tool will:
- Analyze the files in your git staging area
- Generate an appropriate commit message using the selected AI model
- Present you with the option to confirm or modify the commit
Development
- Clone the repository:
git clone https://github.com/Checkup-Codes/checkupcodes.git
- Install dependencies:
npm install
Create a
.env
file and add your OpenAI API keyBuild the project:
npm run build
- For local development and testing:
npm link
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
License
This project is licensed under the ISC License.
Support
If you encounter any issues or have questions, please file an issue at GitHub Issues.
Version History
v0.0.5
- 🔄 Enhanced AI response handling
- Improved streaming response handling for different AI models
- Better error handling with user-friendly messages
- Added support for both streaming and non-streaming responses
- 📊 Enhanced change analysis system
- More detailed file change statistics
- Better summary generation for complex changes
- Improved semantic commit message formatting
- 🛠️ Technical improvements
- Added TypeScript type safety improvements
- Better error messages for configuration issues
- Enhanced API connection handling
v0.0.4
- 🎯 Added new
models
command to list available AI models- Shows all supported AI models with visual indicators
- Displays usage examples for model selection
- Easy model switching guide
- 🔧 Improved deepseek-coder integration
- Optimized prompt handling for better responses
- Enhanced API communication
- Streamlined model responses
- 🚀 Performance improvements
- Reduced prompt size for better model compatibility
- Optimized response handling for different model types
v0.0.3
- ✨ Enhanced commit analysis with detailed file comparison
- Added complete diff view between staged and HEAD versions
- Added full file content comparison for better context
- Improved AI prompt with detailed file changes
- 📝 Added automatic commit logging to
checkupcodes.txt
- Logs selected commit messages before any edits
- File is automatically ignored by git
v0.0.2
- 🚀 Initial public release
- 🤖 Basic AI-powered commit message generation
- 📝 Support for Mistral and Deepseek models
- ⚡ Interactive commit selection and editing