| 3834 | } |
| 3835 | |
| 3836 | int cbm_upsert_instructions(const char *path, const char *content) { |
| 3837 | if (!path || !content) { |
| 3838 | return CLI_ERR; |
| 3839 | } |
| 3840 | if (ensure_parent_dir(path) != CLI_OK) { |
| 3841 | return CLI_ERR; |
| 3842 | } |
| 3843 | return cbm_text_upsert_managed_block(path, CMM_MARKER_START, CMM_MARKER_END, content) == 0 |
| 3844 | ? CLI_OK |
| 3845 | : CLI_ERR; |
| 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) { |
no test coverage detected