From cfc697a96d2e716a75e1c3b7f0f34fce81abaf1e Mon Sep 17 00:00:00 2001
From: Taylor Mullen <ntaylormullen@google.com>
Date: Thu, 17 Apr 2025 18:06:21 -0400
Subject: Run `npm run format`

- Also updated README.md accordingly.

Part of https://b.corp.google.com/issues/411384603
---
 packages/cli/src/ui/components/HistoryDisplay.tsx | 45 ++++++++++++-----------
 1 file changed, 24 insertions(+), 21 deletions(-)

(limited to 'packages/cli/src/ui/components/HistoryDisplay.tsx')

diff --git a/packages/cli/src/ui/components/HistoryDisplay.tsx b/packages/cli/src/ui/components/HistoryDisplay.tsx
index bacbb258..285a6e30 100644
--- a/packages/cli/src/ui/components/HistoryDisplay.tsx
+++ b/packages/cli/src/ui/components/HistoryDisplay.tsx
@@ -10,30 +10,33 @@ import ToolGroupMessage from './messages/ToolGroupMessage.js';
 import { PartListUnion } from '@google/genai';
 
 interface HistoryDisplayProps {
-    history: HistoryItem[];
-    onSubmit: (value: PartListUnion) => void;
+  history: HistoryItem[];
+  onSubmit: (value: PartListUnion) => void;
 }
 
-const HistoryDisplay: React.FC<HistoryDisplayProps> = ({ history, onSubmit }) => {
-    // No grouping logic needed here anymore
-    return (
-        <Box flexDirection="column">
-            {history.map((item) => (
-                <Box key={item.id} marginBottom={1}>
-                    {/* Render standard message types */}
-                    {item.type === 'user' && <UserMessage text={item.text} />}
-                    {item.type === 'gemini' && <GeminiMessage text={item.text} />}
-                    {item.type === 'info' && <InfoMessage text={item.text} />}
-                    {item.type === 'error' && <ErrorMessage text={item.text} />}
+const HistoryDisplay: React.FC<HistoryDisplayProps> = ({
+  history,
+  onSubmit,
+}) => {
+  // No grouping logic needed here anymore
+  return (
+    <Box flexDirection="column">
+      {history.map((item) => (
+        <Box key={item.id} marginBottom={1}>
+          {/* Render standard message types */}
+          {item.type === 'user' && <UserMessage text={item.text} />}
+          {item.type === 'gemini' && <GeminiMessage text={item.text} />}
+          {item.type === 'info' && <InfoMessage text={item.text} />}
+          {item.type === 'error' && <ErrorMessage text={item.text} />}
 
-                    {/* Render the tool group component */}
-                    {item.type === 'tool_group' && (
-                        <ToolGroupMessage toolCalls={item.tools} onSubmit={onSubmit} />
-                    )}
-                </Box>
-            ))}
+          {/* Render the tool group component */}
+          {item.type === 'tool_group' && (
+            <ToolGroupMessage toolCalls={item.tools} onSubmit={onSubmit} />
+          )}
         </Box>
-    );
+      ))}
+    </Box>
+  );
 };
 
-export default HistoryDisplay;
\ No newline at end of file
+export default HistoryDisplay;
-- 
cgit v1.2.3

