Export truncation utilities for custom tools, add truncated-tool example
- Export truncateHead, truncateTail, truncateLine, formatSize, DEFAULT_MAX_BYTES, DEFAULT_MAX_LINES from package - Add examples/extensions/truncated-tool.ts showing proper output truncation with custom rendering - Document output truncation best practices in docs/extensions.md
This commit is contained in:
@@ -2,6 +2,12 @@
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Added
|
||||
|
||||
- Exported truncation utilities for custom tools: `truncateHead`, `truncateTail`, `truncateLine`, `formatSize`, `DEFAULT_MAX_BYTES`, `DEFAULT_MAX_LINES`, `TruncationOptions`, `TruncationResult`
|
||||
- New example `truncated-tool.ts` demonstrating proper output truncation with custom rendering for extensions
|
||||
- Documentation for output truncation best practices in `docs/extensions.md`
|
||||
|
||||
## [0.37.4] - 2026-01-06
|
||||
|
||||
### Added
|
||||
|
||||
Reference in New Issue
Block a user