Skip to content

Releases: kxng0109/ai-commit-cli

v1.2.0

29 Nov 22:59

Choose a tag to compare

Added

  • Persistent user preferences - Settings now persist across application restarts
    • ai-commit config --auto-commit [on|off] - Enable/disable automatic commit without prompts
    • ai-commit config --auto-push [on|off] - Enable/disable automatic push after committing
    • ai-commit config --show - Display current configuration settings
    • ai-commit config --reset - Reset all settings to defaults
    • Settings stored using Java Preferences API (Registry on Windows, .plist on macOS, XML on Linux)
  • Auto-commit mode - Skip interactive prompts and commit immediately after AI generation
    • Significantly faster workflow for rapid development
    • Automatically aborts if AI generation fails (no changes committed)
    • Warning displayed when enabling about loss of regenerate/edit/cancel options
  • Auto-push mode - Automatically push changes after committing
    • Works independently with both interactive and auto-commit modes
    • With auto-commit OFF: Pushes after accepting in interactive prompt (review commits, skip manual push)
    • With auto-commit ON: Pushes immediately after auto-commit (full automation)
    • Gracefully handles push failures (commit still succeeds)
  • Configuration command system - New config subcommand for managing preferences
    • ai-commit config --help - Show configuration help
    • Interactive and auto modes coexist - easily switch between workflows

Changed

  • CommitService now checks user preferences before deciding workflow mode
  • Interactive prompts only shown when auto-commit is disabled
  • Help text updated to include configuration commands
  • README and documentation updated with auto-commit/auto-push examples

Technical

  • Added UserPreferences class for persistent storage management
  • Updated CommitService with auto-commit and auto-push logic
  • Added push() method to GitService for git push operations
  • Enhanced error handling for auto-commit mode

Installation

Linux:

curl -L https://github.com/kxng0109/ai-commit-cli/releases/download/v1.2.0/ai-commit-linux-amd64 -o ai-commit
chmod +x ai-commit
sudo mv ai-commit /usr/local/bin/

macOS:

curl -L https://github.com/kxng0109/ai-commit-cli/releases/download/v1.2.0/ai-commit-macos-amd64 -o ai-commit
chmod +x ai-commit
sudo mv ai-commit /usr/local/bin/

Windows:
Download ai-commit-windows-amd64.exe and add to PATH.

Verification

Verify SHA256 checksums:

sha256sum -c ai-commit-*.sha256

Quick Start

export OPENAI_API_KEY="sk-..."
cd your-repo
git add .
ai-commit

See README for full documentation.

Full Changelog: v1.1.1...v1.2.0

v1.1.1

21 Nov 11:59

Choose a tag to compare

What's Changed

Fixed

  • Working directory detection - Fixed issue where CLI tool couldn't detect staged changes when run from compiled binary
  • Windows process hanging - Fixed timeout issue on Windows when running git commands with large diff output
  • Logging configuration - Fixed AI_LOG_LEVEL environment variable not being respected

Changed

  • Enhanced GitService with more robust process handling for Windows compatibility
  • Improved debug logging throughout Git operations
  • Added --no-pager flag to git commands for consistent non-interactive behavior

Technical Details

  • Implemented asynchronous stream reading to prevent buffer overflow
  • Fixed working directory resolution across all platforms
  • Fixed SLF4J Simple Logger initialization timing

Full Changelog: v1.1.0...v1.1.1

Installation

Linux:

curl -L https://github.com/kxng0109/ai-commit-cli/releases/download/v1.1.1/ai-commit-linux-amd64 -o ai-commit
chmod +x ai-commit
sudo mv ai-commit /usr/local/bin/

macOS:

curl -L https://github.com/kxng0109/ai-commit-cli/releases/download/v1.1.1/ai-commit-macos-amd64 -o ai-commit
chmod +x ai-commit
sudo mv ai-commit /usr/local/bin/

Windows:
Download ai-commit-windows-amd64.exe and add to PATH.

Verification

Verify SHA256 checksums:

sha256sum -c ai-commit-*.sha256

Quick Start

export OPENAI_API_KEY="sk-..."
cd your-repo
git add .
ai-commit

See README for full documentation.

Full Changelog: v1.1.0...v1.1.1

v1.1.0

18 Nov 00:53

Choose a tag to compare

Installation

Linux:

curl -L https://github.com/kxng0109/ai-commit-cli/releases/download/v1.1.0/ai-commit-linux-amd64 -o ai-commit
chmod +x ai-commit
sudo mv ai-commit /usr/local/bin/

macOS:

curl -L https://github.com/kxng0109/ai-commit-cli/releases/download/v1.1.0/ai-commit-macos-amd64 -o ai-commit
chmod +x ai-commit
sudo mv ai-commit /usr/local/bin/

Windows:
Download ai-commit-windows-amd64.exe and add to PATH.

Verification

Verify SHA256 checksums:

sha256sum -c ai-commit-*.sha256

Quick Start

export OPENAI_API_KEY="sk-..."
cd your-repo
git add .
ai-commit

See README for full documentation.

Full Changelog: v1.0.0...v1.1.0

v1.0.0

16 Nov 15:49

Choose a tag to compare

Installation

Linux:

curl -L https://github.com/kxng0109/ai-commit-cli/releases/download/v1.0.0/ai-commit-linux-amd64 -o ai-commit
chmod +x ai-commit
sudo mv ai-commit /usr/local/bin/

macOS:

curl -L https://github.com/kxng0109/ai-commit-cli/releases/download/v1.0.0/ai-commit-macos-amd64 -o ai-commit
chmod +x ai-commit
sudo mv ai-commit /usr/local/bin/

Windows:
Download ai-commit-windows-amd64.exe and add to PATH.

Verification

Verify SHA256 checksums:

sha256sum -c ai-commit-*.sha256

Quick Start

export OPENAI_API_KEY="sk-..."
cd your-repo
git add .
ai-commit

See README for full documentation.

Full Changelog: https://github.com/kxng0109/ai-commit-cli/commits/v1.0.0