3c06ec6a89
🔧 New Features: - Complete configuration dialog with tabbed interface - Nexar API key management with persistent storage - Automatic demo/API mode switching - Settings saved to ~/.kic-ai/config.json - Enhanced MCP client with API key support 📦 Updates: - Updated README with v2.3.0 ZIP and Nexar pricing features - Updated metadata.json with new version and pricing tags - Remove old ZIP files and keep only latest version - Add comprehensive configuration documentation 🚀 Ready for production use with optional API key setup
3.3 KiB
3.3 KiB
KIC-AI v2.3.0 - Configuration Update
✨ New Features
🔧 Complete Configuration System
- Advanced Config Dialog: Tabbed interface with API Settings, General Settings, and Info
- Nexar API Key Management: Store and manage your Nexar API key
- Persistent Settings: Configuration saved to
~/.kic-ai/config.json - Demo/API Mode Toggle: Automatic switching between demo and real API mode
⚙️ Configuration Features
-
API Settings Tab:
- Nexar API key input (with password masking)
- Demo mode checkbox
- Connection testing
- Status indicators
-
General Settings Tab:
- AI Mode selection (Analysis, Chat, Expert)
- Language selection (English, Nederlands, Deutsch, Français)
-
Info Tab:
- Feature overview
- Configuration help
- Contact information
🔄 Smart API Integration
- Automatic Mode Detection: Uses real API when key is configured, demo otherwise
- Environment Variable Support: Falls back to
NEXAR_TOKENenvironment variable - Embedded Server Enhancement: API key passed to embedded Nexar server
- Status Reporting: Clear indication of demo vs API mode
📋 Usage Instructions
1. Install the Plugin
Extract kicad-ai-assistant-v2.3.0-with-config.zip to your KiCad plugins directory
2. Access Configuration
- Open KiCad PCBNew or Eeschema
- Click the robot icon to open KIC-AI Assistant
- Click the ⚙️ Config button
- Navigate through the tabs to configure your settings
3. Configure Nexar API (Optional)
- Go to Nexar API to get your free API key
- In the Config dialog, enter your API key in the "API Settings" tab
- Click "💾 Save" to store your configuration
- Test pricing functionality with real API data
4. Demo Mode (Default)
- Works immediately without any API keys
- Provides realistic demo pricing data
- Perfect for testing and evaluation
🔧 Technical Details
Configuration File
- Location:
~/.kic-ai/config.json - Contains: API keys, preferences, UI settings
- Automatically created on first save
API Key Priority
- Configuration dialog setting
- Environment variable
NEXAR_TOKEN - Demo mode (fallback)
New Files Added
plugins/config_manager.py: Complete configuration management system- Enhanced
plugins/ai_dialog.py: Integration with config system - Enhanced
plugins/simple_mcp_client_embedded.py: API key support
🎯 Benefits
- Easy API Key Management: No need to edit files or set environment variables
- Persistent Configuration: Settings remembered across KiCad sessions
- Flexible Setup: Works in demo mode or with real API keys
- User-Friendly Interface: Professional tabbed configuration dialog
- Backwards Compatible: Existing installations continue to work
🧪 Testing
The configuration system has been tested with:
- ✅ API key storage and retrieval
- ✅ Demo mode fallback
- ✅ Settings persistence
- ✅ UI integration
- ✅ Embedded server API key passing
🚀 Getting Started
- Quick Start: Install and use immediately in demo mode
- Full Setup: Add your Nexar API key for real pricing data
- Customize: Configure AI mode and language preferences
Previous Version: v2.2.1 (Basic config info dialog) Current Version: v2.3.0 (Full configuration system) Next: Advanced features and additional API integrations