@tarquinen/opencode-dcp 0.3.4 → 0.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +17 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -52,6 +52,10 @@ Restart OpenCode. The plugin will automatically start optimizing your sessions.
52
52
  - **`pruningMode`** (string, default: `"smart"`) - Pruning strategy:
53
53
  - `"auto"`: Fast duplicate removal only (zero LLM cost)
54
54
  - `"smart"`: Deduplication + AI analysis (recommended, maximum savings)
55
+ - **`pruning_summary`** (string, default: `"detailed"`) - UI summary display mode:
56
+ - `"off"`: No UI summary (silent pruning)
57
+ - `"minimal"`: Show tokens saved and count only (e.g., "Saved ~2.5K tokens (6 tools pruned)")
58
+ - `"detailed"`: Show full breakdown by tool type and pruning method
55
59
  - **`protectedTools`** (string[], default: `["task", "todowrite", "todoread"]`) - Tools that should never be pruned
56
60
 
57
61
  Example configuration:
@@ -61,6 +65,7 @@ Example configuration:
61
65
  "enabled": true,
62
66
  "debug": false,
63
67
  "pruningMode": "smart",
68
+ "pruning_summary": "detailed",
64
69
  "protectedTools": ["task", "todowrite", "todoread"]
65
70
  }
66
71
  ```
@@ -99,6 +104,8 @@ After modifying configuration, restart OpenCode for changes to take effect.
99
104
 
100
105
  **Example notification formats:**
101
106
 
107
+ **Detailed mode** (default):
108
+
102
109
  Auto mode:
103
110
  ```
104
111
  🧹 DCP: Saved ~1.2K tokens (5 duplicate tools removed)
@@ -130,6 +137,16 @@ Smart mode:
130
137
  ~/project/temp
131
138
  ```
132
139
 
140
+ **Minimal mode** (`"pruning_summary": "minimal"`):
141
+ ```
142
+ 🧹 DCP: Saved ~3.4K tokens (8 tools pruned)
143
+ ```
144
+
145
+ **Off mode** (`"pruning_summary": "off"`):
146
+ ```
147
+ (No notification displayed - silent pruning)
148
+ ```
149
+
133
150
  To check the latest available version:
134
151
 
135
152
  ```bash
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@tarquinen/opencode-dcp",
4
- "version": "0.3.4",
4
+ "version": "0.3.5",
5
5
  "type": "module",
6
6
  "description": "OpenCode plugin that optimizes token usage by pruning obsolete tool outputs from conversation context",
7
7
  "main": "./dist/index.js",