From 383b9177848eeefb8c123a7a7ecc0ee391380eea Mon Sep 17 00:00:00 2001 From: Taylor Mullen Date: Fri, 18 Apr 2025 18:08:43 -0400 Subject: Run `npm run format` - This has the entirety of the changes. Part of https://b.corp.google.com/issues/411720532 --- packages/cli/src/core/gemini-client.ts | 1 - packages/cli/src/core/gemini-stream.ts | 8 ++++++-- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'packages/cli/src/core') diff --git a/packages/cli/src/core/gemini-client.ts b/packages/cli/src/core/gemini-client.ts index 64bf87a3..a488b982 100644 --- a/packages/cli/src/core/gemini-client.ts +++ b/packages/cli/src/core/gemini-client.ts @@ -21,7 +21,6 @@ import { getFolderStructure } from '../utils/getFolderStructure.js'; import { GeminiEventType, GeminiStream } from './gemini-stream.js'; import { Config } from '../config/config.js'; - type ToolExecutionOutcome = { callId: string; name: string; diff --git a/packages/cli/src/core/gemini-stream.ts b/packages/cli/src/core/gemini-stream.ts index 70361f10..0e3ca025 100644 --- a/packages/cli/src/core/gemini-stream.ts +++ b/packages/cli/src/core/gemini-stream.ts @@ -1,4 +1,4 @@ -import { ToolCallEvent , HistoryItem } from '../ui/types.js'; +import { ToolCallEvent, HistoryItem } from '../ui/types.js'; import { Part } from '@google/genai'; import { handleToolCallChunk, @@ -161,7 +161,11 @@ export const processGeminiStream = async ({ renderTimeoutId = null; } // Delegate history update for error message - addErrorMessageToHistory(error as (Error | DOMException), setHistory, getNextMessageId); + addErrorMessageToHistory( + error as Error | DOMException, + setHistory, + getNextMessageId, + ); } finally { isStreamComplete = true; // Signal stream end for render loop completion if (renderTimeoutId) { -- cgit v1.2.3