copilot-statusline 0.1.6 → 0.1.7

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.
@@ -52940,7 +52940,7 @@ import { execSync as execSync3 } from "child_process";
52940
52940
  import * as fs5 from "fs";
52941
52941
  import * as path4 from "path";
52942
52942
  var __dirname = "/Users/ts/workspace/active/statusline/copilot_statusline/src/utils";
52943
- var PACKAGE_VERSION = "0.1.6";
52943
+ var PACKAGE_VERSION = "0.1.7";
52944
52944
  function getPackageVersion() {
52945
52945
  if (/^\d+\.\d+\.\d+/.test(PACKAGE_VERSION)) {
52946
52946
  return PACKAGE_VERSION;
@@ -54473,7 +54473,8 @@ function makeUsageProgressBar(percent, width = 15, powerlineMode = false) {
54473
54473
  const empty = width - filled;
54474
54474
  const bar = "█".repeat(filled) + "░".repeat(empty);
54475
54475
  if (powerlineMode) {
54476
- return `\x1B[38;5;231m[${bar}]${PROGRESS_BAR_FG_RESTORE}`;
54476
+ const filledStr = filled > 0 ? `\x1B[38;5;231m${"█".repeat(filled)}${PROGRESS_BAR_FG_RESTORE}` : "";
54477
+ return `[${filledStr}${"░".repeat(empty)}]`;
54477
54478
  }
54478
54479
  return "[" + bar + "]";
54479
54480
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "copilot-statusline",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "A customizable status line formatter for GitHub Copilot CLI — based on ccstatusline",
5
5
  "module": "src/copilot-statusline.ts",
6
6
  "type": "module",