Roo-Code/packages/types
Roo Code f53f674aba fix: prevent context exhaustion when reading large files
- Add file size check to reject files larger than 10MB
- Add largeFileLineThreshold setting (default 5000 lines)
- When maxReadFileLine is -1 and file exceeds threshold, automatically truncate to first 1000 lines
- Add configuration options for the threshold
- Add tests for the new functionality

This prevents the 'Failed to condense' error when Roo Code accidentally tries to read very large files, which was causing context window exhaustion and loss of task memory.

Fixes #6069
2025-07-22 17:43:33 +00:00
..
npm Add command timeout allowlist with IPC support (#5910) 2025-07-18 16:48:39 -04:00
src fix: prevent context exhaustion when reading large files 2025-07-22 17:43:33 +00:00
eslint.config.mjs Add a new @roo-code/types package and use it everywhere (#3912) 2025-05-26 12:06:45 -07:00
package.json Farewell jest (#4607) 2025-06-16 21:39:45 -07:00
README.md Bump @roo-code/types to v1.26.0 (#4584) 2025-06-12 11:05:53 -04:00
tsconfig.json Add a new @roo-code/types package and use it everywhere (#3912) 2025-05-26 12:06:45 -07:00
tsup.config.ts Improve configuration for npm publish of @roo-code/types (#4062) 2025-05-27 22:10:41 -07:00
vitest.config.ts Convert jest tests to vitest and disable default watch mode for vitest (#4568) 2025-06-11 14:48:01 -07:00

@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.