@@ -50,7 +50,7 @@ function formatDurationMs(ms) {
5050 * Parses token-usage.jsonl content and returns an aggregated summary.
5151 * Computes effective tokens (ET) per model using the GH_AW_MODEL_MULTIPLIERS env var.
5252 * @param {string } jsonlContent - The token-usage.jsonl file content
53- * @returns {{totalInputTokens: number, totalOutputTokens: number, totalCacheReadTokens: number, totalCacheWriteTokens: number, totalRequests: number, totalDurationMs: number, cacheEfficiency: number, totalEffectiveTokens: number, byModel: Object} | null }
53+ * @returns {{totalInputTokens: number, totalOutputTokens: number, totalCacheReadTokens: number, totalCacheWriteTokens: number, totalRequests: number, totalDurationMs: number, totalEffectiveTokens: number, byModel: Object} | null }
5454 */
5555function parseTokenUsageJsonl ( jsonlContent ) {
5656 const summary = {
@@ -60,7 +60,6 @@ function parseTokenUsageJsonl(jsonlContent) {
6060 totalCacheWriteTokens : 0 ,
6161 totalRequests : 0 ,
6262 totalDurationMs : 0 ,
63- cacheEfficiency : 0 ,
6463 totalEffectiveTokens : 0 ,
6564 byModel : { } ,
6665 } ;
@@ -110,11 +109,6 @@ function parseTokenUsageJsonl(jsonlContent) {
110109
111110 if ( summary . totalRequests === 0 ) return null ;
112111
113- const totalInputPlusCacheRead = summary . totalInputTokens + summary . totalCacheReadTokens ;
114- if ( totalInputPlusCacheRead > 0 ) {
115- summary . cacheEfficiency = summary . totalCacheReadTokens / totalInputPlusCacheRead ;
116- }
117-
118112 // Compute effective tokens per model and aggregate total
119113 let totalEffectiveTokens = 0 ;
120114 for ( const [ model , usage ] of Object . entries ( summary . byModel ) ) {
@@ -130,7 +124,7 @@ function parseTokenUsageJsonl(jsonlContent) {
130124/**
131125 * Generates a markdown summary section for token usage data.
132126 * Includes an Effective Tokens (ET) column per model and a ● ET summary line.
133- * @param {{totalInputTokens: number, totalOutputTokens: number, totalCacheReadTokens: number, totalCacheWriteTokens: number, totalRequests: number, totalDurationMs: number, cacheEfficiency: number, totalEffectiveTokens: number, byModel: Object} | null } summary
127+ * @param {{totalInputTokens: number, totalOutputTokens: number, totalCacheReadTokens: number, totalCacheWriteTokens: number, totalRequests: number, totalDurationMs: number, totalEffectiveTokens: number, byModel: Object} | null } summary
134128 * @returns {string } Markdown section, or empty string if no data
135129 */
136130function generateTokenUsageSummary ( summary ) {
@@ -159,14 +153,11 @@ function generateTokenUsageSummary(summary) {
159153 `| **Total** | **${ summary . totalInputTokens . toLocaleString ( ) } ** | **${ summary . totalOutputTokens . toLocaleString ( ) } ** | **${ summary . totalCacheReadTokens . toLocaleString ( ) } ** | **${ summary . totalCacheWriteTokens . toLocaleString ( ) } ** | **${ totalET } ** | **${ summary . totalRequests } ** | **${ formatDurationMs ( summary . totalDurationMs ) } ** |`
160154 ) ;
161155
162- // Footer line with ET summary using ● symbol and optional cache efficiency
156+ // Footer line with ET summary using ● symbol
163157 const footerParts = [ ] ;
164158 if ( summary . totalEffectiveTokens > 0 ) {
165159 footerParts . push ( `● ${ formatET ( Math . round ( summary . totalEffectiveTokens ) ) } ` ) ;
166160 }
167- if ( summary . cacheEfficiency > 0 ) {
168- footerParts . push ( `Cache efficiency: ${ ( summary . cacheEfficiency * 100 ) . toFixed ( 1 ) } %` ) ;
169- }
170161 if ( footerParts . length > 0 ) {
171162 lines . push ( `\n_${ footerParts . join ( " · " ) } _` ) ;
172163 // Disclose the token class weights used to compute ET (required by the ET spec)
0 commit comments