Files
Roo-Code/src/shared/WebviewMessage.ts
2024-09-01 01:41:43 -04:00

27 lines
606 B
TypeScript

import { ApiConfiguration, ApiProvider } from "./api"
export interface WebviewMessage {
type:
| "apiConfiguration"
| "customInstructions"
| "alwaysAllowReadOnly"
| "webviewDidLaunch"
| "newTask"
| "askResponse"
| "clearTask"
| "didShowAnnouncement"
| "selectImages"
| "exportCurrentTask"
| "showTaskWithId"
| "deleteTaskWithId"
| "exportTaskWithId"
| "resetState"
text?: string
askResponse?: ClaudeAskResponse
apiConfiguration?: ApiConfiguration
images?: string[]
bool?: boolean
}
export type ClaudeAskResponse = "yesButtonTapped" | "noButtonTapped" | "messageResponse"