| 1113 | /* ── Agent detection ──────────────────────────────────────────── */ |
| 1114 | |
| 1115 | static bool dir_exists(const char *path) { |
| 1116 | struct stat st; |
| 1117 | return stat(path, &st) == 0 && S_ISDIR(st.st_mode); |
| 1118 | } |
| 1119 | |
| 1120 | /* Resolve the Claude Code config dir. |
| 1121 | * Honors $CLAUDE_CONFIG_DIR; falls back to "$home_dir/.claude". */ |
no test coverage detected