mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 08:03:39 +00:00
**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 ✓ |
||
|---|---|---|
| .. | ||
| tools.test.ts | ||