@visual-z/xeno 0.1.0

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.
Files changed (180) hide show
  1. package/README.md +498 -0
  2. package/docs/install.md +130 -0
  3. package/package.json +43 -0
  4. package/src/apps/approve.ts +49 -0
  5. package/src/apps/cli.ts +37 -0
  6. package/src/apps/commands.ts +226 -0
  7. package/src/apps/completions.ts +28 -0
  8. package/src/apps/input.ts +297 -0
  9. package/src/apps/render.ts +207 -0
  10. package/src/apps/shell.ts +2353 -0
  11. package/src/apps/startup.ts +1302 -0
  12. package/src/core/benchmark.ts +195 -0
  13. package/src/core/boundary.ts +174 -0
  14. package/src/core/churn.ts +59 -0
  15. package/src/core/completion-review.ts +66 -0
  16. package/src/core/context-policy.ts +60 -0
  17. package/src/core/context-window.ts +54 -0
  18. package/src/core/continuation.ts +114 -0
  19. package/src/core/cycle.ts +17 -0
  20. package/src/core/data-query.ts +201 -0
  21. package/src/core/deadline.ts +39 -0
  22. package/src/core/derive.ts +489 -0
  23. package/src/core/edit-plan.ts +200 -0
  24. package/src/core/environment.ts +29 -0
  25. package/src/core/event-validation.ts +99 -0
  26. package/src/core/events.ts +486 -0
  27. package/src/core/evidence-links.ts +71 -0
  28. package/src/core/evidence.ts +89 -0
  29. package/src/core/execution.ts +12 -0
  30. package/src/core/exhaustive.ts +18 -0
  31. package/src/core/experiment.ts +40 -0
  32. package/src/core/export.ts +169 -0
  33. package/src/core/file-references.ts +35 -0
  34. package/src/core/frontmatter.ts +213 -0
  35. package/src/core/handoff.ts +397 -0
  36. package/src/core/harness-comparison.ts +90 -0
  37. package/src/core/history-query.ts +103 -0
  38. package/src/core/history.ts +100 -0
  39. package/src/core/json-event.ts +135 -0
  40. package/src/core/json-pointer.ts +46 -0
  41. package/src/core/keymap.ts +241 -0
  42. package/src/core/observation-view.ts +87 -0
  43. package/src/core/outcome.ts +45 -0
  44. package/src/core/overflow.ts +59 -0
  45. package/src/core/permissions.ts +182 -0
  46. package/src/core/policy-evaluation.ts +55 -0
  47. package/src/core/progress.ts +101 -0
  48. package/src/core/project.ts +372 -0
  49. package/src/core/prompts.ts +83 -0
  50. package/src/core/queue.ts +60 -0
  51. package/src/core/read-bounds.ts +15 -0
  52. package/src/core/recall-analysis.ts +90 -0
  53. package/src/core/recall-trial.ts +153 -0
  54. package/src/core/response-recovery.ts +46 -0
  55. package/src/core/scheduling.ts +8 -0
  56. package/src/core/settings.ts +174 -0
  57. package/src/core/skills.ts +121 -0
  58. package/src/core/stall.ts +48 -0
  59. package/src/core/text-normalize.ts +81 -0
  60. package/src/core/theme.ts +179 -0
  61. package/src/core/tokens.ts +149 -0
  62. package/src/core/tool-contract.ts +102 -0
  63. package/src/core/tool-input.ts +38 -0
  64. package/src/core/transcript.ts +60 -0
  65. package/src/core/window-trial.ts +65 -0
  66. package/src/core/work-state.ts +103 -0
  67. package/src/core/yaml.ts +282 -0
  68. package/src/index.ts +10 -0
  69. package/src/runtime/auth.ts +255 -0
  70. package/src/runtime/benchmark.ts +187 -0
  71. package/src/runtime/catalog.ts +365 -0
  72. package/src/runtime/evidence-notes.ts +33 -0
  73. package/src/runtime/exec-sessions.ts +214 -0
  74. package/src/runtime/execution-control.ts +39 -0
  75. package/src/runtime/harness-comparison.ts +356 -0
  76. package/src/runtime/history-tools.ts +108 -0
  77. package/src/runtime/loop.ts +1983 -0
  78. package/src/runtime/model.ts +614 -0
  79. package/src/runtime/models-fetch.ts +155 -0
  80. package/src/runtime/oauth-device.ts +86 -0
  81. package/src/runtime/oauth.ts +759 -0
  82. package/src/runtime/openai-responses.ts +286 -0
  83. package/src/runtime/openai.ts +675 -0
  84. package/src/runtime/provider.ts +498 -0
  85. package/src/runtime/recall-trial.ts +226 -0
  86. package/src/runtime/resume.ts +66 -0
  87. package/src/runtime/retry.ts +297 -0
  88. package/src/runtime/tools.ts +1193 -0
  89. package/src/runtime/usage.ts +225 -0
  90. package/src/runtime/window-trial.ts +140 -0
  91. package/src/runtime/working-notes.ts +30 -0
  92. package/src/store/atomic.ts +31 -0
  93. package/src/store/auth-store.ts +50 -0
  94. package/src/store/blobs.ts +142 -0
  95. package/src/store/command.ts +75 -0
  96. package/src/store/config.ts +69 -0
  97. package/src/store/context-files.ts +356 -0
  98. package/src/store/file-index.ts +81 -0
  99. package/src/store/git-branch.ts +35 -0
  100. package/src/store/history-search.ts +19 -0
  101. package/src/store/log.ts +642 -0
  102. package/src/store/models.ts +41 -0
  103. package/src/store/observations.ts +181 -0
  104. package/src/store/query-source.ts +44 -0
  105. package/src/store/recovery.ts +39 -0
  106. package/src/store/replay.ts +63 -0
  107. package/src/store/resources.ts +361 -0
  108. package/src/store/restore.ts +302 -0
  109. package/src/store/search.ts +644 -0
  110. package/src/store/serial.ts +13 -0
  111. package/src/store/sessions.ts +463 -0
  112. package/src/store/trust.ts +69 -0
  113. package/src/store/workspace.ts +256 -0
  114. package/src/store/worktree.ts +233 -0
  115. package/src/tui/ansi.ts +67 -0
  116. package/src/tui/autocomplete.ts +29 -0
  117. package/src/tui/complete.ts +87 -0
  118. package/src/tui/diff.ts +160 -0
  119. package/src/tui/editor.ts +893 -0
  120. package/src/tui/exhaustive.ts +14 -0
  121. package/src/tui/fuzzy.ts +75 -0
  122. package/src/tui/host.ts +223 -0
  123. package/src/tui/input.ts +69 -0
  124. package/src/tui/keys.ts +378 -0
  125. package/src/tui/markdown.ts +17 -0
  126. package/src/tui/render.ts +153 -0
  127. package/src/tui/select.ts +240 -0
  128. package/src/tui/settings.ts +40 -0
  129. package/src/tui/statusline.ts +162 -0
  130. package/src/tui/style.ts +205 -0
  131. package/src/tui/terminal.ts +30 -0
  132. package/src/tui/text.ts +52 -0
  133. package/src/tui/toolview.ts +386 -0
  134. package/src/tui/transcript.ts +71 -0
  135. package/src/tui/tree.ts +405 -0
  136. package/src/tui/width.ts +567 -0
  137. package/src/vendor/pi-tui/LICENSE.upstream +21 -0
  138. package/src/vendor/pi-tui/VENDOR.md +23 -0
  139. package/src/vendor/pi-tui/alt-screen-search.ts +327 -0
  140. package/src/vendor/pi-tui/autocomplete.ts +835 -0
  141. package/src/vendor/pi-tui/components/alt-screen-flash.ts +51 -0
  142. package/src/vendor/pi-tui/components/box.ts +167 -0
  143. package/src/vendor/pi-tui/components/cancellable-loader.ts +40 -0
  144. package/src/vendor/pi-tui/components/editor.ts +2470 -0
  145. package/src/vendor/pi-tui/components/h-stack.ts +44 -0
  146. package/src/vendor/pi-tui/components/image.ts +127 -0
  147. package/src/vendor/pi-tui/components/input.ts +494 -0
  148. package/src/vendor/pi-tui/components/loader.ts +101 -0
  149. package/src/vendor/pi-tui/components/markdown.ts +1015 -0
  150. package/src/vendor/pi-tui/components/mouse-region.ts +33 -0
  151. package/src/vendor/pi-tui/components/scroll-view.ts +224 -0
  152. package/src/vendor/pi-tui/components/select-list.ts +273 -0
  153. package/src/vendor/pi-tui/components/settings-list.ts +328 -0
  154. package/src/vendor/pi-tui/components/spacer.ts +28 -0
  155. package/src/vendor/pi-tui/components/stack.ts +154 -0
  156. package/src/vendor/pi-tui/components/text.ts +107 -0
  157. package/src/vendor/pi-tui/components/truncated-text.ts +65 -0
  158. package/src/vendor/pi-tui/components/v-stack.ts +33 -0
  159. package/src/vendor/pi-tui/editor-component.ts +74 -0
  160. package/src/vendor/pi-tui/fuzzy.ts +138 -0
  161. package/src/vendor/pi-tui/index.ts +156 -0
  162. package/src/vendor/pi-tui/keybindings.ts +320 -0
  163. package/src/vendor/pi-tui/keys.ts +1401 -0
  164. package/src/vendor/pi-tui/kill-ring.ts +46 -0
  165. package/src/vendor/pi-tui/latex.ts +1506 -0
  166. package/src/vendor/pi-tui/layout-node.ts +51 -0
  167. package/src/vendor/pi-tui/layout.ts +449 -0
  168. package/src/vendor/pi-tui/native-modifiers.ts +13 -0
  169. package/src/vendor/pi-tui/native-module-path.ts +31 -0
  170. package/src/vendor/pi-tui/native-platform.ts +63 -0
  171. package/src/vendor/pi-tui/stdin-buffer.ts +444 -0
  172. package/src/vendor/pi-tui/terminal-colors.ts +73 -0
  173. package/src/vendor/pi-tui/terminal-image.ts +696 -0
  174. package/src/vendor/pi-tui/terminal.ts +547 -0
  175. package/src/vendor/pi-tui/tui-alt-screen.ts +1742 -0
  176. package/src/vendor/pi-tui/tui-main-screen.ts +655 -0
  177. package/src/vendor/pi-tui/tui.ts +1456 -0
  178. package/src/vendor/pi-tui/undo-stack.ts +28 -0
  179. package/src/vendor/pi-tui/utils.ts +1345 -0
  180. package/src/vendor/pi-tui/word-navigation.ts +117 -0
