oc-flight-deck 0.8.0 → 0.8.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 +12 -6
- package/flight-deck.example.jsonc +9 -4
- package/flight-deck.schema.json +3 -3
- package/package.json +1 -1
- package/src/tui/config.ts +16 -16
- package/src/tui/index.tsx +6 -5
package/README.md
CHANGED
|
@@ -37,14 +37,11 @@ cache 98% hit · 32M read
|
|
|
37
37
|
context ██░░░░░░░░ 18%
|
|
38
38
|
elapsed 2h 14m 37s
|
|
39
39
|
tps 18 tok/s
|
|
40
|
-
|
|
41
|
-
▸ FLIGHT DECK
|
|
42
|
-
─────────────────
|
|
43
40
|
```
|
|
44
41
|
|
|
45
42
|
Every row is read from the open session at render time — except `caution`, which watches a clock rather than events (a hang emits none); `elapsed`, which is seeded once from the session's own recorded assistant turn spans and then accumulates the busy windows this run observes, rather than a value the session reports; and the opt-in `guard` row, which is polled from the local guard RPC.
|
|
46
43
|
|
|
47
|
-
The panel's only fixed text — `▸ FLIGHT DECK` over a separator — renders in the sidebar footer slot, a separate host region **below** the rows: the top of the rail starts directly with the live rows.
|
|
44
|
+
The panel's only fixed text — `▸ FLIGHT DECK` over a separator — is **opt-in**. It renders in the sidebar footer slot, a separate host region **below** the rows: the top of the rail starts directly with the live rows. Since 0.8.1 the footer is empty by default, so a fresh install draws the live rows and nothing else; set `sidebar.footer.lines` to the pair to re-enable it (see ⚙️ Configure). The footer is independent of `sidebar.rows` and `sidebar.maxLines`.
|
|
48
45
|
|
|
49
46
|
| Row | What it shows |
|
|
50
47
|
|---|---|
|
|
@@ -114,11 +111,20 @@ The file is optional, and a missing file is normal and silent: with no file at a
|
|
|
114
111
|
|
|
115
112
|
> **Upgrading from 0.7.0 — the branding moved.** The `▸ FLIGHT DECK` pair now renders in the sidebar footer slot, and `sidebar.lines` defaults to empty, so the top of the rail starts with the live rows. An explicit `sidebar.lines` is kept — it does not suppress the footer default; `sidebar.footer.lines: []` is the way to drop the footer entirely.
|
|
116
113
|
|
|
114
|
+
> **Upgrading from 0.8.0 — the branding is opt-in since 0.8.1.** The footer slot no longer ships the `▸ FLIGHT DECK` pair by default: with `sidebar.footer.lines` empty (the new default) nothing renders below the rows and no footer slot is claimed. Set `sidebar.footer.lines` back to the pair to get the footer exactly as it was.
|
|
115
|
+
|
|
117
116
|
`sidebar.rows` picks the rows and their order; `sidebar.maxLines` caps the whole rail (fixed lines plus rows, default 24, configurable from 1 to 24); `layout.labelWidth` fits your terminal; `format.duration` switches the `elapsed` row between `spaced` (`2h 14m 37s`, the default) and `compact` (`2h14m37s`).
|
|
118
117
|
|
|
119
|
-
`sidebar.footer.lines` sets the fixed lines in the sidebar footer slot —
|
|
118
|
+
`sidebar.footer.lines` sets the fixed lines in the sidebar footer slot — empty by default since 0.8.1, in a region the host draws below the rows. Set it to the documented pair to re-enable the branding:
|
|
119
|
+
|
|
120
|
+
```jsonc
|
|
121
|
+
// inside "sidebar":
|
|
122
|
+
"footer": { "lines": ["▸ FLIGHT DECK", "─────────────────"] }
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
It is independent of `sidebar.lines`: setting your own top lines does not turn the footer on, and an explicitly empty `"lines": []` inside `sidebar.footer` keeps the slot off entirely. The footer never counts against `sidebar.maxLines`.
|
|
120
126
|
|
|
121
|
-
Optional styling lives under `style`: `style.lines` controls the fixed branding/separator lines (the
|
|
127
|
+
Optional styling lives under `style`: `style.lines` controls the fixed branding/separator lines (the opt-in footer pair when you set `sidebar.footer.lines`, or whatever `sidebar.lines` you set), `style.rows."*"` sets every live row, and `style.rows.cost` (or another row name) overrides one field while inheriting omitted values from the wildcard. Colors are theme roles - `default`, `subdued`, `warning`, `error`, `success`, `info` - and attributes are OpenTUI descriptors: `bold`, `dim`, `italic`, `underline`, `blink`, `inverse`, `hidden`, `strikethrough`. Defaults keep the existing theme-native look; no ANSI escapes or raw colors are needed. Invalid colors, attributes, and row names are reported and safely ignored.
|
|
122
128
|
|
|
123
129
|
Everything else lives in the example file, documented inline - a typo is never fatal: the bad value is ignored, the default comes back, and you get a one-time toast naming the key to fix.
|
|
124
130
|
|
|
@@ -67,11 +67,16 @@
|
|
|
67
67
|
"lines": [],
|
|
68
68
|
|
|
69
69
|
// The sidebar footer slot: fixed lines below the rows, in the host's
|
|
70
|
-
// dedicated sidebar-footer area
|
|
71
|
-
//
|
|
72
|
-
//
|
|
70
|
+
// dedicated sidebar-footer area, outside the maxLines budget. EMPTY by
|
|
71
|
+
// default since 0.8.1 — copying this file yields the minimal TUI. The
|
|
72
|
+
// branding pair is the documented opt-in; set it back to re-enable:
|
|
73
|
+
//
|
|
74
|
+
// "lines": ["▸ FLIGHT DECK", "─────────────────"]
|
|
75
|
+
//
|
|
76
|
+
// An explicitly empty list removes the footer slot entirely. Fixed lines
|
|
77
|
+
// use style.lines.
|
|
73
78
|
"footer": {
|
|
74
|
-
"lines": [
|
|
79
|
+
"lines": []
|
|
75
80
|
},
|
|
76
81
|
|
|
77
82
|
// The live rows, top to bottom. Every value is read from the open session,
|
package/flight-deck.schema.json
CHANGED
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
"footer": {
|
|
40
40
|
"type": "object",
|
|
41
41
|
"additionalProperties": false,
|
|
42
|
-
"description": "Fixed lines rendered in the sidebar footer slot, a separate host region below the rows that draws outside the 24-line rail cap.
|
|
42
|
+
"description": "Fixed lines rendered in the sidebar footer slot, a separate host region below the rows that draws outside the 24-line rail cap. Empty by default since 0.8.1 — set the documented `▸ FLIGHT DECK` / `─────────────────` pair in `lines` to re-enable the branding. An explicitly empty `lines` array removes the slot entirely.",
|
|
43
43
|
"properties": {
|
|
44
44
|
"lines": {
|
|
45
45
|
"type": "array",
|
|
46
46
|
"items": { "type": "string" },
|
|
47
|
-
"default": [
|
|
47
|
+
"default": [],
|
|
48
48
|
"maxItems": 24,
|
|
49
|
-
"description": "The footer's fixed lines, in order.
|
|
49
|
+
"description": "The footer's fixed lines, in order. Empty by default since 0.8.1 — set the documented `▸ FLIGHT DECK` / `─────────────────` pairing here to re-enable it. Independent of `sidebar.lines`, so setting your own top lines does not turn the footer on. An explicit empty array opts the footer slot out (and never registers it)."
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
},
|
package/package.json
CHANGED
package/src/tui/config.ts
CHANGED
|
@@ -50,12 +50,12 @@ interface SidebarConfig {
|
|
|
50
50
|
|
|
51
51
|
interface SidebarFooterConfig {
|
|
52
52
|
/**
|
|
53
|
-
* The footer's fixed lines
|
|
53
|
+
* The footer's fixed lines. Empty by default since 0.8.1.
|
|
54
54
|
*
|
|
55
|
-
* An explicitly empty list opts the footer slot out entirely.
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
* `maxLines` budget.
|
|
55
|
+
* An explicitly empty list opts the footer slot out entirely. Only a
|
|
56
|
+
* non-empty list registers the slot: set the documented `▸ FLIGHT DECK` /
|
|
57
|
+
* `─────────────────` branding pair here to re-enable it. The two lists are
|
|
58
|
+
* independent, and the footer draws outside the rail's `maxLines` budget.
|
|
59
59
|
*/
|
|
60
60
|
readonly lines: readonly string[];
|
|
61
61
|
}
|
|
@@ -229,16 +229,16 @@ const DEFAULT_CAUTION: CautionConfig = {
|
|
|
229
229
|
export const DEFAULT_SIDEBAR_LINES: readonly string[] = [];
|
|
230
230
|
|
|
231
231
|
/**
|
|
232
|
-
* The sidebar footer's default fixed lines
|
|
232
|
+
* The sidebar footer's default fixed lines.
|
|
233
233
|
*
|
|
234
|
-
*
|
|
235
|
-
*
|
|
236
|
-
*
|
|
234
|
+
* Empty since 0.8.1: a fresh install renders no footer text at all, so the
|
|
235
|
+
* rail is the live rows and nothing else. The `▸ FLIGHT DECK` /
|
|
236
|
+
* `─────────────────` branding pair is a documented opt-in — set
|
|
237
|
+
* `sidebar.footer.lines` to the pair to re-enable it (see the README's
|
|
238
|
+
* ⚙️ Configure section). An explicitly empty `sidebar.footer.lines` from a
|
|
239
|
+
* config file removes the slot entirely.
|
|
237
240
|
*/
|
|
238
|
-
export const DEFAULT_SIDEBAR_FOOTER_LINES: readonly string[] = [
|
|
239
|
-
"▸ FLIGHT DECK",
|
|
240
|
-
"─────────────────",
|
|
241
|
-
];
|
|
241
|
+
export const DEFAULT_SIDEBAR_FOOTER_LINES: readonly string[] = [];
|
|
242
242
|
|
|
243
243
|
/**
|
|
244
244
|
* Live fields shown by default, in reading order.
|
|
@@ -418,11 +418,11 @@ function readLines(value: unknown, issues: string[], maxLines: number): readonly
|
|
|
418
418
|
}
|
|
419
419
|
|
|
420
420
|
/**
|
|
421
|
-
* The sidebar footer's fixed lines —
|
|
421
|
+
* The sidebar footer's fixed lines — empty by default since 0.8.1.
|
|
422
422
|
*
|
|
423
423
|
* Unlike the top rail, an explicitly empty list is meaningful: it removes the
|
|
424
|
-
* footer slot entirely.
|
|
425
|
-
*
|
|
424
|
+
* footer slot entirely. A non-empty list with no usable entries falls back to
|
|
425
|
+
* the (empty) default, reported like every other bad value, and a runaway
|
|
426
426
|
* footer is capped at `MAX_LINES` the way the top rail is.
|
|
427
427
|
*/
|
|
428
428
|
function readSidebarFooterLines(value: unknown, issues: string[]): readonly string[] {
|
package/src/tui/index.tsx
CHANGED
|
@@ -299,11 +299,12 @@ export default Plugin.define({
|
|
|
299
299
|
releases.push(
|
|
300
300
|
context.ui.slot({
|
|
301
301
|
// The sidebar footer: a separate host slot below the rows. The
|
|
302
|
-
//
|
|
303
|
-
//
|
|
304
|
-
//
|
|
305
|
-
// stays when `sidebar.lines` is
|
|
306
|
-
//
|
|
302
|
+
// lines are empty by default since 0.8.1, so this registration is
|
|
303
|
+
// purely opt-in — set `sidebar.footer.lines` (the documented
|
|
304
|
+
// `▸ FLIGHT DECK` pair, or your own) to claim the slot. It draws
|
|
305
|
+
// outside the `maxLines` budget and stays when `sidebar.lines` is
|
|
306
|
+
// customized. The lines are fixed, so nothing here subscribes to
|
|
307
|
+
// the ticker or the session.
|
|
307
308
|
append: "sidebar.footer",
|
|
308
309
|
render: () => (
|
|
309
310
|
<box flexDirection="column">
|