mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-10-11 03:38:15 +00:00
- 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 |
||
|---|---|---|
| .. | ||
| npm | ||
| src | ||
| eslint.config.mjs | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
| tsup.config.ts | ||
| vitest.config.ts | ||
@roo-code/types
Publish to NPM
First authenticate with NPM:
npm login
Next, manually bump the NPM package version:
cd packages/types/npm && npm version minor && cd -
Finally, publish to NPM:
pnpm --filter @roo-code/types npm:publish
Note that you'll be asked for an MFA code to complete the publish.