| 6461 | enum { AUGMENT_HOOK_TIMEOUT_MS = 5000 }; |
| 6462 | |
| 6463 | static int cbm_upsert_augment_session_hook(const char *settings_path, const char *script_path) { |
| 6464 | return upsert_hooks_json((hooks_upsert_args_t){ |
| 6465 | .settings_path = settings_path, |
| 6466 | .hook_event = "SessionStart", |
| 6467 | .matcher_str = NULL, |
| 6468 | .command_str = script_path, |
| 6469 | .timeout_value = AUGMENT_HOOK_TIMEOUT_MS, |
| 6470 | .match_command_exact = script_path, |
| 6471 | }); |
| 6472 | } |
| 6473 | |
| 6474 | static int cbm_remove_augment_session_hook(const char *settings_path, const char *script_path) { |
| 6475 | return remove_hooks_json((hooks_remove_args_t){ |
no test coverage detected