mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 20:03:05 +00:00
Fixed rendering artifact where duplicate bottom borders appeared when components dynamically shifted positions (e.g., Ctrl+C in agent clearing status container). Root cause: Container wasn't reporting as "changed" when cleared (0 children), causing differential renderer to skip re-rendering that area. Solution: Container now tracks previousChildCount and reports changed when child count changes, ensuring proper re-rendering when containers are cleared. - Added comprehensive test reproducing the layout shift artifact - Fixed Container to track and report child count changes - All tests pass including new layout shift artifact test
31 lines
1,017 B
TypeScript
31 lines
1,017 B
TypeScript
// Core TUI interfaces and classes
|
|
|
|
// Autocomplete support
|
|
export {
|
|
type AutocompleteItem,
|
|
type AutocompleteProvider,
|
|
CombinedAutocompleteProvider,
|
|
type SlashCommand,
|
|
} from "./autocomplete.js";
|
|
// Loading animation component
|
|
export { LoadingAnimation } from "./components/loading-animation.js";
|
|
// Markdown component
|
|
export { MarkdownComponent } from "./components/markdown-component.js";
|
|
// Select list component
|
|
export { type SelectItem, SelectList } from "./components/select-list.js";
|
|
// Text component
|
|
export { TextComponent } from "./components/text-component.js";
|
|
// Text editor component
|
|
export { TextEditor, type TextEditorConfig } from "./components/text-editor.js";
|
|
// Whitespace component
|
|
export { WhitespaceComponent } from "./components/whitespace-component.js";
|
|
// Terminal interface and implementations
|
|
export { ProcessTerminal, type Terminal } from "./terminal.js";
|
|
export {
|
|
type Component,
|
|
type ComponentRenderResult,
|
|
Container,
|
|
getNextComponentId,
|
|
type Padding,
|
|
TUI,
|
|
} from "./tui.js";
|