co-mono/packages
Nick Seelert dde5f25170 feat(tui): implement word wrapping in Editor component
Previously, the Editor component used character-level (grapheme-level)
wrapping, which broke words mid-character at line boundaries. This
created an ugly visual experience when typing or pasting long text.

Now the Editor uses word-aware wrapping:
- Wraps at word boundaries when possible
- Falls back to character-level wrapping for tokens wider than the
  available width (e.g., long URLs)
- Strips leading whitespace at line starts
- Preserves multiple spaces within lines

Added wordWrapLine() helper function that tokenizes text into words
and whitespace runs, then builds chunks that fit within the specified
width while respecting word boundaries.

Also updated buildVisualLineMap() to use the same word wrapping logic
for consistent cursor navigation.

Added tests for:
- Word boundary wrapping
- Leading whitespace stripping
- Long token (URL) character-level fallback
- Multiple space preservation
- Edge cases (empty string, exact fit)
2025-12-30 23:05:35 -05:00
..
agent Fix README: tools are AgentTool, not extending Tool 2025-12-30 23:46:41 +01:00
ai Update ai package CHANGELOG.md for v0.30.2+ changes 2025-12-30 23:09:13 +01:00
coding-agent Add custom tool dispose removal to CHANGELOG 2025-12-31 02:56:04 +01:00
mom Update mom CHANGELOG.md for unreleased changes since v0.30.2 2025-12-31 00:07:49 +01:00
pods Fix pods CLI: remove reference to non-existent stopAllModels 2025-12-30 22:42:25 +01:00
tui feat(tui): implement word wrapping in Editor component 2025-12-30 23:05:35 -05:00
web-ui Minor README update 2025-12-31 00:03:50 +01:00