@entro314labs/ai-changelog-generator 3.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/CHANGELOG.md +801 -0
  2. package/LICENSE +21 -0
  3. package/README.md +393 -0
  4. package/ai-changelog-mcp.sh +93 -0
  5. package/ai-changelog.sh +103 -0
  6. package/bin/ai-changelog-dxt.js +35 -0
  7. package/bin/ai-changelog-mcp.js +34 -0
  8. package/bin/ai-changelog.js +18 -0
  9. package/package.json +135 -0
  10. package/src/ai-changelog-generator.js +258 -0
  11. package/src/application/orchestrators/changelog.orchestrator.js +730 -0
  12. package/src/application/services/application.service.js +301 -0
  13. package/src/cli.js +157 -0
  14. package/src/domains/ai/ai-analysis.service.js +486 -0
  15. package/src/domains/analysis/analysis.engine.js +445 -0
  16. package/src/domains/changelog/changelog.service.js +1761 -0
  17. package/src/domains/changelog/workspace-changelog.service.js +505 -0
  18. package/src/domains/git/git-repository.analyzer.js +588 -0
  19. package/src/domains/git/git.service.js +302 -0
  20. package/src/infrastructure/cli/cli.controller.js +517 -0
  21. package/src/infrastructure/config/configuration.manager.js +538 -0
  22. package/src/infrastructure/interactive/interactive-workflow.service.js +444 -0
  23. package/src/infrastructure/mcp/mcp-server.service.js +540 -0
  24. package/src/infrastructure/metrics/metrics.collector.js +362 -0
  25. package/src/infrastructure/providers/core/base-provider.js +184 -0
  26. package/src/infrastructure/providers/implementations/anthropic.js +329 -0
  27. package/src/infrastructure/providers/implementations/azure.js +296 -0
  28. package/src/infrastructure/providers/implementations/bedrock.js +393 -0
  29. package/src/infrastructure/providers/implementations/dummy.js +112 -0
  30. package/src/infrastructure/providers/implementations/google.js +320 -0
  31. package/src/infrastructure/providers/implementations/huggingface.js +301 -0
  32. package/src/infrastructure/providers/implementations/lmstudio.js +189 -0
  33. package/src/infrastructure/providers/implementations/mock.js +275 -0
  34. package/src/infrastructure/providers/implementations/ollama.js +151 -0
  35. package/src/infrastructure/providers/implementations/openai.js +273 -0
  36. package/src/infrastructure/providers/implementations/vertex.js +438 -0
  37. package/src/infrastructure/providers/provider-management.service.js +415 -0
  38. package/src/infrastructure/providers/provider-manager.service.js +363 -0
  39. package/src/infrastructure/providers/utils/base-provider-helpers.js +660 -0
  40. package/src/infrastructure/providers/utils/model-config.js +610 -0
  41. package/src/infrastructure/providers/utils/provider-utils.js +286 -0
  42. package/src/shared/constants/colors.js +370 -0
  43. package/src/shared/utils/cli-entry-utils.js +525 -0
  44. package/src/shared/utils/error-classes.js +423 -0
  45. package/src/shared/utils/json-utils.js +318 -0
  46. package/src/shared/utils/utils.js +1997 -0
  47. package/types/index.d.ts +464 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,801 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [3.0.3]
