oc-flight-deck 0.20.5 → 0.20.7

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
@@ -1,26 +1,23 @@
1
1
  # Changelog
2
2
 
3
- ## [0.20.4] - 2026-10-23
3
+ All notable changes to this project are documented in this file.
4
4
 
5
- - Pipeline-verification patch; no functional change.
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
7
 
7
- ## [0.20.3] - 2026-10-23
8
+ ## [Unreleased]
8
9
 
9
- - `@opencode/plugin` is no longer a runtime dependency. It moves to an optional peer range (`>=2.1.1 <3`), with 2.1.3 as a dev dependency for types, so an install no longer carries its own copy of the host module.
10
- - Rationale: the host serves `@opencode/plugin` and its subpaths from its own package tree at load time and refuses a copy loaded from a plugin's `node_modules`, so the bundled copy was never used - it only added a duplicate install tree (a clean `npm install @opencode/plugin@2.1.3` measures 127 MB across 167 packages) beside every plugin.
11
- - No behaviour change; hosts on 2.1.1 and 2.1.3 are both supported.
10
+ ## [0.20.7] - 2026-10-30
12
11
 
13
- ## [0.20.2] - 2026-10-22
12
+ ### Changed
14
13
 
15
- - Version bump for the monorepo release; no runtime change.
16
- - npm is the only documented install route; the git and local-clone routes were removed from the docs.
14
+ - `cost` and `total` no longer prefix an estimated figure with `~`. An estimated figure is still catalog-priced rather than a recorded charge; only its mark is gone, because the mark cost more width than the distinction earned. The `≥` floor mark stays: it says the figure counts only the history the host still holds.
17
15
 
18
- All notable changes to this project are documented in this file.
16
+ ## [0.20.6] - 2026-10-29
19
17
 
20
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
21
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
18
+ ### Changed
22
19
 
23
- ## [Unreleased]
20
+ - Dependency pins move to the host's current line: `@opencode/plugin` 2.2.0 → 2.2.1 for types and build, and the `@opentui/core` / `@opentui/solid` dev pins 0.6.6 → 0.7.0 to match the renderer the host ships. No source change and no peer-range change: `@opencode/plugin` stays `>=2.1.1 <3` and `@opentui/core` / `@opentui/solid` stay `>=0.6.6`, so a host on the 2.1.x line or on the 0.6.x renderer still loads the same build. `@opencode/theme` is not declared by this package.
24
21
 
25
22
  ## [0.20.5] - 2026-10-28
26
23
 
