summaryrefslogtreecommitdiff
path: root/packages/cli/src
diff options
context:
space:
mode:
authorJacob Richman <[email protected]>2025-05-02 14:39:39 -0700
committerGitHub <[email protected]>2025-05-02 14:39:39 -0700
commit0556358560f065dec5e35fd5b0544b18ddcc4495 (patch)
tree8ca5ca20991b2950b2360839d35b53d3c03f34ed /packages/cli/src
parent69d1c644d9034138ed7418f4450230756e84ad93 (diff)
Cleanup low value comments. (#248)
Diffstat (limited to 'packages/cli/src')
-rw-r--r--packages/cli/src/ui/components/InputPrompt.tsx2
-rw-r--r--packages/cli/src/ui/components/SuggestionsDisplay.tsx7
-rw-r--r--packages/cli/src/ui/components/messages/ToolGroupMessage.tsx3
-rw-r--r--packages/cli/src/ui/hooks/useGeminiStream.ts6
-rw-r--r--packages/cli/src/ui/utils/MarkdownRenderer.tsx1
5 files changed, 5 insertions, 14 deletions
diff --git a/packages/cli/src/ui/components/InputPrompt.tsx b/packages/cli/src/ui/components/InputPrompt.tsx
index 1c8cff4d..a7f06bce 100644
--- a/packages/cli/src/ui/components/InputPrompt.tsx
+++ b/packages/cli/src/ui/components/InputPrompt.tsx
@@ -17,7 +17,7 @@ interface InputPromptProps {
setInputKey: React.Dispatch<React.SetStateAction<number>>;
onSubmit: (value: string) => void;
showSuggestions: boolean;
- suggestions: Suggestion[]; // Changed to Suggestion[]
+ suggestions: Suggestion[];
activeSuggestionIndex: number;
navigateUp: () => void;
navigateDown: () => void;
diff --git a/packages/cli/src/ui/components/SuggestionsDisplay.tsx b/packages/cli/src/ui/components/SuggestionsDisplay.tsx
index 8c9cf377..02dea70e 100644
--- a/packages/cli/src/ui/components/SuggestionsDisplay.tsx
+++ b/packages/cli/src/ui/components/SuggestionsDisplay.tsx
@@ -48,12 +48,7 @@ export function SuggestionsDisplay({
const visibleSuggestions = suggestions.slice(startIndex, endIndex);
return (
- <Box
- borderStyle="round"
- flexDirection="column"
- paddingX={1}
- width={width} // Use the passed width
- >
+ <Box borderStyle="round" flexDirection="column" paddingX={1} width={width}>
{scrollOffset > 0 && <Text color="gray">▲</Text>}
{visibleSuggestions.map((suggestion, index) => {
diff --git a/packages/cli/src/ui/components/messages/ToolGroupMessage.tsx b/packages/cli/src/ui/components/messages/ToolGroupMessage.tsx
index 2d4982c2..401b8ee0 100644
--- a/packages/cli/src/ui/components/messages/ToolGroupMessage.tsx
+++ b/packages/cli/src/ui/components/messages/ToolGroupMessage.tsx
@@ -66,9 +66,6 @@ export const ToolGroupMessage: React.FC<ToolGroupMessageProps> = ({
)}
</Box>
))}
- {/* Optional: Add padding below the last item if needed,
- though ToolMessage already has some vertical space implicitly */}
- {/* {tools.length > 0 && <Box height={1} />} */}
</Box>
);
};
diff --git a/packages/cli/src/ui/hooks/useGeminiStream.ts b/packages/cli/src/ui/hooks/useGeminiStream.ts
index 9e2901ec..bd2b617c 100644
--- a/packages/cli/src/ui/hooks/useGeminiStream.ts
+++ b/packages/cli/src/ui/hooks/useGeminiStream.ts
@@ -27,12 +27,12 @@ import {
IndividualToolCallDisplay,
ToolCallStatus,
} from '../types.js';
-import { isAtCommand } from '../utils/commandUtils.js'; // Import the @ command checker
+import { isAtCommand } from '../utils/commandUtils.js';
import { useSlashCommandProcessor } from './slashCommandProcessor.js';
import { useShellCommandProcessor } from './shellCommandProcessor.js';
import { usePassthroughProcessor } from './passthroughCommandProcessor.js';
-import { handleAtCommand } from './atCommandProcessor.js'; // Import the @ command handler
-import { findSafeSplitPoint } from '../utils/markdownUtilities.js'; // Import the split point finder
+import { handleAtCommand } from './atCommandProcessor.js';
+import { findSafeSplitPoint } from '../utils/markdownUtilities.js';
const addHistoryItem = (
setHistory: React.Dispatch<React.SetStateAction<HistoryItem[]>>,
diff --git a/packages/cli/src/ui/utils/MarkdownRenderer.tsx b/packages/cli/src/ui/utils/MarkdownRenderer.tsx
index c9053728..6441dcb6 100644
--- a/packages/cli/src/ui/utils/MarkdownRenderer.tsx
+++ b/packages/cli/src/ui/utils/MarkdownRenderer.tsx
@@ -24,7 +24,6 @@ export class MarkdownRenderer {
private static _renderInline(text: string): React.ReactNode[] {
const nodes: React.ReactNode[] = [];
let lastIndex = 0;
- // UPDATED Regex: Added <u>.*?<\/u> pattern
const inlineRegex =
/(\*\*.*?\*\*|\*.*?\*|_.*?_|~~.*?~~|\[.*?\]\(.*?\)|`+.+?`+|<u>.*?<\/u>)/g;
let match;