| 5706 | enum { AUGMENT_HOOK_TIMEOUT_MS = 5000 }; |
| 5707 | |
| 5708 | static int cbm_upsert_augment_session_hook(const char *settings_path, const char *script_path) { |
| 5709 | return upsert_hooks_json((hooks_upsert_args_t){ |
| 5710 | .settings_path = settings_path, |
| 5711 | .hook_event = "SessionStart", |
| 5712 | .matcher_str = NULL, |
| 5713 | .command_str = script_path, |
| 5714 | .timeout_value = AUGMENT_HOOK_TIMEOUT_MS, |
| 5715 | .match_command_exact = script_path, |
| 5716 | }); |
| 5717 | } |
| 5718 | |
| 5719 | static int cbm_remove_augment_session_hook(const char *settings_path, const char *script_path) { |
| 5720 | return remove_hooks_json((hooks_remove_args_t){ |
no test coverage detected