| 5926 | enum { AUGMENT_HOOK_TIMEOUT_MS = 5000 }; |
| 5927 | |
| 5928 | static int cbm_upsert_augment_session_hook(const char *settings_path, const char *script_path) { |
| 5929 | return upsert_hooks_json((hooks_upsert_args_t){ |
| 5930 | .settings_path = settings_path, |
| 5931 | .hook_event = "SessionStart", |
| 5932 | .matcher_str = NULL, |
| 5933 | .command_str = script_path, |
| 5934 | .timeout_value = AUGMENT_HOOK_TIMEOUT_MS, |
| 5935 | .match_command_exact = script_path, |
| 5936 | }); |
| 5937 | } |
| 5938 | |
| 5939 | static int cbm_remove_augment_session_hook(const char *settings_path, const char *script_path) { |
| 5940 | return remove_hooks_json((hooks_remove_args_t){ |
no test coverage detected