Roo-Code/webview-ui
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
..
.storybook Additional @shadcn/ui components 2025-02-14 23:41:39 -08:00
public Remove CRA cruft 2025-01-30 14:38:41 -08:00
src feat: enhance rule file loading with .roo/rules directory support (#2354) 2025-04-07 11:46:30 -04:00
.eslintrc.json Stabilize tests in CI 2025-02-23 02:28:10 -08:00
.gitignore PR cleanup 2025-03-12 11:23:06 -04:00
.npmrc Improved logic for auto-approving chained commands 2024-12-26 22:45:09 -08:00
components.json Remove lucide 2025-01-30 14:47:59 -08:00
index.html Roo Cline -> Roo Code 2025-01-29 21:21:20 +07:00
jest.config.cjs Add i18n 2025-03-12 11:23:06 -04:00
package-lock.json Run 'npm audit fix' on everything (#1817) 2025-03-24 14:50:53 -04:00
package.json Welcome page OAuth (#1913) 2025-03-23 10:08:16 -04:00
tsconfig.json Merged with main branch 2025-02-06 12:44:22 +05:30
vite.config.ts perf: optimize build process for parallel execution (#1801) 2025-03-19 01:15:55 -07:00