refactor(agents): trim interactive helper exports · openclaw/openclaw@f0488dd
vincentkoc
·
2026-06-17
·
via Recent Commits to openclaw:main
File tree
src/agents/modes/interactive/components
| Original file line number | Diff line number | Diff line change |
|---|
@@ -75,7 +75,7 @@ function renderIntraLineDiff(
|
75 | 75 | return { removedLine, addedLine }; |
76 | 76 | } |
77 | 77 | |
78 | | -export interface RenderDiffOptions { |
| 78 | +interface RenderDiffOptions { |
79 | 79 | /** File path (unused, kept for API compatibility) */ |
80 | 80 | filePath?: string; |
81 | 81 | } |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -5,7 +5,7 @@
|
5 | 5 | import { getKeybindings, type Keybinding, type KeyId } from "@earendil-works/pi-tui"; |
6 | 6 | import { theme } from "../theme/theme.js"; |
7 | 7 | |
8 | | -export interface KeyTextFormatOptions { |
| 8 | +interface KeyTextFormatOptions { |
9 | 9 | capitalize?: boolean; |
10 | 10 | } |
11 | 11 | |
@@ -17,7 +17,7 @@ function formatKeyPart(part: string, options: KeyTextFormatOptions): string {
|
17 | 17 | : displayPart; |
18 | 18 | } |
19 | 19 | |
20 | | -export function formatKeyText(key: string, options: KeyTextFormatOptions = {}): string { |
| 20 | +function formatKeyText(key: string, options: KeyTextFormatOptions = {}): string { |
21 | 21 | return key |
22 | 22 | .split("/") |
23 | 23 | .map((k) => |
@@ -40,14 +40,6 @@ export function keyText(keybinding: Keybinding): string {
|
40 | 40 | return formatKeys(getKeybindings().getKeys(keybinding)); |
41 | 41 | } |
42 | 42 | |
43 | | -export function keyDisplayText(keybinding: Keybinding): string { |
44 | | -return formatKeys(getKeybindings().getKeys(keybinding), { capitalize: true }); |
45 | | -} |
46 | | - |
47 | 43 | export function keyHint(keybinding: Keybinding, description: string): string { |
48 | 44 | return theme.fg("dim", keyText(keybinding)) + theme.fg("muted", ` ${description}`); |
49 | 45 | } |
50 | | - |
51 | | -export function rawKeyHint(key: string, description: string): string { |
52 | | -return theme.fg("dim", formatKeyText(key)) + theme.fg("muted", ` ${description}`); |
53 | | -} |
| Original file line number | Diff line number | Diff line change |
|---|
@@ -5,7 +5,7 @@
|
5 | 5 | |
6 | 6 | import { Text } from "@earendil-works/pi-tui"; |
7 | 7 | |
8 | | -export interface VisualTruncateResult { |
| 8 | +interface VisualTruncateResult { |
9 | 9 | /** The visual lines to display */ |
10 | 10 | visualLines: string[]; |
11 | 11 | /** Number of visual lines that were skipped (hidden) */ |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。