Skip to content

Commit 22f5848

Browse files
committed
Rename compress tool config from showSummary to showCompression
1 parent d66a6c2 commit 22f5848

4 files changed

Lines changed: 12 additions & 12 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ DCP uses its own config file:
112112
"compress": {
113113
"enabled": true,
114114
// Show summary content as an ignored message notification
115-
"showSummary": true,
115+
"showCompression": true,
116116
},
117117
},
118118
// Automatic pruning strategies

dcp.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
"default": true,
133133
"description": "Enable the compress tool"
134134
},
135-
"showSummary": {
135+
"showCompression": {
136136
"type": "boolean",
137137
"default": true,
138138
"description": "Show summary output in the UI"

lib/config.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export interface DistillTool {
2020

2121
export interface CompressTool {
2222
enabled: boolean
23-
showSummary: boolean
23+
showCompression: boolean
2424
}
2525

2626
export 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
}

lib/ui/notification.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ export async function sendCompressNotification(
145145
} else {
146146
message += ` condensed`
147147
}
148-
if (config.tools.compress.showSummary) {
149-
message += `\n→ Summary: ${summary}`
148+
if (config.tools.compress.showCompression) {
149+
message += `\n→ Compression: ${summary}`
150150
}
151151
}
152152

0 commit comments

Comments
 (0)