opencode-usage-insights 0.0.0-stage → 0.1.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.
@@ -0,0 +1,18 @@
1
+ import { Plugin } from "@opencode/plugin";
2
+ /**
3
+ * Server-side recorder. Subscribes to the session event stream and persists
4
+ * every assistant step, prompt and lifecycle event into the stats database;
5
+ * the TUI entry reads the same database for its live line and stats panel.
6
+ *
7
+ * The plugin is observational: it never rewrites prompts, requests or
8
+ * responses, and a failure inside the recorder is swallowed so a session can
9
+ * never be interrupted by its own telemetry.
10
+ */
11
+ export type Options = {
12
+ /** Turn recording off: no event subscription, no database. */
13
+ enabled?: boolean | undefined;
14
+ /** SQLite database path override (defaults to the per-OS state directory). */
15
+ db?: string | undefined;
16
+ };
17
+ declare const _default: Plugin.Plugin;
18
+ export default _default;