| 3392 | } |
| 3393 | |
| 3394 | int cbm_upsert_instructions(const char *path, const char *content) { |
| 3395 | if (!path || !content) { |
| 3396 | return CLI_ERR; |
| 3397 | } |
| 3398 | if (ensure_parent_dir(path) != CLI_OK) { |
| 3399 | return CLI_ERR; |
| 3400 | } |
| 3401 | return cbm_text_upsert_managed_block(path, CMM_MARKER_START, CMM_MARKER_END, content) == 0 |
| 3402 | ? CLI_OK |
| 3403 | : CLI_ERR; |
| 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) { |
no test coverage detected