@@ -60,7 +60,7 @@ describe('Secret Scanning Hook Templates', () => {
6060 const template = getSecretPromptTemplateUnix ( ) ;
6161
6262 expect ( template . startsWith ( '#!/bin/bash' ) ) . toBe ( true ) ;
63- expect ( template . includes ( 'sonar hook agent -prompt-submit' ) ) . toBe ( true ) ;
63+ expect ( template . includes ( 'sonar hook claude -prompt-submit' ) ) . toBe ( true ) ;
6464 expect ( template . includes ( UNIX_SONAR_COMMAND_GUARD ) ) . toBe ( true ) ;
6565 } ) ;
6666
@@ -74,7 +74,7 @@ describe('Secret Scanning Hook Templates', () => {
7474 it ( 'UserPromptSubmit Windows hook: delegates to sonar hook' , ( ) => {
7575 const template = getSecretPromptTemplateWindows ( ) ;
7676
77- expect ( template . includes ( 'sonar hook agent -prompt-submit' ) ) . toBe ( true ) ;
77+ expect ( template . includes ( 'sonar hook claude -prompt-submit' ) ) . toBe ( true ) ;
7878 expect ( template . includes ( WINDOWS_SONAR_COMMAND_GUARD ) ) . toBe ( true ) ;
7979 } ) ;
8080} ) ;
@@ -84,7 +84,7 @@ describe('SQAA PostToolUse Hook Templates', () => {
8484 const template = getSqaaPostToolTemplateUnix ( 'my-project' ) ;
8585
8686 expect ( template . startsWith ( '#!/bin/bash' ) ) . toBe ( true ) ;
87- expect ( template . includes ( 'sonar hook agent -post-tool-use' ) ) . toBe ( true ) ;
87+ expect ( template . includes ( 'sonar hook claude -post-tool-use' ) ) . toBe ( true ) ;
8888 expect ( template . includes ( '--project my-project' ) ) . toBe ( true ) ;
8989 expect ( template . includes ( UNIX_SONAR_COMMAND_GUARD ) ) . toBe ( true ) ;
9090 } ) ;
@@ -100,7 +100,7 @@ describe('SQAA PostToolUse Hook Templates', () => {
100100 it ( 'PostTool Windows hook: delegates to sonar hook with project key' , ( ) => {
101101 const template = getSqaaPostToolTemplateWindows ( 'my-project' ) ;
102102
103- expect ( template . includes ( 'sonar hook agent -post-tool-use' ) ) . toBe ( true ) ;
103+ expect ( template . includes ( 'sonar hook claude -post-tool-use' ) ) . toBe ( true ) ;
104104 expect ( template . includes ( '--project my-project' ) ) . toBe ( true ) ;
105105 expect ( template . includes ( WINDOWS_SONAR_COMMAND_GUARD ) ) . toBe ( true ) ;
106106 } ) ;
@@ -150,11 +150,11 @@ describe('Template Integrity', () => {
150150 } ) ;
151151 } ) ;
152152
153- it ( 'SQAA template routes to agent -post-tool-use, secrets templates route to other events' , ( ) => {
154- expect ( getSqaaPostToolTemplateUnix ( 'proj' ) . includes ( 'agent -post-tool-use' ) ) . toBe ( true ) ;
155- expect ( getSqaaPostToolTemplateWindows ( 'proj' ) . includes ( 'agent -post-tool-use' ) ) . toBe ( true ) ;
153+ it ( 'SQAA template routes to claude -post-tool-use, secrets templates route to other events' , ( ) => {
154+ expect ( getSqaaPostToolTemplateUnix ( 'proj' ) . includes ( 'claude -post-tool-use' ) ) . toBe ( true ) ;
155+ expect ( getSqaaPostToolTemplateWindows ( 'proj' ) . includes ( 'claude -post-tool-use' ) ) . toBe ( true ) ;
156156
157- expect ( getSecretPreToolTemplateUnix ( ) . includes ( 'agent -post-tool-use' ) ) . toBe ( false ) ;
158- expect ( getSecretPromptTemplateUnix ( ) . includes ( 'agent -post-tool-use' ) ) . toBe ( false ) ;
157+ expect ( getSecretPreToolTemplateUnix ( ) . includes ( 'claude -post-tool-use' ) ) . toBe ( false ) ;
158+ expect ( getSecretPromptTemplateUnix ( ) . includes ( 'claude -post-tool-use' ) ) . toBe ( false ) ;
159159 } ) ;
160160} ) ;
0 commit comments