Skip to content

Commit 913d26c

Browse files
author
echoVic
committed
fix: git operations should run in monorepo root to include changelog
1 parent 915f59b commit 913d26c

2 files changed

Lines changed: 37 additions & 5 deletions

File tree

docs/changelog.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,37 @@
33
All notable changes to this project will be documented in this file.
44

55

6+
## [0.2.0] - 2026-01-30
7+
8+
### ✨ 新功能
9+
10+
- 支持展示所有变更文件并允许展开/折叠差异 (a96ac69)
11+
- 移除pino日志库并实现自定义日志系统 (d5b5b67)
12+
- 支持Node.js环境的终端WebSocket连接 (ff2cde1)
13+
- 添加多语言支持并优化UI主题配置 (de2fe52)
14+
- 添加权限模式支持并优化侧边栏样式 (5b83127)
15+
- 添加终端功能及UI改进 (37831e3)
16+
- 实现临时会话功能并增强侧边栏 (4c598e9)
17+
- 添加模型管理和会话功能 (c85cff9)
18+
- 实现聊天会话管理和消息流式处理功能 (9b2682c)
19+
- 添加完整的Web UI界面 (55540e5)
20+
- 新增Blade服务器核心功能及API路由 (52e3db3)
21+
22+
### 🐛 问题修复
23+
24+
- correct web dist path detection in server (b778444)
25+
26+
### ♻️ 代码重构
27+
28+
- simplify monorepo architecture (1c820dd)
29+
- 重构消息组件和状态管理逻辑 (05e579a)
30+
- 重构会话存储结构,移除工具切片并优化事件处理 (e6fe25e)
31+
- 重构会话存储结构,将状态管理拆分为多个切片 (785bd56)
32+
- 重构会话管理及事件处理机制 (18d75a5)
33+
- 移除事件总线并重构会话和权限处理 (67a4dab)
34+
- 统一使用 PermissionMode 枚举类型 (11b3b4d)
35+
36+
637
## [0.1.10] - 2026-01-22
738

839
### ♻️ 代码重构

packages/cli/scripts/release.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { fileURLToPath } from 'url';
99
const __filename = fileURLToPath(import.meta.url);
1010
const __dirname = dirname(__filename);
1111
const rootDir = join(__dirname, '..');
12+
const monorepoRoot = join(__dirname, '../../..');
1213
const packageJsonPath = join(rootDir, 'package.json');
1314
const configPath = join(rootDir, 'release.config.js');
1415

@@ -420,9 +421,9 @@ function commitAndTag(newVersion) {
420421

421422
try {
422423
const tagPrefix = config.version?.tagPrefix || 'v';
423-
exec('git add .');
424-
exec(`git commit -m "chore: release ${tagPrefix}${newVersion}"`);
425-
exec(`git tag ${tagPrefix}${newVersion}`);
424+
exec('git add .', { cwd: monorepoRoot });
425+
exec(`git commit -m "chore: release ${tagPrefix}${newVersion}"`, { cwd: monorepoRoot });
426+
exec(`git tag ${tagPrefix}${newVersion}`, { cwd: monorepoRoot });
426427

427428
console.log(chalk.green(`✅ 已创建标签 ${tagPrefix}${newVersion}`));
428429
} catch (error) {
@@ -477,10 +478,10 @@ function pushToRemote() {
477478

478479
try {
479480
if (config.publish?.gitConfig?.pushBranch !== false) {
480-
exec('git push');
481+
exec('git push', { cwd: monorepoRoot });
481482
}
482483
if (config.publish?.gitConfig?.pushTags !== false) {
483-
exec('git push --tags');
484+
exec('git push --tags', { cwd: monorepoRoot });
484485
}
485486

486487
console.log(chalk.green('✅ 已推送到远程仓库'));

0 commit comments

Comments
 (0)