mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
72 lines
1.8 KiB
TypeScript
72 lines
1.8 KiB
TypeScript
import { ApiConfiguration } from "./api"
|
|
import { AutoApprovalSettings } from "./AutoApprovalSettings"
|
|
import { BrowserSettings } from "./BrowserSettings"
|
|
import { ChatSettings } from "./ChatSettings"
|
|
import { ChatContent } from "./ChatContent"
|
|
|
|
export interface WebviewMessage {
|
|
type:
|
|
| "apiConfiguration"
|
|
| "customInstructions"
|
|
| "webviewDidLaunch"
|
|
| "newTask"
|
|
| "askResponse"
|
|
| "clearTask"
|
|
| "didShowAnnouncement"
|
|
| "selectImages"
|
|
| "exportCurrentTask"
|
|
| "showTaskWithId"
|
|
| "deleteTaskWithId"
|
|
| "exportTaskWithId"
|
|
| "resetState"
|
|
| "requestOllamaModels"
|
|
| "requestLmStudioModels"
|
|
| "openImage"
|
|
| "openFile"
|
|
| "openMention"
|
|
| "cancelTask"
|
|
| "refreshOpenRouterModels"
|
|
| "refreshOpenAiModels"
|
|
| "openMcpSettings"
|
|
| "restartMcpServer"
|
|
| "autoApprovalSettings"
|
|
| "browserSettings"
|
|
| "chatSettings"
|
|
| "checkpointDiff"
|
|
| "checkpointRestore"
|
|
| "taskCompletionViewChanges"
|
|
| "openExtensionSettings"
|
|
| "requestVsCodeLmModels"
|
|
| "toggleToolAutoApprove"
|
|
| "toggleMcpServer"
|
|
| "getLatestState"
|
|
| "accountLoginClicked"
|
|
| "accountLogoutClicked"
|
|
| "subscribeEmail"
|
|
| "fetchMcpMarketplace"
|
|
| "downloadMcp"
|
|
| "silentlyRefreshMcpMarketplace"
|
|
| "searchCommits"
|
|
// | "relaunchChromeDebugMode"
|
|
text?: string
|
|
disabled?: boolean
|
|
askResponse?: ClineAskResponse
|
|
apiConfiguration?: ApiConfiguration
|
|
images?: string[]
|
|
bool?: boolean
|
|
number?: number
|
|
autoApprovalSettings?: AutoApprovalSettings
|
|
browserSettings?: BrowserSettings
|
|
chatSettings?: ChatSettings
|
|
chatContent?: ChatContent
|
|
mcpId?: string
|
|
|
|
// For toggleToolAutoApprove
|
|
serverName?: string
|
|
toolName?: string
|
|
autoApprove?: boolean
|
|
}
|
|
|
|
export type ClineAskResponse = "yesButtonClicked" | "noButtonClicked" | "messageResponse"
|
|
|
|
export type ClineCheckpointRestore = "task" | "workspace" | "taskAndWorkspace"
|