@@ -18,7 +18,6 @@ export interface CompressTool {
1818
1919export interface ToolSettings {
2020 nudgeFrequency : number
21- protectedTools : string [ ]
2221 contextLimit : number | `${number } %`
2322 modelLimits ?: Record < string , number | `${number } %`>
2423}
@@ -102,7 +101,6 @@ export const VALID_CONFIG_KEYS = new Set([
102101 "tools" ,
103102 "tools.settings" ,
104103 "tools.settings.nudgeFrequency" ,
105- "tools.settings.protectedTools" ,
106104 "tools.settings.contextLimit" ,
107105 "tools.settings.modelLimits" ,
108106 "tools.compress" ,
@@ -309,17 +307,6 @@ export function validateConfigTypes(config: Record<string, any>): ValidationErro
309307 actual : `${ tools . settings . nudgeFrequency } (will be clamped to 1)` ,
310308 } )
311309 }
312- if (
313- tools . settings . protectedTools !== undefined &&
314- ! Array . isArray ( tools . settings . protectedTools )
315- ) {
316- errors . push ( {
317- key : "tools.settings.protectedTools" ,
318- expected : "string[]" ,
319- actual : typeof tools . settings . protectedTools ,
320- } )
321- }
322-
323310 if ( tools . settings . contextLimit !== undefined ) {
324311 const isValidNumber = typeof tools . settings . contextLimit === "number"
325312 const isPercentString =
@@ -543,7 +530,6 @@ const defaultConfig: PluginConfig = {
543530 tools : {
544531 settings : {
545532 nudgeFrequency : 5 ,
546- protectedTools : [ ...DEFAULT_PROTECTED_TOOLS ] ,
547533 contextLimit : 100000 ,
548534 } ,
549535 compress : {
@@ -707,12 +693,6 @@ function mergeTools(base: PluginConfig["tools"], override?: ToolOverride): Plugi
707693 return {
708694 settings : {
709695 nudgeFrequency : override . settings ?. nudgeFrequency ?? base . settings . nudgeFrequency ,
710- protectedTools : [
711- ...new Set ( [
712- ...base . settings . protectedTools ,
713- ...( override . settings ?. protectedTools ?? [ ] ) ,
714- ] ) ,
715- ] ,
716696 contextLimit : override . settings ?. contextLimit ?? base . settings . contextLimit ,
717697 modelLimits : override . settings ?. modelLimits ?? base . settings . modelLimits ,
718698 } ,
@@ -765,7 +745,6 @@ function deepCloneConfig(config: PluginConfig): PluginConfig {
765745 tools : {
766746 settings : {
767747 ...config . tools . settings ,
768- protectedTools : [ ...config . tools . settings . protectedTools ] ,
769748 modelLimits : { ...config . tools . settings . modelLimits } ,
770749 } ,
771750 compress : { ...config . tools . compress } ,
0 commit comments