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 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. The footer is independent of `sidebar.rows` and `sidebar.maxLines`; it ships the branding pair by default, and `sidebar.footer.lines` replaces or removes it (see ⚙️ Configure).
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 — the branding pair by default, in a region the host draws below the rows. It is independent of `sidebar.lines`: setting your own top lines keeps the default footer, and an explicitly empty `"lines": []` inside `sidebar.footer` removes the slot entirely. The footer never counts against `sidebar.maxLines`.
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 sidebar footer's default pair, 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.
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. NEW in 0.8.0 — the branding pair ships
71
- // here by default, outside the maxLines budget. An explicitly empty list
72
- // removes the footer slot entirely. Fixed lines use style.lines.
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": ["▸ FLIGHT DECK", "─────────────────"]
79
+ "lines": []
75
80
  },
76
81
 
77
82
  // The live rows, top to bottom. Every value is read from the open session,
@@ -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. The branding pair ships here by default; an explicitly empty `lines` array removes the slot entirely.",
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": ["▸ FLIGHT DECK", "─────────────────"],
47
+ "default": [],
48
48
  "maxItems": 24,
49
- "description": "The footer's fixed lines, in order. Defaults to the branding pair; independent of `sidebar.lines`, so setting your own top lines keeps the default footer. An explicit empty array opts the footer slot out entirely."
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oc-flight-deck",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
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",
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 — the branding pair by default.
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. Absent, the
56
- * default branding comes back regardless of what `sidebar.lines` says: the
57
- * two lists are independent, and the footer draws outside the rail's
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 — branding only.
232
+ * The sidebar footer's default fixed lines.
233
233
  *
234
- * They render in the host's separate `sidebar.footer` slot, below the rows
235
- * and outside the rail's `maxLines` budget. An explicitly empty
236
- * `sidebar.footer.lines` from a config file removes the slot entirely.
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 — the branding pair by default.
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. Only a non-empty list with no usable entries falls
425
- * back to the default, reported like every other bad value, and a runaway
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
- // branding pair ships here by default since 0.8.0; an explicitly
303
- // empty `sidebar.footer.lines` from a config file skips this
304
- // registration entirely. It draws outside the `maxLines` budget and
305
- // stays when `sidebar.lines` is customized. The lines are fixed, so
306
- // nothing here subscribes to the ticker or the session.
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">