diff --git a/README.md b/README.md index fa5b9ef..a629c12 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Add to your `opencode.json`: ```json { "$schema": "https://opencode.ai/config.json", - "plugin": ["opencode-throughput"] + "plugins": ["opencode-throughput"] } ``` @@ -89,7 +89,7 @@ The plugin hooks into OpenCode's event system: ```json { - "plugin": ["file:///absolute/path/to/opencode-throughput/src/index.ts"] + "plugins": ["file:///absolute/path/to/opencode-throughput/src/index.ts"] } ``` diff --git a/opencode.json b/opencode.json index 720ece5..50a8268 100644 --- a/opencode.json +++ b/opencode.json @@ -1,3 +1,4 @@ { - "$schema": "https://opencode.ai/config.json" + "$schema": "https://opencode.ai/config.json", + "plugins": ["file:///tmp/opencode/opencode-throughput/src/index.ts"] } diff --git a/package.json b/package.json index 600ea46..840406f 100644 --- a/package.json +++ b/package.json @@ -1,15 +1,14 @@ { "name": "opencode-throughput", - "version": "1.2.0", + "version": "2.2.0", "description": "Real-time LLM performance monitoring plugin for OpenCode. Tracks TTFT, TPS, latency, token usage and cost per model with toast notifications and JSONL logging.", "type": "module", - "main": "./src/index.ts", + "main": "./dist/index.js", "exports": { - ".": "./src/index.ts", - "./plugins/*": "./src/plugins/*" + ".": "./dist/index.js" }, "files": [ - "src" + "dist" ], "scripts": { "build": "bun build src/index.ts --outdir dist --target node",