9
+
10
+ ### 🔧 **Maintenance & Bug Fixes**
11
+
12
+ **Key Changes:**
13
+ - Fixed intermittent "No working directory changes detected" issue caused by similar function mixups
14
+ - Enhanced CLI output formatting with professional visual styling
15
+ - Resolved Azure OpenAI provider token counting issues
16
+ - Improved error handling and fallback logic throughout the system
17
+ - Added comprehensive JSDoc documentation for better code maintainability
18
+
19
+ **Technical Improvements:**
20
+ - ✅ Fixed working directory change detection reliability
21
+ - ✅ Enhanced token usage tracking for Azure provider
22
+ - ✅ Improved CLI visual formatting with boxed metrics and color-coded outputs
23
+ - ✅ Standardized error messaging and provider warnings
24
+ - ✅ Added robust fallback handling for AI analysis failures
25
+ - ✅ Cleaned up debug output and improved user experience
26
+
27
+ **Breaking Changes:** None - this is a maintenance release
28
+
29
+ **Commits:**
30
+ - (refactor) Enhanced WorkspaceChangelogService with diff analysis and comprehensive cleanup
31
+ - (fix) Resolved Azure provider token counting and working directory detection issues
32
+ - (docs) Added JSDoc comments and improved code documentation
33
+ - (chore) Updated organization references and package metadata
34
+
35
+ ---
36
+
37
+ ## [Unreleased]
38
+
39
+ ### 📋 Release Summary
40
+ Release latest includes 2 commits (1 docs, 1 feature). Complexity: high. Affected areas: configuration, documentation, other, source, build.
41
+
42
+ **Business Impact**: minor
43
+ **Complexity**: high
44
+
45
+ ### Added
46
+ - Complete codebase and project structure for VibeKit VDK CLI
47
+ - 189 new files totaling 40,860 lines including CLI source code (cli.js)
48
+ - Installation and release scripts (install.sh, release.sh)
49
+ - Comprehensive documentation (README.md, GUIDE.md, ROADMAP.md, VDK_OVERVIEW.md, CONTRIBUTING.md)
50
+ - GitHub workflow and templates
51
+ - JavaScript CLI entry point with dotenv, commander support
52
+ - Package.json with bin entry for 'vdk' command
53
+
54
+ ### Changed
55
+ - Updated repository references from 'idominikosgr' to 'entro314-labs' across 154 files
56
+ - Added new documentation files: VDK_AI_ASSISTANT_COMPATIBILITY_REPORT.md, VDK_DOCUMENTATION.md
57
+ - Updated installation instructions, badges, and URLs to new organization
58
+ - Minor dependency version bump for 'dotenv' in pnpm-lock.yaml
59
+ - Updated code comments and API URLs in JavaScript source files
60
+
61
+ ### Removed
62
+ - Large 'GUIDE.md' file (net reduction of over 20,000 lines)
63
+
64
+ ---
65
+
66
+ ## [Unreleased]
67
+
68
+ ### 📋 Release Summary
69
+ Release includes 4 new features, 1 bug fix, extensive refactoring
70
+
71
+ **Business Impact**: major
72
+ **Complexity**: high
73
+ **Deployment Requirements**: Database migration required
74
+
75
+ ### 🚀 Features
76
+
77
+ #### CLI Reliability Improvements
78
+ - Fixed infinite loop issues in CLI interactions
79
+ - Removed conflicting readline interface
80
+ - Added detection for non-interactive environments
81
+ - Enhanced error handling for automated/scripted use cases
82
+
83
+ #### Template and Setup Standardization
84
+ - Refactored handlebar templates for consistency
85
+ - Updated references from 'VibeCodingRules' to 'Vibe-Coding-Rules'
86
+ - Introduced interactive setup wizard (setup-wizard.js)
87
+ - Improved project configuration experience
88
+
89
+ #### Project Planning and Documentation
90
+ - Added detailed ROADMAP.md outlining future development goals
91
+ - Updated README to reference roadmap
92
+ - Enhanced core agent documentation rules for clarity
93
+
94
+ #### Project Rebranding
95
+ - Renamed project from DevRulesPlus to CodePilotRules
96
+ - Updated all documentation, scripts, and setup files
97
+ - Maintained consistency across codebase
98
+
99
+ ### 🐛 Bug Fixes
100
+ - Fixed execution order in installation script
101
+ - Ensured dependencies install before CLI execution
102
+ - Improved script reliability and error prevention
103
+
104
+ ### ♻️ Code Refactoring
105
+
106
+ #### Documentation and Repository Cleanup
107
+ - Updated .gitignore to exclude additional documentation files
108
+ - Streamlined documentation with obsolete scripts removed
109
+ - Improved user guides for clarity and accuracy
110
+ - Standardized repository references across project files
111
+
112
+ #### Major Architectural Changes
113
+ - **BREAKING CHANGE**: Comprehensive refactor affecting 208 files
114
+ - Reduced codebase size and complexity (+2820/-12538 lines)
115
+ - Database schema and configuration updates
116
+ - Introduced new roadmap and publishing workflow
117
+
118
+ #### Branding Evolution
119
+ - Complete rebranding from 'Vibe Coding Rules' to 'VibeKit VDK CLI'
120
+ - Updated environment variables, configuration, and project metadata
121
+ - Added new documentation (CLI Reference, Getting Started)
122
+
123
+ #### Rule System Enhancements
124
+ - Extensive reorganization of configuration and rule files
125
+ - Added installation and sync system documentation
126
+ - Updated setup wizard and package scripts
127
+ - Comprehensive 'Vibe Coding Rules' for AI assistant standardization
128
+
129
+ #### Initial Foundation
130
+ - **BREAKING CHANGE**: Initial project setup with 109 files, 19,000 lines
131
+ - Core agent instructions and project context templates
132
+ - Language-specific best practices (TypeScript, Python, Swift, Kotlin, C++)
133
+ - AI assistant integrations (Cursor, Copilot, Windsurf)
134
+ - Model Context Protocol (MCP) servers configuration
135
+
136
+ ### ⚠️ Migration Requirements
137
+ - Review database schema changes before deployment
138
+ - Update environment variables to new naming conventions
139
+ - Follow new INSTALLATION.md and SYNC-SYSTEM.md guides
140
+ - Update CI/CD pipelines referencing old project names
141
+ - Full regression testing recommended due to scope of changes
142
+
143
+ ### 🎯 Affected Areas
144
+ - Database, configuration, documentation, source code, assets, scripts
145
+
146
+ ---
147
+
148
+ ## [3.0.0]
149
+
150
+ ### 🚀 **Major Release: Universal AI Provider Ecosystem**
151
+
152
+ This major release transforms the tool into a universal AI changelog generator supporting 10+ AI providers with the latest 2025 models, enhanced architecture, and production-ready reliability.
153
+
154
+ #### ✨ **New AI Provider Support**
155
+
156
+ **Complete Provider Ecosystem (10+ providers)**
157
+ - ✨ **NEW**: Anthropic Claude integration with Sonnet 4 and Opus 4 (2025 latest models)
158
+ - ✨ **NEW**: Google AI (Gemini) with 2.5 Pro/Flash and thinking mode support
159
+ - ✨ **NEW**: Google Vertex AI with enterprise features and custom endpoints
160
+ - ✨ **NEW**: Hugging Face multi-provider routing (Replicate, Together, SambaNova, Fal)
161
+ - ✨ **NEW**: Ollama local model support (Llama, Mistral, CodeLlama, custom models)
162
+ - ✨ **NEW**: LM Studio local deployment with OpenAI-compatible API
163
+ - ✨ **ENHANCED**: OpenAI with GPT-4.1 series and o1 reasoning models
164
+ - ✨ **ENHANCED**: Azure OpenAI with exclusive o3/o4 models and v1 API support
165
+
166
+ **Latest 2025 Model Support**
167
+ - **OpenAI**: GPT-4.1 (nano, mini, standard), o1 reasoning models
168
+ - **Azure**: GPT-4.1 series + exclusive o3/o4 reasoning models
169
+ - **Anthropic**: Claude Sonnet 4, Claude Opus 4 (latest 2025 releases)
170
+ - **Google**: Gemini 2.5 Pro/Flash with multimodal and thinking capabilities
171
+ - **Hugging Face**: Qwen 2.5, Llama 3.3, Mixtral, 200k+ models via routing
172
+ - **Local**: Any Ollama or LM Studio compatible model
173
+
174
+ #### 🏗️ **Architecture Transformation**
175
+
176
+ **Plugin-Based Provider System**
177
+ - ✨ **NEW**: Universal base provider interface with consistent capabilities
178
+ - ✨ **NEW**: Automatic provider detection and smart selection
179
+ - ✨ **NEW**: Graceful fallback chain with priority ordering
180
+ - ✨ **NEW**: Provider-specific model recommendations and optimization
181
+ - ✨ **NEW**: Unified error handling and recovery across all providers
182
+
183
+ **Enhanced Configuration System**
184
+ - ✨ **NEW**: Zero-configuration auto-detection of available providers
185
+ - ✨ **NEW**: Flexible provider priority ordering
186
+ - ✨ **NEW**: Environment-based configuration for all providers
187
+ - ✨ **NEW**: Comprehensive validation and testing tools
188
+
189
+ #### 🔧 **Production Enhancements**
190
+
191
+ **Reliability & Error Handling**
192
+ - ✨ **IMPROVED**: Robust error handling with provider-specific recovery
193
+ - ✨ **IMPROVED**: Connection testing and validation for all providers
194
+ - ✨ **IMPROVED**: Model availability checking with alternatives
195
+ - ✨ **NEW**: Comprehensive diagnostic and troubleshooting tools
196
+
197
+ **Performance Optimization**
198
+ - ✨ **NEW**: Local model support eliminates API costs and latency
199
+ - ✨ **NEW**: Smart model selection optimizes cost and performance
200
+ - ✨ **NEW**: Multi-provider routing for best price/performance ratio
201
+ - ✨ **NEW**: Automatic fallback to rule-based analysis when needed
202
+
203
+ #### 🔄 **Enhanced MCP Integration**
204
+
205
+ **Extended MCP Tools**
206
+ - ✨ **NEW**: `switch_provider` tool for dynamic provider switching
207
+ - ✨ **NEW**: `list_providers` tool for provider status and capabilities
208
+ - ✨ **NEW**: Enhanced `configure_ai_provider` with multi-provider support
209
+ - ✨ **NEW**: `validate_models` tool with comprehensive capability checking
210
+ - ✨ **ENHANCED**: All existing tools now support provider selection
211
+
212
+ **Provider Management**
213
+ - ✨ **NEW**: Real-time provider switching in MCP sessions
214
+ - ✨ **NEW**: Provider capability reporting and model validation
215
+ - ✨ **NEW**: Comprehensive provider status and health monitoring
216
+ - ✨ **NEW**: Dynamic model selection based on commit complexity
217
+
218
+ #### 🛠️ **Developer Experience**
219
+
220
+ **Enhanced CLI Interface**
221
+ - ✨ **NEW**: Provider validation and status commands
222
+ - ✨ **NEW**: Model override with capability validation
223
+ - ✨ **NEW**: Comprehensive provider testing and diagnostics
224
+ - ✨ **IMPROVED**: Better error messages with actionable suggestions
225
+
226
+ **Advanced Features**
227
+ - ✨ **NEW**: Provider-aware model recommendations
228
+ - ✨ **NEW**: Cost optimization through provider selection
229
+ - ✨ **NEW**: Privacy-first local model options
230
+ - ✨ **NEW**: Enterprise-ready multi-provider deployments
231
+
232
+ #### 📦 **Updated Dependencies**
233
+
234
+ - **Added**: `@anthropic-ai/sdk@0.56.0` (Claude Sonnet 4 support)
235
+ - **Added**: `@google/genai@1.10.0` (Gemini 2.5 series)
236
+ - **Added**: `@huggingface/inference@4.5.3` (Multi-provider routing)
237
+ - **Added**: `ollama@0.5.16` (Local model support)
238
+ - **Added**: `@lmstudio/sdk@1.3.0` (LM Studio integration)
239
+ - **Updated**: `@modelcontextprotocol/sdk@1.16.0` (Latest MCP features)
240
+ - **Updated**: `openai@5.10.1` (GPT-4.1 and o1 support)
241
+ - **Updated**: Node.js requirement to 22+ for latest features
242
+
243
+ #### 🔄 **Migration Guide**
244
+
245
+ **From v2.x to v3.0.0**
246
+ - **Configuration**: Existing OpenAI/Azure configs continue to work unchanged
247
+ - **New Providers**: Add API keys for new providers you want to use
248
+ - **MCP Integration**: New tools available, existing tools enhanced
249
+ - **CLI Interface**: All existing commands work identically
250
+
251
+ **Recommended Migration Steps**
252
+ 1. Update to Node.js 22+ if needed
253
+ 2. Install v3.0.0: `npm install -g ai-changelog-generator@3.0.0`
254
+ 3. Test existing configuration: `ai-changelog --validate`
255
+ 4. Optionally add new provider API keys for expanded capabilities
256
+ 5. Explore new providers: `ai-changelog configure`
257
+
258
+ #### 📊 **Impact**
259
+
260
+ - **10x Provider Support**: From 2 to 10+ AI providers
261
+ - **Latest Models**: Support for all 2025 flagship models
262
+ - **Zero Config**: Works out of the box with any available provider
263
+ - **Cost Optimization**: Local models and smart selection reduce costs
264
+ - **Enterprise Ready**: Multi-provider support for diverse requirements
265
+
266
+ #### 🎯 **Breaking Changes**
267
+
268
+ - **Node.js Requirement**: Now requires Node.js 22+ (was 18+)
269
+ - **Provider Interface**: Internal provider API changed (affects custom providers only)
270
+ - **No User Impact**: All CLI commands and MCP tools work identically
271
+
272
+ ---
273
+
274
+ ## [2.5.1]
275
+
276
+ ### 🚀 **Point Release: Enhanced User Experience & Error Handling**
277
+
278
+ This point release significantly improves the tool's reliability and user experience with cleaner output, better error handling, and enhanced repository insights.
279
+
280
+ #### 🛠️ **Improvements**
281
+
282
+ **Enhanced Error Handling & User Experience**
283
+ - 🐛 **IMPROVED**: Git error messages now display clean, user-friendly warnings instead of raw technical output
284
+ - 🐛 **IMPROVED**: Suppressed stderr output from git commands to eliminate noise
285
+ - 🐛 **IMPROVED**: Model availability errors show simplified messages with session-based deduplication
286
+ - ✨ **NEW**: Added `execGitShow()` method for safer git operations with missing files
287
+ - ✨ **NEW**: Graceful handling of deleted/renamed files with contextual messaging
288
+
289
+ **Repository Health Enhancements**
290
+ - ✨ **NEW**: Added `--health` CLI flag for comprehensive repository health assessment
291
+ - ✨ **NEW**: Added `assess_repository_health` MCP tool for AI assistants
292
+ - ✨ **NEW**: 8-point commit message quality scoring system with real-time feedback
293
+ - ✨ **NEW**: Repository hygiene recommendations and actionable insights
294
+ - ✨ **NEW**: Health scoring (0-100) with categorization: Poor/Fair/Good/Excellent
295
+
296
+ **Developer Experience**
297
+ - ✨ **IMPROVED**: Cleaner console output with reduced error spam
298
+ - ✨ **IMPROVED**: Better fallback messaging for model selection
299
+ - ✨ **IMPROVED**: More informative warnings with actionable suggestions
300
+ - ✨ **IMPROVED**: Enhanced rule-based analysis reliability without AI providers
301
+
302
+ #### 🔧 **Technical Enhancements**
303
+
304
+ - **Error Recovery**: Robust handling of git edge cases and command failures
305
+ - **Output Sanitization**: Clean error messages without technical implementation details
306
+ - **Session Management**: Deduplicated warnings to prevent console spam
307
+ - **Graceful Degradation**: Better fallback behavior when operations fail
308
+
309
+ #### 📊 **Impact**
310
+
311
+ - **No Breaking Changes**: Full backward compatibility maintained
312
+ - **Improved Reliability**: Prevents crashes from git edge cases
313
+ - **Better UX**: Professional, clean output suitable for all skill levels
314
+ - **Enhanced Insights**: Repository health provides actionable development guidance
315
+
316
+ #### 🆙 **Migration Notes**
317
+
318
+ - No migration required - all improvements are additive
319
+ - New `--health` flag available for CLI users
320
+ - MCP users gain access to `assess_repository_health` tool
321
+ - All existing functionality works identically
322
+
323
+ ---
324
+
325
+ ## [2.5.0]
326
+
327
+ ### 🆕 Major Improvements
328
+
329
+ **Repository Health Assessment & Commit Quality Analysis**
330
+ - ✨ **NEW**: Added comprehensive repository health assessment with `--health` CLI flag and `assess_repository_health` MCP tool
331
+ - ✨ **NEW**: Real-time commit message quality detection and scoring (8-point scale)
332
+ - ✨ **NEW**: Automatic warnings for poor commit messages with actionable suggestions
333
+ - ✨ **NEW**: Repository hygiene metrics including working directory status, commit frequency, and code diversity
334
+
335
+ **Enhanced Error Handling & Resilience**
336
+ - 🐛 **FIXED**: Graceful handling of missing files in git history (no more crashes on deleted/moved files)
337
+ - 🐛 **FIXED**: Improved error recovery for git command failures
338
+ - 🐛 **FIXED**: Better fallback analysis when git operations fail
339
+ - ✨ **NEW**: Comprehensive warnings and recovery suggestions
340
+
341
+ **Rule-Based Analysis Improvements**
342
+ - ✨ **NEW**: Enhanced rule-based analysis that works without AI providers
343
+ - ✨ **NEW**: Commit message quality warnings integrated into changelog output
344
+ - ✨ **NEW**: Repository health recommendations in generated output
345
+ - ✨ **NEW**: Better fallback behavior when AI analysis fails
346
+
347
+ **MCP Server Enhancements**
348
+ - ✨ **NEW**: Added `assess_repository_health` MCP tool for comprehensive health analysis
349
+ - ✨ **NEW**: Repository health metrics accessible via MCP for AI assistants
350
+ - ✨ **NEW**: Standardized JSON output format for health assessments
351
+ - ✨ **NEW**: Configurable analysis depth and recommendations
352
+
353
+ **Developer Experience**
354
+ - ✨ **NEW**: Clearer CLI help text with health assessment options
355
+ - ✨ **NEW**: Color-coded health scores and recommendations
356
+ - ✨ **NEW**: Proactive suggestions for repository hygiene improvements
357
+ - ✨ **NEW**: Better user guidance for poor commit message patterns
358
+
359
+ ### 🔧 Technical Enhancements
360
+
361
+ - **Commit Message Analysis**: 8-point scoring system evaluating length, descriptiveness, conventional format compliance, and informational value
362
+ - **Repository Health Metrics**: Comprehensive scoring including commit quality, working directory status, activity patterns, and code diversity
363
+ - **Error Recovery**: Robust handling of git edge cases, deleted files, and command failures
364
+ - **Fallback Analysis**: Improved rule-based analysis that provides value even without AI providers
365
+ - **Attribution Updates**: Corrected repository references to match current GitHub location
366
+
367
+ ### 📊 Impact
368
+
369
+ This release significantly improves the tool's reliability and usefulness by:
370
+ - **Preventing crashes** from git edge cases and missing files
371
+ - **Providing actionable insights** about repository health and commit quality
372
+ - **Working reliably** even without AI provider configuration
373
+ - **Offering proactive guidance** for better development practices
374
+
375
+ ### 🆙 Migration Notes
376
+
377
+ - No breaking changes in this release
378
+ - New `--health` flag available for CLI users
379
+ - MCP users gain access to new `assess_repository_health` tool
380
+ - All existing functionality remains unchanged
381
+
382
+ ---
383
+
384
+ ## [2.4.0]
385
+
386
+ ### Added
387
+ - **Complete MCP Server Feature Parity**: Achieved 100% feature parity between CLI and MCP server
388
+ - New `generate_changelog_from_changes` MCP tool for working directory changelog generation
389
+ - Equivalent to CLI's `--analyze` functionality with full AI-powered changelog creation
390
+ - Supports all analysis modes (standard, detailed, enterprise) and model overrides
391
+ - **File Writing Behavior**: MCP tools now write `AI_CHANGELOG.md` files to project root
392
+ - Both `generate_changelog` and `generate_changelog_from_changes` create persistent files
393
+ - Ensures consistent behavior and proper attribution preservation
394
+ - Prevents chat AI from modifying or stripping attribution from official output
395
+ - **Enhanced Attribution Support**: Fixed missing `includeAttribution` parameter in MCP tools
396
+ - Added `includeAttribution` parameter to `analyze_current_changes` MCP tool schema
397
+ - All MCP tools now support attribution control with proper defaults
398
+ - Maintains promotional attribution while providing opt-out option
399
+
400
+ ### Changed
401
+ - **MCP Tool Documentation**: Updated README with comprehensive MCP tool reference
402
+ - Clarified distinction between analysis tools and changelog generation tools
403
+ - Added file writing behavior documentation and feature parity notes
404
+ - Updated examples to demonstrate working directory changelog generation
405
+ - **Tool Schema Enhancement**: Extended MCP tool schemas with missing parameters
406
+ - More consistent parameter handling across all MCP tools
407
+ - Better validation and documentation for tool parameters
408
+
409
+ ### Fixed
410
+ - **Attribution Consistency**: Resolved discrepancy between CLI and MCP attribution behavior
411
+ - MCP tools now include attribution footer by default, matching CLI behavior
412
+ - Fixed missing attribution in working directory analysis workflows
413
+ - **Feature Gap**: Eliminated functionality differences between CLI and MCP interfaces
414
+ - MCP server can now generate changelogs from working directory changes
415
+ - No more reliance on chat AI interpretation of analysis data
416
+
417
+ ### Technical Implementation
418
+ - **New MCP Methods**: Added `generateChangelogFromChanges()` and supporting helper methods
419
+ - `generateWorkingDirChangelog()`: AI-powered changelog generation from file changes
420
+ - `generateBasicChangelogFromChanges()`: Rule-based fallback for working directory changes
421
+ - `getChangeDescription()`: Utility for describing file change types
422
+ - **File I/O Integration**: Added changelog file writing to MCP tool workflows
423
+ - Consistent `AI_CHANGELOG.md` output across CLI and MCP interfaces
424
+ - Proper error handling for file writing operations
425
+ - Enhanced metadata with file path information
426
+
427
+ ---
428
+
429
+ ## [2.3.1]
430
+
431
+ ### Added
432
+ - **Attribution Footer**: Added optional attribution footer to generated changelogs
433
+ - Displays link to the project: "Generated using [ai-changelog-generator](https://github.com/entro314-labs/AI-changelog-generator)"
434
+ - Enabled by default for promotional purposes while respecting user preferences
435
+ - CLI flag `--no-attribution` to disable attribution footer
436
+ - MCP parameter `includeAttribution: false` to disable attribution in MCP server
437
+ - Promotes the tool while providing opt-out option for users who prefer clean output
438
+
439
+ ---
440
+
441
+ ## [2.3.0]
442
+
443
+ ### Added
444
+ - **Model Override System**: CLI flag `--model` and MCP parameter for forcing specific AI models
445
+ - Bypasses intelligent model selection logic when explicit model specified
446
+ - Validates model capabilities and displays feature support (reasoning, context, caching)
447
+ - Graceful fallback with capability warnings when model unavailable
448
+ - **Comprehensive Repository Analysis**: New `--comprehensive` CLI command and `analyze_comprehensive` MCP tool
449
+ - Repository statistics: commit count, contributor analysis, age calculation
450
+ - Branch analysis: local/remote branch enumeration, current branch detection
451
+ - Working directory status: staged/unstaged/untracked file counts
452
+ - AI-powered health assessment with actionable recommendations
453
+ - **Branch Analysis Tools**: New `--branches` CLI command and `analyze_branches` MCP tool
454
+ - Enumerates all local and remote branches
455
+ - Identifies unmerged commits across branches
456
+ - Detects dangling commits unreachable from branch heads
457
+ - Provides cleanup recommendations for repository maintenance
458
+ - **Untracked File Analysis**: New `--untracked` CLI command
459
+ - Categorizes untracked files by type (source, config, docs, build artifacts, temp)
460
+ - Risk assessment for each file category
461
+ - Automatic .gitignore recommendations
462
+ - AI-powered analysis when available
463
+ - **Enhanced Interactive Mode**: Repository status display in interactive interface
464
+ - Shows current branch, staged/unstaged counts before menu presentation
465
+ - Improved UX with contextual information for better decision making
466
+
467
+ ### Fixed
468
+ - **Git Commit Parsing**: Fixed multiline commit message handling in `parseCommitOutput()`
469
+ - Changed from `%b` to `%B` format specifier for proper body extraction
470
+ - Added null byte separator support for complex commit messages
471
+ - Resolves issue where commits with multiline descriptions were truncated
472
+ - **CLI Argument Processing**: Fixed `getCommitsSince()` format parameter
473
+ - Changed from 'simple' to 'full' format to ensure hash field availability
474
+ - Resolves "No commits found" error when commits existed in repository
475
+ - **Missing Method Implementation**: Added `analyzeRepositoryWithAI()` method
476
+ - Implements AI-powered repository health analysis
477
+ - Uses `generateCompletion()` API with proper message formatting
478
+ - Provides structured health assessment with scoring and recommendations
479
+ - **AI Provider Method Calls**: Corrected `generateText()` to `generateCompletion()`
480
+ - Updated untracked file analysis to use proper AI provider API
481
+ - Fixed repository analysis to use correct message format structure
482
+
483
+ ### Changed
484
+ - **Model Selection Logic**: Enhanced `selectOptimalModel()` to respect model override
485
+ - Priority: manual override > intelligent selection > fallback
486
+ - Added model capability validation and user feedback
487
+ - Improved error handling for unavailable models
488
+ - **CLI Help Documentation**: Updated help text to include new commands
489
+ - Added `--model` flag documentation with examples
490
+ - Included `--branches`, `--comprehensive`, `--untracked` command descriptions
491
+ - Updated examples section with model override usage patterns
492
+ - **MCP Server Schema**: Extended tool definitions for new functionality
493
+ - Added `model` parameter to `generate_changelog` tool
494
+ - Added `analyze_branches` and `analyze_comprehensive` tool definitions
495
+ - Enhanced parameter validation and documentation
496
+
497
+ ### Technical Implementation
498
+ - **Git Manager Extensions**: Added methods for comprehensive repository analysis
499
+ - `getAllBranches()`: Returns local/remote branch enumeration
500
+ - `getDanglingCommits()`: Identifies unreachable commits
501
+ - `getRepositoryStats()`: Calculates repository metrics
502
+ - **AI Provider Integration**: Enhanced model override support
503
+ - Model capability detection and validation
504
+ - Intelligent fallback selection when override unavailable
505
+ - Performance optimization with model-specific settings
506
+ - **Error Handling**: Improved robustness across git operations
507
+ - Graceful degradation when git commands fail
508
+ - Better error messages for troubleshooting
509
+ - Consistent fallback behavior for offline scenarios
510
+
511
+ ---
512
+
513
+ ## [2.2.0]
514
+
515
+ ### Added
516
+ - **MCP Server Implementation**: Complete Model Context Protocol server with 8 tools
517
+ - `generate_changelog`: AI-powered changelog generation from git history
518
+ - `analyze_commits`: Commit pattern analysis with configurable limits
519
+ - `analyze_current_changes`: Staged/unstaged file analysis
520
+ - `get_git_info`: Repository metadata and statistics
521
+ - `configure_ai_provider`: AI provider testing and validation
522
+ - `validate_models`: Model availability and capability checking
523
+ - **Dual CLI/MCP Architecture**:
524
+ - `bin/ai-changelog.js`: Traditional CLI interface
525
+ - `bin/ai-changelog-mcp.js`: MCP server executable
526
+ - Shared core libraries for consistent functionality
527
+ - **Intelligent Model Selection**: Complexity-based model assignment
528
+ - File count and line change analysis for model selection
529
+ - Breaking change detection for advanced reasoning models
530
+ - Cost optimization through efficient model usage
531
+ - **Model Support Matrix**:
532
+ - `gpt-4.1-nano`: <3 files, <50 lines
533
+ - `gpt-4.1-mini`: 3-10 files, <200 lines
534
+ - `gpt-4.1`: 10-20 files, <1000 lines
535
+ - `o4-mini`: 20+ files, architectural changes
536
+ - **TypeScript Definitions**: Complete type definitions in `types/index.d.ts`
537
+ - **Configuration System**: Environment variable and .env.local support
538
+
539
+ ### Changed
540
+ - **Package Architecture**: Migrated from flat to modular structure
541
+ - Core modules: `ai-provider.js`, `git-manager.js`, `templates.js`, `config.js`
542
+ - Separated concerns: CLI, MCP server, shared libraries
543
+ - Improved maintainability and testability
544
+ - **Azure OpenAI Integration**: Updated to v1 API with 2025-04-01-preview version
545
+ - GPT-4.1 series support with 1M token context
546
+ - Prompt caching for 75% cost reduction
547
+ - Enhanced error handling and fallback mechanisms
548
+ - **Package Namespace**: Scoped to `@entro314-labs/ai-changelog-generator`
549
+ - **Import Resolution**: Relative paths for improved portability
550
+
551
+ ### Fixed
552
+ - **Path Dependencies**: Eliminated absolute path requirements
553
+ - **Error Boundaries**: Improved error handling for network failures
554
+ - **Test Compatibility**: Updated test imports for new structure
555
+
556
+ ### Technical Details
557
+ - **Dependencies**: Added `@modelcontextprotocol/sdk@1.12.1`
558
+ - **API Compatibility**: Supports both OpenAI and Azure OpenAI endpoints
559
+ - **Context Window**: 1M token support for large repository analysis
560
+ - **Caching Strategy**: Prompt caching implementation for cost optimization
561
+
562
+ ---
563
+
564
+ ## [2.1.0]
565
+
566
+ ### Added
567
+ - **Interactive Mode**: Full interactive CLI with commit selection
568
+ - Checkbox interface for commit cherry-picking
569
+ - Staged/unstaged change analysis
570
+ - AI-powered commit message validation
571
+ - Commit suggestion generation
572
+ - **Analysis Modes**: Configurable analysis depth
573
+ - `--detailed`: Comprehensive business and technical analysis
574
+ - `--enterprise`: Stakeholder-ready documentation
575
+ - `--analyze`: Current working directory analysis
576
+ - **Enhanced Git Integration**: Extended git operation support
577
+ - Diff analysis with before/after context
578
+ - File categorization by type (source, docs, tests, config)
579
+ - Conventional commit parsing and validation
580
+ - **AI Provider Fallback**: Rule-based analysis when AI unavailable
581
+ - Pattern recognition for commit classification
582
+ - Basic impact assessment
583
+ - Maintains functionality in offline scenarios
584
+
585
+ ### Changed
586
+ - **Command Interface**: Expanded CLI options
587
+ - Version-specific changelog generation
588
+ - Date range filtering
589
+ - Output format selection
590
+ - **AI Model Support**: Extended model compatibility
591
+ - GPT-4 series support
592
+ - Azure OpenAI integration
593
+ - Model-specific optimizations
594
+
595
+ ### Fixed
596
+ - **Commit Parsing**: Improved conventional commit detection
597
+ - **File Processing**: Better handling of binary files
598
+ - **Error Recovery**: Enhanced resilience to git command failures
599
+
600
+ ---
601
+
602
+ ## [2.0.0]
603
+
604
+ ### Added
605
+ - **Core AI Integration**: OpenAI and Azure OpenAI API support
606
+ - **Git Analysis Engine**: Automated commit analysis and categorization
607
+ - **Template System**: Configurable changelog output formats
608
+ - **Configuration Management**: Environment variable and config file support
609
+
610
+ ### Changed
611
+ - **Breaking**: Migrated from manual to automated changelog generation
612
+ - **API**: Redesigned for programmatic usage
613
+
614
+ ### Technical Implementation
615
+ - **Git Operations**: Direct git command integration
616
+ - **AI Processing**: Asynchronous batch processing
617
+ - **Output Generation**: Template-based markdown generation
618
+ - **Error Handling**: Comprehensive error recovery mechanisms
619
+
620
+ ---
621
+
622
+ ## [1.0.0]
623
+
624
+ ### Added
625
+ - **Initial Implementation**: Basic changelog generation
626
+ - **Git Integration**: Commit history parsing
627
+ - **CLI Interface**: Command-line argument processing
628
+ - **File Output**: Markdown changelog generation
629
+
630
+ ### Technical Foundation
631
+ - **Node.js Runtime**: Core JavaScript implementation
632
+ - **Git Commands**: Shell command execution
633
+ - **File System**: Changelog file management
634
+ - **Process Management**: CLI argument handling
635
+
636
+ ---
637
+
638
+ ## VDK CLI Component
639
+
640
+ ## [2.0.0]
641
+
642
+ ### Major Improvements ✨
643
+ - **Enhanced Technology Detection**: Accurately detects 20+ technology-specific rules including Tailwind CSS, shadcn/ui, Supabase, TypeScript configurations
644
+ - **Intelligent Package Manager Detection**: Automatically detects pnpm, yarn, npm, bun based on lock files
645
+ - **Advanced Build Tool Recognition**: Detects Turbopack, Vite, Next.js with version-specific features
646
+ - **Smart IDE Detection**: Enhanced IDE detection without configuration folders, supports VS Code, Cursor, Windsurf, JetBrains, Zed
647
+
648
+ ### New Features 🚀
649
+ - **Library-Specific Guidelines**: Dedicated processing for UI libraries like shadcn/ui and Radix UI
650
+ - **Comprehensive Rule Coverage**: Increased rule limit from 10 to 20 for better technology coverage
651
+ - **Real Script Extraction**: Reads actual npm/pnpm scripts from package.json instead of defaults
652
+ - **AI Assistant Integration**: Added AI Assistant field to generated configurations
653
+
654
+ ### Bug Fixes 🐛
655
+ - **GitHub Copilot Adapter**: Resolved "Cannot read properties of undefined" errors with optional chaining
656
+ - **Rule Matching**: Improved framework and library matching with better aliases and normalization
657
+ - **Content Extraction**: shadcn/ui and other library guidelines now properly appear in CLAUDE.md files
658
+ - **Error Handling**: Graceful degradation for edge cases and invalid paths
659
+
660
+ ### Technical Improvements 🔧
661
+ - **Rule Scoring**: Enhanced relevance scoring algorithm with platform-specific filtering
662
+ - **Content Processing**: Mobile patterns properly excluded from web projects
663
+ - **Template Processing**: Better extraction of actionable guidelines from remote rules
664
+ - **Error Recovery**: Continues operation with missing dependencies or invalid configurations
665
+
666
+ ### Added
667
+ - Comprehensive MDX documentation system
668
+ - Blueprint specifications for all rule formats
669
+ - IDE configuration reference guides
670
+ - GitHub repository documentation templates
671
+
672
+ ### Changed
673
+ - Improved project documentation structure
674
+ - Enhanced integration guides with practical examples
675
+
676
+ ---
677
+
678
+ ## [1.0.0]
679
+
680
+ ### Added
681
+ - Initial release of VDK CLI
682
+ - Project analysis and pattern detection engine
683
+ - Multi-format rule generation (Markdown, MDC, XML, JSON)
684
+ - AI assistant integrations:
685
+ - Claude Code with memory management
686
+ - Cursor with MDC format support
687
+ - Windsurf with XML-enhanced rules
688
+ - GitHub Copilot with JSON configuration
689
+ - Generic Markdown format for any AI assistant
690
+ - VDK Hub for team collaboration and rule sharing
691
+ - Watch mode for continuous project monitoring
692
+ - Comprehensive CLI with 20+ commands
693
+ - Project templates for popular frameworks
694
+ - Rule validation and error checking
695
+ - Integration auto-detection and setup
696
+ - Configuration management system
697
+
698
+ ### Core Features
699
+ - **Project Scanner**: Intelligent analysis of codebase structure, patterns, conventions
700
+ - **Rule Generator**: Context-aware rule creation based on project analysis
701
+ - **Integration Manager**: Seamless setup and management of AI assistant integrations
702
+ - **Hub Client**: Team collaboration through rule sharing and synchronization
703
+ - **Watch System**: Real-time monitoring and automatic rule updates
704
+ - **Validation Engine**: Comprehensive rule and configuration validation
705
+
706
+ ### Supported Frameworks
707
+ - **Frontend**: React, Vue, Angular, Svelte, Next.js, Nuxt.js, SvelteKit
708
+ - **Backend**: Node.js, Express, FastAPI, Django, Rails
709
+ - **Languages**: TypeScript, JavaScript, Python, Go, Rust
710
+ - **Tools**: Tailwind CSS, Prisma, tRPC, GraphQL, Docker
711
+
712
+ ### CLI Commands
713
+ - `vdk init` - Initialize VDK in project with intelligent detection
714
+ - `vdk scan` - Analyze project and generate rules
715
+ - `vdk deploy` - Deploy rules to VDK Hub
716
+ - `vdk update` - Update rules from hub
717
+ - `vdk status` - Check project and integration status
718
+ - `vdk integrations` - Manage AI assistant integrations
719
+ - `vdk claude-code` - Claude Code specific management
720
+ - `vdk cursor` - Cursor IDE integration management
721
+ - `vdk windsurf` - Windsurf IDE integration management
722
+ - `vdk config` - Configuration management
723
+ - `vdk validate` - Validate rules and setup
724
+ - `vdk hub` - Hub collaboration commands
725
+ - `vdk watch` - Enable watch mode
726
+ - `vdk doctor` - Diagnose and troubleshoot issues
727
+ - `vdk clean` - Clean up generated files and caches
728
+
729
+ ### Integration Features
730
+ - **Claude Code**: Memory file management, custom commands, watch mode
731
+ - **Cursor**: MDC format with directives, auto-completion, rule validation
732
+ - **Windsurf**: XML-enhanced rules, multi-agent support, persona routing
733
+ - **GitHub Copilot**: JSON configuration, VS Code integration, pattern learning
734
+ - **Auto-detection**: Automatic IDE detection and setup suggestions
735
+ - **Multi-integration**: Support for multiple AI assistants simultaneously
736
+
737
+ ### Hub Features
738
+ - Team creation and management
739
+ - Rule sharing and discovery
740
+ - Version control and rollback
741
+ - Public and private deployments
742
+ - Search and filtering
743
+ - Analytics and usage insights
744
+ - Collaborative rule development
745
+
746
+ ---
747
+
748
+ ## [0.9.0]
749
+
750
+ ### Added
751
+ - Beta release for early adopters
752
+ - Core project analysis engine
753
+ - Basic rule generation
754
+ - Initial Claude Code integration
755
+ - Simple CLI interface
756
+
757
+ ### Changed
758
+ - Refactored scanner architecture
759
+ - Improved pattern detection algorithms
760
+
761
+ ### Fixed
762
+ - Memory leaks in large project scanning
763
+ - Rule generation edge cases
764
+
765
+ ---
766
+
767
+ ## [0.8.0]
768
+
769
+ ### Added
770
+ - Alpha release for testing
771
+ - Proof of concept implementation
772
+ - Basic framework detection
773
+ - Simple rule templates
774
+
775
+ ---
776
+
777
+ ## Known Issues
778
+
779
+ - Large TypeScript projects (>10k files) may experience slower scanning
780
+ - Windows path handling edge cases in monorepo scenarios
781
+ - Hub sync conflicts in high-concurrency team environments
782
+
783
+ ### 🔧 Working Directory Changes
784
+
785
+ - (docs) Added and updated project documentation - Created a new comprehensive README.md with usage, configuration, and contribution guidelines. Added Untitled-1.md with project purpose and notes. Deleted outdated AI_CHANGELOG.md.backup. (85%)
786
+
787
+ - (feature) Introduced YAML-based configuration support - Added ai-changelog.config.yaml with customizable commit conventions and link generation options. Updated configuration.manager.js to load and parse YAML config, merging it with existing settings. Extended CLI and changelog orchestrator logic to utilize new configuration structure. (85%)
788
+
789
+ - (feature) Improved changelog generation with diff analysis and provider enhancements - Updated changelog.orchestrator.js and workspace-changelog.service.js to support enhanced diff processing and integration with AI providers. Refined changelog.service.js to better handle change data and formatting. (85%)
790
+
791
+ - (feature) Expanded provider support and CLI options - Enhanced provider-manager.service.js and ollama.js to support additional AI providers and improved error handling. Updated cli.controller.js to expose new configuration and provider selection options. (85%)
792
+
793
+ - (fix) Resolved utility and workflow issues - Fixed bugs in utils.js related to object merging and string formatting. Improved interactive-workflow.service.js for more robust user prompts and error handling. (85%)
794
+
795
+ - (chore) Updated dependencies and project metadata - Modified package.json to add new dependencies (js-yaml, yaml), update scripts, and adjust project metadata for configuration and documentation improvements. (85%)
796
+
797
+ - (other) Added placeholder and example files - Created empty files for future examples and project notes: examples/, "Let me validate and expand on those scen.md", and "we recentrly refactored this project, th.md". (85%)
798
+
799
+ ---
800
+
801
+ *Generated using [ai-changelog-generator](https://github.com/entro314-labs/AI-changelog-generator) - AI-powered changelog generation for Git repositories*