Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ If you want to ensure a specific version is always used or update your version,
```json
{
"plugin": [
"@tarquinen/[email protected].13"
"@tarquinen/[email protected].14"
]
}
```
Expand Down
4 changes: 3 additions & 1 deletion lib/version-checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ const __dirname = dirname(__filename)

/**
* Gets the local package version from package.json
* Note: In compiled output, this file is at dist/lib/version-checker.js
* so we need to go up two levels to reach package.json
*/
export function getLocalVersion(): string {
try {
const pkgPath = join(__dirname, '../package.json')
const pkgPath = join(__dirname, '../../package.json')
const pkg = JSON.parse(readFileSync(pkgPath, 'utf-8'))
return pkg.version
} catch {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@tarquinen/opencode-dcp",
"version": "0.3.13",
"version": "0.3.14",
"type": "module",
"description": "OpenCode plugin that optimizes token usage by pruning obsolete tool outputs from conversation context",
"main": "./dist/index.js",
Expand Down