Implement bidirectional extension webview messaging system; extension holds claude messages state to keep webview stateless
This commit is contained in:
1 parent
09559c314b
commit
4da785b822
9 files changed
+242
-79
No files matched your search
@@ -1,5 +1,7 @@
|
||||
export interface WebviewMessage {
|
||||
type: "text" | "action" | "apiKey" | "maxRequestsPerTask" | "webviewDidLaunch"
|
||||
type: "apiKey" | "maxRequestsPerTask" | "webviewDidLaunch" | "newTask" | "askResponse"
|
||||
text?: string
|
||||
action?: "newTaskButtonTapped" | "yesButtonTapped" | "noButtonTapped" | "executeButtonTapped"
|
||||
}
|
||||
askResponse?: ClaudeAskResponse
|
||||
}
|
||||
|
||||
export type ClaudeAskResponse = "newTaskButtonTapped" | "yesButtonTapped" | "noButtonTapped" | "textResponse"
|
||||
Reference in new issue
Block a user