@@ -18,8 +18,8 @@ const HOOKS_DIR = path.join(os.homedir(), '.claude', 'hooks');
1818
1919describe ( 'hook-installer' , ( ) => {
2020 describe ( 'CANONICAL_HOOKS' , ( ) => {
21- it ( 'defines all 11 hooks' , ( ) => {
22- expect ( CANONICAL_HOOKS ) . toHaveLength ( 11 ) ;
21+ it ( 'defines all 12 hooks' , ( ) => {
22+ expect ( CANONICAL_HOOKS ) . toHaveLength ( 12 ) ;
2323 const names = CANONICAL_HOOKS . map ( ( h ) => h . scriptName ) ;
2424 expect ( names ) . toContain ( 'session-rescue.sh' ) ;
2525 expect ( names ) . toContain ( 'stop-checkpoint.js' ) ;
@@ -32,20 +32,22 @@ describe('hook-installer', () => {
3232 expect ( names ) . toContain ( 'team-teammate-idle.js' ) ;
3333 expect ( names ) . toContain ( 'desire-path-trace.js' ) ;
3434 expect ( names ) . toContain ( 'daemon-auto-start.js' ) ;
35+ expect ( names ) . toContain ( 'wiki-update.js' ) ;
3536 } ) ;
3637
3738 it ( 'core hooks are required, optional hooks are not' , ( ) => {
3839 const required = CANONICAL_HOOKS . filter ( ( h ) => h . required ) ;
3940 const optional = CANONICAL_HOOKS . filter ( ( h ) => ! h . required ) ;
4041 expect ( required ) . toHaveLength ( 5 ) ;
41- expect ( optional ) . toHaveLength ( 6 ) ;
42+ expect ( optional ) . toHaveLength ( 7 ) ;
4243 const optionalNames = optional . map ( ( h ) => h . scriptName ) ;
4344 expect ( optionalNames ) . toContain ( 'theory-capture.js' ) ;
4445 expect ( optionalNames ) . toContain ( 'team-subagent-stop.js' ) ;
4546 expect ( optionalNames ) . toContain ( 'team-task-complete.js' ) ;
4647 expect ( optionalNames ) . toContain ( 'team-teammate-idle.js' ) ;
4748 expect ( optionalNames ) . toContain ( 'desire-path-trace.js' ) ;
4849 expect ( optionalNames ) . toContain ( 'daemon-auto-start.js' ) ;
50+ expect ( optionalNames ) . toContain ( 'wiki-update.js' ) ;
4951 } ) ;
5052
5153 it ( 'js hooks have node commandPrefix' , ( ) => {
@@ -351,8 +353,8 @@ describe('hook-installer', () => {
351353 ( g : { matcher ?: string } ) => ! g . matcher
352354 ) ;
353355 expect ( matcherlessGroups ) . toHaveLength ( 1 ) ;
354- // 3 Stop hooks: session-rescue, stop-checkpoint, chime-on-stop
355- expect ( matcherlessGroups [ 0 ] . hooks ) . toHaveLength ( 3 ) ;
356+ // 4 Stop hooks: session-rescue, stop-checkpoint, chime-on-stop, wiki-update
357+ expect ( matcherlessGroups [ 0 ] . hooks ) . toHaveLength ( 4 ) ;
356358 } ) ;
357359 } ) ;
358360
0 commit comments