| 3002 | } |
| 3003 | |
| 3004 | static void cbm_vibe_config_dir(const char *home_dir, char *out, size_t out_sz) { |
| 3005 | char env_buf[CLI_BUF_1K]; |
| 3006 | const char *custom = cbm_safe_getenv("VIBE_HOME", env_buf, sizeof(env_buf), NULL); |
| 3007 | snprintf(out, out_sz, "%s", custom && custom[0] ? custom : ""); |
| 3008 | if ((!custom || !custom[0]) && home_dir && home_dir[0]) { |
| 3009 | snprintf(out, out_sz, "%s/.vibe", home_dir); |
| 3010 | } |
| 3011 | } |
| 3012 | |
| 3013 | /* Resolve Grok Build's user configuration directory. |
| 3014 | * Honors $GROK_HOME; falls back to "$home_dir/.grok". */ |
no test coverage detected