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.
- package/README.md +594 -0
- package/dist/config.d.ts +46 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/constants.d.ts +43 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +832 -0
- package/dist/index.mjs +786 -0
- package/dist/tokenCounter.d.ts +85 -0
- package/dist/tokenCounter.d.ts.map +1 -0
- package/dist/tracker.d.ts +17 -0
- package/dist/tracker.d.ts.map +1 -0
- package/dist/types.d.ts +322 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/ui.d.ts +18 -0
- package/dist/ui.d.ts.map +1 -0
- package/package.json +36 -0
package/dist/index.d.ts
ADDED
|
@@ -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"}
|