| 7724 | } |
| 7725 | |
| 7726 | static void cbm_init_agent_registry_context(const char *home, |
| 7727 | cbm_agent_registry_context_t *registry) { |
| 7728 | memset(registry, 0, sizeof(*registry)); |
| 7729 | registry->options.home_dir = home; |
| 7730 | registry->options.xdg_config_home = cbm_agent_registry_env_path( |
| 7731 | "XDG_CONFIG_HOME", home, registry->xdg_config_home, sizeof(registry->xdg_config_home)); |
| 7732 | registry->options.appdata_dir = cbm_agent_registry_env_path( |
| 7733 | "APPDATA", home, registry->appdata_dir, sizeof(registry->appdata_dir)); |
| 7734 | registry->options.glab_config_dir = cbm_agent_registry_env_path( |
| 7735 | "GLAB_CONFIG_DIR", home, registry->glab_config_dir, sizeof(registry->glab_config_dir)); |
| 7736 | registry->options.kimi_code_home = cbm_agent_registry_env_path( |
| 7737 | "KIMI_CODE_HOME", home, registry->kimi_code_home, sizeof(registry->kimi_code_home)); |
| 7738 | registry->options.continue_config_path = cbm_agent_registry_env_path( |
| 7739 | "CBM_CONTINUE_CONFIG_PATH", home, registry->continue_config_path, |
| 7740 | sizeof(registry->continue_config_path)); |
| 7741 | registry->options.trae_config_path = |
| 7742 | cbm_agent_registry_env_path("CBM_TRAE_CONFIG_PATH", home, registry->trae_config_path, |
| 7743 | sizeof(registry->trae_config_path)); |
| 7744 | registry->options.roo_config_path = cbm_agent_registry_env_path( |
| 7745 | "CBM_ROO_CONFIG_PATH", home, registry->roo_config_path, sizeof(registry->roo_config_path)); |
| 7746 | registry->options.cody_config_path = |
| 7747 | cbm_agent_registry_env_path("CBM_CODY_CONFIG_PATH", home, registry->cody_config_path, |
| 7748 | sizeof(registry->cody_config_path)); |
| 7749 | #ifdef _WIN32 |
| 7750 | registry->options.is_windows = true; |
| 7751 | #else |
| 7752 | registry->options.is_windows = false; |
| 7753 | #endif |
| 7754 | registry->options.path_exists = cbm_agent_registry_path_exists; |
| 7755 | registry->options.command_exists = cbm_agent_registry_command_exists; |
| 7756 | registry->options.probe_context = registry; |
| 7757 | } |
| 7758 | |
| 7759 | static void print_detected_registry_agents(const char *home, bool *any) { |
| 7760 | cbm_agent_registry_context_t registry; |
no test coverage detected