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

Function plan_record

src/cli/cli.c:3207–3225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3205static cbm_install_plan_t *g_install_plan = NULL;
3206
3207static void plan_record(const char *agent, const char *kind, const char *path) {
3208 if (!g_install_plan || !path || !path[0]) {
3209 return;
3210 }
3211 cbm_install_plan_t *pl = g_install_plan;
3212 if (pl->count >= pl->cap) {
3213 int ncap = pl->cap ? pl->cap * 2 : CLI_BUF_16;
3214 cbm_plan_entry_t *ni = realloc(pl->items, (size_t)ncap * sizeof(*ni));
3215 if (!ni) {
3216 return;
3217 }
3218 pl->items = ni;
3219 pl->cap = ncap;
3220 }
3221 cbm_plan_entry_t *e = &pl->items[pl->count++];
3222 snprintf(e->agent, sizeof(e->agent), "%s", agent);
3223 snprintf(e->kind, sizeof(e->kind), "%s", kind);
3224 snprintf(e->path, sizeof(e->path), "%s", path);
3225}
3226
3227static void install_claude_code_config(const char *home, const char *binary_path, bool force,
3228 bool dry_run) {

Callers 4

install_gemini_configFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected