mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 12:21:13 -05:00
58 lines
1.3 KiB
TypeScript
58 lines
1.3 KiB
TypeScript
import { ApiConfiguration, ApiProvider } from "./api"
|
|
|
|
export type AudioType = "notification" | "celebration" | "progress_loop"
|
|
|
|
export interface WebviewMessage {
|
|
type:
|
|
| "apiConfiguration"
|
|
| "customInstructions"
|
|
| "allowedCommands"
|
|
| "alwaysAllowReadOnly"
|
|
| "alwaysAllowWrite"
|
|
| "alwaysAllowExecute"
|
|
| "webviewDidLaunch"
|
|
| "newTask"
|
|
| "askResponse"
|
|
| "clearTask"
|
|
| "didShowAnnouncement"
|
|
| "selectImages"
|
|
| "exportCurrentTask"
|
|
| "showTaskWithId"
|
|
| "deleteTaskWithId"
|
|
| "exportTaskWithId"
|
|
| "resetState"
|
|
| "requestOllamaModels"
|
|
| "requestLmStudioModels"
|
|
| "openImage"
|
|
| "openFile"
|
|
| "openMention"
|
|
| "cancelTask"
|
|
| "refreshOpenRouterModels"
|
|
| "alwaysAllowBrowser"
|
|
| "alwaysAllowMcp"
|
|
| "playSound"
|
|
| "soundEnabled"
|
|
| "soundVolume"
|
|
| "diffEnabled"
|
|
| "debugDiffEnabled"
|
|
| "openMcpSettings"
|
|
| "restartMcpServer"
|
|
| "toggleToolAlwaysAllow"
|
|
| "toggleMcpServer"
|
|
text?: string
|
|
disabled?: boolean
|
|
askResponse?: ClineAskResponse
|
|
apiConfiguration?: ApiConfiguration
|
|
images?: string[]
|
|
bool?: boolean
|
|
value?: number
|
|
commands?: string[]
|
|
audioType?: AudioType
|
|
// For toggleToolAutoApprove
|
|
serverName?: string
|
|
toolName?: string
|
|
alwaysAllow?: boolean
|
|
}
|
|
|
|
export type ClineAskResponse = "yesButtonClicked" | "noButtonClicked" | "messageResponse"
|