Skip to content

Commit 7dc8322

Browse files
committed
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.
1 parent af7c63b commit 7dc8322

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
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
}

0 commit comments

Comments
 (0)