File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,10 +24,9 @@ async function main() {
2424 } )
2525
2626 const prompt = flags . _ . join ( " " )
27- const sessionId = `${ format ( new Date ( ) , "yyyyMMdd-HHmmss" ) } -${ crypto . randomUUID ( ) . slice ( 0 , 6 )
28- } `
27+ const sessionId = `${ format ( new Date ( ) , "yyyyMMdd-HHmmss" ) } -${ crypto . randomUUID ( ) . slice ( 0 , 6 ) } `
2928
30- const mode = flags . mode || ( flags . mode !== "beta" ? await determineIntent ( prompt ) : "beta" )
29+ const mode = flags . mode
3130 log . debug ( `Mode selected: ${ mode } ` )
3231
3332 if ( mode === "editor" ) {
@@ -36,12 +35,10 @@ async function main() {
3635 } else if ( mode === "bash" ) {
3736 const session = new BashSession ( sessionId , flags [ "no-agi" ] )
3837 await session . processBashCommand ( prompt )
39- } else if ( mode === "beta" ) {
38+ } else {
39+ // Default to hybrid mode for any other mode value
4040 const session = new HybridSession ( sessionId , flags [ "no-agi" ] )
4141 await session . process ( prompt )
42- } else {
43- console . error ( "Invalid mode specified" )
44- Deno . exit ( 1 )
4542 }
4643}
4744
You can’t perform that action at this time.
0 commit comments