| 3404 | } |
| 3405 | |
| 3406 | static int cbm_upsert_windsurf_rules(const char *path, const char *content) { |
| 3407 | if (!path || !content || ensure_parent_dir(path) != CLI_OK) { |
| 3408 | return CLI_ERR; |
| 3409 | } |
| 3410 | return cbm_text_upsert_managed_block_limited(path, CMM_MARKER_START, CMM_MARKER_END, content, |
| 3411 | WINDSURF_GLOBAL_RULES_MAX_BYTES) == 0 |
| 3412 | ? CLI_OK |
| 3413 | : CLI_ERR; |
| 3414 | } |
| 3415 | |
| 3416 | int cbm_remove_instructions(const char *path) { |
| 3417 | if (!path) { |
no test coverage detected