feat: add refresh option for Azure AI models in WebviewMessage interface

This commit is contained in:
pacnpal
2025-02-03 13:08:27 -05:00
parent 8f0548ec97
commit aab53a434b

View File

@@ -6,114 +6,115 @@ export type PromptMode = Mode | "enhance"
export type AudioType = "notification" | "celebration" | "progress_loop" export type AudioType = "notification" | "celebration" | "progress_loop"
export interface WebviewMessage { export interface WebviewMessage {
type: type:
| "apiConfiguration" | "apiConfiguration"
| "currentApiConfigName" | "currentApiConfigName"
| "upsertApiConfiguration" | "upsertApiConfiguration"
| "deleteApiConfiguration" | "deleteApiConfiguration"
| "loadApiConfiguration" | "loadApiConfiguration"
| "renameApiConfiguration" | "renameApiConfiguration"
| "getListApiConfiguration" | "getListApiConfiguration"
| "customInstructions" | "customInstructions"
| "allowedCommands" | "allowedCommands"
| "alwaysAllowReadOnly" | "alwaysAllowReadOnly"
| "alwaysAllowWrite" | "alwaysAllowWrite"
| "alwaysAllowExecute" | "alwaysAllowExecute"
| "alwaysAllowBrowser" | "alwaysAllowBrowser"
| "alwaysAllowMcp" | "alwaysAllowMcp"
| "alwaysAllowModeSwitch" | "alwaysAllowModeSwitch"
| "webviewDidLaunch" | "webviewDidLaunch"
| "newTask" | "newTask"
| "askResponse" | "askResponse"
| "clearTask" | "clearTask"
| "didShowAnnouncement" | "didShowAnnouncement"
| "selectImages" | "selectImages"
| "exportCurrentTask" | "exportCurrentTask"
| "showTaskWithId" | "showTaskWithId"
| "deleteTaskWithId" | "deleteTaskWithId"
| "exportTaskWithId" | "exportTaskWithId"
| "resetState" | "resetState"
| "requestOllamaModels" | "requestOllamaModels"
| "requestLmStudioModels" | "requestLmStudioModels"
| "openImage" | "openImage"
| "openFile" | "openFile"
| "openMention" | "openMention"
| "cancelTask" | "cancelTask"
| "refreshGlamaModels" | "refreshGlamaModels"
| "refreshOpenRouterModels" | "refreshOpenRouterModels"
| "refreshOpenAiModels" | "refreshOpenAiModels"
| "alwaysAllowBrowser" | "refreshAzureAiModels"
| "alwaysAllowMcp" | "alwaysAllowBrowser"
| "alwaysAllowModeSwitch" | "alwaysAllowMcp"
| "playSound" | "alwaysAllowModeSwitch"
| "soundEnabled" | "playSound"
| "soundVolume" | "soundEnabled"
| "diffEnabled" | "soundVolume"
| "browserViewportSize" | "diffEnabled"
| "screenshotQuality" | "browserViewportSize"
| "openMcpSettings" | "screenshotQuality"
| "restartMcpServer" | "openMcpSettings"
| "toggleToolAlwaysAllow" | "restartMcpServer"
| "toggleMcpServer" | "toggleToolAlwaysAllow"
| "updateMcpTimeout" | "toggleMcpServer"
| "fuzzyMatchThreshold" | "updateMcpTimeout"
| "preferredLanguage" | "fuzzyMatchThreshold"
| "writeDelayMs" | "preferredLanguage"
| "enhancePrompt" | "writeDelayMs"
| "enhancedPrompt" | "enhancePrompt"
| "draggedImages" | "enhancedPrompt"
| "deleteMessage" | "draggedImages"
| "terminalOutputLineLimit" | "deleteMessage"
| "mcpEnabled" | "terminalOutputLineLimit"
| "enableMcpServerCreation" | "mcpEnabled"
| "searchCommits" | "enableMcpServerCreation"
| "refreshGlamaModels" | "searchCommits"
| "alwaysApproveResubmit" | "refreshGlamaModels"
| "requestDelaySeconds" | "alwaysApproveResubmit"
| "rateLimitSeconds" | "requestDelaySeconds"
| "setApiConfigPassword" | "rateLimitSeconds"
| "requestVsCodeLmModels" | "setApiConfigPassword"
| "mode" | "requestVsCodeLmModels"
| "updatePrompt" | "mode"
| "updateSupportPrompt" | "updatePrompt"
| "resetSupportPrompt" | "updateSupportPrompt"
| "getSystemPrompt" | "resetSupportPrompt"
| "systemPrompt" | "getSystemPrompt"
| "enhancementApiConfigId" | "systemPrompt"
| "updateExperimental" | "enhancementApiConfigId"
| "autoApprovalEnabled" | "updateExperimental"
| "updateCustomMode" | "autoApprovalEnabled"
| "deleteCustomMode" | "updateCustomMode"
| "setopenAiCustomModelInfo" | "deleteCustomMode"
| "openCustomModesSettings" | "setopenAiCustomModelInfo"
| "updateAzureAiDeployment" | "openCustomModesSettings"
text?: string | "updateAzureAiDeployment"
disabled?: boolean text?: string
askResponse?: ClineAskResponse disabled?: boolean
apiConfiguration?: ApiConfiguration askResponse?: ClineAskResponse
images?: string[] apiConfiguration?: ApiConfiguration
bool?: boolean images?: string[]
value?: number bool?: boolean
commands?: string[] value?: number
audioType?: AudioType commands?: string[]
serverName?: string audioType?: AudioType
toolName?: string serverName?: string
alwaysAllow?: boolean toolName?: string
mode?: Mode alwaysAllow?: boolean
promptMode?: PromptMode mode?: Mode
customPrompt?: PromptComponent promptMode?: PromptMode
dataUrls?: string[] customPrompt?: PromptComponent
values?: Record<string, any> dataUrls?: string[]
query?: string values?: Record<string, any>
slug?: string query?: string
modeConfig?: ModeConfig slug?: string
timeout?: number modeConfig?: ModeConfig
azureAiDeployment?: { timeout?: number
modelId: string azureAiDeployment?: {
name: string modelId: string
apiVersion: string name: string
modelMeshName?: string apiVersion: string
} modelMeshName?: string
}
} }
export type ClineAskResponse = "yesButtonClicked" | "noButtonClicked" | "messageResponse" export type ClineAskResponse = "yesButtonClicked" | "noButtonClicked" | "messageResponse"