From 7dc8322e27ea9ba8411e80744f17b870724a51c9 Mon Sep 17 00:00:00 2001 From: Daniel Smolsky Date: Tue, 9 Dec 2025 22:10:05 -0500 Subject: [PATCH 1/2] Recommend @latest tag for simpler version management Update documentation and update notifications to suggest users use @tarquinen/opencode-dcp@latest instead of pinning specific versions. This provides a better user experience by eliminating manual version updates when new releases are published. --- README.md | 6 ++---- lib/version-checker.ts | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 9fe155a3..1d0d99ec 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ Add to your OpenCode config: ```jsonc // opencode.jsonc { - "plugin": ["@tarquinen/opencode-dcp@0.4.13"], + "plugin": ["@tarquinen/opencode-dcp@latest"], "experimental": { "primary_tools": ["prune"] } @@ -22,9 +22,7 @@ Add to your OpenCode config: The `experimental.primary_tools` setting ensures the `prune` tool is only available to the primary agent (not subagents). -When a new version is available, DCP will show a toast notification. Update by changing the version number in your config. - -> **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`). +Using `@latest` ensures you always get the newest version automatically when OpenCode starts. Restart OpenCode. The plugin will automatically start optimizing your sessions. diff --git a/lib/version-checker.ts b/lib/version-checker.ts index f1d0df03..5aed6b14 100644 --- a/lib/version-checker.ts +++ b/lib/version-checker.ts @@ -74,7 +74,7 @@ export async function checkForUpdates(client: any, logger?: { info: (component: await client.tui.showToast({ body: { title: "DCP: Update available", - message: `v${local} → v${npm}\nUpdate opencode.jsonc: ${PACKAGE_NAME}@${npm}`, + message: `v${local} → v${npm}\nUse ${PACKAGE_NAME}@latest to auto-update`, variant: "info", duration: 6000 } From 84ec48d8ecd770447ddd3db7087cf42403c6ece4 Mon Sep 17 00:00:00 2001 From: Daniel Smolsky Date: Tue, 9 Dec 2025 22:10:18 -0500 Subject: [PATCH 2/2] v0.4.14 - Bump version --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index a229b3d7..32e39140 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@tarquinen/opencode-dcp", - "version": "0.4.13", + "version": "0.4.14", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@tarquinen/opencode-dcp", - "version": "0.4.13", + "version": "0.4.14", "license": "MIT", "dependencies": { "@ai-sdk/openai-compatible": "^1.0.28", diff --git a/package.json b/package.json index b5c10d26..c3c9bd81 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "$schema": "https://json.schemastore.org/package.json", "name": "@tarquinen/opencode-dcp", - "version": "0.4.13", + "version": "0.4.14", "type": "module", "description": "OpenCode plugin that optimizes token usage by pruning obsolete tool outputs from conversation context", "main": "./dist/index.js",