Skip to content

v2.4.0 — Reasonix 与 dsh 支持

Latest

Choose a tag to compare

@MarioZZJ MarioZZJ released this 18 Aug 07:54
8adc9ee

v2.4.0 — 新增 Reasonix 与 dsh 支持

新 Agent 支持

  • Reasonix:原生 reasonix-plugin.json(v2 清单,5 个 hook,payloadFormat: claude),
    覆盖 Notification(审批等待)/ Stop / UserPromptSubmit / PreToolUse(ask) / PostToolUse。
    安装:reasonix plugin install git:github.com/MarioZZJ/cc-notify-hooks --yes
  • dsh(DeepSeek Harness):零依赖宿主插件 dsh-cc-notify,订阅
    approval/requestagent/turn-stoppingagent/pre-steptools/pre-execute/post-execute
    五个拦截点,复用同一套 scripts/ 与渠道配置。安装:bash install/dsh.sh
    (dsh 热加载 cordis.patch.yml,无需重启)

变更

  • notify.sh:Agent 识别(CC_NOTIFY_AGENT / REASONIX_PLUGIN_ROOT / DSH_CC_NOTIFY
    与字段兜底(event/sessionId/lastAssistantText);配置查找链新增
    ~/.reasonix~/.dsh 路径
  • pre_tool_use.sh:识别 ask / AskUserQuestion 提问工具
  • install.sh 路由新增 reasonix / dsh 分支
  • 文档:README(安装方式五/六、监听事件、通知内容)、docs/index.html、
    CLAUDE.md 同步更新

测试

  • bash test_notify.sh agents 新增 Reasonix/dsh 识别测试
  • dsh 插件单元测试 8/8(node plugins/cc-notify-hooks/dsh-plugin/test/plugin.test.mjs