Roo-Code/src
Yu SERIZAWA 580672ffc8
feat: enhance rule file loading with .roo/rules directory support (#2354)
* feat: enhance rule file loading with .roo/rules directory support

- Introduced functions to safely read files and check for directory existence.
- Added capability to read all text files from a specified directory in alphabetical order.
- Updated `loadRuleFiles` to prioritize loading rules from a `.roo/rules/` directory, falling back to existing rule files if necessary.
- Enhanced `addCustomInstructions` to support loading mode-specific rules from a `.roo/rules-{mode}/` directory, improving flexibility in rule management.

This change improves the organization and retrieval of rule files, allowing for better modularity and maintainability.

* Updated strings and translations

* Add tests

* Revert changes to system prompt translations

* Fix path resolution

* Make instruction structure clearer

---------

Co-authored-by: Matt Rubens <mrubens@users.noreply.github.com>
2025-04-07 11:46:30 -04:00
..
__mocks__ Re-enable ClineProvider tests (#2047) 2025-03-27 21:06:54 -07:00
__tests__ Removed hardcoded filenames to GlobalFileNames constants. (#1904) 2025-03-24 13:32:44 -04:00
activate feat: add command to focus Roo Code input field (#2369) 2025-04-07 07:54:49 -04:00
api Jbbrown/bedrock caching (#2071) 2025-04-03 13:05:29 -04:00
core feat: enhance rule file loading with .roo/rules directory support (#2354) 2025-04-07 11:46:30 -04:00
exports Fixes to resumeTask and isTaskInHistory (#2380) 2025-04-07 11:41:08 -04:00
i18n Improve zh-TW Traditional Chinese locale (#2305) 2025-04-04 22:22:48 -04:00
integrations fix: clamp negative line numbers when reading files (#2337) 2025-04-05 22:10:11 -04:00
schemas feat: add workspace tracking to history items (#2054) 2025-04-05 08:23:10 -04:00
services feat(browserTool): Implement resize action (#2370) 2025-04-07 09:34:32 -04:00
shared feat(browserTool): Implement resize action (#2370) 2025-04-07 09:34:32 -04:00
utils Revert "feat @-mention window path style & file with space (#1924)" (#2162) 2025-03-31 15:56:47 -05:00
extension.ts Allow processes to access the Roo Code API via a unix socket (#2232) 2025-04-02 12:42:00 -07:00