@tarquinen/opencode-dcp 0.1.11 → 0.1.12

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 +36 -0
  2. package/package.json +9 -1
package/README.md CHANGED
@@ -25,6 +25,42 @@ Add to your OpenCode configuration:
25
25
 
26
26
  Restart OpenCode. The plugin will automatically start optimizing your sessions.
27
27
 
28
+ ## Updating
29
+
30
+ OpenCode automatically installs plugins from npm to `~/.cache/opencode/node_modules/`. To force an update to the latest version:
31
+
32
+ ```bash
33
+ cd ~/.cache/opencode
34
+ rm -rf node_modules/@tarquinen
35
+ sed -i.bak '/"@tarquinen\/opencode-dcp"/d' package.json
36
+ ```
37
+
38
+ Then restart OpenCode, and it will automatically install the latest version.
39
+
40
+ To check your current version:
41
+
42
+ ```bash
43
+ cat ~/.cache/opencode/node_modules/@tarquinen/opencode-dcp/package.json | grep version
44
+ ```
45
+
46
+ To check the latest available version:
47
+
48
+ ```bash
49
+ npm view @tarquinen/opencode-dcp version
50
+ ```
51
+
52
+ ### Version Pinning
53
+
54
+ If you want to ensure a specific version is always used, you can pin it in your config:
55
+
56
+ ```json
57
+ {
58
+ "plugin": [
59
+ "@tarquinen/opencode-dcp@0.1.11"
60
+ ]
61
+ }
62
+ ```
63
+
28
64
  ## Debug Logging
29
65
 
30
66
  Enable debug logging by setting the `OPENCODE_DCP_DEBUG` environment variable:
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.1.11",
4
+ "version": "0.1.12",
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",
@@ -23,6 +23,14 @@
23
23
  "optimization",
24
24
  "tokens"
25
25
  ],
26
+ "repository": {
27
+ "type": "git",
28
+ "url": "git+https://github.com/Tarquinen/opencode-dynamic-context-pruning.git"
29
+ },
30
+ "bugs": {
31
+ "url": "https://github.com/Tarquinen/opencode-dynamic-context-pruning/issues"
32
+ },
33
+ "homepage": "https://github.com/Tarquinen/opencode-dynamic-context-pruning#readme",
26
34
  "author": "tarquinen",
27
35
  "license": "MIT",
28
36
  "peerDependencies": {