| 3209 | } |
| 3210 | |
| 3211 | static int cbm_upsert_windsurf_rules(const char *path, const char *content) { |
| 3212 | if (!path || !content || ensure_parent_dir(path) != CLI_OK) { |
| 3213 | return CLI_ERR; |
| 3214 | } |
| 3215 | return cbm_text_upsert_managed_block_limited(path, CMM_MARKER_START, CMM_MARKER_END, content, |
| 3216 | WINDSURF_GLOBAL_RULES_MAX_BYTES) == 0 |
| 3217 | ? CLI_OK |
| 3218 | : CLI_ERR; |
| 3219 | } |
| 3220 | |
| 3221 | int cbm_remove_instructions(const char *path) { |
| 3222 | if (!path) { |
no test coverage detected