oc-flight-deck 0.6.2 → 0.6.6
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 +201 -187
- package/flight-deck.example.jsonc +244 -208
- package/flight-deck.schema.json +76 -0
- package/package.json +6 -6
- package/src/tui/active-elapsed.ts +98 -0
- package/src/tui/caution.ts +14 -14
- package/src/tui/coerce.ts +25 -0
- package/src/tui/config.ts +222 -26
- package/src/tui/file-config.ts +1 -1
- package/src/tui/format.ts +100 -0
- package/src/tui/guard-tokens.ts +72 -0
- package/src/tui/guard.ts +5 -5
- package/src/tui/index.tsx +296 -679
- package/src/tui/presentation.ts +84 -34
- package/src/tui/project-totals.ts +49 -0
- package/src/tui/rows.ts +281 -0
- package/src/tui/session-reads.ts +238 -0
- package/src/tui/session-tps.ts +190 -0
- package/src/tui/stat-fields.ts +132 -0
- package/src/tui/stats.ts +12 -634
- package/src/tui/style.ts +130 -0
- package/src/tui/throughput.ts +156 -0
- package/src/tui/ticker.ts +2 -2
|
@@ -1,208 +1,244 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "./flight-deck.schema.json",
|
|
3
|
-
|
|
4
|
-
// ═════════════════════════════════════════════════════════════════════════
|
|
5
|
-
// ✈ Flight Deck — configuration
|
|
6
|
-
//
|
|
7
|
-
// EVERYTHING HERE IS OPTIONAL. Install the plugin and the panel works with
|
|
8
|
-
// no config file at all. The values below are the defaults, written out so
|
|
9
|
-
// you can see exactly what there is to change. Delete any key and its
|
|
10
|
-
// default comes straight back.
|
|
11
|
-
//
|
|
12
|
-
// TO USE IT: copy this file to `~/.config/opencode/flight-deck.jsonc` (or
|
|
13
|
-
// `flight-deck.json` — the `.jsonc` name is tried first), then edit. Comments
|
|
14
|
-
// and trailing commas are fine.
|
|
15
|
-
//
|
|
16
|
-
// There is ONE config file, global to your user, so the same values apply to
|
|
17
|
-
// every project. Flight Deck does NOT look in a project root or in a
|
|
18
|
-
// project's `.opencode/` directory: a copy left there configures nothing.
|
|
19
|
-
//
|
|
20
|
-
// If `$XDG_CONFIG_HOME` is set, the path is
|
|
21
|
-
// `$XDG_CONFIG_HOME/opencode/flight-deck.jsonc` instead.
|
|
22
|
-
//
|
|
23
|
-
// The file is optional. Having none is the normal case, and it is silent —
|
|
24
|
-
// the defaults below are what you get.
|
|
25
|
-
//
|
|
26
|
-
// Upgrading from 0.4.0? A `flight-deck.jsonc` in a project root or in
|
|
27
|
-
// `.opencode/` is no longer read; move it to the global path above.
|
|
28
|
-
//
|
|
29
|
-
// The same values can also be passed as plugin options in opencode.jsonc /
|
|
30
|
-
// cli.json, which take precedence on hosts that forward them.
|
|
31
|
-
// ═════════════════════════════════════════════════════════════════════════
|
|
32
|
-
|
|
33
|
-
// ── Update cadence ───────────────────────────────────────────────────────
|
|
34
|
-
// Milliseconds between refreshes: the tick rate of everything that has to
|
|
35
|
-
// animate. The status spinner has ten frames, so 100 turns it once a second.
|
|
36
|
-
//
|
|
37
|
-
// Cost, tokens, and permissions arrive from the host's own events, so they
|
|
38
|
-
// stay current with no timer at all. Only clock-derived rows need one — and
|
|
39
|
-
// `elapsed` plus the spinner are the reason this exists. Without a tick they
|
|
40
|
-
// would sit frozen between turns.
|
|
41
|
-
//
|
|
42
|
-
// While nothing is running the tick backs off to about once a second: the
|
|
43
|
-
// spinner is hidden then, and `elapsed` only reads in whole seconds, so the
|
|
44
|
-
// host's renderer is woken a tenth as often for the same picture.
|
|
45
|
-
//
|
|
46
|
-
// 100 default — the spinner turns once a second, the clock stays live
|
|
47
|
-
// 50 twice as lively, still negligible work per tick
|
|
48
|
-
// 1000 a calm wall-clock tick, but the spinner visibly stutters
|
|
49
|
-
// 0 no timer; `elapsed` and the spinner only move when the session does
|
|
50
|
-
//
|
|
51
|
-
//
|
|
52
|
-
//
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
//
|
|
62
|
-
//
|
|
63
|
-
//
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
//
|
|
68
|
-
//
|
|
69
|
-
//
|
|
70
|
-
//
|
|
71
|
-
//
|
|
72
|
-
//
|
|
73
|
-
//
|
|
74
|
-
//
|
|
75
|
-
//
|
|
76
|
-
//
|
|
77
|
-
//
|
|
78
|
-
//
|
|
79
|
-
//
|
|
80
|
-
//
|
|
81
|
-
//
|
|
82
|
-
//
|
|
83
|
-
//
|
|
84
|
-
//
|
|
85
|
-
//
|
|
86
|
-
//
|
|
87
|
-
//
|
|
88
|
-
//
|
|
89
|
-
//
|
|
90
|
-
//
|
|
91
|
-
//
|
|
92
|
-
//
|
|
93
|
-
//
|
|
94
|
-
//
|
|
95
|
-
//
|
|
96
|
-
//
|
|
97
|
-
//
|
|
98
|
-
//
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
"
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
//
|
|
137
|
-
//
|
|
138
|
-
//
|
|
139
|
-
//
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
//
|
|
147
|
-
//
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
"
|
|
163
|
-
|
|
164
|
-
//
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
//
|
|
169
|
-
//
|
|
170
|
-
//
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
//
|
|
175
|
-
//
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
//
|
|
180
|
-
//
|
|
181
|
-
//
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
//
|
|
190
|
-
|
|
191
|
-
//
|
|
192
|
-
"
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
"
|
|
207
|
-
}
|
|
208
|
-
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./flight-deck.schema.json",
|
|
3
|
+
|
|
4
|
+
// ═════════════════════════════════════════════════════════════════════════
|
|
5
|
+
// ✈ Flight Deck — configuration
|
|
6
|
+
//
|
|
7
|
+
// EVERYTHING HERE IS OPTIONAL. Install the plugin and the panel works with
|
|
8
|
+
// no config file at all. The values below are the defaults, written out so
|
|
9
|
+
// you can see exactly what there is to change. Delete any key and its
|
|
10
|
+
// default comes straight back.
|
|
11
|
+
//
|
|
12
|
+
// TO USE IT: copy this file to `~/.config/opencode/flight-deck.jsonc` (or
|
|
13
|
+
// `flight-deck.json` — the `.jsonc` name is tried first), then edit. Comments
|
|
14
|
+
// and trailing commas are fine.
|
|
15
|
+
//
|
|
16
|
+
// There is ONE config file, global to your user, so the same values apply to
|
|
17
|
+
// every project. Flight Deck does NOT look in a project root or in a
|
|
18
|
+
// project's `.opencode/` directory: a copy left there configures nothing.
|
|
19
|
+
//
|
|
20
|
+
// If `$XDG_CONFIG_HOME` is set, the path is
|
|
21
|
+
// `$XDG_CONFIG_HOME/opencode/flight-deck.jsonc` instead.
|
|
22
|
+
//
|
|
23
|
+
// The file is optional. Having none is the normal case, and it is silent —
|
|
24
|
+
// the defaults below are what you get.
|
|
25
|
+
//
|
|
26
|
+
// Upgrading from 0.4.0? A `flight-deck.jsonc` in a project root or in
|
|
27
|
+
// `.opencode/` is no longer read; move it to the global path above.
|
|
28
|
+
//
|
|
29
|
+
// The same values can also be passed as plugin options in opencode.jsonc /
|
|
30
|
+
// cli.json, which take precedence on hosts that forward them.
|
|
31
|
+
// ═════════════════════════════════════════════════════════════════════════
|
|
32
|
+
|
|
33
|
+
// ── Update cadence ───────────────────────────────────────────────────────
|
|
34
|
+
// Milliseconds between refreshes: the tick rate of everything that has to
|
|
35
|
+
// animate. The status spinner has ten frames, so 100 turns it once a second.
|
|
36
|
+
//
|
|
37
|
+
// Cost, tokens, and permissions arrive from the host's own events, so they
|
|
38
|
+
// stay current with no timer at all. Only clock-derived rows need one — and
|
|
39
|
+
// `elapsed` plus the spinner are the reason this exists. Without a tick they
|
|
40
|
+
// would sit frozen between turns.
|
|
41
|
+
//
|
|
42
|
+
// While nothing is running the tick backs off to about once a second: the
|
|
43
|
+
// spinner is hidden then, and `elapsed` only reads in whole seconds, so the
|
|
44
|
+
// host's renderer is woken a tenth as often for the same picture.
|
|
45
|
+
//
|
|
46
|
+
// 100 default — the spinner turns once a second, the clock stays live
|
|
47
|
+
// 50 twice as lively, still negligible work per tick
|
|
48
|
+
// 1000 a calm wall-clock tick, but the spinner visibly stutters
|
|
49
|
+
// 0 no timer; `elapsed` and the spinner only move when the session does,
|
|
50
|
+
// so a busy stretch with few host events can undercount the clock
|
|
51
|
+
//
|
|
52
|
+
// Anything faster than 16 (one frame at 60Hz) is clamped: a tick wakes the
|
|
53
|
+
// host's renderer, so a smaller value spends work without adding motion.
|
|
54
|
+
"refresh": 100,
|
|
55
|
+
|
|
56
|
+
// ── Sidebar ──────────────────────────────────────────────────────────────
|
|
57
|
+
"sidebar": {
|
|
58
|
+
// false hides the whole panel.
|
|
59
|
+
"enabled": true,
|
|
60
|
+
|
|
61
|
+
// Fixed lines, rendered above the live rows. This is the only text Flight
|
|
62
|
+
// Deck shows of its own — put your own words here, or a rule.
|
|
63
|
+
// Fixed lines use style.lines; live rows use their style.rows entry or the
|
|
64
|
+
// wildcard. With no custom style, the shipped theme-native look is kept.
|
|
65
|
+
"lines": ["✈ FLIGHT DECK", "─────────────────"],
|
|
66
|
+
|
|
67
|
+
// The live rows, top to bottom. Every value is read from the open session,
|
|
68
|
+
// so you never type these in. Delete any row you don't want, or reorder
|
|
69
|
+
// them freely — an unknown name is ignored with a one-time warning, so a
|
|
70
|
+
// typo can never break the panel.
|
|
71
|
+
//
|
|
72
|
+
// caution the annunciator: silent unless something stopped moving
|
|
73
|
+
// status running or idle — the glyph turns while anything is working
|
|
74
|
+
// agent which agent is running (orchestrator, build, plan, ...)
|
|
75
|
+
// model model id, plus the variant when there is one
|
|
76
|
+
// branch current git branch
|
|
77
|
+
// cost this conversation, plus its subagents when any ran; with
|
|
78
|
+
// `total` on the rail, the session figure alone
|
|
79
|
+
// total the family total and subagent count on a row of its own
|
|
80
|
+
// project every session in this project, not just the one on screen
|
|
81
|
+
// tokens this session's input and output tokens
|
|
82
|
+
// cache cache hit rate, then cache reads
|
|
83
|
+
// context a gauge of how full the context window is
|
|
84
|
+
// perms what is waiting for approval, not just how many
|
|
85
|
+
// elapsed active time: the clock runs only while this session — or a
|
|
86
|
+
// subagent in its tree, or one of its shells — is working, and
|
|
87
|
+
// freezes when everything settles. Process-local: it starts at
|
|
88
|
+
// zero with the plugin and counts only activity this run saw
|
|
89
|
+
// tps average speed while working: output tokens divided by the
|
|
90
|
+
// time the assistant's turns actually ran, subagents included.
|
|
91
|
+
// Idle between turns is never counted, so the figure freezes
|
|
92
|
+
// when everything settles rather than decaying or hiding; a
|
|
93
|
+
// turn still in flight counts up to now. On a host with no
|
|
94
|
+
// per-message timestamps it falls back to the lifetime
|
|
95
|
+
// average, which includes idle and can sag
|
|
96
|
+
// spark recent turn sizes as a sparkline
|
|
97
|
+
// reasoning reasoning tokens, when the model emits them
|
|
98
|
+
// turns how many prompts you have sent this session
|
|
99
|
+
// guard harness status from oc-harness-guard: breaches, orphans,
|
|
100
|
+
// findings, or ok. Available, off by default.
|
|
101
|
+
//
|
|
102
|
+
// Every named row renders persistently, so the rail keeps a stable shape:
|
|
103
|
+
// a row with no data yet shows the placeholder below, in the same label
|
|
104
|
+
// column as a live row. The fixed lines and live rows share the maxLines
|
|
105
|
+
// budget below, and anything past it is dropped.
|
|
106
|
+
"rows": [
|
|
107
|
+
"caution",
|
|
108
|
+
"status",
|
|
109
|
+
"agent",
|
|
110
|
+
"model",
|
|
111
|
+
"branch",
|
|
112
|
+
"cost",
|
|
113
|
+
"project",
|
|
114
|
+
"tokens",
|
|
115
|
+
"cache",
|
|
116
|
+
"context",
|
|
117
|
+
"perms",
|
|
118
|
+
"elapsed",
|
|
119
|
+
"tps"
|
|
120
|
+
],
|
|
121
|
+
|
|
122
|
+
// Every named row renders persistently: with no data yet it shows the
|
|
123
|
+
// placeholder below, in the same label column as a live row. Set to false
|
|
124
|
+
// to omit rows with no data instead.
|
|
125
|
+
"persist": true,
|
|
126
|
+
|
|
127
|
+
// Value shown for a persistent row with no data yet. Any non-empty string.
|
|
128
|
+
"placeholder": "—",
|
|
129
|
+
|
|
130
|
+
// Maximum total height, including fixed lines and live rows. Defaults to 24.
|
|
131
|
+
"maxLines": 24
|
|
132
|
+
},
|
|
133
|
+
|
|
134
|
+
// ── Footer ───────────────────────────────────────────────────────────────
|
|
135
|
+
// Off by default: the sidebar already carries the data, and the prompt
|
|
136
|
+
// footer is high-traffic space, so a line there should earn its place.
|
|
137
|
+
//
|
|
138
|
+
// Writing ANY footer setting turns it on — `"footer": { "text": "hi" }` is
|
|
139
|
+
// enough. Set "enabled": false explicitly to keep it hidden.
|
|
140
|
+
"footer": {
|
|
141
|
+
"enabled": false,
|
|
142
|
+
// Any single line. Empty text is ignored.
|
|
143
|
+
"text": "Flight Deck"
|
|
144
|
+
},
|
|
145
|
+
|
|
146
|
+
// -- Caution ---------------------------------------------------------------
|
|
147
|
+
// The annunciator: a warning row for the one failure nothing else can see.
|
|
148
|
+
//
|
|
149
|
+
// A hang emits NO events - no completion, no error, nothing - so everything
|
|
150
|
+
// observable about it is the absence of a signal. That is why this uses a
|
|
151
|
+
// clock and a baseline instead of a listener.
|
|
152
|
+
//
|
|
153
|
+
// It is silent unless something has stopped moving, so it costs nothing on a
|
|
154
|
+
// healthy session. When it speaks it reports what it saw, never what it
|
|
155
|
+
// means: `shell running 8m41s`, not "stuck". A ten-minute build is not a hang.
|
|
156
|
+
//
|
|
157
|
+
// It never aborts, kills, retries or blocks anything. Read-only.
|
|
158
|
+
"caution": {
|
|
159
|
+
"enabled": true,
|
|
160
|
+
|
|
161
|
+
// A tool running longer than this draws a subdued triangle...
|
|
162
|
+
"toolWatchSeconds": 180,
|
|
163
|
+
// ... and longer than this becomes a real caution.
|
|
164
|
+
// Raised to match the watch value if you set it lower.
|
|
165
|
+
"toolCautionSeconds": 420,
|
|
166
|
+
|
|
167
|
+
// A running session that has produced nothing for this long is noted.
|
|
168
|
+
// Deliberately generous: a large reasoning model can think for minutes
|
|
169
|
+
// with nothing to show, which the clock cannot distinguish from a wedge.
|
|
170
|
+
// Suppressed entirely while a tool or shell is running.
|
|
171
|
+
"turnWatchSeconds": 600,
|
|
172
|
+
"turnCautionSeconds": 1200,
|
|
173
|
+
|
|
174
|
+
// Identical consecutive calls before it counts as a loop. Two is a retry.
|
|
175
|
+
// Applies to identical successes and identical failures alike.
|
|
176
|
+
"repeatThreshold": 3,
|
|
177
|
+
|
|
178
|
+
// Tools that are slow by NATURE, so slow is not an anomaly for them.
|
|
179
|
+
// Matched by exact name.
|
|
180
|
+
//
|
|
181
|
+
// Calibrated against 54,218 real settled tool calls: at the default
|
|
182
|
+
// threshold, 307 (0.57%) exceed it and 200 of those are these tools, so
|
|
183
|
+
// with the list 0.20% of calls light the row. `subagent` alone crossed 152
|
|
184
|
+
// times, with a p99 of 14.7 minutes. Without this list the annunciator
|
|
185
|
+
// lights on every delegated task - which is how an alert gets ignored.
|
|
186
|
+
// Add your own long-running or orchestration tools here.
|
|
187
|
+
"exemptTools": ["question", "task", "subagent", "agent", "delegate", "delegate_many", "delegate_task"],
|
|
188
|
+
|
|
189
|
+
// Also raise a toast, once per distinct problem, re-arming when the session
|
|
190
|
+
// goes quiet. Off by default: the rail is the signal, a notification is an
|
|
191
|
+
// interruption. Turn it on if you walk away from long runs.
|
|
192
|
+
"toast": false
|
|
193
|
+
},
|
|
194
|
+
|
|
195
|
+
// -- Layout ----------------------------------------------------------------
|
|
196
|
+
// Row geometry. Change these when your terminal is unusually narrow or wide.
|
|
197
|
+
"layout": {
|
|
198
|
+
// Width of the label column every row pads to. 10 fits "caution" plus a
|
|
199
|
+
// space. Narrow it to fit more value on screen.
|
|
200
|
+
"labelWidth": 10,
|
|
201
|
+
// Cells in the `context` gauge.
|
|
202
|
+
"barWidth": 10,
|
|
203
|
+
// Samples drawn in the `spark` row. The newest turns are kept, so
|
|
204
|
+
// narrowing this keeps the recent shape rather than the oldest. The row is
|
|
205
|
+
// this many cells wide, so a large value is a wide row.
|
|
206
|
+
"sparkWidth": 12
|
|
207
|
+
},
|
|
208
|
+
|
|
209
|
+
// -- Format ----------------------------------------------------------------
|
|
210
|
+
// How values are written on the rail. Display only: nothing here changes
|
|
211
|
+
// what is measured, only how a number is drawn.
|
|
212
|
+
"format": {
|
|
213
|
+
// How the elapsed row joins its segments.
|
|
214
|
+
// "spaced" one space between units: 2h 14m 37s (the default)
|
|
215
|
+
// "compact" no space between units: 2h14m37s
|
|
216
|
+
// Zero-padding is the same either way: minutes pad when hours are present,
|
|
217
|
+
// seconds pad when minutes are present, so 2h 14m 07s never reads 2h 14m 7s.
|
|
218
|
+
"duration": "spaced"
|
|
219
|
+
},
|
|
220
|
+
|
|
221
|
+
// -- Glyphs ----------------------------------------------------------------
|
|
222
|
+
// The annunciator's characters. Change these if your terminal renders a
|
|
223
|
+
// default as a box or at the wrong width - an ugly but readable panel beats
|
|
224
|
+
// an unreadable one. One or two characters each.
|
|
225
|
+
"glyphs": {
|
|
226
|
+
"watch": "▲",
|
|
227
|
+
"caution": "⚠",
|
|
228
|
+
"clear": "○"
|
|
229
|
+
},
|
|
230
|
+
|
|
231
|
+
// -- Style -----------------------------------------------------------------
|
|
232
|
+
// Optional appearance, resolved through your active theme (no ANSI escapes).
|
|
233
|
+
// Colors are theme roles: default, subdued, warning, error, success, info.
|
|
234
|
+
// Attributes: bold, dim, italic, underline, blink, inverse, hidden,
|
|
235
|
+
// strikethrough. The values below are the defaults.
|
|
236
|
+
"style": {
|
|
237
|
+
"lines": { "color": "default", "attributes": [] },
|
|
238
|
+
"rows": {
|
|
239
|
+
"*": { "color": "subdued", "attributes": [] }
|
|
240
|
+
// Uncomment an override to make one row stand out:
|
|
241
|
+
// ,"cost": { "color": "success", "attributes": ["bold"] }
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
package/flight-deck.schema.json
CHANGED
|
@@ -53,6 +53,13 @@
|
|
|
53
53
|
"minLength": 1,
|
|
54
54
|
"default": "—",
|
|
55
55
|
"description": "Value shown for a persistent row with no data yet. Used only when `sidebar.persist` is true. Must be a non-empty string; anything else falls back to the default em dash."
|
|
56
|
+
},
|
|
57
|
+
"maxLines": {
|
|
58
|
+
"type": "integer",
|
|
59
|
+
"minimum": 1,
|
|
60
|
+
"maximum": 24,
|
|
61
|
+
"default": 24,
|
|
62
|
+
"description": "Maximum height of the whole rail, including fixed lines and live rows. Defaults to 24 and may be lowered from 1 to 23; lines past the limit are dropped."
|
|
56
63
|
}
|
|
57
64
|
}
|
|
58
65
|
},
|
|
@@ -157,6 +164,20 @@
|
|
|
157
164
|
}
|
|
158
165
|
},
|
|
159
166
|
|
|
167
|
+
"format": {
|
|
168
|
+
"type": "object",
|
|
169
|
+
"additionalProperties": false,
|
|
170
|
+
"description": "How values are written on the rail. Display only: these options change how a number is drawn, never what is measured.",
|
|
171
|
+
"properties": {
|
|
172
|
+
"duration": {
|
|
173
|
+
"type": "string",
|
|
174
|
+
"enum": ["spaced", "compact"],
|
|
175
|
+
"default": "spaced",
|
|
176
|
+
"description": "How the `elapsed` row joins its segments. `spaced` puts one space between them (`2h 14m 37s`, the default); `compact` runs them together (`2h14m37s`). Zero-padding is identical either way: minutes pad when hours are present, seconds pad when minutes are present (`14m 07s`, never `14m 7s`). An invalid value falls back to `spaced` and is reported."
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
|
|
160
181
|
"glyphs": {
|
|
161
182
|
"type": "object",
|
|
162
183
|
"additionalProperties": false,
|
|
@@ -184,6 +205,61 @@
|
|
|
184
205
|
"description": "Reserved for a future always-visible annunciator state. Not currently drawn: the row is absent when nothing is wrong."
|
|
185
206
|
}
|
|
186
207
|
}
|
|
208
|
+
},
|
|
209
|
+
|
|
210
|
+
"style": {
|
|
211
|
+
"type": "object",
|
|
212
|
+
"additionalProperties": false,
|
|
213
|
+
"description": "Optional per-line text styling. Colors are theme roles, not ANSI codes; attributes use OpenTUI text descriptor names. An absent style keeps the theme-native default appearance.",
|
|
214
|
+
"properties": {
|
|
215
|
+
"lines": {
|
|
216
|
+
"type": "object",
|
|
217
|
+
"additionalProperties": false,
|
|
218
|
+
"default": { "color": "default", "attributes": [] },
|
|
219
|
+
"description": "Appearance shared by the fixed branding and separator lines. Defaults to the theme's primary text color with no attributes.",
|
|
220
|
+
"properties": {
|
|
221
|
+
"color": {
|
|
222
|
+
"type": "string",
|
|
223
|
+
"enum": ["default", "subdued", "warning", "error", "success", "info"],
|
|
224
|
+
"default": "default",
|
|
225
|
+
"description": "Theme color role for fixed lines. Valid roles are default, subdued, warning, error, success, and info; default follows the active theme's primary text color."
|
|
226
|
+
},
|
|
227
|
+
"attributes": {
|
|
228
|
+
"type": "array",
|
|
229
|
+
"items": { "enum": ["bold", "dim", "italic", "underline", "blink", "inverse", "hidden", "strikethrough"] },
|
|
230
|
+
"default": [],
|
|
231
|
+
"description": "OpenTUI text attributes applied to fixed lines. Choose any combination of bold, dim, italic, underline, blink, inverse, hidden, and strikethrough; an empty list adds none."
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
"rows": {
|
|
236
|
+
"type": "object",
|
|
237
|
+
"additionalProperties": {
|
|
238
|
+
"type": "object",
|
|
239
|
+
"additionalProperties": false,
|
|
240
|
+
"description": "Appearance for the wildcard or one live row. Missing fields inherit the wildcard style.",
|
|
241
|
+
"properties": {
|
|
242
|
+
"color": {
|
|
243
|
+
"type": "string",
|
|
244
|
+
"enum": ["default", "subdued", "warning", "error", "success", "info"],
|
|
245
|
+
"default": "subdued",
|
|
246
|
+
"description": "Theme color role for this row. The wildcard defaults to subdued; a row override that omits color inherits the wildcard role."
|
|
247
|
+
},
|
|
248
|
+
"attributes": {
|
|
249
|
+
"type": "array",
|
|
250
|
+
"items": { "enum": ["bold", "dim", "italic", "underline", "blink", "inverse", "hidden", "strikethrough"] },
|
|
251
|
+
"default": [],
|
|
252
|
+
"description": "OpenTUI text attributes for this row. The wildcard defaults to none; a row override that omits attributes inherits the wildcard list."
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
"propertyNames": {
|
|
257
|
+
"enum": ["*", "caution", "status", "agent", "model", "branch", "cost", "total", "project", "tokens", "cache", "context", "perms", "elapsed", "tps", "spark", "reasoning", "turns", "guard"]
|
|
258
|
+
},
|
|
259
|
+
"default": { "*": { "color": "subdued", "attributes": [] } },
|
|
260
|
+
"description": "Style all live rows under `*`, then optionally override any known row name such as `cost`. A row can change one field and inherit the other from `*`; unknown row names are reported and ignored."
|
|
261
|
+
}
|
|
262
|
+
}
|
|
187
263
|
}
|
|
188
264
|
}
|
|
189
265
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oc-flight-deck",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.6",
|
|
4
4
|
"description": "Live OpenCode V2 session telemetry — agent, model, branch, cost, tokens, cache hit rate and context usage in your sidebar.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"opencode",
|
|
@@ -53,14 +53,14 @@
|
|
|
53
53
|
"access": "public"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@opencode/plugin": "2.0.
|
|
56
|
+
"@opencode/plugin": "2.0.16"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@opentui/core": "0.5.
|
|
60
|
-
"@opentui/solid": "0.5.
|
|
59
|
+
"@opentui/core": "0.5.12",
|
|
60
|
+
"@opentui/solid": "0.5.12",
|
|
61
61
|
"@types/bun": "^1.4.2",
|
|
62
|
-
"solid-js": "1.9.
|
|
63
|
-
"typescript": "^5.9.
|
|
62
|
+
"solid-js": "1.9.15",
|
|
63
|
+
"typescript": "^5.9.3"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"@opentui/core": ">=0.5.10",
|