Roo-Code/packages
Daniel Riccio f52f374fd4
feat: improve readFileTool safeguard with character-based limiting and i18n
- Replace line-based limiting with character-based limiting to handle files with very long lines
- Move threshold constants to packages/types/src/file-limits.ts for better organization
- Add readLinesWithCharLimit function that truncates at complete line boundaries
- Optimize file reading to avoid double reads when checking token count
- Add i18n support for safeguard notice messages in all 18 supported languages
- Update tests to match new character-based implementation
- Safeguard now limits by character count (200KB default) instead of line count
- Ensures files are never truncated in the middle of a line
2025-07-28 17:44:10 -05:00
..
build Sharing improvements (#5082) 2025-06-24 16:36:32 -04:00
cloud Bugfix: Cloud: be more specific about session error codes (#6051) 2025-07-22 07:16:15 -07:00
config-eslint Upgrade to ESLint 9 + share eslint config across workspaces (#3815) 2025-05-21 21:30:21 -07:00
config-typescript Roo Code Cloud (#4069) 2025-05-28 20:43:30 -07:00
evals Use SIGKILL for command execution timeouts in the "execa" variant (#6071) 2025-07-23 01:47:10 -07:00
ipc Farewell jest (#4607) 2025-06-16 21:39:45 -07:00
telemetry Git repo cloud telemetry (#5119) 2025-06-25 17:01:32 -07:00
types feat: improve readFileTool safeguard with character-based limiting and i18n 2025-07-28 17:44:10 -05:00