MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / cbm_vibe_config_dir

Function cbm_vibe_config_dir

src/cli/cli.c:3004–3011  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3002}
3003
3004static 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". */

Callers 3

cbm_detect_agentsFunction · 0.85

Calls 1

cbm_safe_getenvFunction · 0.85

Tested by

no test coverage detected