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

Function cbm_upsert_gemini_coverage_hook

src/cli/cli.c:5675–5689  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5673
5674#ifndef _WIN32
5675static int cbm_upsert_gemini_coverage_hook(const char *settings_path, const char *binary_path) {
5676 char command[CLI_BUF_8K];
5677 if (cbm_build_augment_dialect_command(binary_path, "gemini", command, sizeof(command)) !=
5678 CLI_OK) {
5679 return CLI_ERR;
5680 }
5681 return upsert_hooks_json((hooks_upsert_args_t){
5682 .settings_path = settings_path,
5683 .hook_event = "AfterTool",
5684 .matcher_str = "read_file",
5685 .command_str = command,
5686 .timeout_value = GEMINI_HOOK_TIMEOUT_MS,
5687 .match_command_exact = command,
5688 });
5689}
5690
5691static int cbm_remove_gemini_coverage_hook(const char *settings_path, const char *binary_path) {
5692 char command[CLI_BUF_8K];

Callers 1

install_gemini_configFunction · 0.85

Calls 2

upsert_hooks_jsonFunction · 0.85

Tested by

no test coverage detected