mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 07:04:25 +00:00
feat(tui): add pad parameter to truncateToWidth, overlay QA tests
This commit is contained in:
parent
0c0aac6599
commit
d29f268f46
7 changed files with 641 additions and 10 deletions
|
|
@ -15,7 +15,7 @@ import type {
|
|||
ThinkingLevel,
|
||||
} from "@mariozechner/pi-agent-core";
|
||||
import type { ImageContent, Model, TextContent, ToolResultMessage } from "@mariozechner/pi-ai";
|
||||
import type { Component, EditorComponent, EditorTheme, KeyId, TUI } from "@mariozechner/pi-tui";
|
||||
import type { Component, EditorComponent, EditorTheme, KeyId, OverlayOptions, TUI } from "@mariozechner/pi-tui";
|
||||
import type { Static, TSchema } from "@sinclair/typebox";
|
||||
import type { Theme } from "../../modes/interactive/theme/theme.js";
|
||||
import type { BashResult } from "../bash-executor.js";
|
||||
|
|
@ -112,7 +112,11 @@ export interface ExtensionUIContext {
|
|||
keybindings: KeybindingsManager,
|
||||
done: (result: T) => void,
|
||||
) => (Component & { dispose?(): void }) | Promise<Component & { dispose?(): void }>,
|
||||
options?: { overlay?: boolean },
|
||||
options?: {
|
||||
overlay?: boolean;
|
||||
/** Overlay positioning/sizing options. Can be static or a function for dynamic updates. */
|
||||
overlayOptions?: OverlayOptions | (() => OverlayOptions);
|
||||
},
|
||||
): Promise<T>;
|
||||
|
||||
/** Set the text in the core input editor. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue