640e1348aa
- parse status JSON from stdin and render a single status line - widgets: model+thinking, context %, directory, git, token speed, rate limits - coloring: green-to-red gradient plus fixed per-widget colors - `test` subcommand previews all widgets with synthetic data - braille-blank placeholder on the second line
54 lines
1.2 KiB
JSON
54 lines
1.2 KiB
JSON
{
|
|
"hook_event_name": "Status",
|
|
"session_id": "abc123...",
|
|
"transcript_path": "/path/to/transcript.json",
|
|
"cwd": "/current/working/directory",
|
|
"model": {
|
|
"id": "claude-opus-4-6[1m]",
|
|
"display_name": "Opus 4.6 (1M context)"
|
|
},
|
|
"workspace": {
|
|
"current_dir": "/current/working/directory",
|
|
"project_dir": "/original/project/directory",
|
|
"added_dirs": []
|
|
},
|
|
"version": "2.1.80",
|
|
"output_style": {
|
|
"name": "default"
|
|
},
|
|
"cost": {
|
|
"total_cost_usd": 0.01234,
|
|
"total_duration_ms": 45000,
|
|
"total_api_duration_ms": 2300,
|
|
"total_lines_added": 156,
|
|
"total_lines_removed": 23
|
|
},
|
|
"context_window": {
|
|
"total_input_tokens": 50113,
|
|
"total_output_tokens": 10462,
|
|
"context_window_size": 1000000,
|
|
"current_usage": {
|
|
"input_tokens": 8500,
|
|
"output_tokens": 1200,
|
|
"cache_creation_input_tokens": 5000,
|
|
"cache_read_input_tokens": 2000
|
|
},
|
|
"used_percentage": 8,
|
|
"remaining_percentage": 92
|
|
},
|
|
"exceeds_200k_tokens": false,
|
|
"rate_limits": {
|
|
"five_hour": {
|
|
"used_percentage": 42,
|
|
"resets_at": 1774020000
|
|
},
|
|
"seven_day": {
|
|
"used_percentage": 15,
|
|
"resets_at": 1774540000
|
|
}
|
|
},
|
|
"vim": {
|
|
"mode": "NORMAL"
|
|
}
|
|
}
|