Roo-Code/packages/types
Roo Code 4d8071551c fix: wire up maxReadFileLine setting to ReadFileTool
The maxReadFileLine setting existed as a type definition and in the
webview default state but was never actually wired into the ReadFileTool
or the tool description. The tool always used the hardcoded
DEFAULT_LINE_LIMIT of 2000 lines regardless of the setting.

This commit:
- Adds maxReadFileLine to ClineProvider.getState() so it flows through
  the state pipeline
- Passes maxReadFileLine through getNativeTools -> createReadFileTool
  so the tool description reflects the actual configured limit
- Uses maxReadFileLine in ReadFileTool.processTextFile() to override
  DEFAULT_LINE_LIMIT at runtime
- Adds resolveLineLimit() helper: -1 = default (2000), 0 = no limit
  (read entire file), positive = custom limit
- Adds tests for resolveLineLimit and createReadFileTool options

Fixes #11754
2026-02-26 11:24:38 +00:00
..
npm Release: v1.112.0 (#11589) 2026-02-18 16:01:44 -08:00
scripts Fix publish-npm script (#7093) 2025-08-14 03:17:56 -07:00
src fix: wire up maxReadFileLine setting to ReadFileTool 2026-02-26 11:24:38 +00:00
.gitignore Task metadata (#7092) 2025-08-14 03:14:17 -07:00
eslint.config.mjs Task metadata (#7092) 2025-08-14 03:14:17 -07:00
package.json feat: add AI SDK dependencies and message conversion utilities (#11047) 2026-01-28 14:05:53 -05:00
tsconfig.json Task metadata (#7092) 2025-08-14 03:14:17 -07:00
tsup.config.ts Bump @roo-code/types to v1.42.0 (#6610) 2025-08-02 13:27:59 -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