opencode-usage-insights 0.1.3 → 0.2.0

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
@@ -11,16 +11,19 @@ import { type PanelView, type RangeKey } from "./panel-data";
11
11
  * - `session.panel` + the `/stats` slash command: the statistics panel over
12
12
  * the database written by the server entry.
13
13
  *
14
- * The line is computed from the host's transcript alone; the database is opened
15
- * lazily for the panel and the sidebar, read-only in spirit: the TUI never
16
- * writes usage. When the database cannot be opened, the line still works and
17
- * the panel explains itself.
14
+ * The line is computed from the host's transcript alone; the panel, the
15
+ * sidebar history and the stored list estimate come from the server's usage
16
+ * RPC. The TUI never opens SQLite, so it works the same against a local or a
17
+ * remote server. When the RPC is unavailable, the line still works and the
18
+ * panel explains itself.
18
19
  */
19
20
  export type Options = {
20
21
  /** Turn the TUI side off: no line and no panel. */
21
22
  enabled?: boolean | undefined;
22
- /** SQLite database path override; must match the server entry. */
23
+ /** Server-side database path override; the TUI reads it through the RPC. */
23
24
  db?: string | undefined;
25
+ /** Allow the panel's prune, wipe, vacuum and backfill actions. Defaults to true. */
26
+ maintenance?: boolean | undefined;
24
27
  /**
25
28
  * List-price estimates for steps the host reports as costing nothing.
26
29
  * `off` hides them on the line, in the panel and in the sidebar, and
@@ -38,7 +41,7 @@ export type Options = {
38
41
  labels?: Partial<LineLabels> | undefined;
39
42
  /** Show the per-prompt history in the session sidebar (default true). */
40
43
  sidebar?: boolean | undefined;
41
- /** How many turns the sidebar history shows (default 8). */
44
+ /** How many turns the sidebar history shows (default 8, clamped to 1–50). */
42
45
  sidebarTurns?: number | undefined;
43
46
  /**
44
47
  * Show the `/usage` statistics panel and its command (default true).