Skip to content

Commit 9c6168d

Browse files
authored
feat(ccusage)!: remove deprecated blocks --live monitor (#782)
1 parent 9f4f9ec commit 9c6168d

File tree

10 files changed

+25
-1409
lines changed

10 files changed

+25
-1409
lines changed

apps/ccusage/README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,6 @@ npx ccusage session # Usage by conversation session
101101
npx ccusage blocks # 5-hour billing windows
102102
npx ccusage statusline # Compact status line for hooks (Beta)
103103

104-
# Live monitoring
105-
npx ccusage blocks --live # Real-time usage dashboard
106-
107104
# Filters and options
108105
npx ccusage daily --since 20250525 --until 20250530
109106
npx ccusage daily --json # JSON output
@@ -127,7 +124,6 @@ npx ccusage monthly --compact # Compact monthly report
127124
- 📅 **Monthly Report**: View token usage and costs aggregated by month
128125
- 💬 **Session Report**: View usage grouped by conversation sessions
129126
-**5-Hour Blocks Report**: Track usage within Claude's billing windows with active block monitoring
130-
- 📈 **Live Monitoring**: Real-time dashboard showing active session progress, token burn rate, and cost projections with `blocks --live`
131127
- 🚀 **Statusline Integration**: Compact usage display for Claude Code status bar hooks (Beta)
132128
- 🤖 **Model Tracking**: See which Claude models you're using (Opus, Sonnet, etc.)
133129
- 📊 **Model Breakdown**: View per-model cost breakdown with `--breakdown` flag

apps/ccusage/src/_consts.ts

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -80,37 +80,10 @@ export const USAGE_DATA_GLOB_PATTERN = '**/*.jsonl';
8080
export const MCP_DEFAULT_PORT = 8080;
8181

8282
/**
83-
* Default refresh interval in seconds for live monitoring mode
84-
* Used in blocks command for real-time updates
83+
* Default refresh interval in seconds for statusline cache expiry
8584
*/
8685
export const DEFAULT_REFRESH_INTERVAL_SECONDS = 1;
8786

88-
/**
89-
* Minimum refresh interval in seconds for live monitoring mode
90-
* Prevents too-frequent updates that could impact performance
91-
*/
92-
export const MIN_REFRESH_INTERVAL_SECONDS = 1;
93-
94-
/**
95-
* Maximum refresh interval in seconds for live monitoring mode
96-
* Prevents too-slow updates that reduce monitoring effectiveness
97-
*/
98-
export const MAX_REFRESH_INTERVAL_SECONDS = 60;
99-
100-
/**
101-
* Frame rate limit for live monitoring (16ms = ~60fps)
102-
* Prevents terminal flickering and excessive CPU usage during rapid updates
103-
*/
104-
export const MIN_RENDER_INTERVAL_MS = 16;
105-
106-
/**
107-
* Burn rate thresholds for indicator display (tokens per minute)
108-
*/
109-
export const BURN_RATE_THRESHOLDS = {
110-
HIGH: 1000,
111-
MODERATE: 500,
112-
} as const;
113-
11487
/**
11588
* Context usage percentage thresholds for color coding
11689
*/

0 commit comments

Comments
 (0)