opencode-tps-meter 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,17 @@
1
+ /**
2
+ * OpenCode TPS Meter Plugin
3
+ *
4
+ * A live tokens-per-second meter for tracking AI token throughput in OpenCode.
5
+ *
6
+ * @module opencode-tps-meter
7
+ */
8
+ import type { PluginContext, PluginHandlers } from "./types.js";
9
+ /**
10
+ * Main plugin function that initializes the TPS meter
11
+ *
12
+ * @param {PluginContext} context - Plugin context from OpenCode framework
13
+ * @returns {PluginHandlers | Record<string, never>} - Event handlers or empty object if disabled
14
+ */
15
+ export default function TpsMeterPlugin(context: PluginContext): PluginHandlers | Record<string, never>;
16
+ export type { BufferEntry, TPSTrackerOptions, TPSTracker, UIManager, TokenCounter, Config, OpenCodeClient, DisplayState, PluginContext, Logger, MessageEvent, PluginHandlers, } from "./types.js";
17
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EAKf,MAAM,YAAY,CAAC;AAoHpB;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc,CACpC,OAAO,EAAE,aAAa,GACrB,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CA4VxC;AAGD,YAAY,EACV,WAAW,EACX,iBAAiB,EACjB,UAAU,EACV,SAAS,EACT,YAAY,EACZ,MAAM,EACN,cAAc,EACd,YAAY,EACZ,aAAa,EACb,MAAM,EACN,YAAY,EACZ,cAAc,GACf,MAAM,YAAY,CAAC"}