diff --git a/apps/frontend/src/preload/api/modules/insights-api.ts b/apps/frontend/src/preload/api/modules/insights-api.ts index f65d60c2..6f6f7e6a 100644 --- a/apps/frontend/src/preload/api/modules/insights-api.ts +++ b/apps/frontend/src/preload/api/modules/insights-api.ts @@ -5,6 +5,7 @@ import type { InsightsChatStatus, InsightsStreamChunk, InsightsModelConfig, + ImageAttachment, Task, TaskMetadata, IPCResult @@ -17,7 +18,7 @@ import { createIpcListener, invokeIpc, sendIpc, IpcListenerCleanup } from './ipc export interface InsightsAPI { // Operations getInsightsSession: (projectId: string) => Promise>; - sendInsightsMessage: (projectId: string, message: string, modelConfig?: InsightsModelConfig) => void; + sendInsightsMessage: (projectId: string, message: string, modelConfig?: InsightsModelConfig, images?: ImageAttachment[]) => void; clearInsightsSession: (projectId: string) => Promise; createTaskFromInsights: ( projectId: string, @@ -55,8 +56,8 @@ export const createInsightsAPI = (): InsightsAPI => ({ getInsightsSession: (projectId: string): Promise> => invokeIpc(IPC_CHANNELS.INSIGHTS_GET_SESSION, projectId), - sendInsightsMessage: (projectId: string, message: string, modelConfig?: InsightsModelConfig): void => - sendIpc(IPC_CHANNELS.INSIGHTS_SEND_MESSAGE, projectId, message, modelConfig), + sendInsightsMessage: (projectId: string, message: string, modelConfig?: InsightsModelConfig, images?: ImageAttachment[]): void => + sendIpc(IPC_CHANNELS.INSIGHTS_SEND_MESSAGE, projectId, message, modelConfig, images), clearInsightsSession: (projectId: string): Promise => invokeIpc(IPC_CHANNELS.INSIGHTS_CLEAR_SESSION, projectId),