| 5647 | }; |
| 5648 | |
| 5649 | int cbm_upsert_gemini_hooks(const char *settings_path) { |
| 5650 | return upsert_hooks_json((hooks_upsert_args_t){ |
| 5651 | .settings_path = settings_path, |
| 5652 | .hook_event = "BeforeTool", |
| 5653 | .matcher_str = GEMINI_HOOK_MATCHER, |
| 5654 | .command_str = GEMINI_HOOK_COMMAND, |
| 5655 | .old_matchers = cmm_gemini_old_matchers, |
| 5656 | .old_commands = cmm_gemini_released_hook_commands, |
| 5657 | .match_command_exact = GEMINI_HOOK_COMMAND, |
| 5658 | }); |
| 5659 | } |
| 5660 | |
| 5661 | int cbm_remove_gemini_hooks(const char *settings_path) { |
| 5662 | return remove_hooks_json((hooks_remove_args_t){ |
no test coverage detected