| 3846 | } |
| 3847 | |
| 3848 | static int cbm_upsert_windsurf_rules(const char *path, const char *content) { |
| 3849 | if (!path || !content || ensure_parent_dir(path) != CLI_OK) { |
| 3850 | return CLI_ERR; |
| 3851 | } |
| 3852 | return cbm_text_upsert_managed_block_limited(path, CMM_MARKER_START, CMM_MARKER_END, content, |
| 3853 | WINDSURF_GLOBAL_RULES_MAX_BYTES) == 0 |
| 3854 | ? CLI_OK |
| 3855 | : CLI_ERR; |
| 3856 | } |
| 3857 | |
| 3858 | int cbm_remove_instructions(const char *path) { |
| 3859 | if (!path) { |
no test coverage detected