@alyibrahim/claude-statusline 1.4.2 → 1.4.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alyibrahim/claude-statusline",
3
- "version": "1.4.2",
3
+ "version": "1.4.4",
4
4
  "description": "Rich statusline for Claude Code — model, context bar, real-time token tracking, git branch, rate limits, and session stats. Rust binary, ~5ms startup.",
5
5
  "keywords": [
6
6
  "claude",
@@ -592,8 +592,12 @@ filter.addEventListener('change', applyFilter);
592
592
 
593
593
  const tempPath = path.join(os.tmpdir(), 'claude-statusline-dashboard.html');
594
594
  fs.writeFileSync(tempPath, html);
595
- console.log(`Opened dashboard at ${tempPath}`);
596
- await open.default(tempPath);
595
+ try {
596
+ await open.default(tempPath);
597
+ console.log(`Dashboard opened: ${tempPath}`);
598
+ } catch (e) {
599
+ console.log(`Dashboard saved: ${tempPath}`);
600
+ }
597
601
  }
598
602
 
599
603
  module.exports = { handleHookStart, handleHookEnd, handleHistory };
package/statusline.js CHANGED
@@ -9,7 +9,10 @@ const { execSync, execFileSync } = require('child_process');
9
9
 
10
10
  const cmd = process.argv[2];
11
11
  if (cmd === 'history') {
12
- require('./scripts/history').handleHistory();
12
+ require('./scripts/history').handleHistory().catch(e => {
13
+ console.error('history error:', e.message);
14
+ process.exit(1);
15
+ });
13
16
  return;
14
17
  } else if (cmd === 'hook') {
15
18
  const hookcmd = process.argv[3];