diff --git a/README.md b/README.md index 7def8ae..d0d43b0 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,24 @@ ## 🆕 Recent Updates +### v2.0.7 - Current Working Directory & Session Cost + +![Current Working Directory and Session Cost](https://raw.githubusercontent.com/sirmalloc/ccstatusline/main/screenshots/cwdAndSessionCost.png) + +- **📁 Current Working Directory** - Display the current working directory with configurable segment display + - Set the number of path segments to show (e.g., show only last 2 segments: `.../Personal/ccstatusline`) + - Supports raw value mode for compact display + - Automatically truncates long paths with ellipsis +- **💰 Session Cost Widget** - Track your Claude Code session costs (requires Claude Code 1.0.85+) + - Displays total session cost in USD + - Supports raw value mode (shows just `$X.YZ` vs `Cost: $X.YZ`) + - Real-time cost tracking from Claude Code session data + - Note: Cost may not update properly when using `/resume` (Claude Code limitation) +- **🐛 Bug Fixes** + - Fixed Block Timer calculations for accurate time tracking across block boundaries + - Improved widget editor stability with proper Ctrl+S handling + - Enhanced cursor display in numeric input fields + ### v2.0.2 - Block Timer Widget ![Block Timer](https://raw.githubusercontent.com/sirmalloc/ccstatusline/main/screenshots/blockTimerSmall.png) diff --git a/log.txt b/log.txt deleted file mode 100644 index a33f3d3..0000000 --- a/log.txt +++ /dev/null @@ -1 +0,0 @@ -{"session_id":"05091387-3173-4179-afdd-fc3a3694b11f","transcript_path":"/Users/sirmalloc/.claude/projects/-Users-sirmalloc-Projects-Personal-ccstatusline/05091387-3173-4179-afdd-fc3a3694b11f.jsonl","cwd":"/Users/sirmalloc/Projects/Personal/ccstatusline","model":{"id":"claude-opus-4-1-20250805","display_name":"Opus 4.1"},"workspace":{"current_dir":"/Users/sirmalloc/Projects/Personal/ccstatusline","project_dir":"/Users/sirmalloc/Projects/Personal/ccstatusline"},"version":"1.0.86","output_style":{"name":"default"},"cost":{"total_cost_usd":5.474908800000001,"total_duration_ms":3466518,"total_api_duration_ms":219805,"total_lines_added":0,"total_lines_removed":0}} \ No newline at end of file diff --git a/package.json b/package.json index 8ed801f..ece0603 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ccstatusline", - "version": "2.0.6", + "version": "2.0.7", "description": "A customizable status line formatter for Claude Code CLI", "module": "src/ccstatusline.ts", "type": "module", diff --git a/screenshots/cwdAndSessionCost.png b/screenshots/cwdAndSessionCost.png new file mode 100644 index 0000000..da0a25c Binary files /dev/null and b/screenshots/cwdAndSessionCost.png differ