| 2397 | } |
| 2398 | |
| 2399 | static void cbm_zed_instructions_path(const char *home_dir, char *out, size_t out_sz) { |
| 2400 | #ifdef _WIN32 |
| 2401 | snprintf(out, out_sz, "%s/AppData/Roaming/Zed/AGENTS.md", home_dir); |
| 2402 | #else |
| 2403 | /* Zed's global instruction file follows the cross-agent ~/.config |
| 2404 | * convention on both Linux and macOS, independently of settings.json. */ |
| 2405 | snprintf(out, out_sz, "%s/.config/zed/AGENTS.md", home_dir); |
| 2406 | #endif |
| 2407 | } |
| 2408 | |
| 2409 | static bool cbm_expand_user_path(const char *home_dir, const char *value, char *out, |
| 2410 | size_t out_sz) { |
no outgoing calls
no test coverage detected