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

Function cbm_upsert_instructions

src/cli/cli.c:3199–3209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3197}
3198
3199int cbm_upsert_instructions(const char *path, const char *content) {
3200 if (!path || !content) {
3201 return CLI_ERR;
3202 }
3203 if (ensure_parent_dir(path) != CLI_OK) {
3204 return CLI_ERR;
3205 }
3206 return cbm_text_upsert_managed_block(path, CMM_MARKER_START, CMM_MARKER_END, content) == 0
3207 ? CLI_OK
3208 : CLI_ERR;
3209}
3210
3211static int cbm_upsert_windsurf_rules(const char *path, const char *content) {
3212 if (!path || !content || ensure_parent_dir(path) != CLI_OK) {

Calls 2

ensure_parent_dirFunction · 0.85

Tested by

no test coverage detected