@@ -0,0 +1,33 @@
1
+ import { allocateStackSizes, Stack, type StackChild, type StackOptions, visibleStackEntries } from "./stack.ts";
2
+
3
+ export class VStack extends Stack {
4
+ protected readonly layoutType = "vstack" as const;
5
+
6
+ constructor(children: StackChild[] = [], options: StackOptions = {}) {
7
+ super(children, options);
8
+ }
9
+
10
+ override render(width: number): string[] {
11
+ const viewport = { width: Math.max(1, width), height: Number.MAX_SAFE_INTEGER };
12
+ const entries = visibleStackEntries(this.entries, viewport);
13
+ const rendered = entries.map((entry) => entry.component.render(viewport.width));
14
+ const sizes = allocateStackSizes(
15
+ entries,
16
+ rendered.map((lines) => lines.length),
17
+ undefined,
18
+ this.gap,
19
+ );
20
+ const lines: string[] = [];
21
+ for (let index = 0; index < entries.length; index++) {
22
+ if (index > 0) {
23
+ for (let gap = 0; gap < this.gap; gap++) lines.push("");
24
+ }
25
+ const childLines = rendered[index]!.slice(0, sizes[index]);
26
+ lines.push(...childLines);
27
+ for (let padding = childLines.length; padding < sizes[index]!; padding++) lines.push("");
28
+ }
29
+ return lines;
30
+ }
31
+ }
32
+
33
+ export type { StackChild, StackEntry, StackEntryOptions, StackOptions } from "./stack.ts";
@@ -0,0 +1,74 @@
1
+ import type { AutocompleteProvider } from "./autocomplete.ts";
2
+ import type { Component } from "./tui.ts";
3
+
4
+ /**
5
+ * Interface for custom editor components.
6
+ *
7
+ * This allows extensions to provide their own editor implementation
8
+ * (e.g., vim mode, emacs mode, custom keybindings) while maintaining
9
+ * compatibility with the core application.
10
+ */
11
+ export interface EditorComponent extends Component {
12
+ // =========================================================================
13
+ // Core text access (required)
14
+ // =========================================================================
15
+
16
+ /** Get the current text content */
17
+ getText(): string;
18
+
19
+ /** Set the text content */
20
+ setText(text: string): void;
21
+
22
+ /** Handle raw terminal input (key presses, paste sequences, etc.) */
23
+ handleInput(data: string): void;
24
+
25
+ // =========================================================================
26
+ // Callbacks (required)
27
+ // =========================================================================
28
+
29
+ /** Called when user submits (e.g., Enter key) */
30
+ onSubmit?: (text: string) => void;
31
+
32
+ /** Called when text changes */
33
+ onChange?: (text: string) => void;
34
+
35
+ // =========================================================================
36
+ // History support (optional)
37
+ // =========================================================================
38
+
39
+ /** Add text to history for up/down navigation */
40
+ addToHistory?(text: string): void;
41
+
42
+ // =========================================================================
43
+ // Advanced text manipulation (optional)
44
+ // =========================================================================
45
+
46
+ /** Insert text at current cursor position */
47
+ insertTextAtCursor?(text: string): void;
48
+
49
+ /**
50
+ * Get text with any markers expanded (e.g., paste markers).
51
+ * Falls back to getText() if not implemented.
52
+ */
53
+ getExpandedText?(): string;
54
+
55
+ // =========================================================================
56
+ // Autocomplete support (optional)
57
+ // =========================================================================
58
+
59
+ /** Set the autocomplete provider */
60
+ setAutocompleteProvider?(provider: AutocompleteProvider): void;
61
+
62
+ // =========================================================================
63
+ // Appearance (optional)
64
+ // =========================================================================
65
+
66
+ /** Border color function */
67
+ borderColor?: (str: string) => string;
68
+
69
+ /** Set horizontal padding */
70
+ setPaddingX?(padding: number): void;
71
+
72
+ /** Set max visible items in autocomplete dropdown */
73
+ setAutocompleteMaxVisible?(maxVisible: number): void;
74
+ }
@@ -0,0 +1,138 @@
1
+ /**
2
+ * Fuzzy matching utilities.
3
+ * Matches if all query characters appear in order (not necessarily consecutive).
4
+ * Lower score = better match.
5
+ */
6
+
7
+ export interface FuzzyMatch {
8
+ matches: boolean;
9
+ score: number;
10
+ }
11
+
12
+ export function fuzzyMatch(query: string, text: string): FuzzyMatch {
13
+ const queryLower = query.toLowerCase();
14
+ const textLower = text.toLowerCase();
15
+
16
+ const matchQuery = (normalizedQuery: string): FuzzyMatch => {
17
+ if (normalizedQuery.length === 0) {
18
+ return { matches: true, score: 0 };
19
+ }
20
+
21
+ if (normalizedQuery.length > textLower.length) {
22
+ return { matches: false, score: 0 };
23
+ }
24
+
25
+ let queryIndex = 0;
26
+ let score = 0;
27
+ let lastMatchIndex = -1;
28
+ let consecutiveMatches = 0;
29
+
30
+ while (queryIndex < normalizedQuery.length) {
31
+ const i = textLower.indexOf(normalizedQuery[queryIndex]!, lastMatchIndex + 1);
32
+ if (i === -1) break;
33
+
34
+ const isWordBoundary = i === 0 || /[\s\-_./:]/.test(textLower[i - 1]!);
35
+
36
+ // Reward consecutive matches
37
+ if (lastMatchIndex === i - 1) {
38
+ consecutiveMatches++;
39
+ score -= consecutiveMatches * 5;
40
+ } else {
41
+ consecutiveMatches = 0;
42
+ // Penalize gaps
43
+ if (lastMatchIndex >= 0) {
44
+ score += (i - lastMatchIndex - 1) * 2;
45
+ }
46
+ }
47
+
48
+ // Reward word boundary matches
49
+ if (isWordBoundary) {
50
+ score -= 10;
51
+ }
52
+
53
+ // Slight penalty for later matches
54
+ score += i * 0.1;
55
+
56
+ lastMatchIndex = i;
57
+ queryIndex++;
58
+ }
59
+
60
+ if (queryIndex < normalizedQuery.length) {
61
+ return { matches: false, score: 0 };
62
+ }
63
+
64
+ if (normalizedQuery === textLower) {
65
+ score -= 100;
66
+ }
67
+
68
+ return { matches: true, score };
69
+ };
70
+
71
+ const primaryMatch = matchQuery(queryLower);
72
+ if (primaryMatch.matches) {
73
+ return primaryMatch;
74
+ }
75
+
76
+ const alphaNumericMatch = queryLower.match(/^(?<letters>[a-z]+)(?<digits>[0-9]+)$/);
77
+ const numericAlphaMatch = queryLower.match(/^(?<digits>[0-9]+)(?<letters>[a-z]+)$/);
78
+ const swappedQuery = alphaNumericMatch
79
+ ? `${alphaNumericMatch.groups?.digits ?? ""}${alphaNumericMatch.groups?.letters ?? ""}`
80
+ : numericAlphaMatch
81
+ ? `${numericAlphaMatch.groups?.letters ?? ""}${numericAlphaMatch.groups?.digits ?? ""}`
82
+ : "";
83
+
84
+ if (!swappedQuery) {
85
+ return primaryMatch;
86
+ }
87
+
88
+ const swappedMatch = matchQuery(swappedQuery);
89
+ if (!swappedMatch.matches) {
90
+ return primaryMatch;
91
+ }
92
+
93
+ return { matches: true, score: swappedMatch.score + 5 };
94
+ }
95
+
96
+ /**
97
+ * Filter and sort items by fuzzy match quality (best matches first).
98
+ * Supports whitespace- and slash-separated tokens: all tokens must match.
99
+ */
100
+ export function fuzzyFilter<T>(items: T[], query: string, getText: (item: T) => string): T[] {
101
+ if (!query.trim()) {
102
+ return items;
103
+ }
104
+
105
+ const tokens = query
106
+ .trim()
107
+ .split(/[\s/]+/)
108
+ .filter((t) => t.length > 0);
109
+
110
+ if (tokens.length === 0) {
111
+ return items;
112
+ }
113
+
114
+ const results: { item: T; totalScore: number }[] = [];
115
+
116
+ for (const item of items) {
117
+ const text = getText(item);
118
+ let totalScore = 0;
119
+ let allMatch = true;
120
+
121
+ for (const token of tokens) {
122
+ const match = fuzzyMatch(token, text);
123
+ if (match.matches) {
124
+ totalScore += match.score;
125
+ } else {
126
+ allMatch = false;
127
+ break;
128
+ }
129
+ }
130
+
131
+ if (allMatch) {
132
+ results.push({ item, totalScore });
133
+ }
134
+ }
135
+
136
+ results.sort((a, b) => a.totalScore - b.totalScore);
137
+ return results.map((r) => r.item);
138
+ }
@@ -0,0 +1,156 @@
1
+ // Core TUI interfaces and classes
2
+
3
+ export { Marked, type Token, type Tokens } from "marked";
4
+ // Autocomplete support
5
+ export {
6
+ type AutocompleteItem,
7
+ type AutocompleteProvider,
8
+ type AutocompleteSuggestions,
9
+ CombinedAutocompleteProvider,
10
+ type SlashCommand,
11
+ } from "./autocomplete.ts";
12
+ // Components
13
+ export { Box } from "./components/box.ts";
14
+ export { CancellableLoader } from "./components/cancellable-loader.ts";
15
+ export { Editor, type EditorOptions, type EditorTheme } from "./components/editor.ts";
16
+ export { HStack } from "./components/h-stack.ts";
17
+ export { Image, type ImageOptions, type ImageTheme } from "./components/image.ts";
18
+ export { Input } from "./components/input.ts";
19
+ export { Loader, type LoaderIndicatorOptions } from "./components/loader.ts";
20
+ export { type DefaultTextStyle, Markdown, type MarkdownOptions, type MarkdownTheme } from "./components/markdown.ts";
21
+ export { MouseRegion, type MouseRegionHandler } from "./components/mouse-region.ts";
22
+ export {
23
+ ScrollView,
24
+ type ScrollViewOptions,
25
+ type ScrollViewScrollbar,
26
+ type ScrollViewScrollToOptions,
27
+ } from "./components/scroll-view.ts";
28
+ export {
29
+ type SelectItem,
30
+ SelectList,
31
+ type SelectListLayoutOptions,
32
+ type SelectListTheme,
33
+ type SelectListTruncatePrimaryContext,
34
+ } from "./components/select-list.ts";
35
+ export { type SettingItem, SettingsList, type SettingsListTheme } from "./components/settings-list.ts";
36
+ export { Spacer } from "./components/spacer.ts";
37
+ export { Text } from "./components/text.ts";
38
+ export { TruncatedText } from "./components/truncated-text.ts";
39
+ export {
40
+ type StackChild,
41
+ type StackEntry,
42
+ type StackEntryOptions,
43
+ type StackOptions,
44
+ VStack,
45
+ } from "./components/v-stack.ts";
46
+ // Editor component interface (for custom editors)
47
+ export type { EditorComponent } from "./editor-component.ts";
48
+ // Fuzzy matching
49
+ export { type FuzzyMatch, fuzzyFilter, fuzzyMatch } from "./fuzzy.ts";
50
+ // Keybindings
51
+ export {
52
+ getKeybindings,
53
+ type Keybinding,
54
+ type KeybindingConflict,
55
+ type KeybindingDefinition,
56
+ type KeybindingDefinitions,
57
+ type Keybindings,
58
+ type KeybindingsConfig,
59
+ KeybindingsManager,
60
+ setKeybindings,
61
+ TUI_KEYBINDINGS,
62
+ } from "./keybindings.ts";
63
+ // Keyboard input handling
64
+ export {
65
+ decodeKittyPrintable,
66
+ isKeyRelease,
67
+ isKeyRepeat,
68
+ isKittyProtocolActive,
69
+ Key,
70
+ type KeyEventType,
71
+ type KeyId,
72
+ matchesKey,
73
+ parseKey,
74
+ setKittyProtocolActive,
75
+ } from "./keys.ts";
76
+ // LaTeX rendering
77
+ export { type RenderLatexOptions, renderLatex } from "./latex.ts";
78
+ // Native platform integration
79
+ export { getNativeClipboard, type NativeClipboard } from "./native-platform.ts";
80
+ // Input buffering for batch splitting
81
+ export { StdinBuffer, type StdinBufferEventMap, type StdinBufferOptions } from "./stdin-buffer.ts";
82
+ // Terminal interface and implementations
83
+ export { ProcessTerminal, type Terminal } from "./terminal.ts";
84
+ // Terminal colors
85
+ export {
86
+ parseOsc11BackgroundColor,
87
+ parseTerminalColorSchemeReport,
88
+ type RgbColor,
89
+ type TerminalColorScheme,
90
+ } from "./terminal-colors.ts";
91
+ // Terminal image support
92
+ export {
93
+ allocateImageId,
94
+ type CellDimensions,
95
+ calculateImageRows,
96
+ deleteAllKittyImages,
97
+ deleteKittyImage,
98
+ detectCapabilities,
99
+ encodeITerm2,
100
+ encodeKitty,
101
+ getCapabilities,
102
+ getCellDimensions,
103
+ getGifDimensions,
104
+ getImageDimensions,
105
+ getJpegDimensions,
106
+ getPngDimensions,
107
+ getWebpDimensions,
108
+ hyperlink,
109
+ type ImageDimensions,
110
+ type ImageProtocol,
111
+ type ImageRenderOptions,
112
+ imageFallback,
113
+ renderImage,
114
+ resetCapabilitiesCache,
115
+ setCapabilities,
116
+ setCapabilityOverrides,
117
+ setCellDimensions,
118
+ type TerminalCapabilities,
119
+ } from "./terminal-image.ts";
120
+ export {
121
+ type Component,
122
+ Container,
123
+ CURSOR_MARKER,
124
+ compositeTuiLine,
125
+ type Focusable,
126
+ isFocusable,
127
+ isViewportTUI,
128
+ type OverlayAnchor,
129
+ type OverlayBounds,
130
+ type OverlayHandle,
131
+ type OverlayMargin,
132
+ type OverlayOptions,
133
+ type OverlayUnfocusOptions,
134
+ type SizeValue,
135
+ type TUI,
136
+ type TuiInputListener,
137
+ type TuiInputListenerResult,
138
+ type TuiMode,
139
+ type TuiMouseButton,
140
+ type TuiMouseEvent,
141
+ type TuiMouseEventResult,
142
+ type TuiMouseEventType,
143
+ type TuiStopOptions,
144
+ type ViewportTUI,
145
+ } from "./tui.ts";
146
+ export { TuiAltScreen, type TuiAltScreenOptions } from "./tui-alt-screen.ts";
147
+ export { TuiMainScreen, type TuiMainScreenRenderState } from "./tui-main-screen.ts";
148
+ // Utilities
149
+ export {
150
+ getOsc8LinkAtColumn,
151
+ sliceByColumn,
152
+ stripTerminalSequences,
153
+ truncateToWidth,
154
+ visibleWidth,
155
+ wrapTextWithAnsi,
156
+ } from "./utils.ts";