π Major Feature: Persistent Settings Configuration
This release introduces a significant improvement to configuration management by migrating from .env files to persistent JSON-based settings.
β¨ New Features
- Persistent Settings: Configuration now stored at
~/.automagik-cli/settings.jsonand persists across directory changes - First-Run Setup: Interactive setup dialog for new users with API server configuration
- Automatic Migration: Existing
.envfiles are automatically migrated to the new format - Default Configuration: Sensible defaults with
localhost:8886as the default API server
π§ Configuration Changes
- BREAKING CHANGE: No longer reads
.envfiles - configuration is now JSON-based - Settings persist globally in user home directory (
~/.automagik-cli/settings.json) - Optional API key authentication (can be left empty for servers without auth)
- All existing configuration options preserved and migrated automatically
π New Components
SettingsManager: Robust JSON-based configuration management with atomic file operationsSettingsSetupDialog: Interactive first-run setup experience- Automatic
.envtosettings.jsonmigration on first startup
π Migration Path
- Existing Users: Your
.envfile will be automatically detected and migrated tosettings.jsonon first run - New Users: Interactive setup dialog will guide you through initial configuration
- Configuration: Settings now persist regardless of which directory you run the CLI from
π οΈ Technical Improvements
- Removed dependency on
dotenvpackage - Added comprehensive error handling and recovery mechanisms
- Atomic file operations prevent configuration corruption
- Backward compatibility maintained for all existing functionality
π¦ Installation
npm install -g automagik-cli@0.2.0π― What's Next
Your configuration is now more robust and persistent. The CLI will remember your settings across different projects and directories, providing a smoother user experience.
For detailed usage instructions, see the README.