Skip to content
Open
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Add to your `opencode.json`:
```json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-throughput"]
"plugins": ["opencode-throughput"]
}
```

Expand Down Expand Up @@ -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"]
}
```

Expand Down
3 changes: 2 additions & 1 deletion opencode.json
Original file line number Diff line number Diff line change
@@ -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"]
}
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down