Skip to content

Refactor/zustand migration#3

Merged
echoVic merged 9 commits intomainfrom
refactor/zustand-migration
Dec 16, 2025
Merged

Refactor/zustand migration#3
echoVic merged 9 commits intomainfrom
refactor/zustand-migration

Conversation

@echoVic
Copy link
Owner

@echoVic echoVic commented Dec 16, 2025

No description provided.

huzijie.sea and others added 9 commits December 11, 2025 16:48
- 将字符串类型的权限模式替换为强类型的 PermissionMode
- 从 SecurityTypes.ts 移除未使用的安全相关类型
- 优化权限模式切换逻辑,支持动态读取 execution.context.permissionMode
- 在 Plan 模式退出时注入 plan 内容到消息中
- 更新相关文档和类型导出文件
feat(store): 添加 Zustand store 及相关 slices
refactor(ui): 重构组件以使用 Zustand store 替代 React Context
feat(config): 扩展 MCP 配置类型
perf(utils): 使用 LRU 缓存优化文件模式匹配性能
chore(deps): 添加 Zustand 及相关依赖
style: 清理无用代码和文件
refactor(agent): 移除 EventEmitter 改用 Zustand 状态管理
refactor(config): 迁移配置管理到 Store 并实现自动持久化
feat(store): 添加 Zustand store 实现及防御性初始化检查
feat(ui): 实现双击 Ctrl+C 退出提示及状态管理
docs: 更新状态管理架构文档及最佳实践
refactor: 移除旧版 ConfigManager 直接调用
- 删除 telemetry 相关配置和文档
- 移除 LoopDetectionService 并简化循环检测逻辑
- 合并 TodoWrite/TodoRead 为单一工具
- 优化权限模式持久化逻辑
- 清理无用代码和配置项
- 更新文档和测试用例
添加 onTokenUsage 和 onCompacting 回调函数到 LoopOptions 接口,用于实时监控 token 使用情况和上下文压缩状态
在 Agent 类中实现回调触发逻辑,并在压缩过程中更新状态
在 store 中添加 tokenUsage 和 isCompacting 状态及相关选择器
更新 ChatStatusBar 组件显示上下文剩余百分比和压缩状态
优化 useCtrlCHandler 实现,修复退出逻辑问题
添加 useGitBranch hook 和 git 工具函数,支持获取当前分支信息
- Add /git command with subcommands (status, log, diff, review, commit)
- Implement AI-assisted code review and commit message generation
- Add command alias support and fuzzy command suggestions
- Optimize logger initialization with promise caching
- Refactor Ctrl+C handler for proper exit cleanup
- Replace pnpm/action-setup with corepack commands
- Enable corepack and prepare pnpm@8
- Remove trailing newline in env section
@echoVic echoVic merged commit 40faf98 into main Dec 16, 2025
0 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant