mirror of
https://github.com/codestable/CodeStable.git
synced 2026-09-19 09:03:09 +08:00
30fecaae5e
收敛 CodeStable 主入口、runtime preflight、goal driver 与 skill 工程化评测闭环。 - 根 cs 对行动请求同轮直转,咨询与介绍保持非执行 - feature/issue/refactor/epic/docs 按仓库事实恢复,旧 stage skill 保留兼容薄壳 - repo-local runtime 支持版本检测、安全自动同步和显式 refresh-runtime - 完成 Codex/Claude marketplace 1.0.2、升级文档和回归/评测证据 验证:215 tests passed;package/runtime/diff checks passed;独立 review 与 QA 无 unresolved blocking/important findings。
17 lines
796 B
JSON
17 lines
796 B
JSON
{
|
|
"hooks": {
|
|
"PreToolUse": [
|
|
{
|
|
"matcher": "Bash|Shell|Edit|MultiEdit|NotebookEdit|Write",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "sh -lc 'ROOT=\"${CLAUDE_PROJECT_DIR:-${CODEX_PROJECT_DIR:-$(git rev-parse --show-toplevel 2>/dev/null || pwd)}}\"; SCRIPT=\"$ROOT/.codestable/tools/codestable-ai-branch-guard.py\"; if [ ! -f \"$SCRIPT\" ]; then SCRIPT=\"$HOME/.agents/skills/cs-onboard/tools/codestable-ai-branch-guard.py\"; fi; if [ ! -f \"$SCRIPT\" ]; then SCRIPT=\"$HOME/.codex/skills/cs-onboard/tools/codestable-ai-branch-guard.py\"; fi; [ -f \"$SCRIPT\" ] || exit 0; exec python3 \"$SCRIPT\" --root \"$ROOT\"'",
|
|
"statusMessage": "CodeStable: checking branch/worktree safety"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|