opencode-tps-meter 0.1.2 → 0.1.4

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/index.js CHANGED
@@ -44,8 +44,6 @@ var exports_src = {};
44
44
  __export(exports_src, {
45
45
  default: () => TpsMeterPlugin
46
46
  });
47
- // OpenCode compatibility: unwrap plugin function from getter
48
- module.exports = exports_src.default();
49
47
 
50
48
  // src/constants.ts
51
49
  var MIN_TPS_ELAPSED_MS = 250;
@@ -834,3 +832,8 @@ function TpsMeterPlugin(context) {
834
832
  }
835
833
  };
836
834
  }
835
+
836
+ // OpenCode compatibility: export plugin function
837
+ module.exports = exports_src.default;
838
+ module.exports.default = exports_src.default;
839
+ Object.defineProperty(module.exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "commonjs"
3
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-tps-meter",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Live tokens-per-second meter for OpenCode",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",