v1.5.3 — 多 CLI 支持 / Multi-CLI Support
v1.5.3 — 多 CLI 支持 / Multi-CLI Support
多 CLI 架构 / Multi-CLI Architecture
- Provider 抽象:新增
Provider接口,Claude Code 和 OpenAI Codex 共享同一套事件管线。扩展ToolName枚举(Shell / UpdatePlan / ApplyPatch / ViewImage)。 - 独立 Codex forwarder:
apps/hook-forwarder-codex/与 Claude forwarder 并列,复用apps/hook-forwarder-core/共享逻辑。 - Provider abstraction: new
Providerinterface; Claude Code and OpenAI Codex share one unified event pipeline. ExtendedToolNameenum withShell / UpdatePlan / ApplyPatch / ViewImage. - Standalone Codex forwarder:
apps/hook-forwarder-codex/ships alongside the Claude forwarder, sharingapps/hook-forwarder-core/.
OpenAI Codex 支持 / OpenAI Codex Support (测试中 / Beta)
- TOML hooks 读写:手写最小 TOML 解析器(
toml-hooks.ts),保留~/.codex/config.toml中不认识的段;Codex 10 种事件类型全部映射。 - Windows 适配:Codex hook 在 Windows 下同时写
command和commandWindows。 - Hand-rolled TOML parser preserves foreign sections; all 10 Codex event types mapped.
- Windows: Codex hooks write both
command和commandWindows.
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.mdwith 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_modeis missing.
基础设施 / Infrastructure
hook-forwarder-core共享模块;enabledSources设置迁移;DoctorReport按 provider 聚合。- Shared
hook-forwarder-coremodule;enabledSourcesmigration; per-providerDoctorReport.
测试 / Tests
- 新增 4 个测试文件,74 个测试用例全部通过。
- Added 4 test files; 74 tests passing.
完整变更 / Full Changes
44 files changed, 3,870 insertions, 198 deletions.