summaryrefslogtreecommitdiff
path: root/packages/server/src
diff options
context:
space:
mode:
authorOlcan <[email protected]>2025-04-23 13:33:07 -0700
committerGitHub <[email protected]>2025-04-23 13:33:07 -0700
commitf90dcf663e06cd4c28dfd5703f65a1a4499a8d74 (patch)
treeb3e5ad3c31883fb691cd89ceccefbec5dadb287f /packages/server/src
parent4c2a5045a0d209cfda5723a4dc84fe59670b558e (diff)
remove dead code (#131)
Diffstat (limited to 'packages/server/src')
-rw-r--r--packages/server/src/utils/BackgroundTerminalAnalyzer.ts11
1 files changed, 1 insertions, 10 deletions
diff --git a/packages/server/src/utils/BackgroundTerminalAnalyzer.ts b/packages/server/src/utils/BackgroundTerminalAnalyzer.ts
index c63fbb57..06cefd9b 100644
--- a/packages/server/src/utils/BackgroundTerminalAnalyzer.ts
+++ b/packages/server/src/utils/BackgroundTerminalAnalyzer.ts
@@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
-import { Content, SchemaUnion, Type } from '@google/genai';
+import { SchemaUnion, Type } from '@google/genai';
import { getErrorMessage, isNodeError } from '../utils/errors.js';
import { GeminiClient } from '../core/client.js';
import { Config } from '../config/config.js';
@@ -23,15 +23,6 @@ type AnalysisStatus =
// Promisify child_process.exec for easier async/await usage
const execAsync = promisify(_exec);
-// Define the expected interface for the AI client dependency
-export interface AiClient {
- generateJson(
- prompt: Content[], // Keep flexible or define a stricter prompt structure type
- schema: SchemaUnion,
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
- ): Promise<any>; // Ideally, specify the expected JSON structure TAnalysisResult | TAnalysisFailure
-}
-
// Identifier for the background process (e.g., PID)
// Using `unknown` allows more flexibility than `object` while still being type-safe
export type ProcessHandle = number | string | unknown;