Skip to content

v0.1.3 — Claude Code hooks now shipped in tarball

Choose a tag to compare

@ConradLu2740 ConradLu2740 released this 05 Aug 23:55

新功能:hooks 随发布包内置\n\n之前 hooks(会话级主动推送)只存在于源码仓库,tarball 用户无法使用。现在 hooks 编译为独立 bundle(内联 core,仅需 node)随包发布:\n\n- dist/hooks/today-push.js(SessionStart):会话开始注入今日建议/场景,无内容沉默\n- dist/hooks/session-end.js(Stop):会话结束沉淀记忆 + 评估主动建议\n\n安装(.claude/settings.json):\njson\n{\n "hooks": {\n "SessionStart": [{ "hooks": [{ "type": "command", "command": "node /abs/path/to/node_modules/@proactive-agent/mcp/dist/hooks/today-push.js" }] }],\n "Stop": [{ "hooks": [{ "type": "command", "command": "node /abs/path/to/node_modules/@proactive-agent/mcp/dist/hooks/session-end.js" }] }]\n }\n}\n\n\n验证:全新 tarball 安装后 hooks 直接运行 ✅