| 3881 | } |
| 3882 | |
| 3883 | static bool cbm_optional_hook_supported(const char *agent_name, bool windows) { |
| 3884 | if (!agent_name || strcmp(agent_name, "cline") == 0) { |
| 3885 | return false; |
| 3886 | } |
| 3887 | if (!windows) { |
| 3888 | return true; |
| 3889 | } |
| 3890 | return strcmp(agent_name, "kimi") == 0 || strcmp(agent_name, "hermes") == 0 || |
| 3891 | strcmp(agent_name, "qoder") == 0; |
| 3892 | } |
| 3893 | |
| 3894 | static bool cbm_current_platform_is_windows(void) { |
| 3895 | #ifdef _WIN32 |
no outgoing calls
no test coverage detected