From b640074c33c23cccbb6814361ad53f5d5d714fd0 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Tue, 27 May 2025 00:43:34 +0200 Subject: [PATCH] Fix ESLint errors in image-summary.ts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove unused variables target and mode - Fix quote style to use double quotes 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- src/utils/image-summary.ts | 26 +++----------------------- 1 file changed, 3 insertions(+), 23 deletions(-) diff --git a/src/utils/image-summary.ts b/src/utils/image-summary.ts index 7b4a905..1202041 100644 --- a/src/utils/image-summary.ts +++ b/src/utils/image-summary.ts @@ -9,32 +9,12 @@ export function buildImageSummary( return "Image capture completed but no files were saved or available for analysis."; } - // Determine mode and target from app_target - let mode = "screen"; - let target = "screen"; - - if (input.app_target) { - if (input.app_target.startsWith("screen:")) { - mode = "screen"; - target = input.app_target; - } else if (input.app_target === "frontmost") { - mode = "screen"; // defaulted to screen - target = "frontmost application"; - } else if (input.app_target.includes(":")) { - // Contains window specifier - const parts = input.app_target.split(":"); - target = parts[0]; // app name - mode = "window"; - } else { - // Just app name, all windows - target = input.app_target; - mode = "all windows"; - } - } + // Determine mode and target from app_target (removed since we're not using them anymore) + // The summary now just shows the count of images captured // Generate summary matching the expected format const imageCount = data.saved_files.length; - let summary = `Captured ${imageCount} image${imageCount > 1 ? 's' : ''}`; + let summary = `Captured ${imageCount} image${imageCount > 1 ? "s" : ""}`; if (data.saved_files.length === 1) { if (!question || (question && input.path)) {