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

Function print_detected_registry_agents

src/cli/cli.c:9209–9222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9207}
9208
9209static void print_detected_registry_agents(const char *home, bool *any) {
9210 cbm_agent_registry_context_t registry;
9211 cbm_init_agent_registry_context(home, &registry);
9212 for (size_t index = 0U; index < cbm_agent_client_count(); index++) {
9213 const cbm_agent_client_profile_t *profile = cbm_agent_client_at(index);
9214 if (profile &&
9215 (!g_client_selection ||
9216 cli_clients_selects_registry_client(g_client_selection, profile->id)) &&
9217 cbm_agent_client_detect(profile->id, &registry.options)) {
9218 printf(" %s", profile->display_name);
9219 *any = true;
9220 }
9221 }
9222}
9223
9224static void cbm_agent_installed_binary_path(const char *home, char *binary_path,
9225 size_t binary_path_size) {

Callers 1

print_detected_agentsFunction · 0.85

Calls 5

cbm_agent_client_countFunction · 0.85
cbm_agent_client_atFunction · 0.85
cbm_agent_client_detectFunction · 0.85

Tested by

no test coverage detected