export { generateClaudeMd } from "./claude_md.js";
import { debug } from "../../engine/core/logger.js";
import { hookCommand } from "../shared/hook_command.js";
/**
 * 生成 Claude Code hooks 配置对象。
 * @returns hooks 配置对象，包含 PreToolUse、PostToolUse 和 UserPromptSubmit 钩子
 */
export function generateHooksConfig() {
    debug("Hooks配置", "生成 hooks 配置");
    return {
        hooks: {
            PreToolUse: [
                {
                    matcher: "Edit|Write",
                    hooks: [
                        {
                            type: "command",
                            command: hookCommand("check-write"),
                        },
                    ],
                },
                {
                    matcher: "Bash",
                    hooks: [
                        {
                            type: "command",
                            command: hookCommand("check-bash"),
                        },
                    ],
                },
            ],
            PostToolUse: [
                {
                    matcher: "Bash",
                    hooks: [
                        {
                            type: "command",
                            command: hookCommand("post-bash"),
                        },
                    ],
                },
            ],
            "UserPromptSubmit": [
                {
                    hooks: [
                        {
                            type: "command",
                            command: hookCommand("pre-prompt"),
                        },
                    ],
                },
            ],
        },
    };
}
//# sourceMappingURL=hooks.js.map