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

Function install_gitlab_durable_context

src/cli/cli.c:7973–8000  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7971}
7972
7973static void install_gitlab_durable_context(const cbm_agent_registry_context_t *registry,
7974 const char *binary_path, bool dry_run) {
7975 char hooks_path[CLI_BUF_1K];
7976 if (!cbm_gitlab_hooks_path(registry, hooks_path, sizeof(hooks_path))) {
7977 record_agent_config_error(false, "GitLab Duo CLI", "hook_resolve", "hooks.json");
7978 return;
7979 }
7980 bool hook_supported = cbm_optional_hook_supported("gitlab", registry->options.is_windows);
7981 if (g_install_plan) {
7982 if (hook_supported) {
7983 plan_record("GitLab Duo CLI", "hook", hooks_path);
7984 }
7985 return;
7986 }
7987 if (!hook_supported) {
7988 printf(" hook: withheld on Windows (vendor hook shell is undocumented)\n");
7989 return;
7990 }
7991 bool installed = true;
7992 if (!dry_run && (!prepare_config_parent(hooks_path) ||
7993 cbm_upsert_gitlab_session_hook(hooks_path, binary_path) != CLI_OK)) {
7994 installed = false;
7995 record_agent_config_error(false, "GitLab Duo CLI", "session_hook_install", hooks_path);
7996 }
7997 if (installed) {
7998 printf(" hook: %s (SessionStart; experimental vendor surface)\n", hooks_path);
7999 }
8000}
8001
8002static void install_devin_durable_context(const cbm_agent_registry_context_t *registry,
8003 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