| 3239 | } |
| 3240 | |
| 3241 | int cbm_upsert_instructions(const char *path, const char *content) { |
| 3242 | if (!path || !content) { |
| 3243 | return CLI_ERR; |
| 3244 | } |
| 3245 | if (ensure_parent_dir(path) != CLI_OK) { |
| 3246 | return CLI_ERR; |
| 3247 | } |
| 3248 | return cbm_text_upsert_managed_block(path, CMM_MARKER_START, CMM_MARKER_END, content) == 0 |
| 3249 | ? CLI_OK |
| 3250 | : CLI_ERR; |
| 3251 | } |
| 3252 | |
| 3253 | static int cbm_upsert_windsurf_rules(const char *path, const char *content) { |
| 3254 | if (!path || !content || ensure_parent_dir(path) != CLI_OK) { |
no test coverage detected