Refactor ClineAsk

This commit is contained in:
Saoud Rizwan
2024-10-06 04:24:23 -04:00
parent 7ee0a58f9b
commit d5a998a23a
4 changed files with 40 additions and 40 deletions

View File

@@ -40,14 +40,14 @@ export interface ExtensionState {
export interface ClineMessage {
ts: number
type: "ask" | "say"
ask?: ClaudeAsk
ask?: ClineAsk
say?: ClaudeSay
text?: string
images?: string[]
partial?: boolean
}
export type ClaudeAsk =
export type ClineAsk =
| "followup"
| "command"
| "command_output"

View File

@@ -23,10 +23,10 @@ export interface WebviewMessage {
| "cancelTask"
| "refreshOpenRouterModels"
text?: string
askResponse?: ClaudeAskResponse
askResponse?: ClineAskResponse
apiConfiguration?: ApiConfiguration
images?: string[]
bool?: boolean
}
export type ClaudeAskResponse = "yesButtonTapped" | "noButtonTapped" | "messageResponse"
export type ClineAskResponse = "yesButtonTapped" | "noButtonTapped" | "messageResponse"