@@ -132,6 +132,7 @@ vi.mock('./config/config.js', () => ({
132132 getQuestion : vi . fn ( ( ) => '' ) ,
133133 isInteractive : ( ) => false ,
134134 getHookRegistry : vi . fn ( ( ) => null ) ,
135+ getHookSystem : vi . fn ( ( ) => null ) ,
135136 getDisabledHooks : vi . fn ( ( ) => [ ] ) ,
136137 } as unknown as Config ) ,
137138 parseArguments : vi . fn ( ) . mockResolvedValue ( { } ) ,
@@ -272,6 +273,7 @@ describe('gemini.tsx main function', () => {
272273 getExtensions : ( ) => [ ] ,
273274 getUsageStatisticsEnabled : ( ) => false ,
274275 getHookRegistry : vi . fn ( ( ) => null ) ,
276+ getHookSystem : vi . fn ( ( ) => null ) ,
275277 getDisabledHooks : vi . fn ( ( ) => [ ] ) ,
276278 } as unknown as Config ;
277279 } ) ;
@@ -506,6 +508,7 @@ describe('gemini.tsx main function kitty protocol', () => {
506508 getExtensions : ( ) => [ ] ,
507509 getUsageStatisticsEnabled : ( ) => false ,
508510 getHookRegistry : vi . fn ( ( ) => null ) ,
511+ getHookSystem : vi . fn ( ( ) => null ) ,
509512 getDisabledHooks : vi . fn ( ( ) => [ ] ) ,
510513 } as unknown as Config ) ;
511514 vi . mocked ( loadSettings ) . mockReturnValue ( {
@@ -762,6 +765,7 @@ describe('gemini.tsx main function kitty protocol', () => {
762765 getFileFilteringRespectGitIgnore : ( ) => true ,
763766 getOutputFormat : ( ) => 'text' ,
764767 getUsageStatisticsEnabled : ( ) => false ,
768+ getHookSystem : ( ) => null ,
765769 } as any ) ; // eslint-disable-line @typescript-eslint/no-explicit-any
766770
767771 vi . spyOn ( themeManager , 'setActiveTheme' ) . mockReturnValue ( false ) ;
@@ -990,6 +994,7 @@ describe('gemini.tsx main function kitty protocol', () => {
990994 getFileFilteringRespectGitIgnore : ( ) => true ,
991995 getOutputFormat : ( ) => 'text' ,
992996 getUsageStatisticsEnabled : ( ) => false ,
997+ getHookSystem : ( ) => null ,
993998 } as any ) ; // eslint-disable-line @typescript-eslint/no-explicit-any
994999
9951000 vi . mock ( './utils/readStdin.js' , ( ) => ( {
@@ -1148,6 +1153,7 @@ describe('gemini.tsx main function exit codes', () => {
11481153 getOutputFormat : ( ) => 'text' ,
11491154 getExtensions : ( ) => [ ] ,
11501155 getUsageStatisticsEnabled : ( ) => false ,
1156+ getHookSystem : ( ) => null ,
11511157 } as unknown as Config ) ;
11521158 vi . mocked ( loadSettings ) . mockReturnValue ( {
11531159 merged : { security : { auth : { } } , ui : { } } ,
@@ -1209,6 +1215,7 @@ describe('gemini.tsx main function exit codes', () => {
12091215 getOutputFormat : ( ) => 'text' ,
12101216 getExtensions : ( ) => [ ] ,
12111217 getUsageStatisticsEnabled : ( ) => false ,
1218+ getHookSystem : ( ) => null ,
12121219 } as unknown as Config ) ;
12131220 vi . mocked ( loadSettings ) . mockReturnValue ( {
12141221 merged : { security : { auth : { } } , ui : { } } ,
@@ -1273,6 +1280,7 @@ describe('startInteractiveUI', () => {
12731280 getScreenReader : ( ) => false ,
12741281 getDebugMode : ( ) => false ,
12751282 getHookRegistry : vi . fn ( ( ) => null ) ,
1283+ getHookSystem : vi . fn ( ( ) => null ) ,
12761284 getDisabledHooks : vi . fn ( ( ) => [ ] ) ,
12771285 } as unknown as Config ;
12781286 const mockSettings = {
0 commit comments