import type { LlmiterateConfig, MarkerPrompt } from "./core"; export type RunStatus = "queued" | "running" | "done" | "error"; export interface LlmiterateRun { id: number; block: MarkerPrompt; projectFile: string; absoluteFile: string; fullPrompt: string; status: RunStatus; queuedAt: number; updatedAt: number; assistantText: string; toolText: string; error?: string; } export interface UiState { config?: LlmiterateConfig; lockError?: string; watchErrors: number; watchDirs: number; activeRun?: LlmiterateRun; queuedRuns: number; } export interface RpcTextPart { type?: string; text?: unknown; } export interface RpcMessage { role?: string; content?: string | RpcTextPart[]; } export type RpcEvent = | { type: "message_update" | "message_end"; message?: RpcMessage } | { type: "tool_execution_start"; toolName?: unknown } | { type: "tool_execution_end"; toolName?: unknown; isError?: unknown; result?: RpcToolResult; } | { type: "agent_end" }; export interface RpcToolResult { content?: RpcTextPart[]; }