@@ -559,13 +559,17 @@ async function generateCodebaseContext(): Promise<string> {
559559 lines . push ( ` -> Your team strongly prefers ${ primary . name } ` ) ;
560560 if ( alternatives . length ) {
561561 const alt = alternatives [ 0 ] ;
562- lines . push ( ` -> Minority pattern: ${ alt . name } (${ alt . frequency } ) - avoid for new code` ) ;
562+ lines . push (
563+ ` -> Minority pattern: ${ alt . name } (${ alt . frequency } ) - avoid for new code`
564+ ) ;
563565 }
564566 } else if ( percentage >= 60 ) {
565567 lines . push ( `### ${ categoryName } : **${ primary . name } ** (${ primary . frequency } - majority)` ) ;
566568 lines . push ( ` -> Most code uses ${ primary . name } , but not unanimous` ) ;
567569 if ( alternatives . length ) {
568- lines . push ( ` -> Also detected: ${ alternatives [ 0 ] . name } (${ alternatives [ 0 ] . frequency } )` ) ;
570+ lines . push (
571+ ` -> Also detected: ${ alternatives [ 0 ] . name } (${ alternatives [ 0 ] . frequency } )`
572+ ) ;
569573 }
570574 } else {
571575 // Split decision
@@ -818,8 +822,9 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
818822 text : JSON . stringify (
819823 {
820824 status : 'error' ,
821- message : `Auto-heal retry failed: ${ retryError instanceof Error ? retryError . message : String ( retryError )
822- } `
825+ message : `Auto-heal retry failed: ${
826+ retryError instanceof Error ? retryError . message : String ( retryError )
827+ } `
823828 } ,
824829 null ,
825830 2
@@ -1205,20 +1210,20 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
12051210 lastIndexed : indexState . lastIndexed ?. toISOString ( ) ,
12061211 stats : indexState . stats
12071212 ? {
1208- totalFiles : indexState . stats . totalFiles ,
1209- indexedFiles : indexState . stats . indexedFiles ,
1210- totalChunks : indexState . stats . totalChunks ,
1211- duration : `${ ( indexState . stats . duration / 1000 ) . toFixed ( 2 ) } s` ,
1212- incremental : indexState . stats . incremental
1213- }
1213+ totalFiles : indexState . stats . totalFiles ,
1214+ indexedFiles : indexState . stats . indexedFiles ,
1215+ totalChunks : indexState . stats . totalChunks ,
1216+ duration : `${ ( indexState . stats . duration / 1000 ) . toFixed ( 2 ) } s` ,
1217+ incremental : indexState . stats . incremental
1218+ }
12141219 : undefined ,
12151220 progress : progress
12161221 ? {
1217- phase : progress . phase ,
1218- percentage : progress . percentage ,
1219- filesProcessed : progress . filesProcessed ,
1220- totalFiles : progress . totalFiles
1221- }
1222+ phase : progress . phase ,
1223+ percentage : progress . percentage ,
1224+ filesProcessed : progress . filesProcessed ,
1225+ totalFiles : progress . totalFiles
1226+ }
12221227 : undefined ,
12231228 error : indexState . error ,
12241229 hint : 'Use refresh_index to manually trigger re-indexing when needed.'
0 commit comments