@@ -12,7 +12,7 @@ import automaticToolIds from './automaticTools.json';
1212
1313/** Set of tool IDs that Copilot uses autonomously (reading files, searching, etc.).
1414 * These are excluded from fluency scoring since the user doesn't configure them. */
15- const AUTOMATIC_TOOL_SET = new Set < string > ( automaticToolIds ) ;
15+ const AUTOMATIC_TOOL_SET = new Set < string > ( ( automaticToolIds as string [ ] ) . map ( id => id . toLowerCase ( ) ) ) ;
1616
1717/** Format a number with thousand separators for display. */
1818function fmt ( n : number ) : string {
@@ -445,7 +445,7 @@ export function calculateFluencyScoreForTeamMember(fd: {
445445 const hasModelSwitching = fd . mixedTierSessions > 0 || switchingFrequency > 0 ;
446446 const hasAgentMode = fd . agentModeCount > 0 ;
447447 const toolCount = Object . keys ( fd . toolCallsByTool ) . length ;
448- const nonAutoToolCount = Object . keys ( fd . toolCallsByTool ) . filter ( t => ! AUTOMATIC_TOOL_SET . has ( t ) ) . length ;
448+ const nonAutoToolCount = Object . keys ( fd . toolCallsByTool ) . filter ( t => ! AUTOMATIC_TOOL_SET . has ( t . toLowerCase ( ) ) ) . length ;
449449 const avgFilesPerSession = fd . filesPerEditCount > 0 ? fd . filesPerEditSum / fd . filesPerEditCount : 0 ;
450450 const avgApplyRate = fd . applyRateCount > 0 ? fd . applyRateSum / fd . applyRateCount : 0 ;
451451 const totalContextRefs = fd . ctxFile + fd . ctxSelection + fd . ctxSymbol + fd . ctxCodebase + fd . ctxWorkspace ;
@@ -861,7 +861,7 @@ export async function calculateMaturityScores(lastCustomizationMatrix: Workspace
861861
862862 // Diverse tool usage in agent mode
863863 const toolCount = Object . keys ( p . toolCalls . byTool ) . length ;
864- const nonAutoToolCount = Object . keys ( p . toolCalls . byTool ) . filter ( t => ! AUTOMATIC_TOOL_SET . has ( t ) ) . length ;
864+ const nonAutoToolCount = Object . keys ( p . toolCalls . byTool ) . filter ( t => ! AUTOMATIC_TOOL_SET . has ( t . toLowerCase ( ) ) ) . length ;
865865 if ( p . modeUsage . agent >= 10 && nonAutoToolCount >= 3 ) {
866866 agStage = 3 ;
867867 }
0 commit comments