Skip to content

Commit c2a05b5

Browse files
authored
Merge pull request #109 from Tarquinen/docs/recommend-latest-tag
Recommend @latest tag for simpler version management
2 parents af7c63b + 84ec48d commit c2a05b5

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Add to your OpenCode config:
1313
```jsonc
1414
// opencode.jsonc
1515
{
16-
"plugin": ["@tarquinen/opencode-dcp@0.4.13"],
16+
"plugin": ["@tarquinen/opencode-dcp@latest"],
1717
"experimental": {
1818
"primary_tools": ["prune"]
1919
}
@@ -22,9 +22,7 @@ Add to your OpenCode config:
2222

2323
The `experimental.primary_tools` setting ensures the `prune` tool is only available to the primary agent (not subagents).
2424

25-
When a new version is available, DCP will show a toast notification. Update by changing the version number in your config.
26-
27-
> **Note:** Using `@latest` (e.g. `@tarquinen/opencode-dcp@latest`) does not reliably force the latest update in Opencode. Please use specific version numbers (e.g. `@0.4.13`).
25+
Using `@latest` ensures you always get the newest version automatically when OpenCode starts.
2826

2927
Restart OpenCode. The plugin will automatically start optimizing your sessions.
3028

lib/version-checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export async function checkForUpdates(client: any, logger?: { info: (component:
7474
await client.tui.showToast({
7575
body: {
7676
title: "DCP: Update available",
77-
message: `v${local} → v${npm}\nUpdate opencode.jsonc: ${PACKAGE_NAME}@${npm}`,
77+
message: `v${local} → v${npm}\nUse ${PACKAGE_NAME}@latest to auto-update`,
7878
variant: "info",
7979
duration: 6000
8080
}

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://json.schemastore.org/package.json",
33
"name": "@tarquinen/opencode-dcp",
4-
"version": "0.4.13",
4+
"version": "0.4.14",
55
"type": "module",
66
"description": "OpenCode plugin that optimizes token usage by pruning obsolete tool outputs from conversation context",
77
"main": "./dist/index.js",

0 commit comments

Comments
 (0)