File tree Expand file tree Collapse file tree 7 files changed +822
-44
lines changed
Expand file tree Collapse file tree 7 files changed +822
-44
lines changed Original file line number Diff line number Diff line change 1111 "session_resume" : " session/resume" ,
1212 "session_set_config_option" : " session/set_config_option" ,
1313 "session_set_mode" : " session/set_mode" ,
14- "session_set_model" : " session/set_model"
14+ "session_set_model" : " session/set_model" ,
15+ "session_stop" : " session/stop"
1516 },
1617 "clientMethods" : {
1718 "fs_read_text_file" : " fs/read_text_file" ,
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import * as fs from "fs/promises";
55import { dirname } from "path" ;
66import * as prettier from "prettier" ;
77
8- const CURRENT_SCHEMA_RELEASE = "v0.10.8 " ;
8+ const CURRENT_SCHEMA_RELEASE = "v0.11.0 " ;
99
1010await main ( ) ;
1111
Original file line number Diff line number Diff line change @@ -399,7 +399,7 @@ export class TerminalHandle {
399399 *
400400 * Useful for implementing timeouts or cancellation.
401401 */
402- async kill ( ) : Promise < schema . KillTerminalCommandResponse > {
402+ async kill ( ) : Promise < schema . KillTerminalResponse > {
403403 return (
404404 ( await this . #connection. sendRequest ( schema . CLIENT_METHODS . terminal_kill , {
405405 sessionId : this . #sessionId,
@@ -503,8 +503,7 @@ export class ClientSideConnection implements Agent {
503503 return client . waitForTerminalExit ?.( validatedParams ) ;
504504 }
505505 case schema . CLIENT_METHODS . terminal_kill : {
506- const validatedParams =
507- validate . zKillTerminalCommandRequest . parse ( params ) ;
506+ const validatedParams = validate . zKillTerminalRequest . parse ( params ) ;
508507 const result = await client . killTerminal ?.( validatedParams ) ;
509508 return result ?? { } ;
510509 }
@@ -1384,8 +1383,8 @@ export interface Client {
13841383 * @see {@link https://agentclientprotocol.com/protocol/terminals#killing-commands | Killing Commands }
13851384 */
13861385 killTerminal ?(
1387- params : schema . KillTerminalCommandRequest ,
1388- ) : Promise < schema . KillTerminalCommandResponse | void > ;
1386+ params : schema . KillTerminalRequest ,
1387+ ) : Promise < schema . KillTerminalResponse | void > ;
13891388
13901389 /**
13911390 * Extension method
Original file line number Diff line number Diff line change @@ -7,9 +7,14 @@ export type {
77 AgentResponse ,
88 Annotations ,
99 AudioContent ,
10+ AuthCapabilities ,
1011 AuthenticateRequest ,
1112 AuthenticateResponse ,
13+ AuthEnvVar ,
1214 AuthMethod ,
15+ AuthMethodAgent ,
16+ AuthMethodEnvVar ,
17+ AuthMethodTerminal ,
1318 AvailableCommand ,
1419 AvailableCommandInput ,
1520 AvailableCommandsUpdate ,
@@ -37,16 +42,16 @@ export type {
3742 ExtNotification ,
3843 ExtRequest ,
3944 ExtResponse ,
40- FileSystemCapability ,
45+ FileSystemCapabilities ,
4146 ForkSessionRequest ,
4247 ForkSessionResponse ,
4348 HttpHeader ,
4449 ImageContent ,
4550 Implementation ,
4651 InitializeRequest ,
4752 InitializeResponse ,
48- KillTerminalCommandRequest ,
49- KillTerminalCommandResponse ,
53+ KillTerminalRequest ,
54+ KillTerminalResponse ,
5055 ListSessionsRequest ,
5156 ListSessionsResponse ,
5257 LoadSessionRequest ,
@@ -105,6 +110,7 @@ export type {
105110 SessionModeState ,
106111 SessionNotification ,
107112 SessionResumeCapabilities ,
113+ SessionStopCapabilities ,
108114 SessionUpdate ,
109115 SetSessionConfigOptionRequest ,
110116 SetSessionConfigOptionResponse ,
@@ -113,6 +119,8 @@ export type {
113119 SetSessionModeRequest ,
114120 SetSessionModeResponse ,
115121 StopReason ,
122+ StopSessionRequest ,
123+ StopSessionResponse ,
116124 Terminal ,
117125 TerminalExitStatus ,
118126 TerminalOutputRequest ,
@@ -148,6 +156,7 @@ export const AGENT_METHODS = {
148156 session_set_config_option : "session/set_config_option" ,
149157 session_set_mode : "session/set_mode" ,
150158 session_set_model : "session/set_model" ,
159+ session_stop : "session/stop" ,
151160} as const ;
152161
153162export const CLIENT_METHODS = {
You can’t perform that action at this time.
0 commit comments