oc-flight-deck 0.24.0 → 0.25.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/CHANGELOG.md +15 -0
- package/README.md +42 -24
- package/dist/tui/index.js +285 -115
- package/docs/GUIDE.md +12 -8
- package/flight-deck.example.jsonc +49 -31
- package/flight-deck.schema.json +35 -11
- package/package.json +6 -6
- package/src/tui/caution.ts +15 -6
- package/src/tui/config.ts +125 -12
- package/src/tui/go-panel.ts +5 -3
- package/src/tui/index.tsx +48 -6
- package/src/tui/lifetime-totals.ts +92 -0
- package/src/tui/presentation.ts +12 -5
- package/src/tui/rows.ts +84 -76
- package/src/tui/session-reads.ts +55 -12
- package/src/tui/stat-fields.ts +59 -22
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.25.1] - 2026-11-20
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- The `caution` row no longer reports `no progress` for an idle session: silent-turn now needs an open turn, not just a stale host `running` flag. The `status` row reads idle on stale running, paused when a permission or a question tool waits, and running only with real evidence.
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
|
|
18
|
+
- Clearer row names `spend` and `lifetime` are now the defaults. `cost` and `total` remain accepted aliases with their old labels and meaning; naming both an alias and its key renders once and reports the duplicate.
|
|
19
|
+
- The `total` row is now a durable high-water mark: the highest family figure seen for a session root is kept under `~/.local/share/opencode/flight-deck/totals.json`, so restarts and host pruning cannot lower it. The current-model spend row is unchanged.
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
|
|
23
|
+
- Every numeric sidebar row now draws an honest zero instead of hiding or drawing a placeholder. The `tps` row sticks at `0 <label>` when nothing generates; observed TTFT rides only while a rate stands. The default `sidebar.placeholder` is now `0` for the text rows that still need one.
|
|
24
|
+
|
|
10
25
|
## [0.24.0] - 2026-11-17
|
|
11
26
|
|
|
12
27
|
### Added
|
package/README.md
CHANGED
|
@@ -1,6 +1,22 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/nathwn12/oc-collections/main/packages/oc-flight-deck/assets/icon.svg" width="120" height="120" alt="oc-flight-deck icon" />
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
<h1 align="center">oc-flight-deck</h1>
|
|
6
|
+
|
|
7
|
+
<p align="center"><strong>Live cost, token, cache and context telemetry for every OpenCode session, drawn in your sidebar.</strong></p>
|
|
8
|
+
|
|
9
|
+
<p align="center">
|
|
10
|
+
<a href="https://www.npmjs.com/package/oc-flight-deck"><img src="https://img.shields.io/npm/v/oc-flight-deck" alt="npm version"></a>
|
|
11
|
+
<img src="https://img.shields.io/badge/platform-windows--linux-2b3137" alt="platform">
|
|
12
|
+
<a href="https://github.com/nathwn12/oc-collections/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-green" alt="MIT"></a>
|
|
13
|
+
</p>
|
|
14
|
+
|
|
15
|
+
## Why
|
|
16
|
+
|
|
17
|
+
Cost and context are easy to lose sight of during a long session. `oc-flight-deck` draws them beside the session, live, so you see the roll-up without leaving the run. A cache hit rate excludes writes from its denominator, because a write is not a lookup. Elapsed time is recomputed from the turn spans the host recorded, so it survives a restart and never steps backwards. Estimates carry a `~` and say so out loud.
|
|
2
18
|
|
|
3
|
-
|
|
19
|
+
Every setting lives in one global file, not per project.
|
|
4
20
|
|
|
5
21
|
## Install
|
|
6
22
|
|
|
@@ -10,32 +26,34 @@ Add the entry to the `plugins` array in your `opencode.jsonc`, then restart Open
|
|
|
10
26
|
{ "plugins": ["oc-flight-deck"] }
|
|
11
27
|
```
|
|
12
28
|
|
|
13
|
-
##
|
|
29
|
+
## Use
|
|
30
|
+
|
|
31
|
+
The rail draws up to 18 named rows in the order you choose. Among them are:
|
|
32
|
+
|
|
33
|
+
- **Honest zeros** — every numeric row draws a real zero when there is no data, never a dash or a blank.
|
|
34
|
+
- **Money** — the current model's spend for this session, and a durable lifetime total for the subagent tree. The old `cost` and `total` row names still work as aliases.
|
|
35
|
+
- **Tokens and cache** — input and output tokens, and a cache hit rate with writes excluded.
|
|
36
|
+
- **Context gauge** — occupancy as a bar plus a percentage, marked `~` when estimated.
|
|
37
|
+
- **Speed** — a settled-turn average, a realtime estimate, or both plus time to first token.
|
|
38
|
+
- **Caution annunciator** — an opt-in watchdog that stays silent until a tool or a turn stops moving, and reports what it saw without killing anything.
|
|
39
|
+
- **Quota and session rows** — the Go usage dials, and a session id row that copies the full id on click.
|
|
40
|
+
|
|
41
|
+
## Configure
|
|
42
|
+
|
|
43
|
+
All settings live in one global file; there are no per-project files. Start from the [example config](https://github.com/nathwn12/oc-collections/blob/main/packages/oc-flight-deck/flight-deck.example.jsonc) and check the [schema](https://github.com/nathwn12/oc-collections/blob/main/packages/oc-flight-deck/flight-deck.schema.json) for each key and its default.
|
|
14
44
|
|
|
15
|
-
| Capability | What it does for you |
|
|
16
|
-
| --- | --- |
|
|
17
|
-
| Session rail | Draws up to 18 named rows beside the session, each one live, in the order you choose. |
|
|
18
|
-
| Money | Rolls up this conversation plus its subagent tree, with project-wide spend on its own row. |
|
|
19
|
-
| Tokens and cache | Shows input and output tokens, and a cache hit rate whose denominator excludes writes, because a write is not a lookup. |
|
|
20
|
-
| Context gauge | Draws occupancy as a bar plus a percentage, and says out loud with a `~` that it is an estimate. |
|
|
21
|
-
| Elapsed time | Counts active turn time, recomputed from the turn spans the host recorded, so it survives a restart and never steps backwards. |
|
|
22
|
-
| Speed | Reports a settled-turn average, a realtime estimate, or both plus time to first token. |
|
|
23
|
-
| Caution annunciator | An opt-in watchdog row that stays silent until a tool or a turn stops moving, then reports what it observed without killing anything. |
|
|
24
|
-
| Quota and session rows | Draws the Go usage dials, and a session id row that copies the full id on click. |
|
|
25
|
-
| One config file | Keeps every setting in one global file, and nothing per project. |
|
|
26
45
|
|
|
27
46
|
## Requirements
|
|
28
47
|
|
|
29
|
-
OpenCode 2.1.1 or newer
|
|
48
|
+
- OpenCode 2.1.1 or newer.
|
|
49
|
+
- Node 22 or newer, or Bun 1.4 or newer.
|
|
50
|
+
- Any platform the host runs on.
|
|
30
51
|
|
|
31
|
-
##
|
|
52
|
+
## Links
|
|
32
53
|
|
|
33
|
-
|
|
54
|
+
- [Issues](https://github.com/nathwn12/oc-collections/issues)
|
|
55
|
+
- [Releases](https://github.com/nathwn12/oc-collections/releases)
|
|
56
|
+
- [Guide](https://github.com/nathwn12/oc-collections/blob/main/packages/oc-flight-deck/docs/GUIDE.md)
|
|
57
|
+
- [MIT licence](https://github.com/nathwn12/oc-collections/blob/main/LICENSE)
|
|
34
58
|
|
|
35
|
-
|
|
36
|
-
<p align="center">
|
|
37
|
-
<a href="https://github.com/nathwn12"><img src="assets/signature.svg" width="96" alt="nathwn12" /></a>
|
|
38
|
-
</p>
|
|
39
|
-
<p align="center">
|
|
40
|
-
<sub>Built by <a href="https://github.com/nathwn12">nathwn12</a> · <a href="https://github.com/nathwn12?tab=repositories">All projects</a></sub>
|
|
41
|
-
</p>
|
|
59
|
+
<p align="center"><sub>Built by nathwn12</sub></p>
|