diff --git a/README.md b/README.md index 9fe155a..1d0d99e 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 f1d0df0..5aed6b1 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 } diff --git a/package-lock.json b/package-lock.json index a229b3d..32e3914 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 b5c10d2..c3c9bd8 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",