opencode-statboard 2.10.7 → 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 +7 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-statboard",
3
- "version": "2.10.7",
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() {