Merge pull request #25 from keejkrej/fix/streamagent-modelid-type

fix: sync preload type definitions with implementation
This commit is contained in:
Hunter Lovell
2026-01-18 22:27:03 -08:00
committed by GitHub
+9 -3
View File
@@ -1,4 +1,4 @@
import type { Thread, ModelConfig, StreamEvent, HITLDecision } from '../main/types'
import type { Thread, ModelConfig, Provider, StreamEvent, HITLDecision } from '../main/types'
interface ElectronAPI {
ipcRenderer: {
@@ -15,12 +15,18 @@ interface ElectronAPI {
interface CustomAPI {
agent: {
invoke: (threadId: string, message: string, onEvent: (event: StreamEvent) => void) => () => void
invoke: (
threadId: string,
message: string,
onEvent: (event: StreamEvent) => void,
modelId?: string
) => () => void
streamAgent: (
threadId: string,
message: string,
command: unknown,
onEvent: (event: StreamEvent) => void
onEvent: (event: StreamEvent) => void,
modelId?: string
) => () => void
interrupt: (
threadId: string,