@@ -9,11 +9,10 @@ import type {
99 ClineMessage ,
1010 MarketplaceItem ,
1111 TodoItem ,
12- ClineSay ,
13- FileChangeset ,
1412 CloudUserInfo ,
1513 OrganizationAllowList ,
1614 ShareVisibility ,
15+ QueuedMessage ,
1716} from "@roo-code/types"
1817
1918import { GitCommit } from "../utils/git"
@@ -59,12 +58,9 @@ export interface LanguageModelChatSelector {
5958 id ?: string
6059}
6160
62- /**
63- * Message sent from the VS Code extension to the webview UI.
64- * The 'type' union below enumerates outbound notifications and data updates
65- * (e.g., "state", "theme", "indexingStatusUpdate", "filesChanged") that the
66- * webview consumes to render and synchronize state. See the full union below.
67- */
61+ // Represents JSON data that is sent from extension to webview, called
62+ // ExtensionMessage and has 'type' enum which can be 'plusButtonClicked' or
63+ // 'settingsButtonClicked' or 'hello'. Webview will hold state.
6864export interface ExtensionMessage {
6965 type :
7066 | "action"
@@ -128,11 +124,9 @@ export interface ExtensionMessage {
128124 | "commands"
129125 | "insertTextIntoTextarea"
130126 | "filesChanged"
131- | "checkpointCreated"
132- | "checkpointRestored"
133- | "say"
134127 text ?: string
135128 payload ?: any // Add a generic payload for now, can refine later
129+ filesChanged ?: any // Files changed data
136130 action ?:
137131 | "chatButtonClicked"
138132 | "mcpButtonClicked"
@@ -205,10 +199,7 @@ export interface ExtensionMessage {
205199 messageTs ?: number
206200 context ?: string
207201 commands ?: Command [ ]
208- filesChanged ?: FileChangeset // Added filesChanged property
209- checkpoint ?: string // For checkpointCreated and checkpointRestored messages
210- previousCheckpoint ?: string // For checkpoint_created message
211- say ?: ClineSay // Added say property
202+ queuedMessages ?: QueuedMessage [ ]
212203}
213204
214205export type ExtensionState = Pick <
@@ -232,8 +223,10 @@ export type ExtensionState = Pick<
232223 | "alwaysAllowMcp"
233224 | "alwaysAllowModeSwitch"
234225 | "alwaysAllowSubtasks"
226+ | "alwaysAllowFollowupQuestions"
235227 | "alwaysAllowExecute"
236228 | "alwaysAllowUpdateTodoList"
229+ | "followupAutoApproveTimeoutMs"
237230 | "allowedCommands"
238231 | "deniedCommands"
239232 | "allowedMaxRequests"
@@ -242,6 +235,7 @@ export type ExtensionState = Pick<
242235 | "browserViewportSize"
243236 | "screenshotQuality"
244237 | "remoteBrowserEnabled"
238+ | "cachedChromeHostUrl"
245239 | "remoteBrowserHost"
246240 // | "enableCheckpoints" // Optional in GlobalSettings, required here.
247241 | "ttsEnabled"
@@ -287,12 +281,14 @@ export type ExtensionState = Pick<
287281 | "maxDiagnosticMessages"
288282 | "remoteControlEnabled"
289283 | "openRouterImageGenerationSelectedModel"
284+ | "includeTaskHistoryInEnhance"
290285> & {
291286 version : string
287+ filesChangedEnabled : boolean
292288 clineMessages : ClineMessage [ ]
293289 currentTaskItem ?: HistoryItem
294290 currentTaskTodos ?: TodoItem [ ] // Initial todos for the current task
295- apiConfiguration ? : ProviderSettings
291+ apiConfiguration : ProviderSettings
296292 uriScheme ?: string
297293 shouldShowAnnouncement : boolean
298294
@@ -340,8 +336,14 @@ export type ExtensionState = Pick<
340336 marketplaceInstalledMetadata ?: { project : Record < string , any > ; global : Record < string , any > }
341337 profileThresholds : Record < string , number >
342338 hasOpenedModeSelector : boolean
343- filesChangedEnabled : boolean
344339 openRouterImageApiKey ?: string
340+ openRouterUseMiddleOutTransform ?: boolean
341+ messageQueue ?: QueuedMessage [ ]
342+ lastShownAnnouncementId ?: string
343+ apiModelId ?: string
344+ mcpServers ?: McpServer [ ]
345+ hasSystemPromptOverride ?: boolean
346+ mdmCompliant ?: boolean
345347}
346348
347349export interface ClineSayTool {
0 commit comments