| 2287 | } |
| 2288 | |
| 2289 | static void cbm_zed_instructions_path(const char *home_dir, char *out, size_t out_sz) { |
| 2290 | #ifdef _WIN32 |
| 2291 | snprintf(out, out_sz, "%s/AppData/Roaming/Zed/AGENTS.md", home_dir); |
| 2292 | #else |
| 2293 | /* Zed's global instruction file follows the cross-agent ~/.config |
| 2294 | * convention on both Linux and macOS, independently of settings.json. */ |
| 2295 | snprintf(out, out_sz, "%s/.config/zed/AGENTS.md", home_dir); |
| 2296 | #endif |
| 2297 | } |
| 2298 | |
| 2299 | static bool cbm_expand_user_path(const char *home_dir, const char *value, char *out, |
| 2300 | size_t out_sz) { |
no outgoing calls
no test coverage detected