@@ -60,6 +60,7 @@ export const codeSpecOptionsAndSubcommands = [
60
60
'--version' ,
61
61
'--wait' ,
62
62
'tunnel' ,
63
+ 'chat' ,
63
64
'serve-web' ,
64
65
'help' ,
65
66
'status' ,
@@ -119,6 +120,11 @@ export function createCodeTestSpecs(executable: string): ITestSpec[] {
119
120
{ input : `${ executable } --category |` , expectedCompletions : categoryOptions } ,
120
121
{ input : `${ executable } --category a|` , expectedCompletions : categoryOptions } ,
121
122
123
+ // Chat subcommand tests
124
+ { input : `${ executable } chat |` } ,
125
+ { input : `${ executable } chat --mode |` , expectedCompletions : [ 'agent' , 'ask' , 'edit' ] } ,
126
+ { input : `${ executable } chat --add-file |` , expectedResourceRequests : { type : 'files' , cwd : testPaths . cwd } } ,
127
+
122
128
// Middle of command
123
129
{ input : `${ executable } | --locale` , expectedCompletions : codeSpecOptionsAndSubcommands , expectedResourceRequests : { type : 'both' , cwd : testPaths . cwd } } ,
124
130
] ;
@@ -177,6 +183,7 @@ export function createCodeTunnelTestSpecs(executable: string): ITestSpec[] {
177
183
'-s' ,
178
184
'-v' ,
179
185
'-w' ,
186
+ 'chat' ,
180
187
'ext' ,
181
188
'help' ,
182
189
'serve-web' ,
@@ -273,6 +280,9 @@ export function createCodeTunnelTestSpecs(executable: string): ITestSpec[] {
273
280
{ input : `${ executable } tunnel unregister |` , expectedCompletions : [ ...commonFlags ] } ,
274
281
{ input : `${ executable } tunnel service |` , expectedCompletions : [ ...commonFlags , 'help' , 'install' , 'log' , 'uninstall' ] } ,
275
282
{ input : `${ executable } tunnel help |` , expectedCompletions : helpSubcommands } ,
283
+ { input : `${ executable } chat |` , expectedCompletions : [ '--mode <mode>' , '--add-file <file>' , '--help' , '-m <mode>' , '-a <file>' , '-h' ] } ,
284
+ { input : `${ executable } chat --mode |` , expectedCompletions : [ 'agent' , 'ask' , 'edit' ] } ,
285
+ { input : `${ executable } chat --add-file |` , expectedResourceRequests : { type : 'files' , cwd : testPaths . cwd } } ,
276
286
{ input : `${ executable } serve-web |` , expectedCompletions : serveWebSubcommandsAndFlags } ,
277
287
{ input : `${ executable } ext |` , expectedCompletions : extSubcommands } ,
278
288
{ input : `${ executable } ext list |` , expectedCompletions : [ ...commonFlags , '--category [<category>]' , '--show-versions' ] } ,
0 commit comments