@owloops/claude-powerline 1.5.2 → 1.5.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/README.md CHANGED
@@ -52,9 +52,9 @@
52
52
 
53
53
  - **Vim-style powerline** with proper arrows and segments
54
54
  - **Real-time session tracking** with costs and tokens
55
- - **Billing window tracking** with 5-hour block usage
55
+ - **Billing window tracking** with 5-hour blocks and burn rates
56
56
  - **Daily usage monitoring** with budget alerts
57
- - **Performance metrics** with response times and burn rates
57
+ - **Performance metrics** with response times
58
58
  - **Context monitoring** showing tokens used and auto-compact threshold
59
59
  - **Git integration** with branch, status, ahead/behind counts
60
60
 
@@ -237,7 +237,7 @@ Configuration priority (top overrides bottom):
237
237
  },
238
238
  "model": { "enabled": true },
239
239
  "session": { "enabled": true, "type": "tokens" },
240
- "block": { "enabled": true, "type": "cost" },
240
+ "block": { "enabled": true, "type": "cost", "burnType": "cost" },
241
241
  "today": { "enabled": true, "type": "cost" },
242
242
  "context": { "enabled": true },
243
243
  "tmux": { "enabled": true },
@@ -246,10 +246,9 @@ Configuration priority (top overrides bottom):
246
246
  "showResponseTime": true,
247
247
  "showLastResponseTime": false,
248
248
  "showDuration": true,
249
- "showMessageCount": true,
250
- "showCostBurnRate": false,
251
- "showTokenBurnRate": false
252
- }
249
+ "showMessageCount": true
250
+ },
251
+ "version": { "enabled": true }
253
252
  }
254
253
  }
255
254
  ]
@@ -268,6 +267,7 @@ Configuration priority (top overrides bottom):
268
267
  - **context**: Context window usage and auto-compact threshold
269
268
  - **tmux**: Tmux session name and window info (when in tmux)
270
269
  - **metrics**: Performance analytics (see Metrics Configuration below)
270
+ - **version**: Claude Code version (e.g., v1.0.81)
271
271
 
272
272
  #### Directory Configuration
273
273
 
@@ -315,9 +315,7 @@ The metrics segment displays performance analytics from your Claude sessions:
315
315
  "showResponseTime": true, // Average response time (`⧖ 3.2s`)
316
316
  "showLastResponseTime": false, // Last response time (`Δ 2.8s`)
317
317
  "showDuration": true, // Session duration (`⧗ 28m`)
318
- "showMessageCount": true, // User message count (`⟐ 93`)
319
- "showCostBurnRate": false, // Cost per hour (`⟢ $1.20/h`)
320
- "showTokenBurnRate": false // Tokens per hour (`⟢ 450K/h`)
318
+ "showMessageCount": true // User message count (`⟐ 93`)
321
319
  }
322
320
  ```
323
321
 
@@ -327,8 +325,6 @@ The metrics segment displays performance analytics from your Claude sessions:
327
325
  - `showLastResponseTime`: Time for the last response (shows `0.0s` while waiting)
328
326
  - `showDuration`: Total time since session started
329
327
  - `showMessageCount`: Number of user messages sent
330
- - `showCostBurnRate`: Spending rate per hour
331
- - `showTokenBurnRate`: Token consumption rate per hour
332
328
 
333
329
  ![Metrics Segment Example](images/claude-powerline-metrics.png)
334
330
 
@@ -369,6 +365,19 @@ The powerline includes three complementary usage segments:
369
365
 
370
366
  - `cost`: Show cost + time (`$0.05 (2h 30m left)`)
371
367
  - `tokens`: Show tokens + time (`1.2K tokens (2h 30m left)`)
368
+ - `both`: Show both cost and tokens + time
369
+ - `time`: Show only time remaining
370
+
371
+ **Block burn rates** (configured with `burnType`):
372
+
373
+ ```json
374
+ "block": { "enabled": true, "type": "cost", "burnType": "cost" }
375
+ ```
376
+
377
+ - `cost`: Show cost burn rate (`$0.05 | $1.20/h (2h 30m left)`)
378
+ - `tokens`: Show token burn rate (`1.2K | 450K/h (2h 30m left)`)
379
+ - `both`: Show both burn rates
380
+ - `none`: Hide burn rates
372
381
 
373
382
  **Budget Configuration:**
374
383
 
@@ -415,11 +424,12 @@ To prevent segment cutoff, configure multiple lines:
415
424
  {
416
425
  "segments": {
417
426
  "session": { "enabled": true, "type": "tokens" },
418
- "block": { "enabled": true, "type": "cost" },
427
+ "block": { "enabled": true, "type": "cost", "burnType": "cost" },
419
428
  "today": { "enabled": true, "type": "cost" },
420
429
  "context": { "enabled": true },
421
430
  "tmux": { "enabled": false },
422
- "metrics": { "enabled": true }
431
+ "metrics": { "enabled": true },
432
+ "version": { "enabled": true }
423
433
  }
424
434
  }
425
435
  ]