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

Function cbm_install_agent_configs

src/cli/cli.c:8999–9016  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8997}
8998
8999int cbm_install_agent_configs(const char *home, const char *binary_path, bool force, bool dry_run) {
9000 g_agent_install_errors = 0;
9001 cbm_detected_agents_t agents = cbm_detect_agents(home);
9002 if (!g_install_plan) {
9003 print_detected_agents(&agents, home);
9004 }
9005
9006 if (agents.claude_code) {
9007 install_claude_code_config(home, binary_path, force, dry_run);
9008 }
9009 install_cli_agent_configs(&agents, home, binary_path, force, dry_run);
9010 install_editor_agent_configs(&agents, home, binary_path, force, dry_run);
9011 install_additional_agent_configs(&agents, home, binary_path, force, dry_run);
9012 bool inherit_claude_session =
9013 agents.claude_code && !dry_run && cbm_has_complete_claude_session_hooks(home);
9014 install_agent_client_registry(home, binary_path, inherit_claude_session, force, dry_run);
9015 return g_agent_install_errors == 0 ? CLI_OK : CLI_ERR;
9016}
9017
9018static int cbm_install_agent_configs_with_previous(const char *home, const char *binary_path,
9019 const char *previous_managed_binary_path,

Tested by

no test coverage detected