opencode-top 3.2.0 → 3.2.2

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/bin/octop.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { dirname, join } from "path";
3
- import { fileURLToPath } from "url";
3
+ import { fileURLToPath, pathToFileURL } from "url";
4
4
 
5
5
  const __dirname = dirname(fileURLToPath(import.meta.url));
6
- await import(join(__dirname, "..", "dist", "cli.mjs"));
6
+ await import(pathToFileURL(join(__dirname, "..", "dist", "cli.mjs")).href);
package/dist/cli.mjs CHANGED
@@ -17935,8 +17935,10 @@ var Ink = class {
17935
17935
  this.fullStaticOutput += staticOutput;
17936
17936
  }
17937
17937
  if (outputHeight >= this.options.stdout.rows) {
17938
- this.options.stdout.write(base_exports.clearTerminal + this.fullStaticOutput + output);
17939
- this.lastOutput = output;
17938
+ if (output !== this.lastOutput) {
17939
+ this.log(output);
17940
+ this.lastOutput = output;
17941
+ }
17940
17942
  return;
17941
17943
  }
17942
17944
  if (hasStaticOutput) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-top",
3
- "version": "3.2.0",
3
+ "version": "3.2.2",
4
4
  "description": "Monitor OpenCode AI coding sessions - Token usage, costs, and agent analytics",
5
5
  "type": "module",
6
6
  "bin": {
@@ -31,6 +31,7 @@
31
31
  "@types/node": "^22.10.5",
32
32
  "@types/react": "^18.3.3",
33
33
  "esbuild": "^0.27.4",
34
+ "patch-package": "^8.0.1",
34
35
  "tsx": "^4.19.2",
35
36
  "typescript": "^5.7.2",
36
37
  "vitest": "^2.1.8"
@@ -0,0 +1,8 @@
1
+ 122,123c122,125
2
+ < this.options.stdout.write(ansiEscapes.clearTerminal + this.fullStaticOutput + output);
3
+ < this.lastOutput = output;
4
+ ---
5
+ > if (output !== this.lastOutput) {
6
+ > this.log(output);
7
+ > this.lastOutput = output;
8
+ > }