| 5427 | }; |
| 5428 | |
| 5429 | int cbm_upsert_gemini_hooks(const char *settings_path) { |
| 5430 | return upsert_hooks_json((hooks_upsert_args_t){ |
| 5431 | .settings_path = settings_path, |
| 5432 | .hook_event = "BeforeTool", |
| 5433 | .matcher_str = GEMINI_HOOK_MATCHER, |
| 5434 | .command_str = GEMINI_HOOK_COMMAND, |
| 5435 | .old_matchers = cmm_gemini_old_matchers, |
| 5436 | .old_commands = cmm_gemini_released_hook_commands, |
| 5437 | .match_command_exact = GEMINI_HOOK_COMMAND, |
| 5438 | }); |
| 5439 | } |
| 5440 | |
| 5441 | int cbm_remove_gemini_hooks(const char *settings_path) { |
| 5442 | return remove_hooks_json((hooks_remove_args_t){ |
no test coverage detected