@@ -641,3 +641,140 @@ export type WebViewMessagePayload =
641641 | InstallMarketplaceItemWithParametersPayload
642642 | UpdateTodoListPayload
643643 | EditQueuedMessagePayload
644+
645+ export interface IndexingStatus {
646+ systemStatus : string
647+ message ?: string
648+ processedItems : number
649+ totalItems : number
650+ currentItemUnit ?: string
651+ workspacePath ?: string
652+ }
653+
654+ export interface IndexingStatusUpdateMessage {
655+ type : "indexingStatusUpdate"
656+ values : IndexingStatus
657+ }
658+
659+ export interface LanguageModelChatSelector {
660+ vendor ?: string
661+ family ?: string
662+ version ?: string
663+ id ?: string
664+ }
665+
666+ export interface ClineSayTool {
667+ tool :
668+ | "editedExistingFile"
669+ | "appliedDiff"
670+ | "newFileCreated"
671+ | "codebaseSearch"
672+ | "readFile"
673+ | "fetchInstructions"
674+ | "listFilesTopLevel"
675+ | "listFilesRecursive"
676+ | "searchFiles"
677+ | "switchMode"
678+ | "newTask"
679+ | "finishTask"
680+ | "generateImage"
681+ | "imageGenerated"
682+ | "runSlashCommand"
683+ | "updateTodoList"
684+ path ?: string
685+ diff ?: string
686+ content ?: string
687+ // Unified diff statistics computed by the extension
688+ diffStats ?: { added : number ; removed : number }
689+ regex ?: string
690+ filePattern ?: string
691+ mode ?: string
692+ reason ?: string
693+ isOutsideWorkspace ?: boolean
694+ isProtected ?: boolean
695+ additionalFileCount ?: number // Number of additional files in the same read_file request
696+ lineNumber ?: number
697+ query ?: string
698+ batchFiles ?: Array < {
699+ path : string
700+ lineSnippet : string
701+ isOutsideWorkspace ?: boolean
702+ key : string
703+ content ?: string
704+ } >
705+ batchDiffs ?: Array < {
706+ path : string
707+ changeCount : number
708+ key : string
709+ content : string
710+ // Per-file unified diff statistics computed by the extension
711+ diffStats ?: { added : number ; removed : number }
712+ diffs ?: Array < {
713+ content : string
714+ startLine ?: number
715+ } >
716+ } >
717+ question ?: string
718+ imageData ?: string // Base64 encoded image data for generated images
719+ // Properties for runSlashCommand tool
720+ command ?: string
721+ args ?: string
722+ source ?: string
723+ description ?: string
724+ }
725+
726+ // Must keep in sync with system prompt.
727+ export const browserActions = [
728+ "launch" ,
729+ "click" ,
730+ "hover" ,
731+ "type" ,
732+ "press" ,
733+ "scroll_down" ,
734+ "scroll_up" ,
735+ "resize" ,
736+ "close" ,
737+ "screenshot" ,
738+ ] as const
739+
740+ export type BrowserAction = ( typeof browserActions ) [ number ]
741+
742+ export interface ClineSayBrowserAction {
743+ action : BrowserAction
744+ coordinate ?: string
745+ size ?: string
746+ text ?: string
747+ executedCoordinate ?: string
748+ }
749+
750+ export type BrowserActionResult = {
751+ screenshot ?: string
752+ logs ?: string
753+ currentUrl ?: string
754+ currentMousePosition ?: string
755+ viewportWidth ?: number
756+ viewportHeight ?: number
757+ }
758+
759+ export interface ClineAskUseMcpServer {
760+ serverName : string
761+ type : "use_mcp_tool" | "access_mcp_resource"
762+ toolName ?: string
763+ arguments ?: string
764+ uri ?: string
765+ response ?: string
766+ }
767+
768+ export interface ClineApiReqInfo {
769+ request ?: string
770+ tokensIn ?: number
771+ tokensOut ?: number
772+ cacheWrites ?: number
773+ cacheReads ?: number
774+ cost ?: number
775+ cancelReason ?: ClineApiReqCancelReason
776+ streamingFailedMessage ?: string
777+ apiProtocol ?: "anthropic" | "openai"
778+ }
779+
780+ export type ClineApiReqCancelReason = "streaming_failed" | "user_cancelled"
0 commit comments