@yeepay/coderocket-mcp 1.4.0 → 1.4.1
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.
- package/CHANGELOG.md +14 -0
- package/bin/coderocket-mcp +4 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -5,6 +5,20 @@ All notable changes to this project will be documented in this file.
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7
7
|
|
8
|
+
## [1.4.1] - 2025-08-02
|
9
|
+
|
10
|
+
### 🔧 关键修复:CLI模式初始化
|
11
|
+
|
12
|
+
#### Fixed
|
13
|
+
- **关键修复**:修复了CLI模式下PromptManager未初始化的问题
|
14
|
+
- 更新CLI入口点使用完整的 `initializeCodeRocket()` 函数
|
15
|
+
- 确保所有系统组件(ConfigManager + PromptManager)在CLI模式下正确初始化
|
16
|
+
|
17
|
+
#### Technical Details
|
18
|
+
- 修改 `bin/coderocket-mcp` 脚本,从只初始化ConfigManager改为调用完整初始化流程
|
19
|
+
- 解决了 "PromptManager 未初始化,请先调用 initialize()" 错误
|
20
|
+
- 保证CLI工具调用与MCP服务器模式的一致性
|
21
|
+
|
8
22
|
## [1.4.0] - 2025-08-02
|
9
23
|
|
10
24
|
### 🎯 统一提示词架构优化
|
package/bin/coderocket-mcp
CHANGED
@@ -25,12 +25,12 @@ if (command && ['review_changes', 'review_commit', 'review_code', 'review_files'
|
|
25
25
|
const coderocketModule = await import(resolve(__dirname, '../dist/coderocket.js'));
|
26
26
|
console.log('✅ 模块导入成功');
|
27
27
|
|
28
|
-
const { CodeRocketService,
|
28
|
+
const { CodeRocketService, initializeCodeRocket } = coderocketModule;
|
29
29
|
console.log('✅ 类导入成功');
|
30
30
|
|
31
|
-
//
|
32
|
-
await
|
33
|
-
console.log('✅
|
31
|
+
// 初始化所有系统组件(包括ConfigManager和PromptManager)
|
32
|
+
await initializeCodeRocket();
|
33
|
+
console.log('✅ 系统组件初始化完成');
|
34
34
|
|
35
35
|
const service = new CodeRocketService();
|
36
36
|
console.log(`🚀 正在执行工具: ${command}`);
|