claude-simple-status 1.0.0 → 1.0.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 +6 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-simple-status",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "A simple statusline for Claude Code — git branch, model, context usage, and quota at a glance",
5
5
  "type": "module",
6
6
  "bin": {
package/statusline.mjs CHANGED
@@ -248,9 +248,12 @@ async function main() {
248
248
  const branch = getGitBranch();
249
249
 
250
250
  // Build output
251
- let output = `${branch ? `${YELLOW_BOLD}${branch}${RESET} | ` : ''}${CYAN}${model}${RESET} | ${colorPct(contextUsed)} | ${resetLocal} | 5h:${colorPct(fiveHourPct)} | 7d:${colorPct(sevenDayPct)}`;
252
- if (hasError) {
253
- output += ` | ${RED}ERR${RESET}`;
251
+ let output = `${branch ? `${YELLOW_BOLD}${branch}${RESET} | ` : ''}${CYAN}${model}${RESET} | ${colorPct(contextUsed)}`;
252
+ if (token) {
253
+ output += ` | ${resetLocal} | 5h:${colorPct(fiveHourPct)} | 7d:${colorPct(sevenDayPct)}`;
254
+ if (hasError) {
255
+ output += ` | ${RED}ERR${RESET}`;
256
+ }
254
257
  }
255
258
 
256
259
  process.stdout.write(output);