import { ApiConfiguration } from "./api" import { AutoApprovalSettings } from "./AutoApprovalSettings" import { BrowserSettings } from "./BrowserSettings" export interface WebviewMessage { type: | "apiConfiguration" | "customInstructions" | "webviewDidLaunch" | "newTask" | "askResponse" | "clearTask" | "didShowAnnouncement" | "selectImages" | "exportCurrentTask" | "showTaskWithId" | "deleteTaskWithId" | "exportTaskWithId" | "resetState" | "requestOllamaModels" | "requestLmStudioModels" | "openImage" | "openFile" | "openMention" | "cancelTask" | "refreshOpenRouterModels" | "openMcpSettings" | "restartMcpServer" | "autoApprovalSettings" | "browserSettings" | "checkpointDiff" | "checkpointRestore" | "taskCompletionViewChanges" | "openExtensionSettings" | "getMcpEnabled" | "toggleMcp" // | "relaunchChromeDebugMode" text?: string askResponse?: ClineAskResponse apiConfiguration?: ApiConfiguration images?: string[] bool?: boolean number?: number autoApprovalSettings?: AutoApprovalSettings browserSettings?: BrowserSettings enabled?: boolean // For toggleMcp message } export type ClineAskResponse = "yesButtonClicked" | "noButtonClicked" | "messageResponse" export type ClineCheckpointRestore = "task" | "workspace" | "taskAndWorkspace"