Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions packages/server/src/utils/BackgroundTerminalAnalyzer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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 {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

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;
Expand Down