@wrongstack/tui 0.316.2 → 0.317.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/dist/components/help-overlay.d.ts +11 -4
- package/dist/components/history/index.d.ts +1 -1
- package/dist/components/history/stream-box.d.ts +6 -0
- package/dist/components/history/types.d.ts +5 -0
- package/dist/components/history/utils.d.ts +1 -1
- package/dist/components/history.d.ts +1 -1
- package/dist/components/scrollable-history.d.ts +1 -1
- package/dist/index.js +564 -328
- package/dist/terminal-width.d.ts +11 -3
- package/package.json +7 -7
|
@@ -18,10 +18,17 @@ export declare function helpSections(): HelpSection[];
|
|
|
18
18
|
/**
|
|
19
19
|
* Full-width modal cheat-sheet overlay (opened with `?` on an empty prompt,
|
|
20
20
|
* closed with Esc / `?` / `q`). Mirrors the bordered-panel look of the monitor
|
|
21
|
-
* overlays so it sits naturally in the bottom region.
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
21
|
+
* overlays so it sits naturally in the bottom region. Height-limited: only
|
|
22
|
+
* `useMonitorSize().contentRows` rows of the flattened sheet render at a
|
|
23
|
+
* time minus the header and scroll-indicator rows (shared `panelWindow`
|
|
24
|
+
* windowing, `↑ N more` / `↓ N more` indicators), scrolled with ↑/↓ and
|
|
25
|
+
* PgUp/PgDn via
|
|
26
|
+
* the overlay's own `useInput` — the central key router ignores those chords
|
|
27
|
+
* while the modal is open, and the scroll cursor resets when the overlay
|
|
28
|
+
* unmounts. Entries keep one row each
|
|
29
|
+
* (descriptions truncated to the measured content width) so the window height
|
|
30
|
+
* math stays exact; the Tool Colors section renders as two side-by-side
|
|
31
|
+
* sub-columns.
|
|
25
32
|
*/
|
|
26
33
|
export declare function HelpOverlay(): React.ReactElement;
|
|
27
34
|
export {};
|
|
@@ -5,7 +5,7 @@ export { Banner } from './banner.js';
|
|
|
5
5
|
export { CodeBlock, DiffBlock, DiffFileBlock, type DiffFilePreview, type DiffLineKind, type DiffLineRow, type DiffPreview, extractDiffPreview, extractMultiFileDiffs, extractReplaceDiffs, formatDiffStats, formatMultiDiffSummary, MULTI_DIFF_MAX_FILES, MULTI_DIFF_MAX_ROWS, MULTI_DIFF_SUMMARY_THRESHOLD, type MultiDiffSummary, parseUnifiedDiff, summarizeMultiFileDiffs, } from './code-block.js';
|
|
6
6
|
export { Entry } from './entry.js';
|
|
7
7
|
export type { AutonomyAgentStatus, BodySegment, HistoryEntry, HistoryProps } from './types.js';
|
|
8
|
-
export { countLines, firstNonEmpty, fmtBytes, fmtDuration, fmtTok, formatMatchHit, formatToolArgs, formatToolOutput, formatToolVisualOutput, MAX_STREAM_DISPLAY_CHARS, numOf, scanNumberedRange, shortenPath, streamBoxRows, stringOf, ToolOutputLines, ToolStreamBox, type ToolVisualLine, type ToolVisualLineKind, tailForDisplay, toolStreamBoxHeight, truncMid, tryParseJson } from './utils.js';
|
|
8
|
+
export { AssistantStreamBox, assistantStreamBoxHeight, countLines, firstNonEmpty, fmtBytes, fmtDuration, fmtTok, formatMatchHit, formatToolArgs, formatToolOutput, formatToolVisualOutput, MAX_STREAM_DISPLAY_CHARS, numOf, scanNumberedRange, shortenPath, streamBoxRows, stringOf, ToolOutputLines, ToolStreamBox, type ToolVisualLine, type ToolVisualLineKind, tailForDisplay, toolStreamBoxHeight, truncMid, tryParseJson } from './utils.js';
|
|
9
9
|
/**
|
|
10
10
|
* History component — renders committed entries via <Static> so they
|
|
11
11
|
* flow into terminal scrollback.
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare const MAX_STREAM_DISPLAY_CHARS = 480;
|
|
3
|
+
/** Fixed layout height of the live assistant-stream tail for scroll-range math. */
|
|
4
|
+
export declare function assistantStreamBoxHeight(): number;
|
|
3
5
|
/** Fixed layout height of the live tool-stream tail for scroll-range math. */
|
|
4
6
|
export declare function toolStreamBoxHeight(name: string): number;
|
|
5
7
|
/**
|
|
@@ -19,5 +21,9 @@ export declare const ToolStreamBox: React.MemoExoticComponent<({ name, text, sta
|
|
|
19
21
|
startedAt: number;
|
|
20
22
|
termWidth: number;
|
|
21
23
|
}) => React.ReactElement>;
|
|
24
|
+
export declare const AssistantStreamBox: React.MemoExoticComponent<({ text, termWidth, }: {
|
|
25
|
+
text: string;
|
|
26
|
+
termWidth: number;
|
|
27
|
+
}) => React.ReactElement>;
|
|
22
28
|
export declare function tailForDisplay(text: string, maxChars: number): string;
|
|
23
29
|
//# sourceMappingURL=stream-box.d.ts.map
|
|
@@ -33,6 +33,11 @@ export interface HistoryProps {
|
|
|
33
33
|
text: string;
|
|
34
34
|
startedAt: number;
|
|
35
35
|
} | null;
|
|
36
|
+
/**
|
|
37
|
+
* Optional live assistant streaming text. Rendered at the bottom of
|
|
38
|
+
* history during LLM generation and cleared on response completion.
|
|
39
|
+
*/
|
|
40
|
+
streamingText?: string | undefined;
|
|
36
41
|
/**
|
|
37
42
|
* Minimum number of files before the per-tool multi-file diff summary
|
|
38
43
|
* footer is rendered. `0` suppresses the footer entirely; any positive
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { countLines, firstNonEmpty, fmtBytes, fmtDuration, fmtTok, formatMatchHit, numOf, scanNumberedRange, shortenPath, stringOf, truncMid, tryParseJson } from './basic-format.js';
|
|
2
|
-
export { MAX_STREAM_DISPLAY_CHARS, streamBoxRows, ToolStreamBox, tailForDisplay, toolStreamBoxHeight, } from './stream-box.js';
|
|
2
|
+
export { AssistantStreamBox, assistantStreamBoxHeight, MAX_STREAM_DISPLAY_CHARS, streamBoxRows, ToolStreamBox, tailForDisplay, toolStreamBoxHeight, } from './stream-box.js';
|
|
3
3
|
export { ToolOutputLines } from './visual-lines.js';
|
|
4
4
|
export type { ToolVisualLine, ToolVisualLineKind } from './tool-visual-types.js';
|
|
5
5
|
import type { ToolVisualLine } from './tool-visual-types.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { AssistantBody, type AutonomyAgentStatus, assistantContentWidth, Banner, type BodySegment, CodeBlock, countLines, DiffBlock, DiffFileBlock, type DiffFilePreview, type DiffLineKind, type DiffLineRow, type DiffPreview, Entry, extractDiffPreview, extractMultiFileDiffs, extractReplaceDiffs, firstNonEmpty, fmtBytes, fmtDuration, fmtTok, formatMatchHit, formatMultiDiffSummary, formatToolArgs, formatToolOutput, formatToolVisualOutput, History, type HistoryEntry, type HistoryProps, MAX_STREAM_DISPLAY_CHARS, MESSAGE_PANEL_BORDER_WIDTH, MESSAGE_PANEL_CHROME_WIDTH, MULTI_DIFF_MAX_FILES, MULTI_DIFF_MAX_ROWS, MULTI_DIFF_SUMMARY_THRESHOLD, type MultiDiffSummary, numOf, parseUnifiedDiff, scanNumberedRange, shortenPath, splitFencedBlocks, streamBoxRows, stringOf, summarizeMultiFileDiffs, ToolOutputLines, ToolStreamBox, type ToolVisualLine, type ToolVisualLineKind, tailForDisplay, toolStreamBoxHeight, truncMid, tryParseJson } from './history/index.js';
|
|
1
|
+
export { AssistantBody, AssistantStreamBox, assistantStreamBoxHeight, type AutonomyAgentStatus, assistantContentWidth, Banner, type BodySegment, CodeBlock, countLines, DiffBlock, DiffFileBlock, type DiffFilePreview, type DiffLineKind, type DiffLineRow, type DiffPreview, Entry, extractDiffPreview, extractMultiFileDiffs, extractReplaceDiffs, firstNonEmpty, fmtBytes, fmtDuration, fmtTok, formatMatchHit, formatMultiDiffSummary, formatToolArgs, formatToolOutput, formatToolVisualOutput, History, type HistoryEntry, type HistoryProps, MAX_STREAM_DISPLAY_CHARS, MESSAGE_PANEL_BORDER_WIDTH, MESSAGE_PANEL_CHROME_WIDTH, MULTI_DIFF_MAX_FILES, MULTI_DIFF_MAX_ROWS, MULTI_DIFF_SUMMARY_THRESHOLD, type MultiDiffSummary, numOf, parseUnifiedDiff, scanNumberedRange, shortenPath, splitFencedBlocks, streamBoxRows, stringOf, summarizeMultiFileDiffs, ToolOutputLines, ToolStreamBox, type ToolVisualLine, type ToolVisualLineKind, tailForDisplay, toolStreamBoxHeight, truncMid, tryParseJson } from './history/index.js';
|
|
2
2
|
//# sourceMappingURL=history.d.ts.map
|
|
@@ -9,6 +9,6 @@ import type { ScrollableHistoryProps } from './history/scroll-controller-types.j
|
|
|
9
9
|
/**
|
|
10
10
|
* Bounded history viewport with stable-anchor virtual scrolling.
|
|
11
11
|
*/
|
|
12
|
-
export declare const ScrollableHistory: React.MemoExoticComponent<({ entries, toolStream, viewportRows, controllerRef, onScrollInfo, maxWidth, setSuggestions, autonomyMode, multiDiffSummaryThreshold, todos, showModelReasoning, showSageMemoryInject, layoutStore, copiedEntryId, onRequestOlderEntries, }: ScrollableHistoryProps) => React.ReactElement>;
|
|
12
|
+
export declare const ScrollableHistory: React.MemoExoticComponent<({ entries, toolStream, streamingText, viewportRows, controllerRef, onScrollInfo, maxWidth, setSuggestions, autonomyMode, multiDiffSummaryThreshold, todos, showModelReasoning, showSageMemoryInject, layoutStore, copiedEntryId, onRequestOlderEntries, }: ScrollableHistoryProps) => React.ReactElement>;
|
|
13
13
|
export type { HistoryEntry };
|
|
14
14
|
//# sourceMappingURL=scrollable-history.d.ts.map
|