claude-simple-status 1.3.0 → 1.3.1

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/statusline.mjs +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-simple-status",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "A simple statusline for Claude Code — project name, git branch, model, context usage, quota, and API costs at a glance",
5
5
  "type": "module",
6
6
  "bin": {
package/statusline.mjs CHANGED
@@ -298,7 +298,7 @@ function getQuotaPressure(windowKey, utilization, resetsAtIso) {
298
298
 
299
299
  const oldest = history.readings[0];
300
300
  const elapsedMs = now - oldest.ts;
301
- if (elapsedMs < 60_000) return null; // need at least 1 min of data
301
+ if (elapsedMs < 600_000) return null; // need at least 10 min of data to avoid noisy early-window spikes
302
302
 
303
303
  const pctGained = utilization - oldest.pct;
304
304
  if (pctGained <= 0) return 'safe'; // not growing