@khalilgharbaoui/opencode-claude-code-plugin 0.57.1 → 0.58.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@khalilgharbaoui/opencode-claude-code-plugin",
3
- "version": "0.57.1",
3
+ "version": "0.58.0",
4
4
  "description": "Claude Code CLI provider plugin for opencode",
5
5
  "homepage": "https://opencode-claude-code-plugin.dev/",
6
6
  "funding": {
@@ -988,14 +988,22 @@ row gets a third line: the same progress line the viewed session gets above the
988
988
  under a `Main Progress` heading while its turn runs (and 15 s after). That line is a ten-cell
989
989
  `▰▱` bar, two spaces, then the todo list's completed fraction with `2/4` when the session has
990
990
  one (opencode 1 only; opencode 2 exposes no todo list to a TUI plugin), else the turn's
991
- elapsed over its estimated total (`1m02s/~2m30s`: the weighted median of what remained of
992
- this agent and model's recorded turns that lasted longer than this one so far, weighted
993
- toward turns with a prompt of about this length at this effort, read from
994
- `$XDG_STATE_HOME/opencode-claude-code-plugin/turn-history.json`, which the plugin writes at
995
- every served result; full in the warning colour once past every recorded turn), else no bar
996
- until three turns of that agent and model are on record; plus the call count (when neither
997
- is shown) and the running tool. No model call, no option, nothing read from the prompt but
998
- its length.
991
+ elapsed over its estimated total (`1m02s/~2m30s`), else no bar until three turns of that
992
+ agent and model (or of that agent across its other models) are on record; plus the call
993
+ count (when neither is shown) and the running tool. The estimate is a log-normal fitted to
994
+ this agent and model's recorded turns in
995
+ `$XDG_STATE_HOME/opencode-claude-code-plugin/turn-history.json` (written at every served
996
+ result), weighted toward a prompt of about this length, this effort (another effort's turns
997
+ at half weight, scaled by the measured duration ratio) and recent turns, borrowing the
998
+ agent's other models for a new model and pulled toward this session's own earlier turns. It
999
+ is conditioned on the turn's elapsed time, its tool calls and the output tokens it has
1000
+ generated, which the provider half writes per API call to `turn-progress.json` beside it.
1001
+ The bar's shades are the band (where the turn likely ends, calibrated on the estimate's own
1002
+ past misses), a turn waiting on a foreground subagent is floored at what that subagent has
1003
+ left, and past every recorded turn the bar is full in the warning colour. A turn that ended
1004
+ on a failed tool is never read. How far to trust it: `/claude-code-doctor`'s `Progress
1005
+ estimate` section (per agent and model: turns, typical, `off by`, `outran`, `in band`). No
1006
+ model call, no option, nothing read from the prompt but its length.
999
1007
  Clicking a row opens the subagent's session; `up` returns to the parent. More than two
1000
1008
  rows fold behind a `▼` heading. Setup: nothing on opencode 2; on opencode 1 the
1001
1009
  `tui.json` line under Minimum install. If the section never appears on 1.x, that line is