ccstatusline 2.1.0 → 2.1.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.
package/README.md CHANGED
@@ -46,10 +46,11 @@
46
46
 
47
47
  ## 🆕 Recent Updates
48
48
 
49
- ### v2.1.0 - Usage widgets and reliability fixes
49
+ ### v2.1.0 - v2.1.1 - Usage widgets and reliability fixes
50
50
 
51
- - **🧩 New Usage widgets** - Added **Session Usage**, **Weekly Usage**, **Reset Timer**, and **Context Bar** widgets.
52
- - **📊 More accurate counts** - Usage/context widgets now use new statusline JSON metrics when available for more accurate token and context counts.
51
+ - **🧩 New Usage widgets (v2.1.0)** - Added **Session Usage**, **Weekly Usage**, **Reset Timer**, and **Context Bar** widgets.
52
+ - **📊 More accurate counts (v2.1.0)** - Usage/context widgets now use new statusline JSON metrics when available for more accurate token and context counts.
53
+ - **🪟 Windows empty file bug fix (v2.1.1)** - Fixed a Windows issue that could create an empty `c:\dev\null` file.
53
54
 
54
55
  ### v2.0.26 - v2.0.29 - Performance, git internals, and workflow improvements
55
56
 
@@ -51405,7 +51405,7 @@ import { execSync as execSync3 } from "child_process";
51405
51405
  import * as fs5 from "fs";
51406
51406
  import * as path4 from "path";
51407
51407
  var __dirname = "/Users/sirmalloc/Projects/Personal/ccstatusline/src/utils";
51408
- var PACKAGE_VERSION = "2.1.0";
51408
+ var PACKAGE_VERSION = "2.1.1";
51409
51409
  function getPackageVersion() {
51410
51410
  if (/^\d+\.\d+\.\d+/.test(PACKAGE_VERSION)) {
51411
51411
  return PACKAGE_VERSION;
@@ -51425,6 +51425,9 @@ function getPackageVersion() {
51425
51425
  return "";
51426
51426
  }
51427
51427
  function getTerminalWidth() {
51428
+ if (process.platform === "win32") {
51429
+ return null;
51430
+ }
51428
51431
  try {
51429
51432
  const tty2 = execSync3("ps -o tty= -p $(ps -o ppid= -p $$)", {
51430
51433
  encoding: "utf8",
@@ -51456,6 +51459,9 @@ function getTerminalWidth() {
51456
51459
  return null;
51457
51460
  }
51458
51461
  function canDetectTerminalWidth() {
51462
+ if (process.platform === "win32") {
51463
+ return false;
51464
+ }
51459
51465
  try {
51460
51466
  const tty2 = execSync3("ps -o tty= -p $(ps -o ppid= -p $$)", {
51461
51467
  encoding: "utf8",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccstatusline",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "A customizable status line formatter for Claude Code CLI",
5
5
  "module": "src/ccstatusline.ts",
6
6
  "type": "module",