@@ -20,7 +20,7 @@ export interface DistillTool {
2020
2121export interface CompressTool {
2222 enabled : boolean
23- showSummary : boolean
23+ showCompression : boolean
2424}
2525
2626export interface ToolSettings {
@@ -112,7 +112,7 @@ export const VALID_CONFIG_KEYS = new Set([
112112 "tools.distill.showDistillation" ,
113113 "tools.compress" ,
114114 "tools.compress.enabled" ,
115- "tools.compress.showSummary " ,
115+ "tools.compress.showCompression " ,
116116 "strategies" ,
117117 // strategies.deduplication
118118 "strategies.deduplication" ,
@@ -317,13 +317,13 @@ function validateConfigTypes(config: Record<string, any>): ValidationError[] {
317317 } )
318318 }
319319 if (
320- tools . compress . showSummary !== undefined &&
321- typeof tools . compress . showSummary !== "boolean"
320+ tools . compress . showCompression !== undefined &&
321+ typeof tools . compress . showCompression !== "boolean"
322322 ) {
323323 errors . push ( {
324- key : "tools.compress.showSummary " ,
324+ key : "tools.compress.showCompression " ,
325325 expected : "boolean" ,
326- actual : typeof tools . compress . showSummary ,
326+ actual : typeof tools . compress . showCompression ,
327327 } )
328328 }
329329 }
@@ -480,7 +480,7 @@ const defaultConfig: PluginConfig = {
480480 } ,
481481 compress : {
482482 enabled : true ,
483- showSummary : true ,
483+ showCompression : true ,
484484 } ,
485485 } ,
486486 strategies : {
@@ -656,7 +656,7 @@ function mergeTools(
656656 } ,
657657 compress : {
658658 enabled : override . compress ?. enabled ?? base . compress . enabled ,
659- showSummary : override . compress ?. showSummary ?? base . compress . showSummary ,
659+ showCompression : override . compress ?. showCompression ?? base . compress . showCompression ,
660660 } ,
661661 }
662662}
0 commit comments