@@ -37,7 +37,6 @@ type ParsedArgs = {
3737 initialPrompt : string | null
3838 agent ?: string
3939 clearLogs : boolean
40- toggleState : 'open' | 'closed' | null
4140}
4241
4342function parseArgs ( ) : ParsedArgs {
@@ -52,10 +51,6 @@ function parseArgs(): ParsedArgs {
5251 'Specify which agent to use (e.g., "base", "ask", "file-picker")' ,
5352 )
5453 . option ( '--clear-logs' , 'Remove any existing CLI log files before starting' )
55- . option (
56- '--toggle <state>' ,
57- 'Force initial toggle state (open | closed)' ,
58- )
5954 . helpOption ( '-h, --help' , 'Show this help message' )
6055 . argument ( '[prompt...]' , 'Initial prompt to send to the agent' )
6156 . allowExcessArguments ( true )
@@ -68,18 +63,10 @@ function parseArgs(): ParsedArgs {
6863 initialPrompt : args . length > 0 ? args . join ( ' ' ) : null ,
6964 agent : options . agent ,
7065 clearLogs : options . clearLogs || false ,
71- toggleState :
72- typeof options . toggle === 'string'
73- ? options . toggle . trim ( ) . toLowerCase ( ) === 'open'
74- ? 'open'
75- : options . toggle . trim ( ) . toLowerCase ( ) === 'closed'
76- ? 'closed'
77- : null
78- : null ,
7966 }
8067}
8168
82- const { initialPrompt, agent, clearLogs, toggleState } = parseArgs ( )
69+ const { initialPrompt, agent, clearLogs } = parseArgs ( )
8370
8471if ( clearLogs ) {
8572 clearLogFile ( )
@@ -135,7 +122,6 @@ const AppWithAsyncAuth = () => {
135122 requireAuth = { requireAuth }
136123 hasInvalidCredentials = { hasInvalidCredentials }
137124 loadedAgentsData = { loadedAgentsData }
138- initialToggleState = { toggleState }
139125 />
140126 )
141127}
0 commit comments