From 6832a598cb7c40017631a67fffa7fd016f903c2d Mon Sep 17 00:00:00 2001 From: s41r4j Date: Thu, 9 Oct 2025 23:56:48 +0530 Subject: [PATCH] feat: update to latest AI models and simplify README - Update AI models to latest versions: - Gemini: gemini-2.5-flash - OpenAI: gpt-5 - Groq: groq/compound - Drastically simplify README (90% shorter) - Focus on quick start and essential commands - Update version to 0.6.2 --- CHANGELOG.md | 152 ++++-------- QUICK_REFERENCE.md | 8 +- README.md | 505 ++++---------------------------------- bin/gims.js | 6 +- bin/lib/ai/providers.js | 6 +- bin/lib/config/manager.js | 12 +- package.json | 2 +- 7 files changed, 110 insertions(+), 581 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 57ea582..a9c7341 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,116 +1,58 @@ # Changelog -## [0.6.0] - Enhanced GIMS - 2024-12-19 +## [0.6.2] - 2024-12-19 -### πŸš€ Major Features Added - -#### **Interactive & Enhanced UX** -- **Interactive Commit Wizard** (`g int`) - Guided workflow with multiple AI suggestions -- **Enhanced Status** (`g status`) - Git status with AI insights and project analysis -- **Preview Mode** (`g preview`) - See commit preview with AI message and diff analysis -- **Setup Wizard** (`g setup`) - Interactive first-time configuration -- **Progress Indicators** - Visual feedback for all AI operations - -#### **Smart Configuration Management** -- **Config Command** (`g config`) - Manage settings with `--set`, `--get`, `--list` -- **Project Type Detection** - Automatically detects React, Node, Python, etc. -- **Enhanced .gimsrc** - More configuration options and better validation -- **Global vs Local Config** - Project-specific or user-wide settings - -#### **Advanced Git Operations** -- **Smart Sync** (`g sync`) - Intelligent pull with rebase/merge options -- **Enhanced Stash** (`g stash`) - AI-generated stash descriptions -- **Better Amend** (`g amend`) - Smart amend with AI message generation or `--no-edit` -- **Enhanced List** (`g ls`) - Unified list command with `--detailed` and `--limit` options - -#### **AI & Performance Improvements** -- **Multiple Suggestions** (`g s --multiple`) - Generate 3 different commit message options -- **Caching System** - Cache AI responses for faster repeated operations -- **Provider Fallback Chain** - Automatic fallback between AI providers -- **Better Error Handling** - Actionable guidance and helpful suggestions - -### πŸ”§ Architecture Improvements - -#### **Modular Design** -- Split monolithic `gims.js` into focused modules: - - `lib/utils/` - Colors, progress indicators - - `lib/config/` - Configuration management - - `lib/git/` - Git analysis and insights - - `lib/ai/` - AI provider management - - `lib/commands/` - Interactive commands - -#### **Enhanced Components** -- **GitAnalyzer** - Smart git status analysis with insights -- **AIProviderManager** - Improved AI handling with caching and fallbacks -- **ConfigManager** - Comprehensive configuration with validation -- **InteractiveCommands** - User interaction and guided workflows -- **Progress** - Visual feedback system - -### πŸ“Š User Experience Enhancements - -#### **Better Feedback** -- Progress spinners for AI operations -- Success/warning/error indicators with colors -- Actionable error messages with suggestions -- Step-by-step guidance in interactive mode - -#### **Smart Defaults** -- Auto-detection of project type and commit style -- Intelligent provider selection -- Context-aware configuration suggestions - -#### **Enhanced Commands** -- All existing commands improved with progress indicators -- Better error handling and user guidance -- Consistent color coding and formatting -- More informative output - -### πŸ› οΈ Configuration Options Added - -#### **New Environment Variables** -- `GIMS_AUTO_STAGE` - Auto-stage changes by default -- `GIMS_CACHE` - Enable/disable AI response caching -- `GIMS_PROGRESS` - Show/hide progress indicators -- `GIMS_MAX_DIFF_SIZE` - Maximum diff size for AI processing - -#### **New .gimsrc Options** -```json -{ - "autoStage": false, - "cacheEnabled": true, - "progressIndicators": true, - "maxDiffSize": 100000, - "projectType": "react" -} -``` - -### πŸ“ˆ Performance Improvements -- **Caching**: AI responses cached for 1 hour -- **Modular Loading**: Components loaded on-demand -- **Better Memory Management**: Efficient diff processing -- **Faster Startup**: Optimized initialization - -### πŸ”„ Breaking Changes -- Removed `largelist` command (merged into `list --detailed`) -- Changed some internal APIs (affects programmatic usage only) -- Updated minimum Node.js version recommendation to 20+ - -### πŸ› Bug Fixes -- Fixed git status parsing for different git versions -- Improved error handling for large diffs -- Better clipboard handling across platforms -- Fixed configuration file validation +### πŸš€ AI Model Updates +- **Updated to latest AI models**: + - Gemini: `gemini-2.5-flash` (latest and fastest) + - OpenAI: `gpt-5` (latest GPT model) + - Groq: `groq/compound` (latest Groq model) ### πŸ“š Documentation -- Completely updated README with new features -- Added comprehensive examples for all new commands -- Enhanced configuration documentation -- Added troubleshooting guide +- **Simplified README**: Reduced from verbose to concise format +- **Focused on essentials**: Quick start, main commands, examples +- **Better readability**: Easier to scan and understand + +### 🧹 Repository Cleanup +- Removed development-specific files (.kiro/, .github/, coverage/) +- Updated .gitignore to exclude dev directories +- Cleaner package for npm distribution + +--- + +## [0.6.1] - 2024-12-19 + +### ✨ Enhanced User Experience +- **Single-letter aliases** for main workflow commands +- **Quick API setup**: `g setup --api-key ` +- **Better onboarding**: Clear setup instructions with direct links +- **Quick help**: `g q` command for instant reference + +### πŸ”§ Improved Commands +- `g s` - Status (enhanced git status) +- `g i` - Interactive (guided commit wizard) +- `g p` - Preview (see what will be committed) +- `g l` - Local (AI commit locally) +- `g o` - Online (AI commit + push) +- `g h` - History (numbered commit log) +- `g a` - Amend (smart amend with AI) +- `g u` - Undo (undo last commit) + +--- + +## [0.6.0] - 2024-12-19 + +### πŸš€ Major Enhanced Release +- **Interactive commit wizard** with multiple AI suggestions +- **Enhanced git status** with AI insights and project analysis +- **Modular architecture** for better performance and maintainability +- **Smart configuration** with project type detection +- **Progress indicators** and better error handling +- **Caching system** for improved AI response times --- ## [0.5.4] - Previous Version - Basic AI-powered commit messages - Simple configuration -- Core git operations -- Single-file architecture \ No newline at end of file +- Core git operations \ No newline at end of file diff --git a/QUICK_REFERENCE.md b/QUICK_REFERENCE.md index 19adbdc..ffb3cca 100644 --- a/QUICK_REFERENCE.md +++ b/QUICK_REFERENCE.md @@ -43,9 +43,9 @@ g h --detailed --limit 10 # Detailed view ## Default AI Models -- **Gemini**: `gemini-2.0-flash-exp` (Fast, free, recommended) -- **OpenAI**: `gpt-4o-mini` (Cost-effective, high quality) -- **Groq**: `llama-3.1-8b-instant` (Ultra-fast inference) +- **Gemini**: `gemini-2.5-flash` (Fast, free, recommended) +- **OpenAI**: `gpt-5` (Latest GPT model) +- **Groq**: `groq/compound` (Ultra-fast inference) ## Pro Tips @@ -70,5 +70,5 @@ g config --set provider=gemini # Set AI provider ```bash g --help # All commands -g --help # Command-specific help +g q # This quick reference ``` \ No newline at end of file diff --git a/README.md b/README.md index f429eb2..39ed304 100644 --- a/README.md +++ b/README.md @@ -1,488 +1,75 @@ -# πŸš€ GIMS - Git Made Simple (Enhanced) +# πŸš€ GIMS - Git Made Simple -
- - [![npm version](https://img.shields.io/npm/v/gims.svg)](https://npmjs.org/package/gims) - [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) - [![Node.js Version](https://img.shields.io/node/v/gims.svg)](https://nodejs.org/) - [![AI Powered](https://img.shields.io/badge/AI-Powered-blueviolet.svg)](https://github.com/yourusername/gims) +[![npm version](https://img.shields.io/npm/v/gims.svg)](https://npmjs.org/package/gims) +[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) +[![AI Powered](https://img.shields.io/badge/AI-Powered-blueviolet.svg)](https://github.com/s41r4j/gims) - **The AI-powered Git CLI that writes your commit messages for you** - - *Now with enhanced UX, smart insights, and interactive workflows* ✨ +**AI-powered Git CLI that writes your commit messages for you** -
+*Because life's too short for "fix stuff" commits* 🎯 ---- - -## ✨ What is GIMS? - -GIMS is a revolutionary Git CLI tool that uses AI to automatically generate meaningful commit messages from your code changes. The enhanced version adds intelligent insights, interactive workflows, and a modular architecture for better performance and user experience. - -### 🎬 See It In Action - -```bash -# Traditional Git workflow 😴 -git add . -git commit -m "update stuff" # πŸ€¦β€β™‚οΈ -git push - -# GIMS workflow ⚑ -g o # AI analyzes changes, commits with perfect message, and pushes! -``` - -## 🌟 Enhanced Features - -### πŸ€– **AI-Powered Commit Messages** -- OpenAI, Google Gemini, and Groq support with automatic provider selection -- Smart diff analysis with caching for improved performance -- Multiple suggestion generation for better options -- Handles large codebases with intelligent summarization and safe truncation -- Optional Conventional Commits formatting and optional commit body generation - -### ⚑ **Lightning Fast Workflow** -- **Interactive Mode**: `g int` - guided commit wizard with multiple suggestions -- **Smart Status**: `g status` - enhanced git status with AI insights -- **Preview Mode**: `g preview` - see what would be committed with AI message -- One command commits: `g o` - analyze, commit, and push -- Smart suggestions: `g s` - get AI-generated messages (use `--multiple` for options) - -### 🧠 **Intelligent Analysis & Insights** -- **Project Detection**: Automatically detects project type (React, Node, Python, etc.) -- **Smart Insights**: AI analyzes changes and provides contextual tips -- **Change Complexity**: Understands and reports on the scope of changes -- **Commit History Analysis**: Tracks patterns and suggests improvements - -### πŸ› οΈ **Enhanced Developer Experience** -- **Setup Wizard**: `g setup` - interactive configuration for first-time users -- **Progress Indicators**: Visual feedback for AI operations -- **Better Error Messages**: Actionable guidance when things go wrong -- **Smart Sync**: `g sync` - intelligent pull with rebase/merge options -- **Enhanced Stash**: `g stash` - AI-generated stash descriptions - -### πŸ”§ **Advanced Configuration** -- **Config Management**: `g config` - set preferences globally or per-project -- **Caching System**: Speeds up repeated operations -- **Modular Architecture**: Better performance and maintainability - -## πŸš€ Quick Start - -### Prerequisites - -- Node.js >= 18.18.0 (Node 20+ recommended) -- npm >= 9 - -Tip: Use nvm to manage Node versions per-user without sudo: - -```bash -curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash -export NVM_DIR="$HOME/.nvm" && . "$NVM_DIR/nvm.sh" -nvm install 20 && nvm alias default 20 -``` - -### Installation +## ⚑ Quick Start ```bash +# Install npm install -g gims -``` -If you get EACCES permission errors on Linux when installing globally, set a user prefix: - -```bash -mkdir -p ~/.npm-global -npm config set prefix '~/.npm-global' -echo 'export PATH="$HOME/.npm-global/bin:$PATH"' >> ~/.bashrc -source ~/.bashrc -npm install -g gims -``` - -### Setup AI (Choose One - Quick & Easy!) - -**πŸš€ Quick Setup (Recommended)** -```bash -# Gemini (Free, fast, recommended) -g setup --api-key gemini - -# OpenAI (High quality) -g setup --api-key openai - -# Groq (Ultra fast) -g setup --api-key groq -``` - -**πŸ”§ Manual Setup (Advanced)** -```bash -# Set environment variables -export GEMINI_API_KEY="your-api-key-here" # Uses gemini-2.0-flash-exp -export OPENAI_API_KEY="your-api-key-here" # Uses gpt-4o-mini -export GROQ_API_KEY="your-api-key-here" # Uses llama-3.1-8b-instant -``` - -GIMS auto-detects configured providers and uses smart defaults. If no AI is configured, it uses local heuristics to generate sensible messages. - -### Your First Enhanced Experience - -```bash -# Quick AI setup (choose one - Gemini recommended) -g setup --api-key gemini # Fast & free -g setup --api-key openai # High quality +# Setup AI (choose one) +g setup --api-key gemini # Free & fast (recommended) +g setup --api-key openai # High quality g setup --api-key groq # Ultra fast -# Make some changes to your code -echo "console.log('Hello Enhanced GIMS!');" > hello.js - -# Check enhanced status with AI insights -g s -# Shows: Git status + AI insights about your changes - -# Use interactive mode for guided commits -g i -# Walks you through: staging β†’ AI suggestions β†’ commit β†’ push - -# Or use the classic one-command workflow -g o -# Output: βœ“ Committed & pushed: "Add hello world console log" +# Use it +g s # Check status with AI insights +g o # AI commit + push ``` -## πŸ“– Enhanced Commands Reference +## 🎯 Main Commands -### πŸš€ **Main Workflow (Single Letters)** -| Command | Alias | Description | Example | -|---------|-------|-------------|---------| -| `gims status` | `g s` | Enhanced git status with AI insights | `g s` | -| `gims interactive` | `g i` | Interactive commit wizard | `g i` | -| `gims preview` | `g p` | Preview commit with AI message | `g p` | -| `gims local` | `g l` | AI commit locally | `g l` | -| `gims online` | `g o` | AI commit + push | `g o` | -| `gims list` | `g h` | Numbered commit history | `g h` | -| `gims amend` | `g a` | Smart amend with AI | `g a` | -| `gims undo` | `g u` | Undo last commit | `g u --yes` | +| Command | Description | +|---------|-------------| +| `g s` | Enhanced status with AI insights | +| `g i` | Interactive commit wizard | +| `g o` | AI commit + push | +| `g l` | AI commit locally | +| `g h` | Commit history | +| `g a` | Smart amend | -### οΏ½ **Se tup & Config** -| Command | Alias | Description | Example | -|---------|-------|-------------|---------| -| `gims setup` | - | Setup wizard or quick API key setup | `g setup --api-key gemini` | -| `gims config` | - | Manage configuration | `g config --set provider=gemini` | +## πŸ€– AI Models -### πŸ“ **Additional Commands** -| Command | Alias | Description | Example | -|---------|-------|-------------|---------| -| `gims suggest` | `g sg` | AI suggestions with clipboard | `g sg --multiple` | -| `gims commit ` | `g m` | Custom message commit | `g m "fix: handle edge case"` | -| `gims sync` | - | Smart sync: pull + rebase/merge | `g sync --rebase` | -| `gims stash` | - | Enhanced stash with AI descriptions | `g stash` | -| `gims init` | - | Initialize repo | `g init` | -| `gims clone ` | `g c` | Clone repository | `g c https://github.com/user/repo` | -| `gims pull` | - | Pull changes | `g pull` | -| `gims branch ` | `g b` | Branch from commit #n | `g b 3 feature-x` | -| `gims reset ` | `g r` | Reset to commit | `g r 5 --hard --yes` | -| `gims revert ` | `g rv` | Revert commit | `g rv 2 --yes` | +- **Gemini**: `gemini-2.5-flash` (Free, fast, recommended) +- **OpenAI**: `gpt-5` (High quality) +- **Groq**: `groq/compound` (Ultra fast) -### Global Options +## πŸ“– Examples -- `--provider `: AI provider: `auto` | `openai` | `gemini` | `groq` | `none` -- `--model `: Override model identifier for the chosen provider -- `--staged-only`: Use only staged changes (default behavior for `g s`) -- `--all`: Stage all changes before running -- `--no-clipboard`: Do not copy suggestion to clipboard (for `g s`) -- `--body`: Generate a commit body in addition to subject -- `--conventional`: Format subject using Conventional Commits -- `--dry-run`: Print what would happen without committing/pushing -- `--verbose`: Verbose logging with AI provider details -- `--json`: Machine-readable output for `g s` -- `--yes`: Confirm destructive actions without prompting -- `--amend`: Amend the last commit instead of creating a new one -- `--set-upstream`: On push, set upstream if the current branch has none - -### Command-Specific Options - -- `g s --multiple`: Generate multiple commit message suggestions -- `g ls --detailed`: Show detailed commit information with dates and authors -- `g ls --limit `: Limit number of commits shown (default: 20) -- `g sync --rebase`: Use rebase instead of merge for sync -- `g stash --list`: List all stashes -- `g stash --pop`: Pop the latest stash -- `g stash --apply `: Apply stash by index -- `g a --no-edit`: Amend without changing the commit message -- `g config --global`: Use global configuration instead of project-local - -## πŸ’‘ Enhanced Real-World Examples - -### 🎯 **Interactive Workflow** ```bash -# Complex feature development -g status # See AI insights about your changes -# Output: "πŸ“¦ Dependencies changed - consider updating package-lock.json" +# Daily workflow +g s # Check what changed +g i # Interactive commit +g o # Quick commit + push -g int # Interactive commit wizard -# Guides you through: staging β†’ multiple AI suggestions β†’ commit - -g sync --rebase # Smart sync with rebase -# Output: "βœ“ Rebased successfully" +# Advanced +g sg --multiple # Get 3 AI suggestions +g h --detailed # Detailed history +g sync --rebase # Smart sync ``` -### πŸ”§ **Bug Fix with Preview** +## πŸ”§ Configuration + ```bash -# You fix a critical bug -g preview # Preview what would be committed -# Shows: complexity analysis + AI suggestion + diff summary - -g o # Commit with confidence -# AI generates: "Fix null pointer exception in user authentication" +g config --set conventional=true # Enable conventional commits +g config --set autoStage=true # Auto-stage changes +g config --list # View all settings ``` -### ✨ **Feature Development** +## πŸ†˜ Help + ```bash -# Multiple related changes -g s --multiple # Get several commit message options -# Shows: 3 different AI-generated suggestions - -g stash # Stash with AI description -# Output: "βœ“ Stashed changes: 'Add search functionality components'" - -g l # Commit locally first -g sync # Smart sync before pushing -g o # Push with upstream setup +g --help # All commands +g q # Quick reference ``` -### πŸ“Š **Project Analysis** -```bash -g status # Enhanced status with insights -# Shows: file changes + AI insights + recent activity summary - -g config --set conventional=true # Enable conventional commits -g ls --detailed --limit 5 # Analyze recent commit patterns -``` - -## πŸ”₯ Enhanced Pro Tips - -### 🎯 **Perfect Enhanced Workflow** -```bash -g setup --api-key gemini # One-time AI setup (fast & free) -g s # Check status with AI insights -g i # Interactive commit for complex changes -g sync # Smart sync instead of manual pull -g o --set-upstream # Push with automatic upstream setup -``` - -### 🧠 **Smart Development Patterns** -```bash -# Feature development -g stash # Stash with AI description -g b 5 feature-x # Branch from specific commit -g preview # Preview changes before committing -g s --multiple # Get multiple commit options -g l && g sync # Commit locally, then smart sync - -# Code review preparation -g ls --detailed # Review commit history -g config --set conventional=true # Enable conventional commits -g amend # Update last commit with AI message -``` - -### πŸ›‘οΈ **Safe & Smart Operations** -```bash -# Experimentation -g stash # AI-described stash -g l # Commit experiment -g preview # Check what you're about to commit -g u --yes # Quick undo if needed - -# Team collaboration -g sync --rebase # Clean history with rebase -g status # Check insights before committing -g config --global # Set team-wide preferences -``` - -### ⚑ **Power User Shortcuts** -```bash -# Single-letter workflow -g s # Enhanced status -g p # Quick preview -g i # Interactive mode -g sg --multiple # Multiple suggestions -g h --detailed # Detailed history -g l && g o # Local commit then push - -# Configuration -g config --set autoStage=true # Auto-stage by default -g config --set progressIndicators=false # Disable progress bars -g config --list # Review all settings -``` - -## βš™οΈ Enhanced Configuration - -### Setup Wizard (Recommended) -```bash -g setup # Interactive configuration wizard -# Detects project type, configures AI providers, sets preferences -``` - -### Environment Variables - -| Variable | Purpose | Default | -|----------|---------|---------| -| `OPENAI_API_KEY` | OpenAI API access | - | -| `GEMINI_API_KEY` | Google Gemini API access | - | -| `GROQ_API_KEY` | Groq API access | - | -| `GROQ_BASE_URL` | Groq API base URL | `https://api.groq.com/openai/v1` | -| `GIMS_PROVIDER` | Default provider | `auto` | -| `GIMS_MODEL` | Default model identifier | (provider-specific) | -| `GIMS_CONVENTIONAL` | Enable Conventional Commits | `0` | -| `GIMS_COPY` | Enable clipboard copying | `1` | -| `GIMS_AUTO_STAGE` | Auto-stage changes | `0` | -| `GIMS_CACHE` | Enable AI response caching | `1` | -| `GIMS_PROGRESS` | Show progress indicators | `1` | - -### Configuration Management -```bash -# Set configuration values -g config --set provider=gemini -g config --set conventional=true --global -g config --set autoStage=true - -# View configuration -g config --list -g config --get provider - -# Project vs Global config -g config --set conventional=true # Project-specific -g config --set conventional=true --global # Global (all projects) -``` - -### .gimsrc Configuration Files - -**Project-level** (`./.gimsrc`): -```json -{ - "provider": "gemini", - "model": "gemini-2.0-flash", - "conventional": true, - "autoStage": false, - "projectType": "react" -} -``` - -**Global** (`~/.gimsrc`): -```json -{ - "provider": "auto", - "conventional": false, - "copy": true, - "cacheEnabled": true, - "progressIndicators": true, - "maxDiffSize": 100000 -} -``` - -### Smart Fallbacks - -GIMS handles edge cases gracefully: - -- πŸ”„ Large diffs: Automatically switches to summary or status view -- βœ‚οΈ Massive text: Truncates safely with informative context -- πŸ›œ No API key: Uses a local heuristic that summarizes your changes -- ⚠️ API failures: Clear errors and local fallback so you keep moving -- πŸ”’ Privacy-first: Only sends diffs when you explicitly run AI features - -## 🀝 Contributing - -We love contributions! Here's how to get involved: - -1. **🍴 Fork** the repository -2. **🌿 Create** your feature branch: `git checkout -b amazing-feature` -3. **πŸ’» Code** your improvements -4. **πŸ§ͺ Test** thoroughly -5. **πŸ“ Commit** with GIMS: `g l` (dogfooding!) -6. **πŸš€ Push** and create a Pull Request - -### πŸ› Found a Bug? - -1. Check [existing issues](https://github.com/yourusername/gims/issues) -2. Create a [new issue](https://github.com/yourusername/gims/issues/new) with: - - Clear description - - Steps to reproduce - - Expected vs actual behavior - - Your environment details - -## πŸ“Š Why GIMS? - -### Before GIMS 😫 -```bash -git log --oneline -abc1234 fix -def5678 update -ghi9012 changes -jkl3456 stuff -mno7890 final fix -``` - -### After GIMS ✨ -```bash -git log --oneline -abc1234 Fix authentication timeout in user login service -def5678 Add responsive design for mobile navigation menu -ghi9012 Refactor database connection pool for better performance -jkl3456 Update API documentation with new endpoint examples -mno7890 Fix memory leak in image processing pipeline -``` - -## πŸ“ˆ Enhanced Stats & Benefits - -- ⚑ **50% faster** commits with interactive mode and smart defaults -- 🎯 **Higher accuracy** with multiple AI suggestions and caching -- 🧠 **Smart insights** help improve code quality and commit patterns -- πŸ“š **Zero learning curve** - enhanced Git workflow, not replacement -- 🌍 **Universal compatibility** - Mac, Windows, Linux, WSL -- οΏ½ **Modular architecture** - better performance and extensibility - -## πŸ†• What's New in Enhanced GIMS - -### ✨ **Major Enhancements** -- **Interactive Commit Wizard** - guided workflow with multiple suggestions -- **Smart Status & Insights** - AI analyzes your changes and provides tips -- **Enhanced Configuration** - setup wizard and flexible config management -- **Progress Indicators** - visual feedback for all AI operations -- **Caching System** - faster repeated operations -- **Better Error Handling** - actionable guidance when things go wrong - -### πŸ”§ **Developer Experience** -- **Project Type Detection** - automatically adapts to React, Node, Python, etc. -- **Smart Sync** - intelligent pull with rebase/merge options -- **Enhanced Stash** - AI-generated stash descriptions -- **Preview Mode** - see exactly what will be committed -- **Modular Architecture** - cleaner code and better maintainability - -## πŸ—ΊοΈ Roadmap - -### 🎯 **Completed (v0.6.0)** -- [x] Interactive commit wizard -- [x] Enhanced status with AI insights -- [x] Smart configuration management -- [x] Progress indicators and better UX -- [x] Caching and performance improvements -- [x] Modular architecture - -### πŸš€ **Coming Next** -- [ ] πŸ”Œ Plugin system for custom AI providers -- [ ] πŸ“Š Commit message templates and team standards -- [ ] 🌐 Multi-language commit message support -- [ ] πŸ”„ Integration with popular Git GUIs (VS Code, etc.) -- [ ] πŸ“± Web dashboard for team commit analytics -- [ ] πŸ€– Advanced AI features (code review suggestions, etc.) - ## πŸ“„ License -MIT Β© [Your Name](https://github.com/yourusername) - ---- - -
- -**⭐ Star this repo if GIMS makes your Git workflow awesome!** - -[Report Bug](https://github.com/yourusername/gims/issues) β€’ [Request Feature](https://github.com/yourusername/gims/issues) β€’ [Documentation](https://github.com/yourusername/gims/wiki) - -*Made with ❀️ by developers who hate writing commit messages* - -
+MIT Β© [S41R4J](https://github.com/s41r4j) \ No newline at end of file diff --git a/bin/gims.js b/bin/gims.js index 1b38bf9..9ce7674 100755 --- a/bin/gims.js +++ b/bin/gims.js @@ -313,9 +313,9 @@ program.command('help-quick').alias('q') console.log(` ${color.cyan('g u')} Undo - Undo last commit\n`); console.log(color.bold('Quick Setup:')); - console.log(` ${color.cyan('g setup --api-key gemini')} πŸš€ Fast & free (recommended)`); - console.log(` ${color.cyan('g setup --api-key openai')} πŸ’Ž High quality`); - console.log(` ${color.cyan('g setup --api-key groq')} ⚑ Ultra fast\n`); + console.log(` ${color.cyan('g setup --api-key gemini')} πŸš€ gemini-2.5-flash (recommended)`); + console.log(` ${color.cyan('g setup --api-key openai')} πŸ’Ž gpt-5 (high quality)`); + console.log(` ${color.cyan('g setup --api-key groq')} ⚑ groq/compound (ultra fast)\n`); console.log(color.bold('Essential Workflow:')); console.log(` ${color.cyan('g s')} Check what's changed`); diff --git a/bin/lib/ai/providers.js b/bin/lib/ai/providers.js index 0841b01..64c1730 100644 --- a/bin/lib/ai/providers.js +++ b/bin/lib/ai/providers.js @@ -28,9 +28,9 @@ class AIProviderManager { getDefaultModel(provider) { const defaults = { - 'gemini': 'gemini-2.0-flash-exp', // Latest and fastest - 'openai': 'gpt-4o-mini', // Cost-effective and fast - 'groq': 'llama-3.1-8b-instant' // Fast inference + 'gemini': 'gemini-2.5-flash', // Latest and fastest + 'openai': 'gpt-5', // Latest GPT model + 'groq': 'groq/compound' // Latest Groq model }; return defaults[provider] || ''; } diff --git a/bin/lib/config/manager.js b/bin/lib/config/manager.js index 8648d85..9ef58c7 100644 --- a/bin/lib/config/manager.js +++ b/bin/lib/config/manager.js @@ -164,14 +164,14 @@ class ConfigManager { console.log(` ${color.cyan('g setup --api-key openai')} # High quality`); console.log(` ${color.cyan('g setup --api-key groq')} # Ultra fast`); console.log('\nOr set environment variables manually:'); - console.log(' - OPENAI_API_KEY (gpt-4o-mini)'); - console.log(' - GEMINI_API_KEY (gemini-2.0-flash-exp)'); - console.log(' - GROQ_API_KEY (llama-3.1-8b-instant)'); + console.log(' - OPENAI_API_KEY (gpt-5)'); + console.log(' - GEMINI_API_KEY (gemini-2.5-flash)'); + console.log(' - GROQ_API_KEY (groq/compound)'); } else { console.log('Available providers with default models:'); - if (hasGemini) console.log(` ${color.green('βœ“')} Google Gemini (gemini-2.0-flash-exp)`); - if (hasOpenAI) console.log(` ${color.green('βœ“')} OpenAI (gpt-4o-mini)`); - if (hasGroq) console.log(` ${color.green('βœ“')} Groq (llama-3.1-8b-instant)`); + if (hasGemini) console.log(` ${color.green('βœ“')} Google Gemini (gemini-2.5-flash)`); + if (hasOpenAI) console.log(` ${color.green('βœ“')} OpenAI (gpt-5)`); + if (hasGroq) console.log(` ${color.green('βœ“')} Groq (groq/compound)`); } const provider = await question(`\nPreferred provider (auto/openai/gemini/groq/none) [auto]: `) || 'auto'; diff --git a/package.json b/package.json index 72b73b1..3897467 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gims", - "version": "0.6.1", + "version": "0.6.2", "description": "Git Made Simple – AI‑powered git helper using Gemini / OpenAI", "author": "S41R4J", "license": "MIT",