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

Function install_qoder_durable_context

src/cli/cli.c:8206–8247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8204}
8205
8206static void install_qoder_durable_context(const char *home, const char *binary_path,
8207 const char *settings_path, bool config_resolved,
8208 bool force, bool dry_run) {
8209 char skills_dir[CLI_BUF_1K];
8210 char agent_path[CLI_BUF_1K];
8211 snprintf(skills_dir, sizeof(skills_dir), "%s/.qoder/skills", home);
8212 snprintf(agent_path, sizeof(agent_path), "%s/.qoder/agents/codebase-memory.md", home);
8213 install_agent_skill("Qoder CLI", skills_dir, force, dry_run);
8214 install_tiered_agent_profiles(
8215 (cbm_tiered_profile_set_t){
8216 .label = "Qoder CLI",
8217 .verify_path = agent_path,
8218 .binary_path = binary_path,
8219 .legacy_verify_content = legacy_qoder_verify_agent_content,
8220 .dialect = CBM_GRAPH_DIALECT_QODER,
8221 },
8222 dry_run);
8223 bool hook_supported = cbm_optional_hook_supported("qoder", cbm_current_platform_is_windows());
8224 if (g_install_plan) {
8225 if (hook_supported) {
8226 plan_record("Qoder CLI", "hook", settings_path);
8227 }
8228 return;
8229 }
8230 if (!hook_supported) {
8231 printf(" hooks: withheld because no documented executor is available\n");
8232 return;
8233 }
8234 if (!config_resolved) {
8235 printf(" hook: skipped because the settings path was unresolved\n");
8236 return;
8237 }
8238 bool installed = true;
8239 if (!dry_run && (!prepare_config_parent(settings_path) ||
8240 cbm_upsert_qoder_context_hook(settings_path, binary_path) != CLI_OK)) {
8241 installed = false;
8242 record_agent_config_error(false, "Qoder CLI", "context_hook_install", settings_path);
8243 }
8244 if (installed) {
8245 printf(" hooks: %s (SessionStart + SubagentStart + PostToolUse Read)\n", settings_path);
8246 }
8247}
8248
8249static bool cbm_gitlab_hooks_path(const cbm_agent_registry_context_t *registry, char *path,
8250 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