opencode-top 3.2.1 → 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,10 +17935,10 @@ var Ink = class {
17935
17935
  this.fullStaticOutput += staticOutput;
17936
17936
  }
17937
17937
  if (outputHeight >= this.options.stdout.rows) {
17938
- this.log.clear();
17939
- if (this.fullStaticOutput) this.options.stdout.write(this.fullStaticOutput);
17940
- this.log(output);
17941
- this.lastOutput = output;
17938
+ if (output !== this.lastOutput) {
17939
+ this.log(output);
17940
+ this.lastOutput = output;
17941
+ }
17942
17942
  return;
17943
17943
  }
17944
17944
  if (hasStaticOutput) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-top",
3
- "version": "3.2.1",
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": {
@@ -1,13 +1,8 @@
1
- --- /tmp/ink.js.orig 2026-03-15 03:32:19.803923699 +0100
2
- +++ node_modules/ink/build/ink.js 2026-03-15 03:32:24.220762248 +0100
3
- @@ -119,7 +119,9 @@
4
- this.fullStaticOutput += staticOutput;
5
- }
6
- if (outputHeight >= this.options.stdout.rows) {
7
- - this.options.stdout.write(ansiEscapes.clearTerminal + this.fullStaticOutput + output);
8
- + this.log.clear();
9
- + if (this.fullStaticOutput) this.options.stdout.write(this.fullStaticOutput);
10
- + this.log(output);
11
- this.lastOutput = output;
12
- return;
13
- }
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
+ > }