File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -593,10 +593,10 @@ export namespace Server {
593593 } ,
594594 )
595595 . post (
596- "/session/:id/command " ,
596+ "/session/:id/bash " ,
597597 describeRoute ( {
598598 description : "Run a bash command" ,
599- operationId : "session.chat " ,
599+ operationId : "session.bash " ,
600600 responses : {
601601 200 : {
602602 description : "Created message" ,
@@ -618,7 +618,7 @@ export namespace Server {
618618 async ( c ) => {
619619 const sessionID = c . req . valid ( "param" ) . id
620620 const body = c . req . valid ( "json" )
621- const msg = await Session . command ( { ...body , sessionID } )
621+ const msg = await Session . bash ( { ...body , sessionID } )
622622 return c . json ( msg )
623623 } ,
624624 )
Original file line number Diff line number Diff line change @@ -1005,7 +1005,7 @@ export namespace Session {
10051005 command : z . string ( ) ,
10061006 } )
10071007 export type CommandInput = z . infer < typeof CommandInput >
1008- export async function command ( input : CommandInput ) {
1008+ export async function bash ( input : CommandInput ) {
10091009 using abort = lock ( input . sessionID )
10101010 const msg : MessageV2 . Assistant = {
10111011 id : Identifier . ascending ( "message" ) ,
You can’t perform that action at this time.
0 commit comments