UNPKG

woaru

Version:

Universal Project Setup Autopilot - Analyze and automatically configure development tools for ANY programming language

1,046 lines (882 loc) β€’ 79.1 kB
# WOARU πŸš€ v5.3.6 **WorkaroundUltra - Universal Project Setup Autopilot & Production-Readiness Agent** The ultimate **"Tech Lead in a Box"** - Analyze, monitor, and automatically configure development tools for **ANY programming language** with real-time quality checks, SOLID architecture analysis, and production-readiness audits. ## πŸ†• **Latest Release: v5.3.6 - Enhanced AI Control Center** **Release Date:** August 4, 2025 ### 🎯 **PATCH: Enhanced AI Control Center & UX Improvements** This release focuses on improving user experience for AI provider management and code review functionality. **Key Improvements:** - **πŸ”› Enhanced AI Provider Toggle**: Clear "Toggle Code Reviews (Currently: enabled/disabled)" functionality - **πŸ“Š Dynamic Status Display**: Real-time status indicators showing current provider state - **πŸ’¬ Improved User Feedback**: Clear confirmation messages when toggling code review settings - **🎯 Better Provider Management**: Easy enable/disable of providers without full reconfiguration **Previous Major Features (v5.3.0):** - **πŸš€ Interactive Project Initialization (`woaru init`)**: Complete project scaffolding system with Next.js and Python FastAPI templates - **πŸ“‹ Translation Validation System**: Production-ready i18n quality assurance with automated validation - **πŸ“€ Message Handler System**: Advanced report management with webhook integration for team collaboration - **πŸ“š Enhanced CLI Experience**: Improved command help, internationalization, and user-friendly error handling **Revolutionary Features:** - **Instant Project Setup**: Create production-ready projects in seconds with industry best practices - **Template Engine**: Dynamic content generation with Handlebars for flexible project structures - **Quality Assurance**: Automated translation validation prevents deployment of incomplete localizations - **Team Integration**: Share analysis results through Slack/Discord webhooks seamlessly ## πŸ”„ **Previous Release: v5.2.0 - Enhanced i18n System & Build Optimization** **Release Date:** July 28, 2025 ## πŸ“š **Previous Release: v5.1.4 - Major Technical Hardening & Modernization** **Release Date:** July 26, 2025 ### πŸš€ **MAJOR: Complete ES Modules Migration & Code Quality Overhaul** This release represents a comprehensive technical hardening of the entire codebase, addressing critical issues identified in an external code review. **Key Improvements:** - **ES Modules Migration**: Complete migration from CommonJS to ES Modules for modern, future-proof architecture - **Cross-Platform Compatibility**: Build system now works seamlessly across Windows, Mac, and Linux - **Code Quality**: Over 1,000 ESLint violations automatically fixed with consistent formatting - **Type Safety**: All 144 TypeScript `any` warnings eliminated with proper type definitions - **Complete i18n**: All remaining hardcoded strings replaced with proper internationalization **Technical Details:** - Zero security vulnerabilities (npm audit clean) - Zero ESLint errors or warnings - Zero TypeScript `any` types in production code - 100% internationalization coverage - Modern ES2022 compilation target ## 🌟 **Previous Release: v5.1.2 - Complete i18n System Overhaul** **Release Date:** July 19, 2025 ### πŸ”’ **MAJOR: Advanced Multi-Layer Security Analysis Engine** **New Feature:** Enterprise-grade security vulnerability detection system with comprehensive threat analysis. WOARU now includes professional-grade security scanning capabilities with Semgrep integration and intelligent pattern-based fallback analysis. ### 🌍 **MAJOR: Complete Internationalization (i18n) Implementation** **Enhanced Feature:** Fully internationalized user interface with comprehensive language support. All hardcoded German strings (100+) have been replaced with proper i18n translation keys, providing seamless German and English language support throughout the entire application. **Revolutionary Solution:** - **🌍 Complete i18n Architecture**: - Integrated i18next with filesystem backend for scalable translation management - Created comprehensive localization files for English (πŸ‡ΊπŸ‡Έ) and German (πŸ‡©πŸ‡ͺ) - Implemented persistent language preferences in `~/.woaru/config/user.json` - Added automatic first-time language selection with visual flag indicators - **πŸ€– AI Response Localization**: - Enhanced AIReviewAgent to include language instructions in prompts - LLM responses now automatically generated in user's preferred language - System prompts dynamically inject language-specific instructions - Maintains consistency between UI language and AI analysis language - **🎯 Interactive Language Commands**: - New `woaru language` command for intuitive language selection - Real-time language switching with immediate feedback - Enhanced `woaru config set language <lang>` for direct configuration - Visual indicators with country flags for better user experience - **πŸ“Š Comprehensive UI Localization**: - Status commands fully translated (`woaru status` shows localized output) - Configuration commands with multilingual support - Error messages and help text in user's preferred language - Consistent terminology across all CLI interactions ### πŸ”§ **Technical Implementation** ```bash # New i18n Commands woaru language # Interactive language selection woaru config set language de # Direct language setting woaru config show # Display current language settings # First-time Setup 🌍 Welcome to WOARU / Willkommen bei WOARU ? Please select your preferred language: ❯ πŸ‡ΊπŸ‡Έ English (en) πŸ‡©πŸ‡ͺ Deutsch (de) ``` ### πŸ—οΈ **Enhanced System Architecture** - **i18n Framework**: `src/config/i18n.ts` - Complete internationalization system - **Language Management**: `src/config/languageSetup.ts` - Interactive language selection - **Configuration Extension**: `src/config/ConfigManager.ts` - User preferences persistence - **AI Integration**: `src/ai/AIReviewAgent.ts` - Localized AI prompt generation - **Translation Resources**: `locales/en/` and `locales/de/` - Comprehensive language files ### πŸ“Š **User Experience Improvements** - **First-time Setup**: Automatic language selection with visual flag indicators - **Language Switching**: Seamless language changes with immediate effect - **Consistent Experience**: All text (UI and AI responses) in user's preferred language - **Visual Enhancement**: Country flags (πŸ‡ΊπŸ‡Έ/πŸ‡©πŸ‡ͺ) for improved language recognition - **Persistent Settings**: Language preference saved globally across all WOARU sessions ### 🌐 **Supported Languages** - **πŸ‡ΊπŸ‡Έ English** - Complete localization with US flag indicator - **πŸ‡©πŸ‡ͺ Deutsch** - Full German translation with German flag indicator - **Extensible Architecture** - Framework ready for additional languages ### πŸ”„ **Backward Compatibility** - βœ… All existing commands work unchanged - βœ… Default language is English for new users - βœ… No breaking changes to existing functionality - βœ… Gradual migration path for existing users --- ## πŸ“š **Previous Release: v4.7.1 - AI Control Center Bug Fixes** **Release Date:** July 16, 2025 ### πŸ› **PATCH: Critical AI Control Center Bug Fixes** **Problem Solved:** v4.7.0 introduced a revolutionary AI Control Center, but contained critical bugs that caused crashes and inconsistent behavior. Users experienced `Cannot read properties of null (reading 'enabled')` errors and inconsistent CLI documentation. **Professional Solution:** - **πŸ”§ Fixed Status Display Crash**: - Resolved `Cannot read properties of null (reading 'enabled')` error in AI Control Center - Fixed ConfigManager methods to properly filter provider objects vs configuration entries - Added validation to prevent processing of `multi_ai_review_enabled` and `primary_review_provider_id` as providers - **🎯 Enhanced Provider Management**: - `getConfiguredAiProviders()` now correctly filters only actual provider objects - `getEnabledAiProviders()` properly ignores metadata and configuration entries - `getConfiguredProviderCount()` accurately counts only valid provider configurations - **πŸ“Š Improved Status Accuracy**: - AI Control Center now correctly displays "X configured | Y enabled" without crashes - Provider list shows accurate enabled/disabled status and API key validation - Multi-AI Review status displays correctly with proper primary provider selection - **πŸ”„ CLI Consistency**: - All `woaru commands` documentation now consistently uses `ai` instead of `llm` - Fixed remaining inconsistencies in usage strings and descriptions - Maintained backward compatibility with deprecation warnings for legacy commands ### πŸ”§ **Technical Implementation** ```typescript // Fixed ConfigManager provider filtering async getConfiguredAiProviders(): Promise<string[]> { const providers = []; for (const [key, value] of Object.entries(config)) { // Skip metadata and configuration entries if (key === '_metadata' || key === 'multi_ai_review_enabled' || key === 'primary_review_provider_id') { continue; } // Only include actual provider objects if (value && typeof value === 'object' && value.hasOwnProperty('enabled')) { providers.push(key); } } return providers; } ``` ### πŸ—οΈ **Enhanced System Architecture** - **Provider Validation**: Robust filtering of provider objects vs configuration entries - **Status Display**: Safe rendering of AI Control Center status without crashes - **Configuration Management**: Proper separation of provider data and global settings - **Error Handling**: Comprehensive validation to prevent null reference errors ### πŸ“Š **User Experience Improvements** - **Crash-Free Operation**: AI Control Center now runs without `Cannot read properties of null` errors - **Accurate Status**: Provider counts and status display correctly reflect actual configuration - **Consistent CLI**: All commands use unified `ai` terminology throughout documentation - **Reliable Navigation**: AI Control Center menus work correctly with proper provider filtering --- ## πŸ“š **Previous Release: v4.7.0 - Multi-AI Review Control Center** **Release Date:** July 16, 2025 ### 🎯 **MINOR: Multi-AI Review Control Center & Single-AI Mode** **New Feature:** Advanced AI provider management with granular control over Multi-AI vs Single-AI Review modes. Users can now choose between comprehensive multi-provider analysis or focused single-provider reviews for faster, cost-effective code analysis. **Key Features:** - **πŸŽ›οΈ AI Control Center Dashboard**: - Interactive management of all configured AI providers - Real-time status display with API key validation - Provider enable/disable controls with visual feedback - Comprehensive overview: "3 configured | 2 enabled" with detailed breakdown - **πŸ”„ Multi-AI Review Mode**: - Contact all enabled AI providers for comprehensive analysis - Cross-provider consensus detection and comparison - Aggregated findings with LLM agreement scoring - **🎯 Single-AI Review Mode**: - Select one primary provider for focused analysis - Significant cost reduction (1/3 of multi-provider cost) - Faster analysis with maintained quality - Configurable primary provider selection - **βš™οΈ Intelligent Configuration Management**: - Automatic fallback logic when primary provider not set - Validation of provider availability and API keys - Dynamic configuration updates with live feedback ### πŸ”§ **Technical Implementation** ```bash # New AI Control Center npx woaru ai # Interactive AI provider dashboard npx woaru ai setup # Enhanced provider setup with onboarding # Multi-AI Review Configuration "multi_ai_review_enabled": true # Enable multi-provider analysis "primary_review_provider_id": "anthropic" # Set primary for single-AI mode ``` ### πŸ—οΈ **Enhanced System Architecture** - **AI Control Center**: `src/cli.ts:300-450` - Interactive dashboard with context-sensitive menus - **Multi-AI Review Config**: `src/config/ConfigManager.ts:315-366` - Global review mode management - **Smart Provider Filtering**: `src/ai/ConfigLoader.ts:105-155` - Dynamic provider selection logic - **Configuration Validation**: Automatic primary provider validation with fallback handling ### πŸ“Š **User Experience Improvements** - **Status Display**: Clear visual indicators for provider configuration state - **Mode Selection**: Intuitive toggle between Multi-AI and Single-AI modes - **Cost Transparency**: Clear messaging about analysis costs and provider contact - **Onboarding Flow**: Smooth introduction to Multi-AI Review features during setup --- ## πŸ“š **Previous Release: v4.6.1 - AI Setup Dialog Bugfixes** **Release Date:** July 16, 2025 ### πŸ› **PATCH: AI Setup Dialog Bugfixes & UX Improvements** **Problem Solved:** v4.6.0 introduced a new AI setup dialog that had critical usability issues: incorrect prompt order (API key before model selection), broken interactive navigation, and configuration migration failures that caused users to lose their existing AI provider settings. **Professional Solution:** - **πŸ”§ Fixed Prompt Order**: - Corrected provider configuration sequence: 1. Model Selection β†’ 2. API Key β†’ 3. Activation - Dynamic model loading from ai-models.json with rich descriptions - Proper default selection for latest/recommended models - **🎯 Enhanced Setup Loop**: - Replaced problematic checkbox prompts with robust list/confirm prompts - Added dynamic status indicators: "Anthropic Claude (AKTIV: claude-4-opus)" vs "OpenAI GPT (NICHT KONFIGURIERT)" - Implemented intuitive "Setup Another Provider?" workflow - **πŸ”„ Configuration Migration**: - Added automatic llm_config.json β†’ ai_config.json migration logic - Preserves existing user configurations during terminology updates - Clear user notification when migration occurs - **⚑ Improved UX Flow**: - Streamlined provider selection with live status updates - Better error handling and validation for API keys - Clearer German/English mixed messaging for better accessibility ### πŸ”§ **Technical Implementation** ```bash # Fixed setup workflow npx woaru ai setup # New, working interactive setup npx woaru setup llm # Backward compatibility maintained # Configuration migration ~/.woaru/config/llm_config.json β†’ ~/.woaru/config/ai_config.json ``` ### πŸ—οΈ **Enhanced System Architecture** - **Setup Loop**: `src/cli.ts:349-450` - Complete rewrite with proper prompt sequencing - **Configuration Migration**: `src/config/ConfigManager.ts:433-461` - Automatic legacy config migration - **Dynamic Model Loading**: Integration with `ai-models.json` for up-to-date provider information - **Robust Error Handling**: Graceful fallbacks for missing configurations or network issues --- ## πŸ“š **Previous Release: v4.6.0 - AI-First User Experience** **Release Date:** July 16, 2025 ### πŸ€– **MINOR: AI-First User Experience & Terminology Optimization** **Problem Solved:** v4.5.0 used technical "LLM" terminology throughout the CLI, which was confusing for non-technical users and created barriers to adoption. The term "LLM" (Large Language Model) is industry jargon that doesn't clearly communicate the value to end users. **User-Centric Solution:** - **🎯 AI-First Terminology**: - Replaced all "LLM" references with user-friendly "AI" terminology - `woaru llm setup` β†’ `woaru ai setup` (with backward compatibility) - `woaru analyze llm` β†’ `woaru analyze ai` - `woaru review git llm` β†’ `woaru review git ai` - All help text and documentation updated to use accessible language - **πŸš€ Enhanced User Onboarding**: - Proactive explanation for `woaru docu ai` with German localization - Interactive confirmation with educational context - Real-world examples showing AI documentation benefits - Step-by-step guidance for AI provider configuration - **πŸ”„ Backward Compatibility**: - All legacy `llm` commands still work with deprecation warnings - Smooth migration path for existing users - ConfigManager maintains compatibility with old method names - **πŸ“ Configuration Architecture**: - Migrated from `llm_config.json` to `ai_config.json` - Improved file naming for better user understanding - Updated all internal references while maintaining API compatibility - **πŸ’‘ User Experience Improvements**: - Clear explanations of what AI analysis provides - German-language help text for better accessibility - Interactive prompts guide users through setup process - Educational content explains AI benefits in practical terms ### πŸ”§ **Technical Implementation** ```bash # New AI-first commands woaru ai setup # Configure AI providers woaru ai # View AI configuration status woaru analyze ai # AI-powered code analysis woaru review git ai # AI analysis of git changes woaru docu ai # AI documentation generation # Legacy commands (still work) woaru setup llm # Shows deprecation warning woaru analyze llm # Shows deprecation warning ``` ### πŸ—οΈ **Enhanced System Architecture** - **User-Friendly Command Structure**: Complete rename from technical "LLM" to accessible "AI" - **Proactive User Education**: Built-in explanations for AI features in German - **Backward Compatibility Layer**: Seamless migration for existing users - **Configuration Management**: Improved file naming and structure - **Interactive Setup Experience**: Guided AI provider configuration --- ## πŸ“š **Previous Release: v4.5.0 - Cross-Platform ASCII Art System** **Release Date:** July 15, 2025 ### πŸš€ **MINOR: Cross-Platform Pure JavaScript ASCII Art Generator** **Problem Solved:** v4.4.0 used `image-to-ascii` library which required external system dependencies (GraphicsMagick/ImageMagick) that weren't guaranteed on user systems, causing installation failures and poor user experience. **Revolutionary Solution:** - **🎨 Pure JavaScript PNG-to-ASCII Conversion**: - Replaced `image-to-ascii` with `jimp` - 100% Pure JavaScript solution - No external system dependencies (GraphicsMagick/ImageMagick) required - Real-time generation from PNG logo files with custom pixel-to-ANSI conversion - Professional terminal-optimized rendering with ANSI-256 color support - **🌈 Advanced Color & Character Mapping**: - Custom RGB-to-ANSI-256 color conversion algorithm - Brightness-based character selection (β–‘β–’β–“β–ˆ) - Multiple character sets (block, ASCII, high-contrast) - Automatic aspect ratio correction for terminal characters - **πŸ“ Adaptive Terminal Sizing**: - Customizable width/height with automatic scaling - Multiple rendering modes (compact, terminal-optimized, high-contrast) - Intelligent aspect ratio handling (2:1 for terminal character proportions) - Graceful fallback to simple box design when image loading fails - **πŸ›‘οΈ Platform Independence**: - 100% cross-platform compatibility (Windows, macOS, Linux) - No external binaries or system dependencies required - Reliable installation on all Node.js environments - Zero configuration needed for users - **⚑ Performance Optimized**: - Efficient jimp-based image processing - Smart pixel-to-character conversion algorithms - Minimal memory footprint with automatic cleanup - Fast ANSI color code generation ### πŸ”§ **Technical Implementation** ```bash # Updated dependencies - Removed: image-to-ascii (external deps) + Added: jimp (pure JavaScript) # Enhanced file structure src/utils/asciiArtGenerator.ts # Pure JS ASCII generation with jimp src/assets/splash_logo.ts # Updated splash screen integration # New capabilities woaru # Shows cross-platform ASCII art logo woaru --help # Shows help (unchanged) ``` ### πŸ—οΈ **Enhanced System Architecture** - **Pure JavaScript ASCII Art Generator**: `src/utils/asciiArtGenerator.ts` - `rgbToAnsi256()` - Custom RGB-to-ANSI-256 color conversion - `getBrightness()` - Pixel brightness calculation for character selection - `intToRGBA()` - Color extraction from jimp pixel data - `generateTerminalOptimizedAsciiArt()` - 70x20 colored output - `generateCompactAsciiArt()` - 40x12 monochrome output - `generateHighContrastAsciiArt()` - 50x15 block-character output - `generateFallbackAsciiArt()` - Emergency fallback (unchanged) - **Cross-Platform Compatibility**: Zero external dependencies, works everywhere --- ## πŸ“š **Previous Release: v4.3.1 - ANSI Art Splash Screen Bugfix** **Release Date:** July 15, 2025 ### πŸ› **PATCH: Critical ANSI Logo Display Fix** **Problem Solved:** The ANSI art splash screen was displaying raw escape codes instead of colored graphics due to incorrect escape sequence format and console output method. **Professional Solution:** - **πŸ”§ ANSI Escape Sequence Fix**: - Corrected `\e` to `\x1b` for proper JavaScript interpretation - Fixed all 6 lines of ANSI art with proper color codes - Ensures terminal compatibility across all platforms - **⚑ Output Method Optimization**: - Replaced `console.log()` with `process.stdout.write()` for ANSI codes - Prevents additional formatting that breaks color sequences - Direct stream writing for pixel-perfect logo display - **πŸ›‘οΈ Terminal Compatibility Check**: - Added TTY detection for ANSI support validation - Fallback to compact logo for non-TTY environments - Graceful degradation maintains functionality everywhere ### 🎯 **Technical Implementation** ```bash # Fixed ANSI art display woaru # Now shows proper colored logo woaru --help # Shows full help as before ``` ### πŸ”§ **Files Modified** - `src/assets/splash_logo.ts` - ANSI sequence correction and output method fix - All ANSI escape sequences converted from `\e` to `\x1b` format - Terminal compatibility detection added for robust display --- ## πŸ“š **Previous Release: v4.3.0 - Visual Identity & ANSI Art Splash Screen** **Release Date:** July 15, 2025 ### 🎨 **MINOR: Visual Identity & ANSI Art Splash Screen** **Problem Solved:** WOARU needed a distinctive visual identity and better user experience when launched without arguments, replacing the generic help output with a branded splash screen. **Professional Solution:** - **🎭 ANSI Art Splash Screen**: - High-quality ANSI art representation of the WOARU robot logo - Displays automatically when `woaru` is called without arguments - Compact 6-line display for optimal terminal integration - Preserves all existing command functionality - **🎯 Enhanced User Experience**: - Clear branding with "πŸ€– WOARU - Tech Lead in a Box" - Dynamic version display from package.json - Quick command overview for immediate productivity - Professional visual identity for CLI tool - **⚑ Smart Display Logic**: - Splash screen only for `woaru` without arguments - Normal help display for `--help` and `-h` flags - All existing commands work unchanged ### πŸ”§ **Technical Implementation** ```bash # New splash screen behavior woaru # Shows ANSI art + quick commands woaru --help # Shows full help as before woaru version # Shows version as before woaru analyze # Runs analysis as before ``` ### 🎯 **New Visual Identity Structure** ``` src/assets/ └── splash_logo.ts # ANSI art and splash screen logic ``` --- ## πŸ“š **Previous Release: v4.2.0 - Robust Test & Quality Assurance Framework** **Release Date:** January 15, 2025 ### πŸš€ **MINOR: Robust Test & Quality Assurance Framework** **Problem Solved:** Based on comprehensive project audit, WOARU needed professional-grade testing infrastructure to prevent critical bugs like hardcoded model lists and premature releases that occurred in previous versions. **Professional Solution:** - **πŸ§ͺ Comprehensive Test Infrastructure**: - Jest optimized for TypeScript and async operations - Custom matchers for AI providers and JSON validation - Test fixtures with mock data for consistent testing - Isolated test environment with temp directories - **πŸ”¬ Critical Integration Tests**: - ToolsDatabaseManager tests covering all database operations - AI Models Database loading with local file priority verification - Setup LLM process tests with mocked interactive dialogs - Error handling tests for corrupted files and network failures - **πŸ›‘οΈ Anti-Regression Framework**: - Tests specifically designed to prevent hardcoded model lists - Dynamic model loading verification across all providers - Fallback mechanism testing for robustness - API key storage and configuration validation - **πŸ“‹ Pre-Release Quality Gate**: - Comprehensive PRE_RELEASE_CHECKLIST.md with audit-based requirements - Automated checks for hardcoded values in codebase - Manual smoke tests for critical CLI commands - Version consistency validation across all files ### 🎯 **New Test Framework Structure** ```bash # Test Infrastructure npm test # Run all tests including new integration tests npm run test:watch # Watch mode for development # Test Categories: - Unit Tests: Existing CodeAnalyzer and ProjectAnalyzer tests - Integration Tests: ToolsDatabaseManager and Setup LLM process tests - Mock Data: tests/fixtures/ with consistent test data - Quality Gates: PRE_RELEASE_CHECKLIST.md for manual verification # Test Coverage: tests/ β”œβ”€β”€ fixtures/ # Mock data for consistent testing β”‚ β”œβ”€β”€ mock-ai-models.json # AI models test data β”‚ β”œβ”€β”€ mock-tools.json # Tools database test data β”‚ └── mock-woaru-config.js # Configuration test data β”œβ”€β”€ integration/ # Integration tests β”‚ β”œβ”€β”€ ToolsDatabaseManager.integration.test.ts β”‚ └── setup-llm.integration.test.ts └── setup.ts # Test utilities and custom matchers ``` ### πŸ”„ **Migration Guide** - **NEW**: Comprehensive test infrastructure for developers - **Enhanced**: Quality assurance process with pre-release checklist - **Improved**: Anti-regression framework prevents critical bugs - **Compatible**: All existing functionality remains unchanged --- ## πŸ“š **Previous Release: v4.1.0 - Enhanced AI Models Database with Claude 4 & DeepSeek** **Release Date:** January 15, 2025 ### Complete AI Models Database Implementation - Fixed local `ai-models.json` loading priority in ToolsDatabaseManager - Removed ALL hardcoded model references from setup functions - Added latest models: Claude 4 Opus, GPT-4.1, Gemini 2.5 Pro - 16+ models across 5 LLM providers now properly loaded dynamically --- ## πŸ“š **v4.0.0 - Revolutionary AI Models Database System** **Release Date:** January 15, 2025 ### Initial database-driven LLM configuration implementation - Introduced `ai-models.json` for centralized model management - Added DeepSeek AI provider support - Enhanced local Ollama model integration - Replaced hardcoded model lists with dynamic loading --- ## πŸ“š **v3.9.0 - Revolutionary Review Commands Refactoring** **Release Date:** July 15, 2025 ### πŸš€ **MAJOR: Professional Version Management** **Problem Solved:** Development teams need reliable, automated version management and environment validation to maintain consistent, up-to-date toolchains across projects and team members. **Revolutionary Solution:** - **πŸ”„ Smart Version Commands**: - `woaru version` - Display current version - `woaru version check` - Check for updates with release dates - `woaru update` - One-command update to latest version - **⚑ Proactive Startup Checks**: - Automatic version checking with 24-hour intelligent caching - Interactive update prompts when new versions are available - Environment validation for Git, Docker, and Snyk dependencies - **πŸ›‘οΈ Enterprise-Grade Reliability**: - Secure update process with process isolation - Robust error handling and graceful degradation - Non-blocking startup checks that don't interrupt workflow - **πŸ’‘ Professional User Experience**: - Clear version information and update recommendations - Transparent control over update decisions - Comprehensive environment dependency validation ### 🎯 **Version Management in Action** ```bash # Check current version woaru version # Output: WOARU Version: 3.8.0 # Check for updates woaru version check # Output: πŸ“¦ Eine neue Version (v3.8.1) ist verfΓΌgbar! # VerΓΆffentlicht am: 16.07.2025 # Update to latest version woaru update # Output: πŸš€ Updating WOARU to latest version... # βœ… Update erfolgreich abgeschlossen! # Automatic startup checks woaru analyze # Output: πŸ“‹ Hinweise: # πŸ’‘ Eine neue Version ist verfΓΌgbar. FΓΌhre 'woaru update' aus. # πŸ’‘ TIPP: Docker ist nicht verfΓΌgbar. Containerisierung-Checks werden ΓΌbersprungen. ``` ### πŸ” **Environment Validation** WOARU now automatically validates your development environment on startup: - **βœ… Git Detection**: Critical for `woaru review git` functionality - **πŸ’‘ Docker Detection**: Optional for containerization checks - **πŸ”’ Snyk Detection**: Optional for enhanced security analysis --- ## πŸ“š **Previous Release: v3.7.1 - Critical Bug-Fix Release** **Release Date:** July 15, 2025 ### πŸ› **CRITICAL BUG FIXES: Production-Ready Stability** **Problem Solved:** After extensive testing, we identified and fixed six critical bugs that could impact production usage. This PATCH release ensures WOARU is fully stable and ready for enterprise deployment. **Critical Fixes:** - **πŸ”§ Setup Dialog Fix**: Eliminated user confusion by replacing misleading "environment variable" instructions with clear success message - **πŸ“ Prompt Template Resolution**: Fixed template loading from installation directory instead of current working directory - **πŸ›‘οΈ JSON Escaping**: Resolved API crashes from control characters in code analysis with proper JSON escaping - **πŸ“š Command Documentation**: Added missing `docu` subcommands to comprehensive command reference - **πŸ” File Filtering**: Implemented smart filtering to analyze only code files (no more .yml, .md, .json in LLM analysis) - **πŸ’Ύ Storage Robustness**: Enhanced UsageTracker with bulletproof error handling for corrupted usage files ### 🎯 **Production Impact** This release transforms WOARU from "feature-complete" to "production-ready" with: - **Zero Setup Confusion**: Clear, actionable user guidance - **Bulletproof File Handling**: Robust error recovery and file processing - **Optimized LLM Usage**: Smart filtering reduces API costs and improves analysis quality - **Enterprise Reliability**: Comprehensive error handling prevents crashes --- ## πŸ“š **Previous Release: v3.7.0 - Revolutionary AI-Optimized Documentation System** **Release Date:** July 15, 2025 ### 🧠 **REVOLUTIONARY: Machine-Readable Documentation for AI/LLM Comprehension** **Problem Solved:** As AI-powered development tools become ubiquitous, codebases need documentation that machines can understand as well as humans. Traditional documentation formats are optimized for human readability but lack the structured metadata that AI systems need for optimal code comprehension. **Revolutionary Solution:** - **πŸ€– AI Context Headers**: - New `woaru docu ai` command generates machine-readable YAML headers - 13 structured categories optimized for AI/LLM understanding - Comprehensive metadata about file purpose, architecture, and relationships - First tool worldwide to generate AI-optimized code documentation - **πŸ“‹ Complete Documentation Suite**: - `woaru docu nopro` - Human-friendly "Explain-for-humans" comments - `woaru docu pro` - Technical TSDoc/JSDoc documentation - `woaru docu ai` - Machine-readable YAML context headers (NEW!) - **🎯 Intelligent File Processing**: - Support for `--path-only`, `--local`, and `--git` options - Preview mode with `--preview` flag - Force mode with `--force` for CI/CD integration - Multi-language support (TypeScript, JavaScript, Python, Java, etc.) - **πŸ—οΈ Enterprise Configuration**: - All documentation constants centralized in APP_CONFIG - Configurable schema versions and check limits - No hardcoded values in the documentation system ### πŸ—οΈ **Technical Implementation** **Example AI Context Header Generated by WOARU:** ```yaml /* woaru_context: file_purpose: "Core service class for secure API key management and environment configuration" file_type: "service_class" complexity_level: "medium" main_responsibilities: - "Secure storage of API keys in ~/.woaru/.env" - "Environment variable management with automatic gitignore" - "Multi-provider LLM configuration handling" tech_stack: language: "typescript" framework: "node.js" key_dependencies: external: - "dotenv: Environment variable loading" - "fs-extra: File system operations" internal: - "src/config/constants.ts: Central configuration" architectural_role: "utility_layer" business_impact: "critical" security_critical: true generated_by: "woaru docu ai" schema_version: "1.0" */ ``` ### πŸ’‘ **Use Cases for AI Documentation** - **AI Code Reviews**: LLMs can better understand code context and relationships - **Automated Refactoring**: AI tools can make safer changes with structured metadata - **Code Search**: Enhanced semantic search with machine-readable context - **Documentation Generation**: Future AI tools can build on existing context headers - **Team Onboarding**: New developers AND their AI assistants understand code faster --- ## πŸ“š **Previous Release: v3.6.1 - REFACTOR: Comprehensive Hardcode Elimination & Central Configuration** **Release Date:** July 14, 2025 ### πŸ”§ **MAJOR REFACTOR: Enterprise-Grade Configuration Management** **Problem Solved:** WOARU had scattered hardcoded values across the codebase making maintenance difficult and configuration inconsistent. Magic numbers, API URLs, and tool commands were duplicated throughout the code. **Revolutionary Solution:** - **πŸ—οΈ Complete Hardcode Elimination**: - All ESLint rules centralized (`no-var`, `eqeqeq`, etc.) - SOLID principle thresholds unified in central config - API endpoints for all LLM providers standardized - Tool commands (`npx eslint`, `npm run lint`) centralized - **πŸ“‹ Enhanced constants.ts Architecture**: - `ESLINT_RULES` - All linter rules in one place - `SOLID_THRESHOLDS` - Configurable complexity limits - `QUALITY_THRESHOLDS` - Adjustable quality standards - `TOOL_COMMANDS` - Standardized CLI commands - `API_ENDPOINTS` - Central API URL management - **⚑ Maintenance Benefits**: - Single source of truth for all configuration values - Easy threshold adjustments without code changes - Consistent tool command usage across the codebase - Type-safe configuration with TypeScript support ### πŸ—οΈ **Technical Implementation Examples** **Before Refactoring (Scattered Hardcodes):** ```typescript // ❌ Multiple files with hardcoded values // CodeSmellAnalyzer.ts rule: 'no-var' severity: complexity > 15 ? 'error' : 'warning' // SRPChecker.ts const thresholds = { low: 8, medium: 15, high: 25 }; // cli.ts baseUrl: "https://api.anthropic.com/v1/messages" // QualityRunner.ts await execAsync(`npx eslint "${filePath}"`); ``` **After Refactoring (Centralized Configuration):** ```typescript // βœ… Single source of truth in constants.ts // All files now import from central config rule: APP_CONFIG.ESLINT_RULES.NO_VAR severity: complexity > APP_CONFIG.QUALITY_THRESHOLDS.COMPLEXITY_WARNING const thresholds = APP_CONFIG.SOLID_THRESHOLDS.METHODS_PER_CLASS baseUrl: APP_CONFIG.API.ANTHROPIC await execAsync(`${APP_CONFIG.TOOL_COMMANDS.ESLINT.BASE} "${filePath}"`); ``` ### 🎯 **Configuration Categories Centralized** 1. **ESLint Rules**: `NO_VAR`, `EQEQEQ`, `PREFER_CONST`, `NO_CONSOLE` 2. **SOLID Thresholds**: Method counts, line limits, parameter counts 3. **Quality Standards**: Complexity warnings, error thresholds 4. **Tool Commands**: NPM scripts, ESLint commands, Prettier commands 5. **API Endpoints**: All LLM provider URLs centralized --- ## πŸ“š **Previous Release: v3.6.0 - AI-Powered Code Documentation System** ### πŸ’‘ **Real-World Examples** **Human-Friendly Documentation (`nopro`):** ```javascript // Explain-for-humans: This function calculates the total cost including tax for customer purchases. function calculateTotal(items, taxRate) { const subtotal = items.reduce((sum, item) => sum + item.price, 0); const tax = subtotal * taxRate; return subtotal + tax; } ``` **Technical Documentation (`pro`):** ```javascript /** * Calculates the total cost including tax for a collection of items * * @param {Array<Object>} items - Array of items with price property * @param {number} taxRate - Tax rate as decimal (e.g., 0.08 for 8%) * @returns {number} Total cost including tax * @example * // Calculate total for $100 worth of items with 8% tax * const total = calculateTotal([{price: 100}], 0.08); // returns 108 */ function calculateTotal(items, taxRate) { const subtotal = items.reduce((sum, item) => sum + item.price, 0); const tax = subtotal * taxRate; return subtotal + tax; } ``` ### 🎯 **Usage Examples** ```bash # Generate human-friendly documentation for uncommitted changes woaru docu nopro --local # Generate technical documentation for all files in src/ woaru docu pro --path-only src/ # Preview documentation changes before applying woaru docu nopro --git main --preview # Force documentation without interactive confirmation woaru docu pro --local --force ``` --- ## πŸ“š **Previous Release: v3.5.0 - Dynamic & Customizable AI Prompt Templates System** ### πŸ—οΈ **MAJOR: Complete Prompt Management Architecture** - **πŸ“š Template Library** - Professional prompt templates in `templates/prompts/` - Each template includes system prompts, user prompts, parameters, and output formats - Variable interpolation for context-aware analysis - Structured YAML format for easy customization - **🏠 User Customization** - Personal templates in `~/.woaru/config/woaru_llm_prompts/[provider]/` - Automatic template copying during `woaru setup llm` - Edit templates to match your team's standards - Provider-specific optimization capabilities - **⚑ Seamless Integration** - Works with all LLM commands - `woaru analyze llm --prompt security_audit` - `woaru review git llm --prompt performance_optimization` - `woaru review local llm --prompt refactoring_suggestions` - `woaru review path llm --prompt testing_strategy` ### πŸš€ **User Experience Revolution** **Before (Limited & Inflexible):** ``` ❌ Single generic prompt for all analyses ❌ No focus control for specific concerns ❌ Same analysis whether checking security or performance ``` **After (Dynamic & Powerful):** ``` βœ… Choose specialized analysis focus with --prompt flag βœ… Security audits find vulnerabilities, not style issues βœ… Performance analysis targets bottlenecks, not formatting βœ… Customize prompts for your team's specific needs ``` ### πŸ”§ **Technical Implementation** - **πŸ—οΈ PromptManager Class** - `src/ai/PromptManager.ts` handles all prompt operations - Template loading and validation - Variable interpolation system - Provider-specific prompt management - Fallback mechanisms for stability - **πŸ”„ Enhanced AIReviewAgent** - Dynamic prompt injection per provider - Provider-specific template selection - Context-aware variable substitution - Backwards compatibility maintained - **πŸ“‹ Professional Templates** - 5 expert-crafted analysis templates - Comprehensive documentation and examples - Industry best practices embedded - Extensible structure for custom additions ### πŸŽ‰ **Impact & Benefits** - **🎯 Targeted Analysis** - Get exactly the insights you need, when you need them - **πŸ“ˆ Improved Accuracy** - Specialized prompts yield more relevant findings - **πŸ”§ Team Customization** - Adapt analysis to your coding standards - **πŸ’‘ Transparent AI** - See and control exactly what the AI is asked to analyze ### πŸ“š **Usage Examples** ```bash # Security-focused analysis woaru analyze llm --prompt security_audit # Performance optimization review woaru review git llm --prompt performance_optimization # Refactoring suggestions for specific files woaru review path src/api --prompt refactoring_suggestions # Test coverage analysis woaru analyze llm --prompt testing_strategy # List available prompts ls ~/.woaru/config/woaru_llm_prompts/[provider]/ ``` ### πŸ›‘οΈ **Available Prompt Templates** 1. **default_review.yaml** - Balanced code quality analysis 2. **security_audit.yaml** - OWASP-aligned security scanning 3. **performance_optimization.yaml** - Bottleneck and efficiency analysis 4. **refactoring_suggestions.yaml** - Clean code and pattern recommendations 5. **testing_strategy.yaml** - Coverage and test quality assessment ## πŸ” **Previous Release: v3.4.0 - MAJOR: Revolutionary Secure API Key Management System** **Release Date:** July 14, 2025 ### πŸš€ **GAME-CHANGING: Complete Setup UX Revolution** **Problem Solved:** Users were confused by the old setup dialog asking for "environment variable names" instead of actual API keys, leading to setup failures and frustration. **Revolutionary Solution:** - **🎯 Direct API Key Input** - Setup now asks directly: *"Bitte fΓΌge deinen OpenAI API-Key ein (beginnt mit 'sk-'):"* - **πŸ” Password-Masked Input** - API keys are hidden during typing for security - **βœ… Smart Validation** - Automatic format checking (sk- prefix, length validation) - **⚑ Instant Availability** - Keys work immediately after setup, no shell restarts required ### πŸ›‘οΈ **MAJOR: Revolutionary ConfigManager Architecture** - **🏠 Global .env Management** - Secure API key storage in `~/.woaru/.env` - **600 File Permissions** - Owner-only read/write access for maximum security - **Automatic .gitignore Protection** - Prevents accidental commits to version control - **Cross-Session Persistence** - Keys survive system restarts and terminal sessions - **πŸ”„ Automatic Environment Loading** - dotenv integration loads keys on WOARU startup - **Zero Configuration** - No manual shell setup or environment variable management - **Silent Fallback** - Graceful handling when configuration is missing - **Universal Compatibility** - Works across all terminals, IDEs, and environments ### 🎯 **User Experience Transformation** **Before (Confusing & Error-Prone):** ``` ❓ "Environment variable name for API key:" β†’ User types: "sk-proj-abc123..." (WRONG!) β†’ Result: ❌ API key not found in all LLM commands ``` **After (Intuitive & Bulletproof):** ``` ✨ "Bitte fΓΌge deinen OpenAI API-Key ein (beginnt mit 'sk-'):" β†’ User types: "sk-proj-abc123..." (CORRECT!) β†’ Result: βœ… API key stored securely! πŸš€ Ready for immediate use! ``` ### πŸ”§ **Technical Implementation** - **πŸ—οΈ New ConfigManager Class** - `src/config/ConfigManager.ts` with enterprise-grade security - **πŸ” Secure Storage System** - Automatic directory creation and permission management - **⚑ Race Condition Fixes** - Proper async/await initialization prevents startup errors - **πŸ›‘οΈ Security by Default** - Multiple layers of protection against accidental exposure ### πŸŽ‰ **Impact & Benefits** - **πŸ“ˆ Setup Success Rate** - Eliminates 100% of API key configuration confusion - **πŸš€ Time to Productivity** - From minutes of troubleshooting to instant success - **πŸ›‘οΈ Security Enhancement** - Professional-grade key management with automatic protection - **πŸ’‘ User Confidence** - Clear, intuitive interface builds trust and reduces support burden ## πŸ” **Previous Release: v3.3.1 - Production Polish & Legacy Cleanup** **Release Date:** July 14, 2025 ### πŸ”§ **Hotfix: Legacy References & Initialization** - **🧹 Complete Legacy Cleanup** - Removed all outdated "WAU" references throughout codebase - Updated notifications, error messages, and user-facing text to "WOARU" - Fixed GitHub URLs pointing to old repository names - Consistent branding across all components - **⚑ ConfigManager Initialization Fix** - Resolved race condition in environment loading - Proper async/await structure ensures configuration loads before commands - Eliminates "API key not found" issues on first startup - Guaranteed environment variable availability across all commands - **πŸ›‘οΈ First-Time User Experience** - Enhanced startup behavior for new users - Automatic directory creation (`~/.woaru/`) on first run - Graceful handling of missing configuration files - Clear guidance for setup without crashes or confusion ## πŸ” **Previous Release: v3.3.0 - Secure API Key Management & Revolutionary Setup Experience** **Release Date:** July 14, 2025 ### πŸ” **MAJOR: Secure ConfigManager System** - **πŸ›‘οΈ Global .env Management** - New `ConfigManager` class handles secure API key storage - API keys stored in `~/.woaru/.env` with 600 permissions (owner-only access) - Automatic gitignore protection to prevent accidental commits - Centralized configuration for all WOARU tools - **πŸ”„ Dotenv Integration** - Automatic environment variable loading on startup - No more manual shell configuration required - Keys instantly available across all WOARU commands - Silent fallback for missing configuration ### πŸš€ **Completely Overhauled Setup Process** - **πŸ’¬ Intuitive User Interface** - Revolutionary setup dialog experience - Direct API key input: "Bitte fΓΌge deinen OpenAI API-Key ein" - Password-masked input for security during typing - Smart validation (checks for 'sk-' prefix for OpenAI/Anthropic) - Immediate feedback and helpful error messages - **⚑ One-Click Configuration** - No more complex shell setup required - Keys stored securely and automatically - Ready to use immediately after setup - Cross-session persistence without manual configuration ### πŸ›‘οΈ **Enhanced Security Features** - **πŸ”’ File Permissions** - Automatic 600 permissions on sensitive files - **🚫 Git Protection** - Automatic gitignore entries for `.woaru/.env` - **⚠️ Safety Warnings** - Alerts if no global gitignore is configured - **πŸ” Input Validation** - Comprehensive API key format checking ### πŸ› **Bulletproof Error Handling** - **πŸ’ͺ Super-Robust UsageTracker** - Enhanced resilience against corrupted files - Empty file detection and handling - Invalid JSON recovery with automatic recreation - Size-based validation before parsing - Multiple fallback strategies - **πŸ”„ Graceful Degradation** - System continues working even with missing components ### πŸ”§ **Previous Features (v3.2.0):** - **πŸ“¦ Unified Version System** - Dynamic version loading from package.json - **πŸ”„ Update Command** - `woaru update` for easy updates - **πŸ—οΈ Architecture Refactoring** - Centralized configuration system ### πŸ†• **Enhanced Commands:** ```bash # Secure, one-click LLM setup: woaru setup llm # Update WOARU to the latest version: woaru update # Check stored API keys: ls ~/.woaru/.env # (securely stored) ``` ### 🎯 **User Experience Revolution:** - **πŸ”₯ Zero-Configuration** - API keys work immediately after setup - **πŸ›‘οΈ Security by Default** - Automatic protection against accidental commits - **πŸ’‘ Intuitive Interface** - Clear prompts and helpful guidance - **⚑ Instant Availability** - No shell restarts or manual configuration required - **πŸ”„ Cross-Session Persistence** - Configuration survives system restarts ## πŸ” **Previous Release: v1.3.0 - Comprehensive Audit & Transparency System** **Release Date:** July 14, 2025 ### πŸ” **MAJOR: Complete Audit & Transparency System** - **πŸ“‹ Standardized Report Filenames** - All reports now use sortable timestamp format: `woaru_[command]_report_[YYYY]-[MM]-[DD]_[HH]-[MM]-[SS]_[TZ].md` - **πŸ“Š Comprehensive Activity Logging** - Every WOARU action is tracked with timestamps, context, and performance metrics in `~/.woaru/logs/woaru_actions.log` - **πŸ” Advanced Log Management** - New `woaru logs` command with filtering, export, and analysis capabilities - **🎯 Message System Enhancement** - `woaru message latest` now uses proper timestamp-based sorting for report delivery - **⚑ Performance Tracking** - Memory usage, execution time, and success/failure metrics for all operations ### πŸš€ **New Commands & Features:** - **`woaru logs`** - View recent activity logs with filtering options - **`woaru logs --tail 100`** - Show last 100 log entries - **`woaru logs --project /path`** - Filter logs by project path - **`woaru logs --action analyze`** - Filter logs by specific action type - **`woaru logs --since 2024-01-01`** - Time-based log filtering - **`woaru logs --export json`** - Export logs in JSON, CSV, or TXT format - **`woaru logs clear`** - Clear all activity logs (with confirmation) - **`woaru logs stats`** - Show log file statistics and active actions ### πŸ”§ **Technical Improvements:** - **Standardized Filename Generation** - New `FilenameHelper` class for consistent report naming - **Singleton Activity Logger** - Comprehensive tracking system with start/complete cycles - **Enhanced Report Generator** - Automatic fallback to standardized filenames - **Input Validation** - Comprehensive validation and error handling across all new systems - **TypeScript Quality** - Full TSDoc documentation and type safety improvements ### πŸ›‘οΈ **Audit & Transparency Features:** - **Complete Action Tracking** - Every command execution is logged with context and performance data - **Sortable Report History** - Chronological organization of all generated reports - **Detailed Performance Metrics** - Memory usage, execution time, and success rates - **Flexible Log Analysis** - Filter by time, project, action type, or export for external analysis - **Secure Logging** - No sensitive data logged, only operational context and metrics ### πŸ“Š **Previous Major Feature (v1.2.0):** - **SOLID Principles Checking** - Complete SRP (Single Responsibility Principle) analysis for TypeScript/JavaScript - **Architecture Scoring** - 0-100 SOLID score with severity-weighted violations - **Smart Detection** - Method count, complexity, c