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:6342–6356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6340
6341#ifndef _WIN32
6342static int cbm_upsert_gemini_coverage_hook(const char *settings_path, const char *binary_path) {
6343 char command[CLI_BUF_8K];
6344 if (cbm_build_augment_dialect_command(binary_path, "gemini", command, sizeof(command)) !=
6345 CLI_OK) {
6346 return CLI_ERR;
6347 }
6348 return upsert_hooks_json((hooks_upsert_args_t){
6349 .settings_path = settings_path,
6350 .hook_event = "AfterTool",
6351 .matcher_str = "read_file",
6352 .command_str = command,
6353 .timeout_value = GEMINI_HOOK_TIMEOUT_MS,
6354 .match_command_exact = command,
6355 });
6356}
6357
6358static int cbm_remove_gemini_coverage_hook(const char *settings_path, const char *binary_path) {
6359 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