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

Function install_qoder_durable_context

src/cli/cli.c:7991–8032  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7989}
7990
7991static void install_qoder_durable_context(const char *home, const char *binary_path,
7992 const char *settings_path, bool config_resolved,
7993 bool force, bool dry_run) {
7994 char skills_dir[CLI_BUF_1K];
7995 char agent_path[CLI_BUF_1K];
7996 snprintf(skills_dir, sizeof(skills_dir), "%s/.qoder/skills", home);
7997 snprintf(agent_path, sizeof(agent_path), "%s/.qoder/agents/codebase-memory.md", home);
7998 install_agent_skill("Qoder CLI", skills_dir, force, dry_run);
7999 install_tiered_agent_profiles(
8000 (cbm_tiered_profile_set_t){
8001 .label = "Qoder CLI",
8002 .verify_path = agent_path,
8003 .binary_path = binary_path,
8004 .legacy_verify_content = legacy_qoder_verify_agent_content,
8005 .dialect = CBM_GRAPH_DIALECT_QODER,
8006 },
8007 dry_run);
8008 bool hook_supported = cbm_optional_hook_supported("qoder", cbm_current_platform_is_windows());
8009 if (g_install_plan) {
8010 if (hook_supported) {
8011 plan_record("Qoder CLI", "hook", settings_path);
8012 }
8013 return;
8014 }
8015 if (!hook_supported) {
8016 printf(" hooks: withheld because no documented executor is available\n");
8017 return;
8018 }
8019 if (!config_resolved) {
8020 printf(" hook: skipped because the settings path was unresolved\n");
8021 return;
8022 }
8023 bool installed = true;
8024 if (!dry_run && (!prepare_config_parent(settings_path) ||
8025 cbm_upsert_qoder_context_hook(settings_path, binary_path) != CLI_OK)) {
8026 installed = false;
8027 record_agent_config_error(false, "Qoder CLI", "context_hook_install", settings_path);
8028 }
8029 if (installed) {
8030 printf(" hooks: %s (SessionStart + SubagentStart + PostToolUse Read)\n", settings_path);
8031 }
8032}
8033
8034static bool cbm_gitlab_hooks_path(const cbm_agent_registry_context_t *registry, char *path,
8035 size_t path_size) {

Callers 1

Calls 8

install_agent_skillFunction · 0.85
plan_recordFunction · 0.85
prepare_config_parentFunction · 0.85

Tested by

no test coverage detected