@@ -531,69 +531,7 @@ function createDefaultConfig(): void {
531531 }
532532
533533 const configContent = `{
534- "$schema": "https://raw.githubusercontent.com/Opencode-DCP/opencode-dynamic-context-pruning/master/dcp.schema.json",
535- // Enable or disable the plugin
536- "enabled": true,
537- // Enable debug logging to ~/.config/opencode/logs/dcp/
538- "debug": false,
539- // Notification display: "off", "minimal", or "detailed"
540- "pruneNotification": "detailed",
541- // Slash commands (/dcp) configuration
542- "commands": {
543- "enabled": true,
544- // Additional tools to protect from pruning via commands
545- "protectedTools": []
546- },
547- // Protect from pruning for <turns> message turns
548- "turnProtection": {
549- "enabled": false,
550- "turns": 4
551- },
552- // Protect file operations from pruning via glob patterns
553- // Patterns match tool parameters.filePath (e.g. read/write/edit)
554- "protectedFilePatterns": [],
555- // LLM-driven context pruning tools
556- "tools": {
557- // Shared settings for all prune tools
558- "settings": {
559- // Nudge the LLM to use prune tools (every <nudgeFrequency> tool results)
560- "nudgeEnabled": true,
561- "nudgeFrequency": 10,
562- // Additional tools to protect from pruning
563- "protectedTools": []
564- },
565- // Removes tool content from context without preservation (for completed tasks or noise)
566- "discard": {
567- "enabled": true
568- },
569- // Distills key findings into preserved knowledge before removing raw content
570- "extract": {
571- "enabled": true,
572- // Show distillation content as an ignored message notification
573- "showDistillation": false
574- }
575- },
576- // Automatic pruning strategies
577- "strategies": {
578- // Remove duplicate tool calls (same tool with same arguments)
579- "deduplication": {
580- "enabled": true,
581- // Additional tools to protect from pruning
582- "protectedTools": []
583- },
584- // Prune write tool inputs when the file has been subsequently read
585- "supersedeWrites": {
586- "enabled": false
587- },
588- // Prune tool inputs for errored tools after X turns
589- "purgeErrors": {
590- "enabled": true,
591- // Number of turns before errored tool inputs are pruned
592- "turns": 4,
593- // Additional tools to protect from pruning
594- "protectedTools": []
595- }
596- }
534+ "$schema": "https://raw.githubusercontent.com/Opencode-DCP/opencode-dynamic-context-pruning/master/dcp.schema.json"
597535}
598536`
599537 writeFileSync ( GLOBAL_CONFIG_PATH_JSONC , configContent , "utf-8" )
0 commit comments