Add API for other extensions to interact with Claude Dev

This commit is contained in:
Saoud Rizwan
2024-09-22 10:42:05 -04:00
parent 3bd09e4e1b
commit d4f15de199
7 changed files with 220 additions and 40 deletions

View File

@@ -5,9 +5,10 @@ import { HistoryItem } from "./HistoryItem"
// webview will hold state
export interface ExtensionMessage {
type: "action" | "state" | "selectedImages" | "ollamaModels" | "theme" | "workspaceUpdated"
type: "action" | "state" | "selectedImages" | "ollamaModels" | "theme" | "workspaceUpdated" | "invoke"
text?: string
action?: "chatButtonTapped" | "settingsButtonTapped" | "historyButtonTapped" | "didBecomeVisible"
invoke?: "sendMessage" | "primaryButtonClick" | "secondaryButtonClick"
state?: ExtensionState
images?: string[]
models?: string[]