| 3294 | } |
| 3295 | |
| 3296 | static int cbm_upsert_windsurf_rules(const char *path, const char *content) { |
| 3297 | if (!path || !content || ensure_parent_dir(path) != CLI_OK) { |
| 3298 | return CLI_ERR; |
| 3299 | } |
| 3300 | return cbm_text_upsert_managed_block_limited(path, CMM_MARKER_START, CMM_MARKER_END, content, |
| 3301 | WINDSURF_GLOBAL_RULES_MAX_BYTES) == 0 |
| 3302 | ? CLI_OK |
| 3303 | : CLI_ERR; |
| 3304 | } |
| 3305 | |
| 3306 | int cbm_remove_instructions(const char *path) { |
| 3307 | if (!path) { |
no test coverage detected