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

Function install_gitlab_durable_context

src/cli/cli.c:9320–9347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9318}
9319
9320static void install_gitlab_durable_context(const cbm_agent_registry_context_t *registry,
9321 const char *binary_path, bool dry_run) {
9322 char hooks_path[CLI_BUF_1K];
9323 if (!cbm_gitlab_hooks_path(registry, hooks_path, sizeof(hooks_path))) {
9324 record_agent_config_error(false, "GitLab Duo CLI", "hook_resolve", "hooks.json");
9325 return;
9326 }
9327 bool hook_supported = cbm_optional_hook_supported("gitlab", registry->options.is_windows);
9328 if (g_install_plan) {
9329 if (hook_supported) {
9330 plan_record("GitLab Duo CLI", "hook", hooks_path);
9331 }
9332 return;
9333 }
9334 if (!hook_supported) {
9335 printf(" hook: withheld on Windows (vendor hook shell is undocumented)\n");
9336 return;
9337 }
9338 bool installed = true;
9339 if (!dry_run && (!prepare_config_parent(hooks_path) ||
9340 cbm_upsert_gitlab_session_hook(hooks_path, binary_path) != CLI_OK)) {
9341 installed = false;
9342 record_agent_config_error(false, "GitLab Duo CLI", "session_hook_install", hooks_path);
9343 }
9344 if (installed) {
9345 printf(" hook: %s (SessionStart; experimental vendor surface)\n", hooks_path);
9346 }
9347}
9348
9349static void install_devin_durable_context(const cbm_agent_registry_context_t *registry,
9350 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