| 2216 | } |
| 2217 | |
| 2218 | static void cbm_zed_instructions_path(const char *home_dir, char *out, size_t out_sz) { |
| 2219 | #ifdef _WIN32 |
| 2220 | snprintf(out, out_sz, "%s/AppData/Roaming/Zed/AGENTS.md", home_dir); |
| 2221 | #else |
| 2222 | /* Zed's global instruction file follows the cross-agent ~/.config |
| 2223 | * convention on both Linux and macOS, independently of settings.json. */ |
| 2224 | snprintf(out, out_sz, "%s/.config/zed/AGENTS.md", home_dir); |
| 2225 | #endif |
| 2226 | } |
| 2227 | |
| 2228 | static bool cbm_expand_user_path(const char *home_dir, const char *value, char *out, |
| 2229 | size_t out_sz) { |
no outgoing calls
no test coverage detected