| 5483 | }; |
| 5484 | |
| 5485 | int cbm_upsert_gemini_hooks(const char *settings_path) { |
| 5486 | return upsert_hooks_json((hooks_upsert_args_t){ |
| 5487 | .settings_path = settings_path, |
| 5488 | .hook_event = "BeforeTool", |
| 5489 | .matcher_str = GEMINI_HOOK_MATCHER, |
| 5490 | .command_str = GEMINI_HOOK_COMMAND, |
| 5491 | .old_matchers = cmm_gemini_old_matchers, |
| 5492 | .old_commands = cmm_gemini_released_hook_commands, |
| 5493 | .match_command_exact = GEMINI_HOOK_COMMAND, |
| 5494 | }); |
| 5495 | } |
| 5496 | |
| 5497 | int cbm_remove_gemini_hooks(const char *settings_path) { |
| 5498 | return remove_hooks_json((hooks_remove_args_t){ |
no test coverage detected