@@ -54,10 +54,10 @@ pub trait Client {
5454 args : ReadTextFileRequest ,
5555 ) -> impl Future < Output = Result < ReadTextFileResponse , Error > > ;
5656
57- fn new_terminal (
57+ fn create_terminal (
5858 & self ,
59- args : NewTerminalRequest ,
60- ) -> impl Future < Output = Result < NewTerminalResponse , Error > > ;
59+ args : CreateTerminalRequest ,
60+ ) -> impl Future < Output = Result < CreateTerminalResponse , Error > > ;
6161
6262 fn terminal_output (
6363 & self ,
@@ -277,9 +277,9 @@ impl std::fmt::Display for TerminalId {
277277}
278278
279279#[ derive( Debug , Clone , Serialize , Deserialize , JsonSchema ) ]
280- #[ schemars( extend( "x-side" = "client" , "x-method" = "terminal/new " ) ) ]
280+ #[ schemars( extend( "x-side" = "client" , "x-method" = "terminal/create " ) ) ]
281281#[ serde( rename_all = "camelCase" ) ]
282- pub struct NewTerminalRequest {
282+ pub struct CreateTerminalRequest {
283283 pub session_id : SessionId ,
284284 pub command : String ,
285285 #[ serde( default , skip_serializing_if = "Vec::is_empty" ) ]
@@ -293,9 +293,9 @@ pub struct NewTerminalRequest {
293293}
294294
295295#[ derive( Debug , Clone , Serialize , Deserialize , JsonSchema ) ]
296- #[ schemars( extend( "x-side" = "client" , "x-method" = "terminal/new " ) ) ]
296+ #[ schemars( extend( "x-side" = "client" , "x-method" = "terminal/create " ) ) ]
297297#[ serde( rename_all = "camelCase" ) ]
298- pub struct NewTerminalResponse {
298+ pub struct CreateTerminalResponse {
299299 pub terminal_id : TerminalId ,
300300}
301301
@@ -396,7 +396,7 @@ pub struct ClientMethodNames {
396396 /// Method for reading text files.
397397 pub fs_read_text_file : & ' static str ,
398398 /// Method for creating new terminals.
399- pub terminal_new : & ' static str ,
399+ pub terminal_create : & ' static str ,
400400 /// Method for getting terminals output.
401401 pub terminal_output : & ' static str ,
402402 /// Method for releasing a terminal.
@@ -411,7 +411,7 @@ pub const CLIENT_METHOD_NAMES: ClientMethodNames = ClientMethodNames {
411411 session_request_permission : SESSION_REQUEST_PERMISSION_METHOD_NAME ,
412412 fs_write_text_file : FS_WRITE_TEXT_FILE_METHOD_NAME ,
413413 fs_read_text_file : FS_READ_TEXT_FILE_METHOD_NAME ,
414- terminal_new : TERMINAL_NEW_METHOD_NAME ,
414+ terminal_create : TERMINAL_CREATE_METHOD_NAME ,
415415 terminal_output : TERMINAL_OUTPUT_METHOD_NAME ,
416416 terminal_release : TERMINAL_RELEASE_METHOD_NAME ,
417417 terminal_wait_for_exit : TERMINAL_WAIT_FOR_EXIT_METHOD_NAME ,
@@ -426,7 +426,7 @@ pub(crate) const FS_WRITE_TEXT_FILE_METHOD_NAME: &str = "fs/write_text_file";
426426/// Method name for reading text files.
427427pub ( crate ) const FS_READ_TEXT_FILE_METHOD_NAME : & str = "fs/read_text_file" ;
428428/// Method name for creating a new terminal.
429- pub ( crate ) const TERMINAL_NEW_METHOD_NAME : & str = "terminal/new " ;
429+ pub ( crate ) const TERMINAL_CREATE_METHOD_NAME : & str = "terminal/create " ;
430430/// Method for getting terminals output.
431431pub ( crate ) const TERMINAL_OUTPUT_METHOD_NAME : & str = "terminal/output" ;
432432/// Method for releasing a terminal.
@@ -447,7 +447,7 @@ pub enum AgentRequest {
447447 WriteTextFileRequest ( WriteTextFileRequest ) ,
448448 ReadTextFileRequest ( ReadTextFileRequest ) ,
449449 RequestPermissionRequest ( RequestPermissionRequest ) ,
450- NewTerminalRequest ( NewTerminalRequest ) ,
450+ CreateTerminalRequest ( CreateTerminalRequest ) ,
451451 TerminalOutputRequest ( TerminalOutputRequest ) ,
452452 ReleaseTerminalRequest ( ReleaseTerminalRequest ) ,
453453 WaitForTerminalExitRequest ( WaitForTerminalExitRequest ) ,
@@ -466,7 +466,7 @@ pub enum ClientResponse {
466466 WriteTextFileResponse ,
467467 ReadTextFileResponse ( ReadTextFileResponse ) ,
468468 RequestPermissionResponse ( RequestPermissionResponse ) ,
469- NewTerminalResponse ( NewTerminalResponse ) ,
469+ CreateTerminalResponse ( CreateTerminalResponse ) ,
470470 TerminalOutputResponse ( TerminalOutputResponse ) ,
471471 ReleaseTerminalResponse ,
472472 WaitForTerminalExitResponse ( WaitForTerminalExitResponse ) ,
0 commit comments