Add logic for handling different ask states in the webview

This commit is contained in:
Saoud Rizwan committed 2024-07-09 17:03:24 -04:00
1 parent caca0ca606
commit 6f5b0565e0
4 files changed
+120 -51

No files matched your search

+2 -2
View File
@@ -1,7 +1,7 @@
export interface WebviewMessage {
type: "apiKey" | "maxRequestsPerTask" | "webviewDidLaunch" | "newTask" | "askResponse" | "abortTask"
type: "apiKey" | "maxRequestsPerTask" | "webviewDidLaunch" | "newTask" | "askResponse" | "clearTask"
text?: string
askResponse?: ClaudeAskResponse
}
export type ClaudeAskResponse = "newTaskButtonTapped" | "yesButtonTapped" | "noButtonTapped" | "textResponse"
export type ClaudeAskResponse = "yesButtonTapped" | "noButtonTapped" | "textResponse"