co-mono/packages
Mario Zechner 2f0f0a913e Add proper truncation notices and comprehensive tests for read tool
**Improved output messages:**
1. File fits within limits: Just outputs content (no notices)
2. Lines get truncated: Shows "Some lines were truncated to 2000 characters for display"
3. File doesn't fit limit: Shows "N more lines not shown. Use offset=X to continue reading"
4. Offset beyond file: Shows "Error: Offset X is beyond end of file (N lines total)"
5. Both truncations: Combines both notices with ". " separator

**Comprehensive test coverage:**
- Files within limits (no notices)
- Large files (line truncation)
- Long lines (character truncation)
- Offset parameter
- Limit parameter
- Offset + limit together
- Invalid offset (out of bounds)
- Combined truncations (both notices)

All 17 tests passing ✓
2025-11-12 17:13:03 +01:00
..
agent Fix version sync script to update all internal dependencies 2025-11-12 14:41:40 +01:00
ai Fix Lit dependency duplication and update mini-lit to 0.2.0 2025-11-12 16:03:43 +01:00
coding-agent Add proper truncation notices and comprehensive tests for read tool 2025-11-12 17:13:03 +01:00
pods Handle FinishReason.NO_IMAGE and fix optional chaining 2025-11-12 10:58:03 +01:00
proxy Handle FinishReason.NO_IMAGE and fix optional chaining 2025-11-12 10:58:03 +01:00
tui Handle FinishReason.NO_IMAGE and fix optional chaining 2025-11-12 10:58:03 +01:00
web-ui Fix Lit dependency duplication and update mini-lit to 0.2.0 2025-11-12 16:03:43 +01:00
test.txt Fix read/write tool output formatting 2025-11-11 21:22:08 +01:00