| 2266 | } |
| 2267 | |
| 2268 | static void cbm_zed_instructions_path(const char *home_dir, char *out, size_t out_sz) { |
| 2269 | #ifdef _WIN32 |
| 2270 | snprintf(out, out_sz, "%s/AppData/Roaming/Zed/AGENTS.md", home_dir); |
| 2271 | #else |
| 2272 | /* Zed's global instruction file follows the cross-agent ~/.config |
| 2273 | * convention on both Linux and macOS, independently of settings.json. */ |
| 2274 | snprintf(out, out_sz, "%s/.config/zed/AGENTS.md", home_dir); |
| 2275 | #endif |
| 2276 | } |
| 2277 | |
| 2278 | static bool cbm_expand_user_path(const char *home_dir, const char *value, char *out, |
| 2279 | size_t out_sz) { |
no outgoing calls
no test coverage detected