Skip to content

v1.5.3 — 多 CLI 支持 / Multi-CLI Support

Choose a tag to compare

@Doulor Doulor released this 08 Jun 15:04

v1.5.3 — 多 CLI 支持 / Multi-CLI Support

多 CLI 架构 / Multi-CLI Architecture

  • Provider 抽象:新增 Provider 接口,Claude Code 和 OpenAI Codex 共享同一套事件管线。扩展 ToolName 枚举(Shell / UpdatePlan / ApplyPatch / ViewImage)。
  • 独立 Codex forwarderapps/hook-forwarder-codex/ 与 Claude forwarder 并列,复用 apps/hook-forwarder-core/ 共享逻辑。
  • Provider abstraction: new Provider interface; Claude Code and OpenAI Codex share one unified event pipeline. Extended ToolName enum with Shell / UpdatePlan / ApplyPatch / ViewImage.
  • Standalone Codex forwarder: apps/hook-forwarder-codex/ ships alongside the Claude forwarder, sharing apps/hook-forwarder-core/.

OpenAI Codex 支持 / OpenAI Codex Support (测试中 / Beta)

  • TOML hooks 读写:手写最小 TOML 解析器(toml-hooks.ts),保留 ~/.codex/config.toml 中不认识的段;Codex 10 种事件类型全部映射。
  • Windows 适配:Codex hook 在 Windows 下同时写 commandcommandWindows
  • Hand-rolled TOML parser preserves foreign sections; all 10 Codex event types mapped.
  • Windows: Codex hooks write both commandcommandWindows.

UI / UX

  • 数据源 (Sources) 面板:双栏卡片并排显示 Claude Code 与 OpenAI Codex 的 hook 状态。Codex 卡片标有"测试中"角标。
  • 按钮风格统一:Sources 面板按钮复用已有 .hooks-actions 样式。
  • 英文 README 新增README.en.md 双列对齐,新增下载量 / Star History 徽章。
  • Sources panel: two side-by-side provider cards with hook status. Codex card has a "Beta" badge.
  • English README: added README.en.md with cross-links and new badges.

Bug 修复 / Bug Fixes

  • 子 agent 权限弹窗修复:子 agent 派发的 PreToolUse 事件不再误触发权限弹窗(permission_mode 缺失时不再默认弹窗)。
  • Sub-agent permission fix: PreToolUse events from sub-agents no longer incorrectly trigger the permission dialog when permission_mode is missing.

基础设施 / Infrastructure

  • hook-forwarder-core 共享模块;enabledSources 设置迁移;DoctorReport 按 provider 聚合。
  • Shared hook-forwarder-core module; enabledSources migration; per-provider DoctorReport.

测试 / Tests

  • 新增 4 个测试文件,74 个测试用例全部通过。
  • Added 4 test files; 74 tests passing.

完整变更 / Full Changes

44 files changed, 3,870 insertions, 198 deletions.