| 3205 | static cbm_install_plan_t *g_install_plan = NULL; |
| 3206 | |
| 3207 | static 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 | |
| 3227 | static void install_claude_code_config(const char *home, const char *binary_path, bool force, |
| 3228 | bool dry_run) { |
no outgoing calls
no test coverage detected