opencode-usage-insights 0.2.0 → 0.3.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/dist/tui.d.ts CHANGED
@@ -8,8 +8,10 @@ import { type PanelView, type RangeKey } from "./panel-data";
8
8
  * - `session.composer.top`: one telemetry line after every turn with the end
9
9
  * time, the delta since the previous prompt, the provider and model that ran
10
10
  * it, turn and session token totals, and cache warnings.
11
- * - `session.panel` + the `/stats` slash command: the statistics panel over
12
- * the database written by the server entry.
11
+ * - `session.panel` + the `/usage-insights` slash command: the statistics
12
+ * panel over the database written by the server entry. Its `go` view reads
13
+ * the host's live OpenCode Go allowance; the sidebar carries the compact
14
+ * forecast.
13
15
  *
14
16
  * The line is computed from the host's transcript alone; the panel, the
15
17
  * sidebar history and the stored list estimate come from the server's usage
@@ -44,8 +46,15 @@ export type Options = {
44
46
  /** How many turns the sidebar history shows (default 8, clamped to 1–50). */
45
47
  sidebarTurns?: number | undefined;
46
48
  /**
47
- * Show the `/usage` statistics panel and its command (default true).
48
- * `false` keeps the live line and the sidebar history.
49
+ * Read the host's OpenCode Go allowance and show the `go` view and the
50
+ * sidebar forecast. `off` makes no usage-limits request at all.
51
+ */
52
+ quota?: "auto" | "off" | undefined;
53
+ /** Full subscription label; defaults to the host provider name or OpenCode Go. */
54
+ quotaName?: string | undefined;
55
+ /**
56
+ * Show the `/usage-insights` statistics panel and its command (default
57
+ * true). `false` keeps the live line and the sidebar history.
49
58
  */
50
59
  panel?: boolean | undefined;
51
60
  };