@@ -588,8 +588,7 @@ export class SymphonyOrchestrator {
588588 let turnCompleted = false ;
589589
590590 // Set turn timeout
591- let timer : ReturnType < typeof setTimeout > ;
592- timer = setTimeout ( ( ) => {
591+ const timer = setTimeout ( ( ) => {
593592 if ( ! turnCompleted ) {
594593 logger . warn ( 'Agent turn timeout' , {
595594 identifier : issue . identifier ,
@@ -696,23 +695,26 @@ export class SymphonyOrchestrator {
696695 }
697696
698697 private handleAgentMessage (
699- msg : any ,
698+ msg : Record < string , unknown > ,
700699 issue : LinearIssue ,
701700 _run : RunningIssue
702701 ) : void {
702+ const params = msg . params as Record < string , unknown > | undefined ;
703+
703704 if ( msg . method === 'item/commandExecution/started' ) {
704705 logger . debug ( 'Agent tool use' , {
705706 identifier : issue . identifier ,
706- tool : msg . params ?. tool ,
707+ tool : ( params as Record < string , unknown > ) ?. tool ,
707708 } ) ;
708709 }
709710
710711 if ( msg . method === 'turn/completed' ) {
711- const output = msg . params ?. result ?. output ;
712+ const result = params ?. result as Record < string , unknown > | undefined ;
713+ const output = result ?. output ;
712714 if ( Array . isArray ( output ) ) {
713715 const text = output
714- . filter ( ( b : any ) => b . type === 'text' )
715- . map ( ( b : any ) => b . text )
716+ . filter ( ( b : Record < string , unknown > ) => b . type === 'text' )
717+ . map ( ( b : Record < string , unknown > ) => b . text )
716718 . join ( '\n' ) ;
717719 if ( text ) {
718720 logger . info ( 'Agent completed' , {
0 commit comments