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

Function cbm_upsert_windsurf_rules

src/cli/cli.c:3205–3213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3203}
3204
3205static int cbm_upsert_windsurf_rules(const char *path, const char *content) {
3206 if (!path || !content || ensure_parent_dir(path) != CLI_OK) {
3207 return CLI_ERR;
3208 }
3209 return cbm_text_upsert_managed_block_limited(path, CMM_MARKER_START, CMM_MARKER_END, content,
3210 WINDSURF_GLOBAL_RULES_MAX_BYTES) == 0
3211 ? CLI_OK
3212 : CLI_ERR;
3213}
3214
3215int cbm_remove_instructions(const char *path) {
3216 if (!path) {

Callers 1

install_windsurf_configFunction · 0.85

Calls 2

ensure_parent_dirFunction · 0.85

Tested by

no test coverage detected