opencode2-tps 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -1
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -10,9 +10,13 @@ While a session streams, the top right of the composer shows the estimated token
|
|
|
10
10
|
|
|
11
11
|
When the run ends, the number freezes at the run average and stays there until the next run starts. Nothing is shown on the home screen, or before the first token of a run.
|
|
12
12
|
|
|
13
|
+
<p align="center">
|
|
14
|
+
<img src="docs/screenshots/opencode2_tps.png" width="750" alt="Composer showing live token-throughput indicator" />
|
|
15
|
+
</p>
|
|
16
|
+
|
|
13
17
|
## Install
|
|
14
18
|
|
|
15
|
-
Built against the OpenCode 2 preview
|
|
19
|
+
Built against the OpenCode 2 preview. The earliest known compatible beta is `0.0.0-beta-17595`; the latest tested beta is `0.0.0-beta-17595`. The TUI plugin API is still moving, so a much newer or older build may drop the indicator without an error: a renamed event stops arriving, and an unknown composer slot gets quietly rerouted. If the figure never appears, check your CLI version first.
|
|
16
20
|
|
|
17
21
|
Add the package to `~/.config/opencode/cli.json`:
|
|
18
22
|
|
|
@@ -77,6 +81,10 @@ Every output event carries the ID of the session that produced it, so each sessi
|
|
|
77
81
|
|
|
78
82
|
A sub-agent streams under its own child session ID. While it works, the orchestrator's number stops moving and holds the average of the output the orchestrator produced before delegating. Open the sub-agent's session to watch its live throughput.
|
|
79
83
|
|
|
84
|
+
<p align="center">
|
|
85
|
+
<img src="docs/screenshots/subagent_tps.png" width="750" alt="Sub-agent session showing its own live throughput indicator" />
|
|
86
|
+
</p>
|
|
87
|
+
|
|
80
88
|
## Development
|
|
81
89
|
|
|
82
90
|
To work on the plugin, see [Development](docs/development.md). To publish a new version, see [Release](docs/release.md).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode2-tps",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Live token-throughput indicator for the OpenCode 2 TUI prompt composer",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "P-Theo",
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@babel/core": "^7.29.7",
|
|
49
49
|
"@babel/preset-typescript": "^7.29.7",
|
|
50
|
+
"@opencode-ai/cli": "0.0.0-beta-17595",
|
|
50
51
|
"@opencode-ai/plugin": "0.0.0-beta-17595",
|
|
51
52
|
"@opencode-ai/theme": "0.0.0-beta-17595",
|
|
52
53
|
"@opentui/core": "^0.5.3",
|
|
@@ -62,6 +63,7 @@
|
|
|
62
63
|
"scripts": {
|
|
63
64
|
"build": "node build.mjs",
|
|
64
65
|
"check": "tsc --noEmit",
|
|
66
|
+
"check:compatibility": "node check-compatibility.mjs",
|
|
65
67
|
"lint": "oxlint",
|
|
66
68
|
"test": "bun test",
|
|
67
69
|
"prepack": "npm run lint && npm run check && npm test && npm run build"
|