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

Function install_gitlab_durable_context

src/cli/cli.c:7867–7894  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7865}
7866
7867static void install_gitlab_durable_context(const cbm_agent_registry_context_t *registry,
7868 const char *binary_path, bool dry_run) {
7869 char hooks_path[CLI_BUF_1K];
7870 if (!cbm_gitlab_hooks_path(registry, hooks_path, sizeof(hooks_path))) {
7871 record_agent_config_error(false, "GitLab Duo CLI", "hook_resolve", "hooks.json");
7872 return;
7873 }
7874 bool hook_supported = cbm_optional_hook_supported("gitlab", registry->options.is_windows);
7875 if (g_install_plan) {
7876 if (hook_supported) {
7877 plan_record("GitLab Duo CLI", "hook", hooks_path);
7878 }
7879 return;
7880 }
7881 if (!hook_supported) {
7882 printf(" hook: withheld on Windows (vendor hook shell is undocumented)\n");
7883 return;
7884 }
7885 bool installed = true;
7886 if (!dry_run && (!prepare_config_parent(hooks_path) ||
7887 cbm_upsert_gitlab_session_hook(hooks_path, binary_path) != CLI_OK)) {
7888 installed = false;
7889 record_agent_config_error(false, "GitLab Duo CLI", "session_hook_install", hooks_path);
7890 }
7891 if (installed) {
7892 printf(" hook: %s (SessionStart; experimental vendor surface)\n", hooks_path);
7893 }
7894}
7895
7896static void install_devin_durable_context(const cbm_agent_registry_context_t *registry,
7897 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