@@ -33,6 +30,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
33
30
  - `cost` and `total` now read the host's own figures. `total` is the family roll-up (`data.session.cost(root(sessionID))`), resolved from the session's root because `cost()` answers a family only for a root. It is drawn as exact only when the host's family records are complete and consistent with the charges visible on the message lists - every listed member on record, and a roll-up that already covers them. Otherwise the host's figure is shown as a floor (`>=`) and is never raised above itself; when the host reports zero, the visible recorded sum is shown as a floor; `$0.000` is exact only for a complete family with nothing recorded or visible, and incomplete coverage with nothing visible is a floor at zero. a zero roll-up where the family still holds tokens on models the catalog prices is a catalog estimate across the whole family, marked `~`, never exact. `cost` is the current model's spend: the recorded cost of the assistant steps that ran on the selected model, excluding anything older than the session's own creation (the host's own fork guard, so copied parent history is not billed to the fork), and marked as a floor because the TUI surface exposes a window of history with no paging. A step whose charge was not recorded is catalog-priced and marked `~`. The session aggregate is never used as a per-model figure, and no price table ships in this package. `@opencode/plugin` moves to 2.2.0 for types.
34
31
  - The rail's count formatter now steps past millions: a 1,769,100,000 cache read draws as `1.8B` instead of `1769.1M`, and the 999,950,000 boundary draws as `1B` instead of `1000M`. The `B` and `T` steps carry the same one-decimal shape as `M`, and the round-before-unit rule holds at every boundary up to the deliberate `T` ceiling (a token count at ~999.95T would still read `1000T`).
35
32
 
33
+ ## [0.20.4] - 2026-10-23
34
+
35
+ - Pipeline-verification patch; no functional change.
36
+
37
+ ## [0.20.3] - 2026-10-23
38
+
39
+ - `@opencode/plugin` is no longer a runtime dependency. It moves to an optional peer range (`>=2.1.1 <3`), with 2.1.3 as a dev dependency for types, so an install no longer carries its own copy of the host module.
40
+ - Rationale: the host serves `@opencode/plugin` and its subpaths from its own package tree at load time and refuses a copy loaded from a plugin's `node_modules`, so the bundled copy was never used - it only added a duplicate install tree (a clean `npm install @opencode/plugin@2.1.3` measures 127 MB across 167 packages) beside every plugin.
41
+ - No behaviour change; hosts on 2.1.1 and 2.1.3 are both supported.
42
+
43
+ ## [0.20.2] - 2026-10-22
44
+
45
+ - Version bump for the monorepo release; no runtime change.
46
+ - npm is the only documented install route; the git and local-clone routes were removed from the docs.
47
+
36
48
  ## [0.20.1] - 2026-10-21
37
49
 
38
50
  ### Changed
package/dist/tui/index.js CHANGED
@@ -792,11 +792,8 @@ function skeletonValue(field, layout) {
792
792
 
793
793
  // src/tui/rows.ts
794
794
  var SPINNER = ["\u280B", "\u2819", "\u2839", "\u2838", "\u283C", "\u2834", "\u2826", "\u2827", "\u2807", "\u280F"];
795
- var ESTIMATE_MARK = "~";
796
795
  var FLOOR_MARK = String.fromCharCode(8805);
797
796
  function feeMark(kind) {
798
- if (kind === "estimated")
799
- return ESTIMATE_MARK;
800
797
  if (kind === "bounded")
801
798
  return FLOOR_MARK;
802
799
  return "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oc-flight-deck",
3
- "version": "0.20.5",
3
+ "version": "0.20.7",
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",
@@ -60,9 +60,9 @@
60
60
  "access": "public"
61
61
  },
62
62
  "devDependencies": {
63
- "@opencode/plugin": "2.2.0",
64
- "@opentui/core": "0.6.6",
65
- "@opentui/solid": "0.6.6",
63
+ "@opencode/plugin": "2.2.2",
64
+ "@opentui/core": "0.7.0",
65
+ "@opentui/solid": "0.7.0",
66
66
  "@types/bun": "^1.4.2",
67
67
  "solid-js": "1.9.12",
68
68
  "string-width": "7.2.0",
package/src/tui/rows.ts CHANGED
@@ -27,16 +27,15 @@ import {
27
27
  const SPINNER = ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"] as const;
28
28
 
29
29
  // How a money figure introduces itself. A bare figure is the host's recorded
30
- // charge. `~` says at least one part of it was priced from the model catalog
31
- // rather than charged, and the floor mark says it counts only the history the
32
- // host still holds. Built from code points so this file stays ASCII, the same
33
- // way the other non-ASCII glyphs here are.
34
- const ESTIMATE_MARK = "~";
30
+ // charge or a catalog price — the rail does not mark an estimate, because the
31
+ // mark cost more width than the distinction earned. The floor mark stays: it
32
+ // says the figure counts only the history the host still holds. Built from a
33
+ // code point so this file stays ASCII, the same way the other non-ASCII glyphs
34
+ // here are.
35
35
  const FLOOR_MARK = String.fromCharCode(0x2265);
36
36
 
37
37
  /** The mark a money figure carries, from the strength of its claim. */
38
38
  function feeMark(kind: unknown): string {
39
- if (kind === "estimated") return ESTIMATE_MARK;
40
39
  if (kind === "bounded") return FLOOR_MARK;
41
40
  return "";
42
41
  }