@f5-sales-demo/pi-tui 19.51.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,702 @@
1
+ # Changelog
2
+
3
+ ## [Unreleased]
4
+
5
+ ## [14.1.1] - 2026-04-14
6
+
7
+ ### Breaking Changes
8
+
9
+ - Removed the `searchDb` constructor argument from `CombinedAutocompleteProvider`, requiring callers to use the built-in search behavior
10
+
11
+ ### Changed
12
+
13
+ - Changed truncation debug logging to run only when `debugRedraw` is enabled
14
+
15
+ ## [14.0.5] - 2026-04-11
16
+
17
+ ### Changed
18
+
19
+ - Updated hash computation to use `Bun.hash()` instead of `Bun.hash.xxHash64()`, which may return `number` in addition to `bigint`
20
+ - Simplified cache key computation in Box component by removing intermediate hash updates and consolidating hash operations
21
+ - Wrapped native text utility functions (`sliceWithWidth`, `truncateToWidth`, `wrapTextWithAnsi`, `extractSegments`) to automatically pass the current default tab width, simplifying the API for consumers
22
+ - Added `getIndentationNoescape` wrapper that uses `process.cwd()` as the project root for relative file paths
23
+ - Re-export `getDefaultTabWidth`, `getIndentation`, and `setDefaultTabWidth` from `@oh-my-pi/pi-utils`; native text helpers still receive tab width via wrappers that read the JS default
24
+
25
+ ## [13.16.1] - 2026-03-27
26
+
27
+ ### Added
28
+
29
+ - Support for optional SearchDb parameter in CombinedAutocompleteProvider constructor for improved fuzzy search performance
30
+ - Fuzzy matching filter for autocomplete suggestions to improve relevance of results
31
+
32
+ ### Changed
33
+
34
+ - Fuzzy discovery now applies fuzzy matching filter to results for improved relevance of autocomplete suggestions
35
+ - Autocomplete fuzzy discovery now accepts optional SearchDb instance for faster searches
36
+
37
+ ## [13.16.0] - 2026-03-27
38
+ ### Changed
39
+
40
+ - Updated tab replacement in editor text sanitization to respect configured tab width setting
41
+
42
+ ## [13.15.0] - 2026-03-23
43
+
44
+ ### Added
45
+
46
+ - Added `renderInlineMarkdown()` function to render inline markdown (bold, italic, code, links, strikethrough) to styled strings
47
+
48
+ ### Fixed
49
+
50
+ - Fixed editor consuming user-rebound copy keys, preventing custom keybindings from working in the editor
51
+
52
+ ## [13.14.1] - 2026-03-21
53
+ ### Added
54
+
55
+ - Added Ctrl+_ as an additional default shortcut for undo
56
+
57
+ ### Fixed
58
+
59
+ - Ensured undo functionality respects user-configured keybindings
60
+
61
+ ## [13.12.0] - 2026-03-14
62
+
63
+ ### Added
64
+
65
+ - Added `moveToMessageStart()` and `moveToMessageEnd()` methods to move cursor to the beginning and end of the entire message
66
+
67
+ ### Fixed
68
+
69
+ - Fixed autocomplete to preserve `./` prefix when completing relative file and directory paths
70
+ - Fixed paste marker expansion to handle special regex replacement tokens ($1, $2, $&, $$, $`, $') literally in pasted content
71
+
72
+ ## [13.11.0] - 2026-03-12
73
+ ### Fixed
74
+
75
+ - Fixed OSC 11 background color detection to correctly handle partial escape sequences that arrive mid-buffer, preventing user input from being swallowed
76
+ - Fixed race condition where overlapping OSC 11 queries would be incorrectly cancelled by DA1 sentinels from previous queries
77
+
78
+ ## [13.7.5] - 2026-03-04
79
+ ### Changed
80
+
81
+ - Extracted word navigation logic into reusable `moveWordLeft` and `moveWordRight` utility functions for consistent cursor movement across components
82
+
83
+ ## [13.6.2] - 2026-03-03
84
+ ### Fixed
85
+
86
+ - Fixed cursor positioning when content shrinks to empty without clearOnShrink enabled
87
+
88
+ ## [13.5.4] - 2026-03-01
89
+
90
+ ### Fixed
91
+
92
+ - Fixed viewport repaint scrollback accounting during resize oscillation to avoid double-scrolling on height shrink and added exact-row scrollback assertions in overlay regression coverage ([#228](https://github.com/can1357/oh-my-pi/issues/228), [#234](https://github.com/can1357/oh-my-pi/issues/234))
93
+ ## [13.5.3] - 2026-03-01
94
+
95
+ ### Fixed
96
+
97
+ - Fixed append rendering logic to correctly handle offscreen header changes during content overflow growth, preserving scroll history integrity
98
+ - Fixed visible tail line updates when appending new content during viewport overflow conditions
99
+ - Fixed cursor positioning instability when appending content under external cursor relocation by using absolute screen addressing instead of relative cursor movement
100
+
101
+ ## [13.5.2] - 2026-03-01
102
+ ### Breaking Changes
103
+
104
+ - Removed `getMermaidImage` callback from MarkdownTheme; replaced with `getMermaidAscii` that accepts ASCII string instead of image data
105
+ - Removed mermaid module exports (`renderMermaidToPng`, `extractMermaidBlocks`, `prerenderMermaidBlocks`, `MermaidImage` interface)
106
+
107
+ ### Changed
108
+
109
+ - Mermaid diagrams now render as ASCII text instead of terminal graphics protocol images
110
+
111
+ ## [13.5.1] - 2026-03-01
112
+ ### Fixed
113
+
114
+ - Fixed viewport shift handling to prevent stale content when mixed updates remap screen rows
115
+
116
+ ## [13.5.0] - 2026-03-01
117
+
118
+ ### Breaking Changes
119
+
120
+ - Removed `PI_TUI_RESIZE_CLEAR_STRATEGY`; resize behavior is no longer configurable between viewport/scrollback modes. The renderer now uses fixed semantics: width changes perform a hard reset (`3J` + full content rewrite), while height changes and diff fallbacks use viewport-scoped repainting.
121
+
122
+ ### Added
123
+
124
+ - Added a new terminal regression suite in `packages/tui/test/render-regressions.test.ts` covering no-op render stability, targeted middle-line diffs, shrink cleanup, width-resize truncation without ghost rows, shrink/grow viewport tail anchoring, scrollback deduplication across forced redraws, overlay restore behavior, and rapid mutation convergence.
125
+ - Expanded `packages/tui/test/overlay-scroll.test.ts` with stress coverage for overflow shrink/regrow cycles, resize oscillation, overlay toggle churn, no-op render loops, and hardware-cursor-only updates while bounding scrollback growth and blank-run artifacts.
126
+
127
+ ### Changed
128
+
129
+ - Refactored render orchestration to explicit `hardReset` and `viewportRepaint` paths, with targeted fallbacks for offscreen diff ranges and unsafe row deltas.
130
+ - Switched startup to `requestRender(true)` so the first frame always initializes renderer state with a forced full path.
131
+ - Replaced legacy viewport bookkeeping (`previousViewportTop`) with `viewportTopRow` tracking and consistent screen-relative cursor calculations.
132
+ - Updated stop-sequence cursor placement to target the visible working area and clamp to terminal bounds before final newline emission.
133
+ - Documented the intentional performance policy of not forcing full repaint on every viewport-top shift, relying on narrower safety guards instead.
134
+
135
+ ### Fixed
136
+
137
+ - Fixed stale/duplicated terminal cursor dedup state by synchronizing `#lastCursorSequence` in all render write paths (hard reset, viewport repaint, deleted-lines clear path, append fast path, and differential path).
138
+ - Fixed scroll overshoot on `stop()` when content fills the viewport by clamping target row movement to valid screen rows.
139
+ ## [13.4.0] - 2026-03-01
140
+
141
+ ### Added
142
+
143
+ - Added `PI_TUI_RESIZE_CLEAR_STRATEGY` environment variable to control terminal behavior on resize: `viewport` (default) clears/redraws the viewport while preserving scrollback, or `scrollback` clears all history
144
+
145
+ ### Changed
146
+
147
+ - Changed resize redraw behavior to use configurable clear semantics (`viewport` vs `scrollback`) while keeping full content rendering for scrollback navigation
148
+
149
+ ### Fixed
150
+
151
+ - Fixed loader component rendering lines wider than terminal width, preventing text overflow and display artifacts
152
+
153
+ ## [13.3.11] - 2026-02-28
154
+
155
+ ### Fixed
156
+
157
+ - Restored terminal image protocol override and fallback detection for image rendering, including `PI_FORCE_IMAGE_PROTOCOL` support and Kitty fallback for screen/tmux/ghostty-style TERM environments.
158
+
159
+ ## [13.3.8] - 2026-02-28
160
+ ### Breaking Changes
161
+
162
+ - Changed mermaid hash type from string to bigint in `getMermaidImage` callback and `extractMermaidBlocks` return type
163
+ - Removed `mime-types` and `@types/mime-types` from dependencies
164
+ - Removed `@xterm/xterm` from dependencies
165
+
166
+ ### Changed
167
+
168
+ - Updated mermaid hash computation to use `Bun.hash.xxHash64()` instead of `Bun.hash().toString(16)`
169
+
170
+ ## [12.19.0] - 2026-02-22
171
+
172
+ ### Added
173
+
174
+ - Added `getTopBorderAvailableWidth()` method to calculate available width for top border content accounting for border characters and padding
175
+
176
+ ### Fixed
177
+
178
+ - Fixed stale viewport rows appearing when terminal height increases by triggering full re-render on height changes
179
+
180
+ ## [12.18.0] - 2026-02-21
181
+ ### Fixed
182
+
183
+ - Fixed viewport synchronization issue by clearing scrollback when terminal state becomes desynced during full re-renders
184
+
185
+ ## [12.12.2] - 2026-02-19
186
+
187
+ ### Fixed
188
+
189
+ - Fixed non-forced full re-renders clearing terminal scrollback history during streaming updates by limiting scrollback clears to explicit forced re-renders.
190
+
191
+ ## [12.12.0] - 2026-02-19
192
+
193
+ ### Added
194
+
195
+ - Added PageUp/PageDown navigation for editor content and autocomplete selection to jump across long wrapped inputs faster.
196
+
197
+ ### Fixed
198
+
199
+ - Fixed history-entry navigation anchoring (Up opens at top, Down opens at bottom) and preserved editor scroll context when max-height changes to keep cursor movement visible in long prompts ([#99](https://github.com/can1357/oh-my-pi/issues/99)).
200
+
201
+ ## [12.11.3] - 2026-02-19
202
+
203
+ ### Fixed
204
+
205
+ - Fixed differential deleted-line rendering when content shrinks to empty so stale first-row content is cleared reliably.
206
+ - Fixed incremental stale-row clearing to use erase-below semantics in synchronized output, reducing leftover-line artifacts after shrink operations.
207
+
208
+ ## [12.9.0] - 2026-02-17
209
+ ### Added
210
+
211
+ - Exported `getTerminalId()` function to get a stable identifier for the current terminal, with support for TTY device paths and terminal multiplexers
212
+ - Exported `getTtyPath()` function to resolve the TTY device path for stdin via POSIX `ttyname(3)`
213
+
214
+ ## [12.5.0] - 2026-02-15
215
+ ### Added
216
+
217
+ - Added `cursorOverride` and `cursorOverrideWidth` properties to customize the end-of-text cursor glyph with ANSI-styled strings
218
+ - Added `getUseTerminalCursor()` method to query the terminal cursor mode setting
219
+
220
+ ## [11.10.0] - 2026-02-10
221
+ ### Added
222
+
223
+ - Added `hint` property to autocomplete items to display dim ghost text after cursor when item is selected
224
+ - Added `getInlineHint()` method to `SlashCommand` interface for providing inline hint text based on argument state
225
+ - Added `getInlineHint()` method to `AutocompleteProvider` interface for displaying dim ghost text after cursor
226
+ - Added `hintStyle` theme option to customize styling of inline hint/ghost text in editor
227
+
228
+ ### Changed
229
+
230
+ - Updated editor to render inline hint text as dim ghost text after cursor when autocomplete suggestions are active or provider supplies hints
231
+
232
+ ## [11.8.0] - 2026-02-10
233
+ ### Added
234
+
235
+ - Added Alt+Y keybinding to cycle through kill ring entries (yank-pop)
236
+ - Added undo support to Input component with Ctrl+Z keybinding
237
+ - Added kill ring support to Input component for Emacs-style kill/yank operations
238
+ - Added yank (Ctrl+Y) and yank-pop (Alt+Y) support to Input component
239
+
240
+ ### Changed
241
+
242
+ - Changed Editor kill ring implementation to use dedicated KillRing class for better state management
243
+ - Changed Editor undo stack to use generic UndoStack class with automatic state cloning
244
+ - Changed kill/yank behavior to properly accumulate consecutive kill operations
245
+ - Changed Input component deletion methods to record killed text in kill ring
246
+ - Changed undo coalescing in Input component to group consecutive word typing into single undo units
247
+
248
+ ## [11.4.1] - 2026-02-06
249
+ ### Fixed
250
+
251
+ - Fixed terminal scrolling when displaying overlays after rendering large content, preventing hundreds of blank lines from being output
252
+
253
+ ## [11.3.0] - 2026-02-06
254
+
255
+ ### Breaking Changes
256
+
257
+ - Removed `getCursorPosition()` method from Component interface and implementations, eliminating hardware cursor positioning support
258
+
259
+ ### Added
260
+
261
+ - Added sticky column behavior for vertical cursor movement, preserving target column when navigating through lines of varying lengths
262
+ - Added `drainInput()` method to Terminal interface to prevent Kitty key release events from leaking to parent shell over slow SSH connections
263
+ - Added `setClearOnShrink()` method to control whether full re-render occurs when content shrinks below working area
264
+ - Added support for hidden paths (e.g., `.pi`, `.github`) in autocomplete while excluding `.git` directories
265
+
266
+ ### Changed
267
+
268
+ - Changed default value of `PI_HARDWARE_CURSOR` environment variable from implicit true to explicit `"1"` for clarity
269
+ - Changed default value of `PI_CLEAR_ON_SHRINK` environment variable from implicit false to explicit `"0"` for clarity
270
+ - Changed TUI to clear screen on startup to prevent shell prompts and status messages from bleeding into the first rendered frame
271
+ - Refactored full-render logic into reusable helper function to reduce code duplication across multiple render paths
272
+ - Changed autocomplete to include hidden paths but filter out `.git` and its contents
273
+ - Changed Input component to properly handle surrogate pairs in Unicode text, preventing cursor display corruption with emoji and multi-byte characters
274
+ - Changed Editor to use `setCursorCol()` for all cursor column updates, enabling sticky column tracking
275
+ - Changed Editor's vertical navigation to implement sticky column logic via `moveToVisualLine()` and `computeVerticalMoveColumn()`
276
+ - Changed Editor's Enter key handling to extract submit logic into `submitValue()` method for better code organization
277
+ - Changed SettingsList to truncate long lines to viewport width, preventing text overflow
278
+ - Changed Terminal's `stop()` method to drain stdin before restoring raw mode, fixing race condition where Ctrl+D could close parent shell over SSH
279
+ - Changed TUI rendering to add `clearOnShrink` option (controlled by `PI_CLEAR_ON_SHRINK` env var) for reducing redraws on slower terminals
280
+ - Changed TUI rendering to detect when extra lines exceed viewport height and trigger full re-render instead of incremental updates
281
+
282
+ ### Fixed
283
+
284
+ - Fixed rendering of extra blank lines when content shrinks by improving cursor positioning logic during line deletion
285
+ - Fixed cursor display position in Input component when scrolling horizontally through long text
286
+ - Fixed Kitty keyboard protocol disable sequence to use safe write method, preventing potential output buffering issues
287
+ - Fixed unnecessary full-screen redraws when changes occur in out-of-view components (e.g., spinners), reducing terminal scroll events and improving performance on slower connections
288
+ - Fixed scrollback clearing behavior to only clear screen instead of scrollback when resizing or shrinking content, preventing loss of terminal history
289
+ - Fixed `.git` directory appearing in autocomplete suggestions when filtering by prefix
290
+ - Fixed cursor position corruption in Input component when displaying text with emoji and combining characters
291
+ - Fixed `.git` directory appearing in autocomplete suggestions
292
+ - Fixed race condition where Kitty key release events could leak to parent shell after TUI exit over slow SSH connections
293
+ - Fixed Editor's word movement (Ctrl+Left/Right) to properly reset sticky column for subsequent vertical navigation
294
+ - Fixed Editor's undo operation to reset sticky column state when restoring cursor position
295
+ - Fixed Editor's right arrow key at end of last line to set sticky column for subsequent up/down navigation
296
+ - Fixed TUI rendering to correctly detect viewport changes and avoid false full-redraws after content shrinks
297
+ - Fixed Kitty protocol key parsing to prefer codepoint over base layout for Latin letters and symbols, fixing keyboard layout issues (e.g., Dvorak)
298
+
299
+ ## [11.0.0] - 2026-02-05
300
+
301
+ ### Added
302
+
303
+ - Introduced `terminal-capabilities.ts` module consolidating terminal detection and image protocol support
304
+ - Added `TerminalInfo` class with methods for detecting image lines and formatting notifications
305
+ - Added `NotifyProtocol` enum supporting Bell, OSC 99, and OSC 9 notification protocols
306
+ - Added `isNotificationSuppressed()` function to check `OMP_NOTIFICATIONS` environment variable
307
+ - Added `TERMINAL` constant providing detected terminal capabilities at runtime
308
+
309
+ ### Changed
310
+
311
+ - Changed notification suppression environment variable from `OMP_NOTIFICATIONS` to `PI_NOTIFICATIONS`
312
+ - Changed TUI write log environment variable from `OMP_TUI_WRITE_LOG` to `PI_TUI_WRITE_LOG`
313
+ - Changed hardware cursor environment variable from `OMP_HARDWARE_CURSOR` to `PI_HARDWARE_CURSOR`
314
+ - Updated environment variable access to use `getEnv()` utility function from `@oh-my-pi/pi-utils` for consistent handling
315
+ - Renamed `TERMINAL_INFO` export to `TERMINAL` for clearer API semantics
316
+ - Reorganized terminal image exports from `terminal-image` to `terminal-capabilities` module
317
+ - Updated all internal references to use `TERMINAL` instead of `TERMINAL_INFO`
318
+
319
+ ### Removed
320
+
321
+ - Removed `terminal-image` module exports from public API (functionality migrated to `terminal-capabilities`)
322
+
323
+ ## [10.5.0] - 2026-02-04
324
+
325
+ ### Fixed
326
+
327
+ - Treated inline image lines with cursor-move prefixes as image sequences to prevent width overflow crashes
328
+
329
+ ## [9.8.0] - 2026-02-01
330
+
331
+ ### Changed
332
+
333
+ - Moved `wrapTextWithAnsi` export to `@oh-my-pi/pi-natives` package
334
+
335
+ ### Fixed
336
+
337
+ - Improved Kitty terminal key sequence parsing to correctly handle text field codepoints in CSI-u sequences
338
+ - Fixed handling of private use Unicode codepoints (U+E000 to U+F8FF) in Kitty key decoding to prevent invalid character interpretation
339
+
340
+ ## [9.7.0] - 2026-02-01
341
+ ### Breaking Changes
342
+
343
+ - Removed `Key` helper object from public API; use string literals like `"ctrl+c"` instead of `Key.ctrl("c")`
344
+ - Removed `KeyEventType` export from public API
345
+
346
+ ### Changed
347
+
348
+ - Migrated key parsing and matching logic to native implementation for improved performance
349
+ - Simplified `isKeyRelease()` and `isKeyRepeat()` to use regex pattern matching instead of string inclusion checks
350
+
351
+ ## [9.6.2] - 2026-02-01
352
+ ### Changed
353
+
354
+ - Renamed `EllipsisKind` enum to `Ellipsis` for clearer API naming
355
+ - Changed hardcoded ellipsis character from theme-configurable to literal "…" in editor truncation
356
+ - Refactored `visibleWidth` function to use caching wrapper around new `visibleWidthRaw` implementation for improved performance
357
+
358
+ ### Removed
359
+
360
+ - Removed `truncateToWidth`, `sliceWithWidth`, and `extractSegments` functions from public API (now re-exported directly from @oh-my-pi/pi-natives)
361
+ - Removed `ellipsis` property from `SymbolTheme` interface
362
+ - Removed `extractAnsiCode` function from public API
363
+
364
+ ## [9.6.1] - 2026-02-01
365
+ ### Changed
366
+
367
+ - Improved performance of key ID parsing with optimized cache lookup strategy
368
+ - Simplified `visibleWidth` calculation to use consistent Bun.stringWidth approach for all string lengths
369
+
370
+ ### Removed
371
+
372
+ - Removed `visibleWidth` benchmark file in favor of Kitty sequence benchmarking
373
+
374
+ ## [9.5.0] - 2026-02-01
375
+ ### Changed
376
+
377
+ - Improved fuzzy file search performance by using native implementation instead of spawning external process
378
+ - Replaced external `fd` binary with native fuzzy path search for `@`-prefixed autocomplete
379
+
380
+ ## [9.4.0] - 2026-01-31
381
+ ### Added
382
+
383
+ - Exported `padding` utility function for creating space-padded strings efficiently
384
+
385
+ ### Changed
386
+
387
+ - Optimized padding operations across all components to use pre-allocated space buffer for better performance
388
+
389
+ ## [9.2.2] - 2026-01-31
390
+
391
+ ### Added
392
+ - Added setAutocompleteMaxVisible() configuration (3-20 items)
393
+ - Added image detection to terminal capabilities (containsImage method)
394
+ - Added stdin monitoring to detect stalled input events and log warnings
395
+
396
+ ### Changed
397
+ - Improved blockquote rendering with text wrapping in Markdown component
398
+ - Restructured terminal capabilities from interface-based to class-based model
399
+ - Improved table column width calculation with word-aware wrapping
400
+ - Refactored text utilities to use native WASM implementations for strings >256 chars with JS fast path
401
+
402
+ ### Fixed
403
+ - Simplified terminal write error handling to mark terminal as dead on any write failure
404
+ - Fixed multi-line strings in renderOutputBlock causing width overflow
405
+ - Fixed slash command autocomplete applying stale completion when typing quickly
406
+
407
+ ### Removed
408
+ - Removed TUI layout engine exports from public API (BoxNode, ColumnNode, LayoutNode, etc.)
409
+
410
+ ## [8.12.7] - 2026-01-29
411
+
412
+ ### Fixed
413
+ - Fixed slash command autocomplete applying stale completion when typing quickly
414
+
415
+ ## [8.4.1] - 2026-01-25
416
+
417
+ ### Added
418
+ - Added fuzzy match function for autocomplete suggestions
419
+ ## [8.4.0] - 2026-01-25
420
+
421
+ ### Changed
422
+ - Added Ctrl+Backspace as a delete-word-backward keybinding and improved modified backspace matching
423
+
424
+ ### Fixed
425
+ - Terminal gracefully handles write failures by marking dead instead of exiting the process
426
+ - Reserved cursor space for zero padding and corrected end-of-line cursor rendering to prevent wrap glitches
427
+ - Corrected editor end-of-line cursor rendering assertion to use includes() instead of endsWith()
428
+ ## [8.2.0] - 2026-01-24
429
+
430
+ ### Added
431
+ - Added mermaid diagram rendering engine (renderMermaidToPng) with mmdc CLI integration
432
+ - Added terminal graphics encoding (iTerm2/Kitty) for mermaid diagrams with automatic width scaling
433
+ - Added mermaid block extraction and deduplication utilities (extractMermaidBlocks)
434
+
435
+ ### Changed
436
+ - Updated TypeScript configuration for better publish-time configuration handling with tsconfig.publish.json
437
+ - Migrated file system operations from synchronous to asynchronous APIs in autocomplete provider for non-blocking I/O
438
+ - Migrated node module imports from named to namespace imports across all packages for consistency with project guidelines
439
+
440
+ ### Fixed
441
+ - Fixed crash when terminal becomes unavailable (EIO errors) by exiting gracefully instead of throwing
442
+ - Fixed potential errors during emergency terminal restore when terminal is already dead
443
+ - Fixed autocomplete race condition by tracking request ID to prevent stale suggestion results
444
+ ## [6.8.3] - 2026-01-21
445
+ ### Added
446
+
447
+ - Added undo support in the editor via `Ctrl+-`
448
+ - Added `Alt+Delete` as a delete-word-forward shortcut
449
+ - Added configurable code block indentation for Markdown rendering
450
+ - Added undo support in the editor via `Ctrl+-`.
451
+ - Added configurable code block indentation for Markdown rendering.
452
+ - Added `Alt+Delete` as a delete-word-forward shortcut.
453
+
454
+ ### Changed
455
+
456
+ - Improved fuzzy matching to handle alphanumeric swaps
457
+ - Normalized keybinding definitions to lowercase internally
458
+ - Improved fuzzy matching to handle alphanumeric swaps.
459
+ - Normalized keybinding definitions to lowercase internally.
460
+
461
+ ### Fixed
462
+
463
+ - Added legacy terminal support for `Ctrl+` symbol key combinations
464
+ - Added legacy terminal support for `Ctrl+` symbol key combinations.
465
+
466
+ ## [6.8.1] - 2026-01-20
467
+
468
+ ### Fixed
469
+
470
+ - Fixed viewport tracking after partial renders to prevent autocomplete list artifacts
471
+
472
+ ## [5.6.7] - 2026-01-18
473
+
474
+ ### Added
475
+
476
+ - Added configurable editor padding via `editorPaddingX` theme option
477
+ - Added `setMaxHeight()` method to limit editor height with scrolling
478
+ - Added Emacs-style kill ring for text deletion operations
479
+ - Added `Alt+D` keybinding to delete words forward
480
+ - Added `Ctrl+Y` keybinding to yank from kill ring
481
+ - Added `waitForRender()` method to await pending renders
482
+ - Added Focusable interface and hardware cursor marker support for IME positioning
483
+ - Added support for shifted symbol keys in keybindings
484
+
485
+ ### Changed
486
+
487
+ - Updated tab bar rendering to wrap text across multiple lines when content exceeds available width
488
+ - Expanded Kitty keyboard protocol coverage for non-Latin layouts and legacy Alt sequences
489
+ - Improved cursor positioning with safer bounds checking
490
+ - Updated editor layout to respect configurable padding
491
+ - Refactored scrolling logic for better viewport management
492
+
493
+ ### Fixed
494
+
495
+ - Fixed key detection for shifted symbol characters
496
+ - Fixed backspace handling with additional codepoint support
497
+ - Fixed Alt+letter key combinations for better recognition
498
+
499
+ ## [5.3.1] - 2026-01-15
500
+ ### Fixed
501
+
502
+ - Fixed rendering issues on Windows by preventing re-entrant renders
503
+
504
+ ## [5.1.0] - 2026-01-14
505
+
506
+ ### Added
507
+
508
+ - Added `pageUp` and `pageDown` key support with `selectPageUp`/`selectPageDown` editor actions
509
+ - Added `isPageUp()` and `isPageDown()` helper functions
510
+ - Added `SizeValue` type for CSS-like overlay sizing (absolute or percentage strings like `"50%"`)
511
+ - Added `OverlayHandle` interface with `hide()`, `setHidden()`, `isHidden()` methods for overlay visibility control
512
+ - Added `visible` callback to `OverlayOptions` for dynamic visibility based on terminal dimensions
513
+ - Added `pad` parameter to `truncateToWidth()` for padding result with spaces to exact width
514
+
515
+ ### Changed
516
+
517
+ - Changed `OverlayOptions` to use `SizeValue` type for `width`, `maxHeight`, `row`, and `col` properties
518
+ - Changed `showOverlay()` to return `OverlayHandle` for controlling overlay visibility
519
+ - Removed `widthPercent`, `maxHeightPercent`, `rowPercent`, `colPercent` from `OverlayOptions` (use percentage strings instead)
520
+
521
+ ### Fixed
522
+
523
+ - Fixed numbered list items showing "1." for all items when code blocks break list continuity
524
+ - Fixed width overflow protection in overlay compositing to prevent TUI crashes
525
+
526
+ ## [4.7.0] - 2026-01-12
527
+
528
+ ### Fixed
529
+ - Remove trailing space padding from Text, Markdown, and TruncatedText components when no background color is set (fixes copied text including unwanted whitespace)
530
+
531
+ ## [4.6.0] - 2026-01-12
532
+
533
+ ### Added
534
+ - Add fuzzy matching module (`fuzzyMatch`, `fuzzyFilter`) for command autocomplete
535
+ - Add `getExpandedText()` to editor for expanding paste markers
536
+ - Add backslash+enter newline fallback for terminals without Kitty protocol
537
+
538
+ ### Fixed
539
+ - Remove Kitty protocol query timeout that caused shift+enter delays
540
+ - Add bracketed paste check to prevent false key release/repeat detection
541
+ - Rendering optimizations: only re-render changed lines
542
+ - Refactor input component to use keybindings manager
543
+
544
+ ## [4.4.4] - 2026-01-11
545
+ ### Fixed
546
+
547
+ - Fixed Ctrl+Enter sequences to insert new lines in the editor
548
+
549
+ ## [4.2.1] - 2026-01-11
550
+ ### Changed
551
+
552
+ - Improved file autocomplete to show directory listing when typing `@` with no query, and fall back to prefix matching when fuzzy search returns no results
553
+
554
+ ### Fixed
555
+
556
+ - Fixed editor redraw glitch when canceling autocomplete suggestions
557
+ - Fixed `fd` tool detection to automatically find `fd` or `fdfind` in PATH when not explicitly configured
558
+
559
+ ## [4.1.0] - 2026-01-10
560
+ ### Added
561
+
562
+ - Added persistent prompt history storage support via `setHistoryStorage()` method, allowing history to be saved and restored across sessions
563
+
564
+ ## [4.0.0] - 2026-01-10
565
+ ### Added
566
+
567
+ - `EditorComponent` interface for custom editor implementations
568
+ - `StdinBuffer` class to split batched stdin into individual sequences
569
+ - Overlay compositing via `TUI.showOverlay()` and `TUI.hideOverlay()` for `ctx.ui.custom()` with `{ overlay: true }`
570
+ - Kitty keyboard protocol flag 2 support for key release events (`isKeyRelease()`, `isKeyRepeat()`, `KeyEventType`)
571
+ - `setKittyProtocolActive()`, `isKittyProtocolActive()` for Kitty protocol state management
572
+ - `kittyProtocolActive` property on Terminal interface to query Kitty protocol state
573
+ - `Component.wantsKeyRelease` property to opt-in to key release events (default false)
574
+ - Input component `onEscape` callback for handling escape key presses
575
+
576
+ ### Changed
577
+
578
+ - Terminal startup now queries Kitty protocol support before enabling event reporting
579
+ - Default editor `newLine` binding now uses `shift+enter` only
580
+
581
+ ### Fixed
582
+
583
+ - Key presses no longer dropped when batched with other events over SSH
584
+ - TUI now filters out key release events by default, preventing double-processing of keys
585
+ - `matchesKey()` now correctly matches Kitty protocol sequences for unmodified letter keys
586
+ - Crash when pasting text with trailing whitespace exceeding terminal width through Markdown rendering
587
+
588
+ ## [3.32.0] - 2026-01-08
589
+
590
+ ### Fixed
591
+
592
+ - Fixed text wrapping allowing long whitespace tokens to exceed line width
593
+
594
+ ## [3.20.0] - 2026-01-06
595
+ ### Added
596
+
597
+ - Added `isCapsLock` helper function for detecting Caps Lock key press via Kitty protocol
598
+ - Added `isCtrlY` helper function for detecting Ctrl+Y keyboard input
599
+ - Added configurable editor keybindings with typed key identifiers and action matching
600
+ - Added word-wrapped editor rendering for long lines
601
+
602
+ ### Changed
603
+
604
+ - Settings list descriptions now wrap to the available width instead of truncating
605
+
606
+ ### Fixed
607
+
608
+ - Fixed Shift+Enter detection in legacy terminals that send ESC+CR sequence
609
+
610
+ ## [3.15.1] - 2026-01-05
611
+
612
+ ### Fixed
613
+
614
+ - Fixed editor cursor blinking by allowing terminal cursor positioning when enabled.
615
+
616
+ ## [3.15.0] - 2026-01-05
617
+
618
+ ### Added
619
+
620
+ - Added `inputCursor` symbol for customizing the text input cursor character
621
+ - Added `symbols` property to `EditorTheme`, `MarkdownTheme`, and `SelectListTheme` interfaces for component-level symbol customization
622
+ - Added `SymbolTheme` interface for customizing UI symbols including cursors, borders, spinners, and box-drawing characters
623
+ - Added support for custom spinner frames in the Loader component
624
+
625
+ ## [3.9.1337] - 2026-01-04
626
+ ### Added
627
+
628
+ - Added `setTopBorder()` method to Editor component for displaying custom status content in the top border
629
+ - Added `getWidth()` method to TUI class for retrieving terminal width
630
+ - Added rounded corner box-drawing characters to Editor component borders
631
+
632
+ ### Changed
633
+
634
+ - Changed Editor component to use proper box borders with vertical side borders instead of horizontal-only borders
635
+ - Changed cursor style from block to thin blinking bar (▏) at end of line
636
+
637
+ ## [1.500.0] - 2026-01-03
638
+ ### Added
639
+
640
+ - Added `getText()` method to Text component for retrieving current text content
641
+
642
+ ## [1.337.1] - 2026-01-02
643
+
644
+ ### Added
645
+
646
+ - TabBar component for horizontal tab navigation
647
+ - Emergency terminal restore to prevent corrupted state on crashes
648
+ - Overhauled UI with welcome screen and powerline footer
649
+ - Theme-configurable HTML export colors
650
+ - `ctx.ui.theme` getter for styling status text with theme colors
651
+
652
+ ### Changed
653
+
654
+ - Forked to @oh-my-pi scope with unified versioning across all packages
655
+
656
+ ### Fixed
657
+
658
+ - Strip OSC 8 hyperlink sequences in `visibleWidth()`
659
+ - Crash on Unicode format characters in `visibleWidth()`
660
+ - Markdown code block syntax highlighting
661
+
662
+ ## [1.337.0] - 2026-01-02
663
+
664
+ Initial release under @oh-my-pi scope. See previous releases at [badlogic/pi-mono](https://github.com/badlogic/pi-mono).
665
+
666
+ ## [0.31.1] - 2026-01-02
667
+
668
+ ### Fixed
669
+
670
+ - `visibleWidth()` now strips OSC 8 hyperlink sequences, fixing text wrapping for clickable links ([#396](https://github.com/badlogic/pi-mono/pull/396) by [@Cursivez](https://github.com/Cursivez))
671
+
672
+ ## [0.31.0] - 2026-01-02
673
+
674
+ ### Added
675
+
676
+ - `isShiftCtrlO()` key detection function for Shift+Ctrl+O (Kitty protocol)
677
+ - `isShiftCtrlD()` key detection function for Shift+Ctrl+D (Kitty protocol)
678
+ - `TUI.onDebug` callback for global debug key handling (Shift+Ctrl+D)
679
+ - `wrapTextWithAnsi()` utility now exported (wraps text to width, preserving ANSI codes)
680
+
681
+ ### Changed
682
+
683
+ - README.md completely rewritten with accurate component documentation, theme interfaces, and examples
684
+ - `visibleWidth()` reimplemented with grapheme-based width calculation, 10x faster on Bun and ~15% faster on Node ([#369](https://github.com/badlogic/pi-mono/pull/369) by [@nathyong](https://github.com/nathyong))
685
+
686
+ ### Fixed
687
+
688
+ - Markdown component now renders HTML tags as plain text instead of silently dropping them ([#359](https://github.com/badlogic/pi-mono/issues/359))
689
+ - Crash in `visibleWidth()` and grapheme iteration when encountering undefined code points ([#372](https://github.com/badlogic/pi-mono/pull/372) by [@HACKE-RC](https://github.com/HACKE-RC))
690
+ - ZWJ emoji sequences (rainbow flag, family, etc.) now render with correct width instead of being split into multiple characters ([#369](https://github.com/badlogic/pi-mono/pull/369) by [@nathyong](https://github.com/nathyong))
691
+
692
+ ## [0.29.0] - 2025-12-25
693
+
694
+ ### Added
695
+
696
+ - **Auto-space before pasted file paths**: When pasting a file path (starting with `/`, `~`, or `.`) and the cursor is after a word character, a space is automatically prepended for better readability. Useful when dragging screenshots from macOS. ([#307](https://github.com/badlogic/pi-mono/pull/307) by [@mitsuhiko](https://github.com/mitsuhiko))
697
+ - **Word navigation for Input component**: Added Ctrl+Left/Right and Alt+Left/Right support for word-by-word cursor movement. ([#306](https://github.com/badlogic/pi-mono/pull/306) by [@kim0](https://github.com/kim0))
698
+ - **Full Unicode input**: Input component now accepts Unicode characters beyond ASCII. ([#306](https://github.com/badlogic/pi-mono/pull/306) by [@kim0](https://github.com/kim0))
699
+
700
+ ### Fixed
701
+
702
+ - **Readline-style Ctrl+W**: Now skips trailing whitespace before deleting the preceding word, matching standard readline behavior. ([#306](https://github.com/badlogic/pi-mono/pull/306) by [@kim0](https://github.com/kim0))