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

Function cbm_upsert_openclaw_compaction

src/cli/cli.c:2472–2478  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2470 "Codebase Knowledge Graph (codebase-memory-mcp)";
2471
2472static int cbm_upsert_openclaw_compaction(const char *config_path) {
2473 static const char *const path[] = {"agents", "defaults", "compaction"};
2474 return cbm_json_like_add_unique_string_at_path(config_path, path, 3U, "postCompactionSections",
2475 cbm_openclaw_compaction_section) == 0
2476 ? CLI_OK
2477 : CLI_ERR;
2478}
2479
2480static int cbm_remove_openclaw_compaction(const char *config_path) {
2481 static const char *const path[] = {"agents", "defaults", "compaction"};

Callers 1

Tested by

no test coverage detected