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

Function install_gitlab_durable_context

src/cli/cli.c:7911–7938  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7909}
7910
7911static void install_gitlab_durable_context(const cbm_agent_registry_context_t *registry,
7912 const char *binary_path, bool dry_run) {
7913 char hooks_path[CLI_BUF_1K];
7914 if (!cbm_gitlab_hooks_path(registry, hooks_path, sizeof(hooks_path))) {
7915 record_agent_config_error(false, "GitLab Duo CLI", "hook_resolve", "hooks.json");
7916 return;
7917 }
7918 bool hook_supported = cbm_optional_hook_supported("gitlab", registry->options.is_windows);
7919 if (g_install_plan) {
7920 if (hook_supported) {
7921 plan_record("GitLab Duo CLI", "hook", hooks_path);
7922 }
7923 return;
7924 }
7925 if (!hook_supported) {
7926 printf(" hook: withheld on Windows (vendor hook shell is undocumented)\n");
7927 return;
7928 }
7929 bool installed = true;
7930 if (!dry_run && (!prepare_config_parent(hooks_path) ||
7931 cbm_upsert_gitlab_session_hook(hooks_path, binary_path) != CLI_OK)) {
7932 installed = false;
7933 record_agent_config_error(false, "GitLab Duo CLI", "session_hook_install", hooks_path);
7934 }
7935 if (installed) {
7936 printf(" hook: %s (SessionStart; experimental vendor surface)\n", hooks_path);
7937 }
7938}
7939
7940static void install_devin_durable_context(const cbm_agent_registry_context_t *registry,
7941 const char *binary_path, const char *config_path,

Callers 1

Calls 6

cbm_gitlab_hooks_pathFunction · 0.85
plan_recordFunction · 0.85
prepare_config_parentFunction · 0.85

Tested by

no test coverage detected