MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / cbm_upsert_augment_session_hook

Function cbm_upsert_augment_session_hook

src/cli/cli.c:5702–5711  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5700enum { AUGMENT_HOOK_TIMEOUT_MS = 5000 };
5701
5702static int cbm_upsert_augment_session_hook(const char *settings_path, const char *script_path) {
5703 return upsert_hooks_json((hooks_upsert_args_t){
5704 .settings_path = settings_path,
5705 .hook_event = "SessionStart",
5706 .matcher_str = NULL,
5707 .command_str = script_path,
5708 .timeout_value = AUGMENT_HOOK_TIMEOUT_MS,
5709 .match_command_exact = script_path,
5710 });
5711}
5712
5713static int cbm_remove_augment_session_hook(const char *settings_path, const char *script_path) {
5714 return remove_hooks_json((hooks_remove_args_t){

Callers 1

Calls 1

upsert_hooks_jsonFunction · 0.85

Tested by

no test coverage detected