Bcy2020/dsh-cc-ecosystem--packages-cc-hooks ↗★ 1
dsh-cc-hooks
Run unmodified Claude Code hooks in DSH with per-session discovery: project .claude/hooks + global ~/.claude/hooks + plugin dirs. All five handler types execute (command/http/mcp_tool/prompt/agent) through @deepseek-ai/dsh-hook-protocol (11/31 wired events, if-field filtering, official event×type support matrix). Breaks the official bridge's process-level single-config limit.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Bcy2020/dsh-cc-ecosystem#486441ba06baddbc29b7f82431a795541d2c0369&path:packages/cc-hooks说明文档
阅读完整 README ↗配置(Schema)
| 键 | 默认 | 说明 |
|---|---|---|
enabled | true | 总开关 |
defaultTimeoutMs | 600000 | 未设 timeout 的 hook 默认超时(CC 同值) |
stderrSummaryMaxChars | 500 | hook/result 事件 stderr 摘要上限 |
pluginDirs | [] | 插件根列表,扫 /hooks/hooks.json |
enableGlobal | true | 是否加载 ~/.claude/hooks/hooks.json |
globalClaudeDir | ~/.claude | 用户级目录覆盖(测试用) |
homeDir | os.homedir() | 家目录覆盖(测试用) |
projectRootMarkers | ['.git'] | 项目根向上发现标记 |
projectDir | 会话 cwd | CLAUDE_PROJECT_DIR 覆盖值 |