opencode-statboard 2.10.6 → 2.10.8

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/tui-dashboard.js +8 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-statboard",
3
- "version": "2.10.6",
3
+ "version": "2.10.8",
4
4
  "description": "Real-time dashboard for opencode token usage and cost statistics",
5
5
  "main": "server.js",
6
6
  "bin": {
package/tui-dashboard.js CHANGED
@@ -398,8 +398,13 @@ class TUIServer {
398
398
 
399
399
  openWeb() {
400
400
  const url = 'http://' + this.host + ':' + this.port;
401
- const opener = process.platform === 'win32' ? 'start' : process.platform === 'darwin' ? 'open' : 'xdg-open';
402
- spawn(opener, [url], { detached: true, stdio: 'ignore' }).unref();
401
+ if (process.platform === 'win32') {
402
+ spawn('cmd', ['/c', 'start', '""', url], { detached: true, stdio: 'ignore' }).unref();
403
+ } else if (process.platform === 'darwin') {
404
+ spawn('open', [url], { detached: true, stdio: 'ignore' }).unref();
405
+ } else {
406
+ spawn('xdg-open', [url], { detached: true, stdio: 'ignore' }).unref();
407
+ }
403
408
  }
404
409
 
405
410
  getContentWidth() {
@@ -638,8 +643,7 @@ class TUIServer {
638
643
  out += line + '\n';
639
644
  }
640
645
 
641
- out += '\n{gray}Less \u2591\u2591\u2592\u2592\u2593\u2593\u2588\u2588 More (max: ' + this.formatNumber(max) + '){/gray}';
642
- return out;
646
+ out += '\n{gray}Less {cyan-fg}\u00B7\u00B7{/}{green-fg}\u2591\u2591{/}{yellow-fg}\u2592\u2592{/}{magenta-fg}\u2593\u2593{/}{red-fg}\u2588\u2588{/} More (max: ' + this.formatNumber(max) + '){/gray}';
643
647
  return out;
644
648
  }
645
649