Bcy2020/dsh-cc-ecosystem--packages-cc-hooks1

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.

包名
dsh-cc-hooks
版本
0.1.0
最近更新
2026年8月16日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Bcy2020/dsh-cc-ecosystem#486441ba06baddbc29b7f82431a795541d2c0369&path:packages/cc-hooks

配置(Schema)

默认说明
enabledtrue总开关
defaultTimeoutMs600000未设 timeout 的 hook 默认超时(CC 同值)
stderrSummaryMaxChars500hook/result 事件 stderr 摘要上限
pluginDirs[]插件根列表,扫 /hooks/hooks.json
enableGlobaltrue是否加载 ~/.claude/hooks/hooks.json
globalClaudeDir~/.claude用户级目录覆盖(测试用)
homeDiros.homedir()家目录覆盖(测试用)
projectRootMarkers['.git']项目根向上发现标记
projectDir会话 cwdCLAUDE_PROJECT_DIR 覆盖值