oc-flight-deck 0.19.1 → 0.20.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/CHANGELOG.md CHANGED
@@ -5,6 +5,32 @@ All notable changes to this project are documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.20.0] - 2026-10-17
9
+
10
+ ### Added
11
+
12
+ - `notifications` section (`enabled`, `config`, `copy`, `caution`, all default `true`): the silencing layer over every toast the plugin can raise — the invalid-config warning, the copy outcome, and the opt-in caution toast. `"notifications": { "enabled": false }` is the one-line silence switch; each per-kind flag silences only its kind. `caution.toast` stays the feature opt-in (default `false`); the new section only ever silences, never enables.
13
+
14
+ - `sidebar.tps.display` (`"avg"`, `"rt"` or `"both"`, default `"avg"`): which figure the `tps` row draws. `avg` is the settled-turn average — generation tokens (output plus reasoning) over assistant turns that recorded `streamed`, divided by the union of their `streamed − created` spans — so an idle gap reads as a steady figure instead of zero and in-flight turns never dilute it (on hosts without turn timestamps the average is generation tokens over the borrowed active clock instead). `rt` is the realtime estimate from the host's streaming delta events (`session.text.delta` / `session.reasoning.delta`, tokens estimated from delta bytes because the host publishes real counts only at step end), reading zero while nothing generates. `both` draws both on one line (`106 rt · 41 avg`), degrading to the realtime half alone when nothing settled yet. An unknown value falls back to `"avg"` and is reported.
15
+
16
+ - Mean time to first token on the `both` line (`83 rt · 38 avg · 1.2s ttft`): the mean over the most recent finalized steps in the row's scope — per step, the earliest text/reasoning delta's event time minus the step's `started` dispatch stamp (request dispatch time, before waiting for provider output), pushed into the scope's ring when the step ends. Steps observed while the plugin ran only (in-memory; a restart forgets them), so eviction drops whole values and the mean can never be negative or fabricated. A step's TTFT appears once that step settles. Appended only once a finalized value exists; the line is unchanged until then and the single modes never draw it.
17
+
18
+ ### Changed
19
+
20
+ - The `tps` row now defaults to the settled-turn average (`sidebar.tps.display: "avg"`) instead of the realtime figure: the row holds steady through idle gaps between turns and draws on the first poll with nothing to estimate. `rt` drives the realtime figure from the host's streaming delta events (`session.text.delta` / `session.reasoning.delta`, estimating tokens from delta bytes) instead of the previous per-poll message scan — which could only see a turn's tokens after it settled, so it read 0 until the turn was done. An in-flight message carries no streaming text and no token counts; the realtime figure must come from the deltas. The `display: "live"` name is renamed to `"rt"` (no alias; an unknown value falls back to `"avg"`), a plain wording change — the option was never tagged, so no version bump.
21
+
22
+ ### Fixed
23
+
24
+ - The session-id copy is now really verified: the plugin uses the host-served clipboard (`createHostClipboard` from `@opentui/core`, resolved to the host's own core instance) instead of no backend, and an OSC52 dispatch is confirmed by reading the OS clipboard back (up to 5 attempts, 60ms apart) before it counts — `osc52-confirmed` stays silent like every verified copy, while an unconfirmed dispatch keeps its advisory warning.
25
+ - The `0.19.2` tag shipped a stale `dist/`: `src/tui/clipboard.ts` changed without a rebuild, so installs still showed the old toast. `dist/` is rebuilt in this commit, and the new `bun run check:dist` gate (wired into `check.yml`) fails when `dist/` drifts from source again.
26
+ - The `ses` row's unconfirmed OSC52 dispatch reports as an advisory `warning` ("paste to verify") instead of an error: the bytes were sent but no backend can confirm the terminal acted on them. The five genuine failures stay `error`, and only a verified copy ever reports success.
27
+
28
+ ## [0.19.2] - 2026-10-16
29
+
30
+ ### Fixed
31
+
32
+ - The README and INSTALL no longer claim the package is unpublished: the `0.19.1` tarball shipped that stale text (corrected in docs after the tag), so this release ships the corrected wording.
33
+
8
34
  ## [0.19.1] - 2026-10-16
9
35
 
10
36
  ### Changed
package/README.md CHANGED
@@ -2,117 +2,223 @@
2
2
  <img src="assets/icon.svg" width="120" height="120" alt="oc-flight-deck icon" />
3
3
  </p>
4
4
  <h1 align="center">oc-flight-deck</h1>
5
- <p align="center"><strong>Render live session telemetry for OpenCode users — TypeScript.</strong></p>
6
- <p align="center">
7
- <a href="LICENSE"><img src="https://img.shields.io/github/license/nathwn12/oc-flight-deck" alt="License" /></a>
8
- <img src="https://img.shields.io/github/languages/top/nathwn12/oc-flight-deck" alt="Language" />
9
- <img src="https://img.shields.io/badge/platform-windows--linux-2b3137" alt="Platform" />
10
- </p>
5
+ <p align="center"><strong>See live cost, tokens, and context for every OpenCode session, right in your sidebar.</strong></p>
11
6
 
12
- ## What it is
7
+ ## Install
13
8
 
14
- oc-flight-deck is an OpenCode V2 plugin that renders live session telemetry in the sidebar: status, agent, model, cost, project, tokens, cache, context, permissions, elapsed time and throughput, every row read from the open session at render time. Cost, tokens, cache and reasoning roll up the subagent tree through the host's parentID link, falling back to the session alone when there is none. It is for anyone running agent sessions who wants the numbers where they are already looking.
9
+ Add the entry to the `plugins` array in your `opencode.jsonc`, then restart OpenCode:
15
10
 
16
- ## Why
11
+ ```json
12
+ { "plugins": ["oc-flight-deck@git+https://github.com/nathwn12/oc-flight-deck.git"] }
13
+ ```
17
14
 
18
- A session's own cost excludes its subagents, so the reported figure understates real spend — on the session this was built against, a reported $0.2246 against true spend of $0.2447, 9% low on money and 54% low on tokens. One money row tells the truth.
15
+ The panel renders beside your next open session with defaults and no config file.
16
+ You need OpenCode `2.0.30` already installed, on Node 22+ or Bun 1.4+.
19
17
 
20
- ## Features
18
+ ### Or let your AI install it
21
19
 
22
- - Live rows for `status`, `agent`, `model`, `cost`, `project`, `tokens`, `cache`, `context`, `perms`, `elapsed` and `tps`, plus opt-in rows: `caution`, `branch`, `total`, `spark`, `reasoning`, `turns`, `guard`, `go` and `ses`. `layout.labels` renames any of them — `{ "cost": "session", "total": "lifetime" }` draws your own cost under `session` and the family total under `lifetime`.
23
- - Family-scoped money: cost, tokens, cache and reasoning cover the conversation plus every subagent session in its tree; the project row covers every session in the project.
24
- - Elapsed time recomputed from the assistant-turn spans the host recorded, so a restart returns the same value instead of resetting.
25
- - Live throughput over `sidebar.tps.scope` (`family` or `session`, default `family`), reading `0 tok/s` whenever the scope is not generating.
26
- - Stable rail: with `sidebar.persist` every named row draws a zero skeleton until the host has data, while caution stays silent until something stops moving.
27
- - Reads only while the opt-in guard and go surfaces stay off: no telemetry, nothing on disk, no network calls; the single write is a click on the opt-in ses row sending the full session id to the terminal clipboard as a best-effort OSC52 request — terminal-dependent (the terminal may ignore it) and never reported as a confirmed copy. Enabling the opt-in `go` row or `sidebar.footer.go` panel polls `https://opencode.ai/zen/go/v1/usage` every 60 seconds, and only with `FLIGHT_DECK_GO_LOG=1` appends one observation line per poll to `tmpdir()/opencode/flight-deck-go.log` (never the key).
28
- - A bad config value is ignored with its default restored and a one-time toast naming the key, so a typo never breaks the TUI.
20
+ ```text
21
+ Install the oc-flight-deck plugin: add "oc-flight-deck@git+https://github.com/nathwn12/oc-flight-deck.git" to the plugins array in my opencode.jsonc, restart OpenCode, then open a session and confirm the telemetry panel renders in the sidebar. Report which of the default rows you see: status, agent, model, cost, project, tokens, cache, context, perms, elapsed, tps.
22
+ ```
29
23
 
30
- ## Install
24
+ ### Offline or pinned
25
+
26
+ The registry is the slow track: tagged releases only.
27
+
28
+ ```json
29
+ { "plugins": ["oc-flight-deck@latest"] }
30
+ ```
31
+
32
+ The git entry is the fast track and follows the default branch at install. To fix a commit, append `#<full sha>` to the git entry.
33
+
34
+ ## Use it
35
+
36
+ Open a session and read the rail. Three scopes shape the numbers you see. `cost`, `tokens`, `cache`, and `reasoning` roll up this conversation plus the subagent sessions linked by the host's parentID. `project` covers every session in the project. `elapsed` counts active turn time, not wall clock.
31
37
 
32
- Compatible with opencode 2.0.30. The package is not published to npm, so install from git:
38
+ A session with subagents, defaults, 200k window:
33
39
 
34
- 1. Add the plugin to the `plugins` array in your `opencode.jsonc`:
35
- ```jsonc
36
- { "plugins": ["oc-flight-deck@git+https://github.com/nathwn12/oc-flight-deck.git#<full sha>"] }
37
- ```
38
- Pin a full commit sha, not a branch name, so the install stays put.
39
- 2. Restart OpenCode.
40
- 3. Verify: the panel appears beside an open session.
40
+ ```text
41
+ status ⠙ running
42
+ agent build
43
+ model claude-sonnet-4-5 · high
44
+ cost $1.84 · 3 subagents
45
+ project $12.40 · 21 sessions
46
+ tokens 1.2M in · 84k out
47
+ cache 92% hit · 1.1M read
48
+ context ████████░░ ~78%
49
+ perms 1 waiting · bash
50
+ elapsed 2h 14m 07s
51
+ tps 41 tok/s
52
+ ```
41
53
 
42
- See [INSTALL.md](INSTALL.md) for the two routes: the git package spec above, and a no-npm local directory entry. To uninstall, remove the entry from `opencode.jsonc`, restart, and delete your `flight-deck.jsonc` if you made one.
54
+ Add `"ses"` to `sidebar.rows`, then click the `session` row to copy the full id. Add `"go"` to `sidebar.rows` for quota.
43
55
 
44
- ## Usage
56
+ ## What you get
45
57
 
46
- Copy [flight-deck.example.jsonc](flight-deck.example.jsonc) to the one global path, `~/.config/opencode/flight-deck.jsonc` (`$XDG_CONFIG_HOME/opencode/flight-deck.jsonc` when that variable holds an absolute path), then edit. A `.json` name works too; the `.jsonc` name is tried first. The file is optional: with no file at all you get exactly the defaults the example file writes out. There is no per-project lookup.
58
+ - One money row that rolls up this conversation plus its subagent tree
59
+ - A stable rail: every named row draws its zero skeleton until data arrives
60
+ - Elapsed time that survives a restart, recomputed from recorded turn spans
61
+ - Speed as a settled-turn average, a realtime estimate, or both with ttft
62
+ - An opt-in watchdog row that stays silent until something stops moving
63
+ - One `notifications` section that silences every toast, together or by kind
64
+ - One global config file, and nothing per project
47
65
 
48
- Every key is optional. The real config keys, taken from [flight-deck.schema.json](flight-deck.schema.json):
66
+ ## Configure it
49
67
 
50
- - `refresh` (default `100`): milliseconds between ticks; `0` turns the ticker off.
51
- - `sidebar.enabled`, `sidebar.lines`, `sidebar.rows`, `sidebar.tps.scope` (`family` or `session`), `sidebar.persist`, `sidebar.placeholder`, `sidebar.maxLines` (default `24`), `sidebar.footer.lines`, `sidebar.footer.go`.
52
- - `footer.enabled` / `footer.text`: a single line in the prompt footer, off unless configured.
53
- - `caution.enabled` (default `false`), `toolWatchSeconds` (`180`), `toolCautionSeconds` (`420`), `turnWatchSeconds` (`600`), `turnCautionSeconds` (`1200`), `repeatThreshold` (`3`), `exemptTools`, `toast` (`false`). To use the annunciator, add `caution` to `sidebar.rows` and set `caution.enabled: true`.
54
- - `layout.labelWidth` (`10`), `layout.barWidth` (`10`), `layout.sparkWidth` (`12`), `layout.labels` (per-row label renames, e.g. `{ "cost": "session", "total": "lifetime" }`; every other row keeps its built-in label).
55
- - `format.duration` (`spaced` or `compact`).
56
- - `glyphs.watch`, `glyphs.caution`, `glyphs.clear`.
57
- - `style.lines` and `style.rows.*`: theme color roles with OpenTUI text attributes.
68
+ You configure one global file: `~/.config/opencode/flight-deck.jsonc`. The `.json` name is also read, and `.jsonc` is tried first. When `$XDG_CONFIG_HOME` holds an absolute path, the file lives at `$XDG_CONFIG_HOME/opencode/flight-deck.jsonc` instead. There is no per-project lookup, so a copy left in a project root configures nothing. A missing file is normal and silent: you get the defaults below. If the file does not exist, create it; the snippet below is a complete file. Where the host forwards plugin options, those win key by key. Comments and trailing commas are accepted by the Bun-hosted TUI. A bad value restores its default with a one-time toast naming the key; silence that toast with `notifications.config: false`.
58
69
 
59
70
  ```jsonc
60
- // ~/.config/opencode/flight-deck.jsonc
61
71
  {
62
- "refresh": 100,
63
- "sidebar": {
64
- "maxLines": 24,
65
- "rows": [
66
- "status", "agent", "model", "cost", "project",
67
- "tokens", "cache", "context", "perms", "elapsed", "tps"
68
- ]
69
- },
70
- // spaced separates the units (2h 14m 37s, the default); "compact" hugs them (2h14m37s)
71
- "format": { "duration": "spaced" },
72
- "caution": { "toast": false },
73
- "style": {
74
- "lines": { "color": "default", "attributes": [] },
75
- "rows": {
76
- "*": { "color": "subdued", "attributes": [] },
77
- "cost": { "color": "success", "attributes": ["bold"] }
78
- }
79
- }
72
+ "sidebar": { "rows": ["status", "cost", "context", "elapsed"] }
80
73
  }
81
74
  ```
82
75
 
83
- ## Build from source
76
+ ### What each row shows
77
+
78
+ | Row | What it shows | Default |
79
+ | --- | --- | --- |
80
+ | `caution` | Annunciator, opt-in with `caution.enabled`. Silent unless a tool or turn stops moving. Reports observations, never verdicts (`shell running 8m41s`). Never aborts, kills, retries, or blocks. `▲` watch, `●` caution, `○` reserved and not drawn. | opt-in |
81
+ | `status` | `⠙ running` while anything works (this session, a subagent, or a shell); `○ idle` otherwise. | yes |
82
+ | `agent` | Active agent name. | yes |
83
+ | `model` | Model id, plus ` · variant` when one is present. | yes |
84
+ | `branch` | Current git branch. Costs a VCS call. | opt-in |
85
+ | `cost` | Money for this conversation plus its subagent tree. With `total` on the rail, this row shows the session's own figure. Merged shape `$1.84 · 3 subagents`; childless shows `$1.84`. Follows the host's parentID link only: an independently spawned top-level session is not counted, and `project` is the surface for that. | yes |
86
+ | `total` | Family total plus subagent count, `$1.84 · 0 subagents` when childless. | opt-in |
87
+ | `project` | Every session in the project: `$12.40 · 21 sessions` when more than one, else just the figure. | yes |
88
+ | `tokens` | `1.2M in · 84k out`, same family scope as `cost`. | yes |
89
+ | `cache` | `92% hit · 1.1M read`, family scope. The hit-rate denominator is cache read plus input; cache write is excluded because a write is not a lookup. A zero read is drawn (`0 read`, or `0% hit · 0 read` when input exists), never hidden. | yes |
90
+ | `context` | Occupancy proxy (last request input plus cache read plus cache write), drawn as a `layout.barWidth`-cell gauge (10 by default) plus `~78%`, or `~N used` when no limit is known. The `~` is deliberate: this is an estimate. | yes |
91
+ | `perms` | Pending approvals. One names the action plus an 18-cell clipped resource (`bash · src/tui…`); several lead with the count (`3 waiting · bash`). | yes |
92
+ | `elapsed` | Active generation time, recomputed from the assistant-turn spans the host recorded for this session and its subagents. Survives a restart, never steps backwards while the host reports those turns, and is not wall-clock since the session began. | yes |
93
+ | `tps` | Session speed. Default `avg`: generation tokens (output plus reasoning) over the union of settled turns' `streamed − created` spans; idle gaps never billed. `rt`: realtime estimate from streaming deltas, zero while nothing generates. `both`: `106 rt · 41 avg`, plus `1.2s ttft` once a step settles. Scope `family` (default; open session plus subagents, overlapping spans merged) or `session`. Below half a token per second no figure is drawn; with `persist: true` the row falls back to its `0 tok/s` skeleton, and `persist: false` omits it. | yes |
94
+ | `spark` | Recent turn sizes as a sparkline; the newest samples are kept. | opt-in |
95
+ | `reasoning` | Reasoning tokens, family scope. | opt-in |
96
+ | `turns` | Prompts sent this session. | opt-in |
97
+ | `guard` | Harness status when a guard bridge supplies it (breaches, orphans, findings, or ok). Without the bridge the row has no data. | opt-in |
98
+ | `go` | Zen Go usage: three dials (`○ ◔ ◑ ◕ ●`) plus percent for 5h, 1w, 1m, read from OpenCode's own active opencode-go credential store; no env var. A window at 90% or more, or non-ok, turns red; only the worst flagged window carries a reset countdown. | opt-in |
99
+ | `ses` | Clipped 18-cell preview of the session id (less when the label column is narrow, floored at 8), labelled `session`. Click copies the full id. A verified copy is silent: the host write reports `written`, or an exact clipboard read-back confirms an OSC52 dispatch. An unconfirmed dispatch is an advisory warning (paste to verify). Gate the failure toast with `notifications.copy`. | opt-in |
100
+ | `session` | Alias for `ses`; accepted in `sidebar.rows` and folded to it. | opt-in |
101
+
102
+ With `sidebar.persist` (the default) every named row renders, drawing its zero skeleton until data arrives: `$0.000` money rows, `0 in · 0 out`, `0 read`, empty gauge plus `~0%`, `0 waiting`, `0s`, `0 tok/s` (`0 rt · 0 avg` in both), flat `▁` spark, `0` reasoning and turns, `○ 0 ○ 0 ○ 0` go, `○ idle`, `none` agent, model, and ses, `no branch`, `unknown` guard. `caution` never draws a skeleton. Set `persist: false` to omit rows with no data instead.
103
+
104
+ ### Settings
105
+
106
+ **Refresh**
107
+
108
+ - **`refresh`** (default `100`) — ms between ticks, 0–60000. Values 1–15 clamp to 16; `0` turns the ticker off, so clock-derived rows move only on host events. While idle the tick backs off to about 1s.
109
+
110
+ **Sidebar**
111
+
112
+ - **`sidebar.enabled`** (default `true`) — `false` leaves the plugin loaded but invisible.
113
+ - **`sidebar.rows`** (default `["status","agent","model","cost","project","tokens","cache","context","perms","elapsed","tps"]`) — live rows, top to bottom, any subset in any order. Max 24 names; unknown names are ignored with a one-time warning.
114
+ - **`sidebar.lines`** (default `[]`) — fixed lines above the rows. Max 24. These plus rows share the rail cap (`maxLines`, default 24); fixed lines render at full brightness while live rows are dimmed.
115
+ - **`sidebar.footer.lines`** (default `[]`) — fixed lines in the host footer slot, outside the rail cap; max 24. The documented branding pair is `["▸ FLIGHT DECK","─────────────────"]`.
116
+ - **`sidebar.footer.go`** (default `false`) — `true` or an object draws the live Go usage panel: three fixed-width lines above the host location row, sharing one account-wide poll with the `go` row. Object keys: `header` (`false`), `barWidth` (`10`, 1–40), `labelWidth` (`6`, 5–24, auto-widens), `percent` (`true`), `reset` (`true`), `align` (`"right"`, left, right, or center), `sweep` (`false`), `labels` (`{rolling,weekly,monthly}`, each 1–24 chars), `blink` (`true`), `blinkMs` (`700`, 200–5000).
117
+ - **`sidebar.persist`** (default `true`) — every named row renders, drawing its zero skeleton until data arrives; `false` omits rows with no data.
118
+ - **`sidebar.placeholder`** (default `"—"`) — non-empty string; only for a data-less row with no skeleton, unreachable for shipped fields.
119
+ - **`sidebar.maxLines`** (default `24`) — whole rail, fixed lines plus rows, 1–24.
120
+ - **`sidebar.tps.scope`** (default `"family"`) — `"family"` paces the open session plus subagents; `"session"` paces the open session alone.
121
+ - **`sidebar.tps.display`** (default `"avg"`) — `"avg"` settled-turn average, `"rt"` realtime estimate, `"both"` both figures plus ttft.
122
+
123
+ **Footer**
124
+
125
+ - **`footer.enabled`** (default `true` when any other footer key is present, `false` when the section is absent) — writing any footer key turns it on.
126
+ - **`footer.text`** (default `"Flight Deck"`) — max 120 chars; control chars become spaces.
127
+
128
+ **Caution**
129
+
130
+ - **`caution.enabled`** (default `false`) — run the annunciator; off means no row and no timer.
131
+ - **`caution.toolWatchSeconds`** (default `180`) — a tool running longer draws `▲`.
132
+ - **`caution.toolCautionSeconds`** (default `420`) — a tool running longer becomes `●`; raised to the watch value if lower.
133
+ - **`caution.turnWatchSeconds`** (default `600`) — a running session producing nothing draws `▲`; suppressed while a tool or shell runs.
134
+ - **`caution.turnCautionSeconds`** (default `1200`) — quiet session becomes `●`; same raise rule. All four thresholds take 0 or more.
135
+ - **`caution.repeatThreshold`** (default `3`, min 2) — identical consecutive calls before a loop is reported; applies to successes and failures.
136
+ - **`caution.exemptTools`** (default `["question","task","subagent","agent","delegate","delegate_many","delegate_task","tools.delegate","tools.delegate_many","tools.subagent","tools.task"]`) — matched by exact name. Calibrated against 54,218 settled calls: 307 exceed 180s and 200 of those are these tools; `subagent` alone crossed 152 times, p99 14.7 min.
137
+ - **`caution.toast`** (default `false`) — toast once per distinct problem, re-arming when the session goes quiet.
84
138
 
85
- Prerequisites: Node 22 or newer, or Bun 1.4 or newer.
139
+ **Notifications**
86
140
 
87
- ```sh
88
- bun install
89
- bun run check
141
+ - **`notifications.enabled`** (default `true`) — the one-key off switch; `false` silences every toast.
142
+ - **`notifications.config`** (default `true`) — the one-time toast naming a bad config key.
143
+ - **`notifications.copy`** (default `true`) — the toast for an unverified copy.
144
+ - **`notifications.caution`** (default `true`) — the opt-in caution toast. Every flag only silences.
145
+
146
+ **Layout**
147
+
148
+ - **`layout.labelWidth`** (default `10`, 6–24) — label column width.
149
+ - **`layout.barWidth`** (default `10`, 1–40) — context gauge cells.
150
+ - **`layout.sparkWidth`** (default `12`, 2–64) — sparkline samples.
151
+ - **`layout.labels`** (default `{}`) — rename any row by its canonical key, for example `{ "cost": "session", "total": "lifetime" }`. A label wider than the column still gets a space before its value.
152
+
153
+ **Format**
154
+
155
+ - **`format.duration`** (default `"spaced"`, `2h 14m 37s`) — or `"compact"` (`2h14m37s`). Zero-padding is the same either way (`14m 07s`, never `14m 7s`).
156
+
157
+ **Glyphs**
158
+
159
+ - **`glyphs.watch`** (default `"▲"`), **`glyphs.caution`** (default `"●"`), **`glyphs.clear`** (default `"○"`, reserved, not drawn today) — 1–2 chars each.
160
+
161
+ **Style**
162
+
163
+ - **`style.lines`** (default `{color:"default", attributes:[]}`) — fixed-line look.
164
+ - **`style.rows`** — wildcard `"*": {color:"subdued", attributes:[]}` plus per-row overrides. Colors are theme roles: default, subdued, warning, error, success, info. Attributes: bold, dim, italic, underline, blink, inverse, hidden, strikethrough.
165
+
166
+ Config precedence: host plugin options beat `flight-deck.jsonc`, which beats defaults, merged key by key.
167
+
168
+ ### Recipes
169
+
170
+ Quota, session id, and branch:
171
+
172
+ ```jsonc
173
+ { "sidebar": { "rows": ["status", "cost", "project", "go", "ses", "branch", "elapsed"] } }
90
174
  ```
91
175
 
92
- `bun run check` typechecks and runs the suite, including headless OpenTUI render tests that mount the panel in a real renderer and assert the exact characters that come out. The shipped entries are compiled, not raw source: `bun run compile` emits plain JS to `dist/` with explicit `jsx-runtime` imports for the host (required on opencode 2.0.30, which cannot resolve a raw `.tsx` entry under `node_modules`). `dist/` is committed, since the git install route loads the entry from the clone. To load the plugin from a checkout while working on it, name the checkout as a git file URL in the `opencode.jsonc` of the project you run OpenCode in:
176
+ Split the money rows: session and lifetime:
93
177
 
94
178
  ```jsonc
95
179
  {
96
- "plugins": ["git+file:///absolute/path/to/oc-flight-deck"]
180
+ "sidebar": { "rows": ["status", "cost", "total", "elapsed"] },
181
+ "layout": { "labels": { "cost": "session", "total": "lifetime" } }
97
182
  }
98
183
  ```
99
184
 
100
- That installs a copy, not a symlink, so re-run the install after editing the checkout. Built against `@opencode/plugin` 2.0.30 on the official [OpenCode V2 CLI plugin API](https://opencode.ai/v2/docs/build/plugins/cli).
185
+ With `total` on the rail, `cost` draws the session's own figure, so this reads `session $1.00` and `lifetime $2.00 · 1 subagent`.
186
+
187
+ Realtime speed plus time to first token:
188
+
189
+ ```jsonc
190
+ { "sidebar": { "rows": ["status", "tps", "elapsed"], "tps": { "display": "both" } } }
191
+ ```
101
192
 
102
- ## Docs
193
+ Silence every toast with one key:
103
194
 
104
- - [INSTALL.md](INSTALL.md) — the two install routes.
105
- - [flight-deck.example.jsonc](flight-deck.example.jsonc) — every option, documented inline.
106
- - [flight-deck.schema.json](flight-deck.schema.json) — types, defaults and allowed values.
107
- - [CHANGELOG.md](CHANGELOG.md) — release history.
195
+ ```jsonc
196
+ { "notifications": { "enabled": false } }
197
+ ```
198
+
199
+ Watchdog on for long runs:
200
+
201
+ ```jsonc
202
+ { "sidebar": { "rows": ["status", "caution", "cost", "elapsed"] }, "caution": { "enabled": true } }
203
+ ```
108
204
 
109
- ## Status
205
+ ## Requirements
110
206
 
111
- **Active** — maintained, issues welcome.
207
+ - OpenCode `2.0.30`
208
+ - Node `>=22` or Bun `>=1.4.0`
112
209
 
113
- ## License
210
+ ## Links
114
211
 
115
- MIT — see [LICENSE](LICENSE).
212
+ - Repository: https://github.com/nathwn12/oc-flight-deck
213
+ - Package: https://www.npmjs.com/package/oc-flight-deck
214
+ - Issues: https://github.com/nathwn12/oc-flight-deck/issues
215
+ - OpenCode V2 plugin API: https://opencode.ai/v2/docs/build/plugins/cli
216
+ - Example config: [flight-deck.example.jsonc](flight-deck.example.jsonc)
217
+ - Config schema: [flight-deck.schema.json](flight-deck.schema.json)
218
+ - Local install routes: [INSTALL.md](INSTALL.md)
219
+ - Changelog: [CHANGELOG.md](CHANGELOG.md)
220
+ - Releases: https://github.com/nathwn12/oc-flight-deck/releases
221
+ - Licence: MIT, see [LICENSE](LICENSE)
116
222
 
117
223
  <!-- nathwn12 house footer: identical in every repo. Do not edit. -->
118
224
  <p align="center">