Initial streaming refactor

This commit is contained in:
Saoud Rizwan
2024-09-26 22:40:18 -04:00
parent e5e890d2eb
commit 1cc3546b7e
11 changed files with 805 additions and 80 deletions

View File

@@ -5,7 +5,15 @@ import { HistoryItem } from "./HistoryItem"
// webview will hold state
export interface ExtensionMessage {
type: "action" | "state" | "selectedImages" | "ollamaModels" | "theme" | "workspaceUpdated" | "invoke"
type:
| "action"
| "state"
| "selectedImages"
| "ollamaModels"
| "theme"
| "workspaceUpdated"
| "invoke"
| "partialMessage"
text?: string
action?: "chatButtonTapped" | "settingsButtonTapped" | "historyButtonTapped" | "didBecomeVisible"
invoke?: "sendMessage" | "primaryButtonClick" | "secondaryButtonClick"
@@ -13,6 +21,7 @@ export interface ExtensionMessage {
images?: string[]
models?: string[]
filePaths?: string[]
partialMessage?: ClaudeMessage
}
export interface ExtensionState {
@@ -33,6 +42,7 @@ export interface ClaudeMessage {
say?: ClaudeSay
text?: string
images?: string[]
partial?: boolean
}
export type ClaudeAsk =