| 6314 | }; |
| 6315 | |
| 6316 | int cbm_upsert_gemini_hooks(const char *settings_path) { |
| 6317 | return upsert_hooks_json((hooks_upsert_args_t){ |
| 6318 | .settings_path = settings_path, |
| 6319 | .hook_event = "BeforeTool", |
| 6320 | .matcher_str = GEMINI_HOOK_MATCHER, |
| 6321 | .command_str = GEMINI_HOOK_COMMAND, |
| 6322 | .old_matchers = cmm_gemini_old_matchers, |
| 6323 | .old_commands = cmm_gemini_released_hook_commands, |
| 6324 | .match_command_exact = GEMINI_HOOK_COMMAND, |
| 6325 | }); |
| 6326 | } |
| 6327 | |
| 6328 | int cbm_remove_gemini_hooks(const char *settings_path) { |
| 6329 | return remove_hooks_json((hooks_remove_args_t){ |
no test coverage detected