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

Function cbm_upsert_instructions

src/cli/cli.c:3394–3404  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3392}
3393
3394int cbm_upsert_instructions(const char *path, const char *content) {
3395 if (!path || !content) {
3396 return CLI_ERR;
3397 }
3398 if (ensure_parent_dir(path) != CLI_OK) {
3399 return CLI_ERR;
3400 }
3401 return cbm_text_upsert_managed_block(path, CMM_MARKER_START, CMM_MARKER_END, content) == 0
3402 ? CLI_OK
3403 : CLI_ERR;
3404}
3405
3406static int cbm_upsert_windsurf_rules(const char *path, const char *content) {
3407 if (!path || !content || ensure_parent_dir(path) != CLI_OK) {

Calls 2

ensure_parent_dirFunction · 0.85

Tested by

no test coverage detected