@@ -10,6 +10,7 @@ export type AnyClientRequest =
1010 | StatParams
1111 | GlobSearchParams
1212 | RequestToolCallConfirmationParams
13+ | PushToolCallParams
1314 | UpdateToolCallParams ;
1415export type MessageChunk = {
1516 type : "text" ;
@@ -51,6 +52,7 @@ export type AnyClientResult =
5152 | StatResponse
5253 | GlobSearchResponse
5354 | RequestToolCallConfirmationResponse
55+ | PushToolCallResponse
5456 | UpdateToolCallResponse ;
5557export type StreamMessageChunkResponse = null ;
5658export type FileVersion = number ;
@@ -113,6 +115,11 @@ export interface RequestToolCallConfirmationParams {
113115 confirmation : ToolCallConfirmation ;
114116 threadId : ThreadId ;
115117}
118+ export interface PushToolCallParams {
119+ title : string ;
120+ description : string ;
121+ threadId : ThreadId ;
122+ }
116123export interface UpdateToolCallParams {
117124 content : ToolCallContent | null ;
118125 status : ToolCallStatus ;
@@ -138,6 +145,9 @@ export interface RequestToolCallConfirmationResponse {
138145 id : ToolCallId ;
139146 outcome : ToolCallConfirmationOutcome ;
140147}
148+ export interface PushToolCallResponse {
149+ id : ToolCallId ;
150+ }
141151export interface OpenThreadParams {
142152 threadId : ThreadId ;
143153}
@@ -178,6 +188,7 @@ export interface Client {
178188 requestToolCallConfirmation (
179189 params : RequestToolCallConfirmationParams ,
180190 ) : Promise < RequestToolCallConfirmationResponse > ;
191+ pushToolCall ( params : PushToolCallParams ) : Promise < PushToolCallResponse > ;
181192 updateToolCall ( params : UpdateToolCallParams ) : Promise < UpdateToolCallResponse > ;
182193}
183194
@@ -188,6 +199,7 @@ export const CLIENT_METHODS = new Set([
188199 "stat" ,
189200 "globSearch" ,
190201 "requestToolCallConfirmation" ,
202+ "pushToolCall" ,
191203 "updateToolCall" ,
192204] ) ;
193205
0 commit comments